On this page

latest contributor to this doc

Last Edit:

@gcharang

orderbook_depth

orderbook_depth pairs

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

StructureTypeDescription
pairsarrayan array of trading pairs

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

StructureTypeDescription
resultarray of PairDepthan array of pair depth objects

Where PairDepth object structure is as follows

StructureTypeDescription
pairarray of 2 stringsthe orderbook pair
depth.asksnumberthe number of asks
depth.bidsnumberthe number of bids

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