Expand description
§live-binance
Plugs into lightstream’s WebSocket-JSON transport to produce
Binance public market data connections. Each constructor returns a
WsJsonSourceSpec - URL, schema, per-field decode hints - that
live-feed hands to lightstream’s pipeline to drive the
connection and stream Arrow tables to subscribers.
§Usage rights
Users are responsible for compliance with Binance’s market data
licensing. This crate is a client library: data flows from Binance
directly into the user’s process, the same way binance-rs or any
other client library works. Operating a public service that
redistributes Binance data to third parties via these specs is a
separate matter and not covered by personal-use terms.
Re-exports§
pub use spec::EmitMode;pub use spec::FIELD_META_FROM_STRING;pub use spec::FIELD_META_SOURCE_KEY;pub use spec::FromStringHint;pub use spec::WsJsonSourceSpec;
Modules§
Constants§
- BINANCE_
SPOT_ WS_ HOST - Base host for Binance Spot combined-stream and raw-stream endpoints.
Functions§
- trade
- Public trade-stream source spec for one symbol on Binance Spot.
- trade_
schema - Output schema for the trade stream. Field metadata maps the Arrow column name to the upstream JSON key and opts string-encoded numerics in to the from-string parse path.