How quantxpress-technologies/blitz-api-py works
BlitzConnect is a Python SDK for authenticated trading and market-data access. Users create an Interactive or Market Data client, which obtains an access token and issues REST requests; WebSocket clients connect, manage subscriptions, and deliver callbacks. The SDK also provides instrument lookup and protobuf decoding. The sampled source establishes the principal calls; broader capabilities such as portfolio queries and historical data are documented in the clients. Proto schema and generated-code relationships are visible in the README but their implementation details were not sampled.
Main entry points: interactive/api_client.py Trading REST · websocket_client.py Market stream · auth.py Authentication · marketdata/api_client.py Market REST
Components 19
Interactive Trading
- Trading REST
blitzsdk/interactive/api_client.py - Order request
blitzsdk/interactive/models.py - Trading API
Market Data
- Market REST
blitzsdk/marketdata/api_client.py - Instrument lookup
blitzsdk/marketdata/instrument_manager.py - Market messages
blitzsdk/proto/marketdata.proto - Protobuf decoder
blitzsdk/proto/marketdata_pb2.py - Market Data API
- Instrument feed
WebSocket Streaming
- Trading stream
blitzsdk/interactive/websocket_client.py - Market stream
blitzsdk/marketdata/websocket_client.py
Shared Runtime
- Authentication
blitzsdk/common/auth.py - HTTP transport
blitzsdk/common/base_client.py - WebSocket transport
blitzsdk/common/base_ws_client.py - Configuration
blitzsdk/common/config.py - HTTP session
blitzsdk/common/session.py - Socket compatibility
blitzsdk/common/ws_compat.py - SDK errors
blitzsdk/common/exceptions.py
Other components
- SDK user
Connections 29
- SDK user → Trading REST: calls
README.md - SDK user → Trading stream: starts
README.md - SDK user → Market REST: calls
README.md - SDK user → Market stream: starts
README.md - Trading REST → Order request: serializes
blitzsdk/interactive/api_client.py - Trading REST → HTTP transport: uses
blitzsdk/interactive/api_client.py - Trading REST → Trading API: requests
blitzsdk/interactive/api_client.py - Market REST → HTTP transport: uses
blitzsdk/marketdata/api_client.py - Market REST → Market Data API: requests
blitzsdk/marketdata/api_client.py - Instrument lookup → Instrument feed: downloads
blitzsdk/marketdata/instrument_manager.py - Trading REST → Authentication: authenticates
- Market REST → Authentication: authenticates
- HTTP transport → HTTP session: builds
blitzsdk/common/base_client.py - HTTP transport → SDK errors: raises
blitzsdk/common/base_client.py - Authentication → HTTP session: builds
blitzsdk/common/auth.py - Authentication → Configuration: reads
blitzsdk/common/auth.py - Trading REST → Configuration: reads
blitzsdk/interactive/api_client.py - Market REST → Configuration: reads
blitzsdk/marketdata/api_client.py - Trading stream → WebSocket transport: extends
blitzsdk/interactive/websocket_client.py - Market stream → WebSocket transport: extends
blitzsdk/marketdata/websocket_client.py - Trading stream → Authentication: authenticates
blitzsdk/interactive/websocket_client.py - Market stream → Authentication: authenticates
blitzsdk/marketdata/websocket_client.py - Trading stream → Configuration: reads
blitzsdk/interactive/websocket_client.py - Market stream → Configuration: reads
blitzsdk/marketdata/websocket_client.py - WebSocket transport → Socket compatibility: connects with
blitzsdk/common/base_ws_client.py - Market stream → Protobuf decoder: decodes with
blitzsdk/marketdata/websocket_client.py - Market messages → Protobuf decoder: defines
- Trading stream → Trading API: streams
README.md - Market stream → Market Data API: streams
README.md