dashchain library Null safety

A Dart library to work with some crypto exchanges.

Get latest cryptomarket quotes, check order books, write backtests, manage your assets !

Classes

BinanceAggregatedTrade
BinanceAveragePrice
BinanceBookTicker
BinanceDayTicker
BinanceExchangeFilter
BinanceExchangeInfo
BinanceKline
BinanceOrderBook
BinanceOrderFill
BinanceOrderStatus
BinancePriceTicker
BinanceRateLimiter
BinanceRestApi
Based on official docs at https://github.com/binance-exchange/binance-official-api-docs
BinanceSymbol
BinanceTrade
BinanceTradeResponse

Extensions

BinanceTradingStatusAsString
DoubleToPrecision
IntervalsAsString
OrderResponseTypeAsString
OrderTypeAsString
RequestMethodAsString
SideAsString
TimeInForceAsString

Constants

aggregatedTradesPath → const String
The endpoint to get the aggregated trades for a specific symbol.
'/aggTrades'
apiPath → const String
The base path for Binance's REST API.
'/api/v3'
avgPricePath → const String
The endpoint to get the average price for a specific symbol.
'/avgPrice'
binanceDomain → const String
Binance's base domain name.
'binance.com'
bookTickerPath → const String
The endpoint to get the book ticker of symbol(s).
'/ticker/bookTicker'
dayTickerPath → const String
The endpoint to get the 24hr statistics symbol(s).
'/ticker/24hr'
defaultUri → const String
The default URI to use when interacting with Binance's REST API.
'api.$binanceDomain'
exchangeInfoPath → const String
The endpoint to get exchange info about symbols.
'/exchangeInfo'
historicalTradesPath → const String
The endpoint to get the historical trades for a specific symbol.
'/historicalTrades'
klinesPath → const String
The endpoint to get the klines (or candlesticks) for a specific symbol.
'/klines'
kMaxRecvWindow → const int
recvWindow param must be below 60sec
60000
kMinRecvWindow → const int
recvWindow param must be a positive integer
0
orderBookPath → const String
The endpoint to get the Order Book for a specific symbol.
'/depth'
pingPath → const String
A basic endpoint that may reflect API availability/performance.
'/ping'
priceTickerPath → const String
The endpoint to get the current price of symbol(s).
'/ticker/price'
testTradeOrderPath → const String
The endpoint to send a test trade order.
'/order/test'
timePath → const String
A basic endpoint that may reflect API availability/performance. It will also return the current server time using Epoch time in milliseconds.
'/time'
tradeOrderPath → const String
The endpoint to send a trade order.
'/order'
tradesPath → const String
The endpoint to get the latest trades for a specific symbol.
'/trades'
xMbxApiKeyHeader → const String
The header that should be used to pass the API key needed fore some endpoints.
'x-mbx-apikey'
xMbxUsedWeightHeader → const String
The header given in Binance's API response representing the current quota. Should be tracked to avoid IP bans.
'x-mbx-used-weight'

Enums

BinanceTradingStatus
The enum for the possible values of a symbol trading status in Binance API
Interval
The enum for the possible values of a symbol trading status in Binance API
OrderResponseType
The enum for the possible types of an order's response From docs : Set the response JSON. ACK, RESULT, or FULL; MARKET and LIMIT order types default to FULL, all other orders default to ACK.
OrderType
The enum for the possible types of an order
RequestMethod
Side
The enum for the possible values of a trade side
TimeInForce
The enum for the possible values of the time in force parameter

Exceptions / Errors

BinanceApiError