latest contributor to this doc

Last Edit: @smk762 ,

orderbook

orderbook base rel

The orderbook method requests from the network the currently available orders for the specified trading pair.

StructureTypeDescription
basestringBase currency of a pair
relstringRelated currency, also known as the "quote currency"

StructureTypeDescription
asksarray of Orderan array of objects containing outstanding asks
bidsarray of Orderan array of objects containing outstanding bids
numasksnumberthe number of outstanding asks
numbidsnumberthe number of outstanding bids
basestringthe name of the coin the user desires to receive
relstringthe name of the coin the user will trade
timestampnumberthe timestamp of the orderbook request
netidnumberthe id of the network on which the request is made (default is 0)
total_asks_base_volstring (decimal)the base volumes sum of all asks
total_asks_base_vol_ratrationalthe total_asks_base_vol in num-rational crate format
total_asks_base_vol_fractionfractionthe total_asks_base_vol represented as an object
total_asks_rel_volstring (decimal)the rel volumes sum of all asks
total_asks_rel_vol_ratrationalthe total_asks_rel_vol in num-rational crate format
total_asks_rel_vol_fractionfractionthe total_asks_rel_vol represented as an object
total_bids_base_volstring (decimal)the base volumes sum of all bids
total_bids_base_vol_ratrationalthe total_bids_base_vol in num-rational crate format
total_bids_base_vol_fractionfractionthe total_bids_base_vol represented as an object
total_bids_rel_volstring (decimal)the rel volumes sum of all bids
total_bids_rel_vol_ratrationalthe total_bids_rel_vol in num-rational crate format
total_bids_rel_vol_fractionfractionthe total_bids_rel_vol represented as an object

Where Order object structure is as follows

StructureTypeDescription
coinstringthe name of the base coin; the user desires this
addressstringthe address offering the trade
pricestring (decimal)the price in rel the user is willing to pay per one unit of the base coin
price_ratrationalthe price in num-rational crate format
price_fractionobject (rational)the price represented as an object
maxvolumestring (decimal)the maximum amount of base coin the offer provider is willing to sell
max_volume_ratrationalthe max volume in num-rational crate format
max_volume_fractionobject (rational)the max volume represented as an object
min_volumestring (decimal)the minimum amount of base coin the offer provider is willing to sell
min_volume_ratrationalthe min volume in num-rational crate format
min_volume_fractionobject (rational)the min volume represented as an object
pubkeystringthe pubkey of the offer provider
agenumberthe age of the offer (in seconds)
zcreditsnumberthe zeroconf deposit amount
numasksnumberthe total number of asks
askdepthnumberthe depth of the ask requests
uuidstringthe uuid of order
is_mineboolwhether the order is placed by me
base_confsnumberthe confirmations settings of base coin set by the offer provider
base_notaboolthe notarisation settings of base coin set by the offer provider
base_max_volumestring (decimal)the maximum amount of base coin the offer provider is willing to buy or sell
base_max_volume_ratrationalthe base max volume in num-rational crate format
base_max_volume_fractionobject (rational)the base max volume represented as an object
base_min_volumestring (decimal)the minimum amount of base coin the offer provider is willing to buy or sell
base_min_volume_ratrationalthe base min volume in num-rational crate format
base_min_volume_fractionobject (rational)the base min volume represented as an object
rel_confsnumberthe confirmations settings of rel coin set by the offer provider
rel_notaboolthe notarisation settings of rel coin set by the offer provider
rel_max_volumestring (decimal)the maximum amount of rel coin the offer provider is willing to buy or sell
rel_max_volume_ratrationalthe rel max volume in num-rational crate format
rel_max_volume_fractionobject (rational)the rel max volume represented as an object
rel_min_volumestring (decimal)the minimum amount of rel coin the offer provider is willing to buy or sell
rel_min_volume_ratrationalthe rel min volume in num-rational crate format
rel_min_volume_fractionobject (rational)the rel min volume represented as an object
base_max_volume_aggrstring (decimal)the base max volume aggregated at the price level; the sum of base volumes of the current order and all orders with a worse price
base_max_volume_aggr_ratrationalthe base_max_volume_aggr in num-rational crate format
base_max_volume_aggr_fractionobject (rational)the base_max_volume_aggr represented as an object
rel_max_volume_aggrstring (decimal)the rel max volume aggregated at the price level; the sum of rel volumes of the current order and all orders with a worse price
rel_max_volume_aggr_ratrationalthe rel_max_volume_aggr in num-rational crate format
rel_max_volume_aggr_fractionobject (rational)the rel_max_volume_aggr represented as an object

Orderbook

POST
orderbook
{
  "userpass": "testpsw",
  "method": "orderbook",
  "base": "HELLO",
  "rel": "WORLD"
}