binance library

Binance

Binance has excellent documentation on their Websocket and REST APIs. We convert all endpoint JSON objects into Dart classes for easy consumption.

Websockets https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md

REST https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md

Classes

AggregatedTrade
Aggregated trades with the first and last trade id in the aggregation.
AveragedPrice
Average price over a certain duration.
Binance
BookDepth
Shape of the order book.
BookTicker
Best current price on the book for a given BookTicker.symbol
DepthPoint
Data-point for book depth.
DiffBookDepth
Order book price and quantity depth updates used to locally manage an order book pushed every second.
ExchangeInfo
Current exchange trading rules and symbol information
Kline
Kline, commonly known as Candlestick, which packs a lot of trade history information into a single data point.
MiniTicker
Represents data provided by
Symbol
Represents the Symbols contained within ExchangeInfo.symbols
Ticker
Represents data provided by
TickerPrice
Trading pair symbol and its price.
TickerStats
Ticker statistics, usually from the last 24 hours.
Trade
Completed trade on the exchange.
WsAggregatedTrade
See AggregatedTrade
WSBookTicker
WsKline
See Kline

Enums

Interval
The chart interval for Klein, aka Candlesticks. A one-minute interval is Interval.oneMinute
OrderType
Describes the type of an order. A limit order is OrderType.limit
Status
Describes the status of a trading pair. An actively trading pair is Status.trading

Constants

intervalMap → const Map<Interval, String>
Maps Interval to a Binance string
orderTypeMap → const Map<String, OrderType>
Maps OrderType to a Binance string
statusMap → const Map<String, Status>
Maps Status to a Binance string