BinanceFutures.USDM.MarketData.aggregate_trades
You're seeing just the function
aggregate_trades
, go back to BinanceFutures.USDM.MarketData module for more information.
Link to this function
aggregate_trades(symbol, from_id \\ nil, start_time \\ nil, end_time \\ nil, limit \\ 500)
View SourceSpecs
aggregate_trades( binary(), nil | pos_integer(), nil | pos_integer(), nil | pos_integer(), pos_integer() ) :: {:ok, [map()]} | BinanceFutures.HTTPClient.error()
Gets compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated.
Example
iex(1)> BinanceFutures.USDM.MarketData.aggregate_trades("BTCUSDT", nil, nil, nil, 2)
{:ok,
[
%{
"T" => 1616338617973,
"a" => 391916312,
"f" => 626090468,
"l" => 626090468,
"m" => false,
"p" => "57215.00",
"q" => "0.002"
},
%{
"T" => 1616338618243,
"a" => 391916313,
"f" => 626090469,
"l" => 626090469,
"m" => false,
"p" => "57215.00",
"q" => "0.030"
}
]}