On this page

latest contributor to this doc

Last Edit:

@smk762

Orderbook Depth

API-v1orderbook_depth

The orderbook_depth method returns the number of asks and bids for the specified trading pairs.

ParameterTypeRequiredDescription
pairsarrayAn array of trading pairs

The pairs in the response are not guaranteed to be in the order of pairs in the request.

ParameterTypeDescription
resultarray of objectsAn array of PairDepth objects

ParameterTypeDescription
depthobjectDepthInfo object with ask/bid counts
pairarrayThe trading pair, e.g., ["BTC", "KMD"]

ParameterTypeDescription
asksnumberThe number of asks for this trading pair
bidsnumberThe number of bids for this trading pair

orderbook_depth

POST
orderbook_depth
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "orderbook_depth",
  "pairs": [
    [
      "DOC",
      "MARTY"
    ],
    [
      "BTC",
      "KMD"
    ],
    [
      "DOGE",
      "KMD"
    ]
  ]
}