Quant.Explorer.Providers.Binance (quant v0.1.0-alpha.1)
Binance provider implementation for cryptocurrency data.
This module provides access to Binance public API data including:
- Historical OHLCV data (klines/candlesticks)
- Real-time ticker statistics (24hr ticker)
- Symbol search and exchange information
All data is returned as Explorer DataFrames for immediate analysis.
Binance API Endpoints
- Historical:
https://api.binance.com/api/v3/klines - 24hr Ticker:
https://api.binance.com/api/v3/ticker/24hr - Exchange Info:
https://api.binance.com/api/v3/exchangeInfo
Rate Limiting
Binance uses weighted rate limiting (1200 weight per minute):
- Klines: 2-20 weight (based on limit parameter)
- 24hr Ticker: 2 weight (single symbol), 80 weight (all symbols)
- Exchange Info: 20 weight
Interval Mapping
Binance intervals: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M
Examples
# Historical data (klines)
{:ok, df} = Binance.history("BTCUSDT", interval: "1h", limit: 100)
# Multiple symbols quotes
{:ok, df} = Binance.quote(["BTCUSDT", "ETHUSDT", "ADAUSDT"])
# Search for trading pairs
{:ok, df} = Binance.search("BTC")
# All available symbols
{:ok, df} = Binance.search("")
Summary
Functions
Get all available trading pairs on Binance.
Get klines/candlestick data with time range. Automatically calculates limit based on time range and interval.