MarketEndpoints extension
Market Data Endpoints for Binance Spot API
- on
Methods
-
aggregateTradesList(
{required String symbol, int? fromId, int? startTime, int? endTime, int? limit}) → Future< Either< String, List< >AggTrade> > - Get compressed, aggregate market trades. Market trades that fill at the time, from the same order, with the same price will have the quantity aggregated.
-
allOrderBookTicker(
) → Future< Either< String, List< >BookTicker> > - Best price/qty on the order book for all symbols.
-
allSymbolsPriceTicker(
) → Future< Either< String, List< >Ticker> > - Latest price for all symbols
-
candlestickData(
{required String symbol, required Interval interval, int? startTime, int? endTime, int? limit}) → Future< Either< String, List< >Kline> > - Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.
-
currentAveragePrice(
{required String symbol}) → Future< Either< String, AveragePrice> > - Current average price for a symbol.
-
exchangeInfo(
{String? symbol, String? symbols}) → Future< Either< String, ExchangeInfo> > - Current exchange trading rules and symbol information
-
get24hrTickerPriceChangeStatistics(
{required String symbol}) → Future< Either< String, TickerStatistics> > - 24 hour rolling window price change statistics. Careful when accessing this with no symbol.
-
getAll24hrTickerPriceChangeStatistics(
) → Future< Either< String, List< >TickerStatistics> > - 24 hour rolling window price change statistics for all symbols. Careful when accessing this with no symbol.
-
oldTradeLookup(
{required String symbol, int? limit, int? fromId}) → Future< Either< String, List< >Trade> > - Get older market historical trades.
-
orderBook(
{required String symbol, int? limit}) → Future< Either< String, OrderBook> > - Order book adjusted based on the limits
-
orderBookTicker(
{required String symbol}) → Future< Either< String, BookTicker> > - Best price/qty on the order book for a symbol.
-
recentTradesList(
{required String symbol, int? limit}) → Future< Either< String, List< >Trade> > - Get recent market trades
-
serverTime(
) → Future< Either< String, int> > - Test connectivity to the Rest API and get the current server time.
-
symbolPriceTicker(
{required String symbol}) → Future< Either< String, Ticker> > - Latest price for a symbol
-
testPing(
) → Future< Either< String, bool> > - Test connectivity to the Rest API.