orderbook_depth

orderbook_depth pairs

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

Arguments

StructureTypeDescription
pairsarrayan array of trading pairs

Response

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

📌 Examples

Command

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

Response

{
  "result": [
    {
      "pair": ["DOC", "MARTY"],
      "depth": {
        "asks": 2,
        "bids": 6
      }
    },
    {
      "pair": ["DOGE", "KMD"],
      "depth": {
        "asks": 3,
        "bids": 3
      }
    },
    {
      "pair": ["BTC", "KMD"],
      "depth": {
        "asks": 5,
        "bids": 9
      }
    }
  ]
}