BinanceFutures.USDM.MarketData.recent_trades
You're seeing just the function
recent_trades
, go back to BinanceFutures.USDM.MarketData module for more information.
Specs
recent_trades(binary(), pos_integer()) :: {:ok, [map()]} | BinanceFutures.HTTPClient.error()
Gets recent trades.
Example
iex(1)> BinanceFutures.USDM.MarketData.recent_trades("BTCUSDT", 2)
{:ok,
[
%{
"id" => 625947549,
"isBuyerMaker" => true,
"price" => "57080.03",
"qty" => "0.100",
"quoteQty" => "5708.00",
"time" => 1616333975439
},
%{
"id" => 625947550,
"isBuyerMaker" => true,
"price" => "57080.03",
"qty" => "0.011",
"quoteQty" => "627.88",
"time" => 1616333975579
}
]}