Coinbase-pro-feed-kotlin - Kotlin Coinbase Pro Level 2 Order Book Feed

Overview

Kotlin Coinbase Pro Level 2 Order Book Feed

Quick start

Depending on your OS run the corresponding CLI script with the target instrument as input:

Mac/UNIX

./gradlew runCLI --args=BTC-GBP

Windows

gradlew.bat runCLI --args=BTC-GBP

Hit Ctrl-C to quit the CLI.

Program

  • Establish websocket connection to coinbase pro exchange
  • Bootstrap order book with the one-time snapshot of existing bids/asks
  • Then process new incoming level two updates matches and add to order book
  • Extract 10 highest bids and 10 lowest asks (level 10 depth) and write to console.

Expected output

ericmcevoy@Erics-MacBook-Pro coinbase-pro-feed % ./gradlew runCLI --args=BTC-GBP
> Task :runCLI
L2 Subscription Request Sent
Coinbase Connection opened 
Level Two Snapshot Received - Bootstrapping Order Book
1. Ask           2. Bid
34844.47        34834.62
34845.22        34834.61
34845.55        34832.88
34847.04        34831.84
34847.05        34831.43
34848.32        34830.44
34849.04        34830.0
34852.52        34829.48
34852.53        34824.84
34852.54        34823.84
--------------------
Level Two Message Received
Processing & Adding to Order Book 

1. Ask           2. Bid
34844.47        34834.62
34845.22        34834.61
34845.55        34832.88
34847.04        34831.84
34847.05        34831.43
34848.32        34830.44
34849.04        34830.0
34852.52        34829.48
34852.53        34824.84
34852.54        34823.84
--------------------
etc..
You might also like...
Order Food Application Build With Kotlin MVVM (Model - View - ViewModel)
Order Food Application Build With Kotlin MVVM (Model - View - ViewModel)

Kotlin Order Food Application Build With Kotlin MVVM (Model - View - ViewModel) Clean Architecture, MSSQL API, Beautiful Design UI, Smooth Animations Using Tools And Components Supported By Google And By Most Of The Android Development Community

A feed for GitHub, written in Kotlin using Jetpack Compose.

Gimmick A while back, I noticed that the official GitHub app doesn't have a feed similar to the one can find on the GitHub homepage. Naturally I had t

HideDroid is an Android app that allows the per-app anonymization of collected personal data according to a privacy level chosen by the user.
HideDroid is an Android app that allows the per-app anonymization of collected personal data according to a privacy level chosen by the user.

HideDroid An Android App for preserving user privacy HideDroid is an Android app that allows the per-app anonymization of collected personal data acco

App uses the TMDB in order to provide a list of movies, artists and TV shows

MoviesAppTMDB This app uses the TMDB in order to provide a list of movies, artists and TV shows. The purpose of this app is to demonstrate the use of

An app created for Code Lousiville in order to learn the in-and-outs of basic Android development

Tea House is an app created for Code Lousiville in order to learn the in-and-outs of basic Android development.

This project was developed during the fourcamp journey, in order to improve the knowledge in native android development
This project was developed during the fourcamp journey, in order to improve the knowledge in native android development

This project was developed during the fourcamp journey, in order to improve the knowledge in native android development

A Reeder copycat, in order to give Android an RSS reader similar to Reeder

A Reeder copycat, in order to give Android an RSS reader similar to Reeder, combines the interaction logic of Reeder with the design style of Material Design 3 (You).

Groceries Store is a project to help people order grocery online
Groceries Store is a project to help people order grocery online

🚀 Groceries Store Download on Google Play Store About Groceries Store is a project to help people order grocery online. The main purpose of this proj

ArchGuard is a architecture governance tool which can analysis architecture in container, component, code level, create architecure fitness functions, and anaysis system dependencies..
ArchGuard is a architecture governance tool which can analysis architecture in container, component, code level, create architecure fitness functions, and anaysis system dependencies..

ArchGuard backend ArchGuard is a architecture governance tool which can analysis architecture in container, component, code level, database, create ar

Owner
Eric McEvoy
Solutions Engineer @ R3
Eric McEvoy
Belajar Android Jetpack Pro Dicoding - with Hilt, LiveData, Online-Offline Caching, etc

movie-catalogue-jetpack-pro-dicoding Ini adalah final submission pada kelas Belajar Android Jetpack Pro di dicoding (get 5 star) Pada project ini terd

Rijal Muhyidin 2 Oct 5, 2022
An Android app that lets you download free children's books in different languages from non-profit publisher Book Dash

Bookdash Android Check out the blog post here: http://riggaroo.co.za/book-dash-android-app/ Download the app: https://play.google.com/store/apps/detai

Book Dash 684 Jan 8, 2023
Companion App for the book

Kotlin for Android Developers (the book) This is the code you can use to follow the book. https://antonioleiva.com/kotlin-android-developers-book/ Are

Antonio Leiva 2.6k Dec 14, 2022
Book Parking is a demo application based on MVVM architecture. The app allows users to booking parking slots, the app uses firebase for the backend.

Book Parking is a demo application based on MVVM architecture. The app allows users to booking parking slots, the app uses firebase for the backend.

Dheeraj Gupta 5 Dec 24, 2022
Bookly -Library Book Management App

Android-Study-Jams Bookly -Library Book Management App Problem Statement: University libraries have a very vast collection of books from which student

null 2 Feb 24, 2022
BabyBook - Android Mobile application about keeping a baby book

BabyBook Android Mobile application about keeping a baby book Used Tech Language

null 1 Jan 27, 2022
CoolReader 3 - cross platform open source e-book reader

CoolReader 3 - cross platform open source e-book reader (c) Vadim Lopatin, 1998-2018 Development is moved to GitHub https://github.com/buggins/coo

Vadim Lopatin 302 Jan 4, 2023
This project consists in the approach of a bakery business, in which the user can book one or more products (cakes), in addition to having the method of payment in cash (post-shipment) or the method of payment via mobile

This project consists in the approach of a bakery business, in which the user can book one or more products (cakes), in addition to having the method of payment in cash (post-shipment) or the method of payment via mobile

Paul Guillen Acuña 2 Dec 20, 2022
Book selling application with MVVM (Model, View, ViewModel)

Book selling application with MVVM (Model, View, ViewModel), LiveData, DataBinding, Retrofit, Room Database, Navigation Component(NavGraph, BottomNav), ViewPager2 in TabLayout, SearchView, Vertical Adapter(BestSellers) and Horizontal Adapter(All Books) with ConcatAdapter for Main Screen, Firebase Auth, SearchView in Adapter, Picasso, Lottie, Animated Svg for Splash

Caner Türe 60 Dec 26, 2022
Self hosted read and to-read list book tracker

JELU Official documentation Like Jelu or find it useful ? Offer me a coffee ☕ Purpose This app main purpose is to track what you have read, what you a

null 181 Dec 28, 2022