Skip to main content

Orderbook implementation using Pybind11 and C++

Project description

Binance Unfazed

C++ Binance OrderBook that You can embed in Your python code! Simulate whole market day of 3,389,470 OrderBookEntry in 109ms*

*Ran on i9-13980hx

installation

pip install cpp_binance_orderbook
import cpp_binance_orderbook

def orderbook_callback(best_bid, best_ask, mid_price, orderbook_imbalance):
    # ...
    a, b, c, d = best_bid, best_ask, mid_price, orderbook_imbalance

if __name__ == '__main__':

    csv_path = "C:/Users/daniel/Documents/binance_archival_data/binance_difference_depth_stream_usd_m_futures_trxusdt_25-03-2025.csv"

    orderbook_session_simulator = cpp_binance_orderbook.OrderbookSessionSimulator()
    orderbook_session_simulator.processOrderbook(csv_path, orderbook_callback)

Control-V

Control-V (1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpp_binance_orderbook-0.0.3.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpp_binance_orderbook-0.0.3-cp311-cp311-win_amd64.whl (119.9 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file cpp_binance_orderbook-0.0.3.tar.gz.

File metadata

  • Download URL: cpp_binance_orderbook-0.0.3.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for cpp_binance_orderbook-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c1f95ba3e253f34ac788c0c0b7b1b351d1b6294de925eef3e4a9b74a9bc9b892
MD5 4dd6fe1becb63ee41b4f9f877dd659cb
BLAKE2b-256 e1605446f417bb29e2408f013cdc0fd395296d5cab83629a39aa92037d75576e

See more details on using hashes here.

File details

Details for the file cpp_binance_orderbook-0.0.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for cpp_binance_orderbook-0.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 20881fd83cb20bcd81837d7723124d32ff32058ca0f6b66e105d700ab93dbc7e
MD5 ac61a5ec82a4533b47724c4da57db1aa
BLAKE2b-256 b7b908ff187bd54252312460bf29261efd267ab208929f49b379837f6f5cec3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page