BinanceFutures.USDM.MarketData.historical_trades
You're seeing just the function
historical_trades
, go back to BinanceFutures.USDM.MarketData module for more information.
Specs
historical_trades(binary(), nil | pos_integer(), pos_integer()) :: {:ok, [map()]} | BinanceFutures.HTTPClient.error()
Gets older market historical trades.
Example
iex(1)> BinanceFutures.USDM.MarketData.historical_trades("BTCUSDT", nil, 2)
{:ok,
[
%{
"id" => 626078533,
"isBuyerMaker" => false,
"price" => "57267.94",
"qty" => "0.001",
"quoteQty" => "57.26",
"time" => 1616338040822
},
%{
"id" => 626078534,
"isBuyerMaker" => true,
"price" => "57263.20",
"qty" => "0.010",
"quoteQty" => "572.63",
"time" => 1616338040920
}
]}