Skip to content

ryangreenlightcodingdev/crypto-orderbook-aggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Order Book Aggregator

This Python script aggregates real-time order book data for BTC/USD from three cryptocurrency exchanges β€” Coinbase Pro, Gemini, and Kraken β€” and calculates the cost to buy or sell a specified amount of Bitcoin.

πŸš€ Features

  • Fetches live order book data from:
    • Coinbase Pro
    • Gemini
    • Kraken
  • Merges and normalizes bids and asks across exchanges
  • Calculates total price to:
    • πŸ“ˆ Buy N BTC (by consuming asks)
    • πŸ“‰ Sell N BTC (by consuming bids)
  • CLI flag to customize BTC quantity

πŸ§ͺ Example Usage

python orderbook_aggregator.py --quantity 10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published