BinanceFutures.Rest.MarketData.depth
You're seeing just the function
depth
, go back to BinanceFutures.Rest.MarketData module for more information.
Specs
depth(binary(), pos_integer()) :: {:ok, map()} | BinanceFutures.HTTPClient.error()
Gets Order Book.
Example
iex(1)> BinanceFutures.Rest.MarketData.depth("BTCUSDT")
{:ok,
%{
"E" => 1616333020858,
"T" => 1616333020851,
"asks" => [
["56865.63", "3.972"],
["56865.64", "0.023"],
["56882.96", ...],
[...],
...
],
"bids" => [
["56865.62", "0.501"],
["56865.00", "0.003"],
["56862.63", "0.088"],
["56851.92", ...],
[...],
...
],
"lastUpdateId" => 272144015637
}}