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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1f95ba3e253f34ac788c0c0b7b1b351d1b6294de925eef3e4a9b74a9bc9b892
|
|
| MD5 |
4dd6fe1becb63ee41b4f9f877dd659cb
|
|
| BLAKE2b-256 |
e1605446f417bb29e2408f013cdc0fd395296d5cab83629a39aa92037d75576e
|
File details
Details for the file cpp_binance_orderbook-0.0.3-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: cpp_binance_orderbook-0.0.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 119.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20881fd83cb20bcd81837d7723124d32ff32058ca0f6b66e105d700ab93dbc7e
|
|
| MD5 |
ac61a5ec82a4533b47724c4da57db1aa
|
|
| BLAKE2b-256 |
b7b908ff187bd54252312460bf29261efd267ab208929f49b379837f6f5cec3e
|