orderbook
orderbook base rel
The v2 orderbook
method requests from the network the currently available orders for the specified trading pair.
Structure | Type | Description |
---|---|---|
base | string | Base currency of a pair |
rel | string | Related currency, also known as the "quote currency" |
Structure | Type | Description |
---|---|---|
base | string | The name of the coin the user desires to receive |
rel | string | The name of the coin the user will trade |
numasks | integer | The number of outstanding asks |
numbids | integer | The number of outstanding bids |
netid | integer | The id of the network on which the request is made (default is 8762 ) |
asks | array of objects | An array of standard OrderDataV2 objects containing outstanding asks |
bids | array of objects | An array of standard OrderDataV2 objects containing outstanding bids |
timestamp | integer | A UNIX timestamp representing when the orderbook was requested |
total_asks_base_vol | object | A standard NumericFormatsValue object. |
total_asks_rel_vol | object | A standard NumericFormatsValue object. |
total_bids_base_vol | object | A standard NumericFormatsValue object. |
total_bids_rel_vol | object | A standard NumericFormatsValue object. |
Orderbook
POST
orderbook{
"mmrpc": "2.0",
"userpass": "testpsw",
"method": "orderbook",
"params": {
"base": "DGB",
"rel": "DASH"
},
"id": 42
}