Order Structures
Structure | Type | Description |
---|---|---|
Type | string | All to cancel all orders; Pair to cancel all orders for specific coin pairs; Coin to cancel all orders for a specific coin |
data | object | additional data the cancel condition; present with Pair and Coin types |
data.base | string | base coin of the pair; Pair type only |
data.rel | string | rel coin of the pair; Pair type only |
data.ticker | string | order is cancelled if it uses ticker as base or rel; Coin type only |
Structure | Type | Description |
---|---|---|
base_confs | number | Number of required confirmations on the base coin's blockchain for a transaction to complete an atomic swap event. |
base_nota | bool | Whether dPoW notarization is required on the base coin's blockchain for a transaction to complete an atomic swap event. |
rel_confs | number | Number of required confirmations on the rel coin's blockchain for a transaction to complete an atomic swap event. |
rel_nota | bool | Whether dPoW notarization is required on the rel coin's blockchain for a transaction to complete an atomic swap event. |
Structure | Type | Description | |
---|---|---|---|
type | integer | Defines whether requesting by volume or by number . | |
value | numeric | string | If type is volume , the amount of coin (defined in the parent object) the user is willing to buy or sell. If type is number , the number of best price trades to return. |
Structure | Type | Description |
---|---|---|
address_type | string | Generally Transparent , but may be Shielded for supporting coins. |
address_data | string | The actual address text for sending and receiving funds. |
Structure | Type | Description |
---|---|---|
Type | string | There are two types from which to choose: GoodTillCancelled and FillOrKill . The GoodTillCancelled order is automatically converted to a maker order if the order is not matched in 30 seconds, and this maker order stays in the orderbook until explicitly cancelled. On the other hand, a FillOrKill order is cancelled if it is not matched within 30 seconds. The default type is GoodTillCancelled |
Structure | Type | Description |
---|---|---|
base | string | base currency |
rel | string | rel currency |
price | number | order price as decimal number |
price_rat | rational number | order price as rational number |
max_base_vol | number | Maximum trade volume |
max_base_vol_rat | rational number | Maximum trade volume as rational number |
min_base_vol | number | Minimum trade volume |
min_base_vol_rat | rational number | Minimum trade volume as rational number |
created_at | number | Timestamp of order creation |
updated_at | number | Timestamp of last order update |
matches | list | UUIDS of matching orders |
started_swaps | list | UUIDS of swaps started |
uuid | string | UUID of this order |
conf_settings | object | Confirmation / Notarisation settings for order |
base_orderbook_ticker | string | The ticker of the base currency if orderbook_ticker is configured for the base currency in coins file. If not defined, will return a null value. |
rel_orderbook_ticker | string | The ticker of the rel currency if orderbook_ticker is configured for the rel currency in coins file. If not defined, will return a null value. |
cancellable | boolean | true if order is in a state which it can be cancelled. false if not (e.g. swap is in progress) |
cancellation_reason | string | Cancelled indicates order was withdrawn by user. Fulfilled indicates order was swapped successfully. TimedOut indicates a taker order with type FillOrKill expired before matching. |
available_amount | string | Funds available for order to be matched against, taking into account current spendable balance and max_volume |
Structure | Type | Description |
---|---|---|
coin | string | The ticker of the coin |
address | string | The address offering the trade |
price | string (decimal) | The price the user is willing to buy or sell per one unit of the coin from request |
price_rat | rational | The price represented as a standard RationalValue object. |
price_fraction | object | The price represented as a standard FractionalValue object. |
maxvolume | string (decimal) | The maximum amount of base the offer provider is willing to sell |
max_volume_rat | rational | The max volume represented as a standard RationalValue object. |
max_volume_fraction | object | The max volume represented as a standard FractionalValue object. |
min_volume | string (decimal) | The minimum amount of base coin the offer provider is willing to sell |
min_volume_rat | rational | The min volume represented as a standard RationalValue object. |
min_volume_fraction | object | The min volume represented as a standard FractionalValue object. |
pubkey | string | The pubkey of the offer provider |
age | number | The age of the offer (in seconds) |
zcredits | number | The zeroconf deposit amount (deprecated) |
netid | number | The id of the network on which the request is made (default is 0 ) |
uuid | string | The uuid of order |
is_mine | bool | Whether the order is placed by me |
base_max_volume | string (decimal) | The maximum amount of base coin the offer provider is willing to buy or sell |
base_max_volume_rat | rational | The base_max_volume represented as a standard RationalValue object. |
base_max_volume_fraction | object | The base_max_volume represented as a standard FractionalValue object. |
base_min_volume | string (decimal) | The minimum amount of base coin the offer provider is willing to buy or sell |
base_min_volume_rat | rational | The base_min_volume represented as a standard RationalValue object. |
base_min_volume_fraction | object | The base_min_volume represented as a standard FractionalValue object. |
base_confs | number | The confirmations settings of base coin set by the offer provider |
base_nota | bool | The notarisation settings of base coin set by the offer provider |
rel_max_volume | string (decimal) | The maximum amount of rel coin the offer provider is willing to buy or sell |
rel_max_volume_rat | rational | The rel_max_volume max volume represented as a standard RationalValue object. |
rel_max_volume_fraction | object | The rel_max_volume max volume represented as a standard FractionalValue object. |
rel_min_volume | string (decimal) | The minimum amount of rel coin the offer provider is willing to buy or sell |
rel_min_volume_rat | rational | The rel_min_volume represented as a standard RationalValue object. |
rel_min_volume_fraction | object | The rel_min_volume represented as a standard FractionalValue object. |
rel_confs | number | The confirmations settings of rel coin set by the offer provider |
rel_nota | bool | The notarisation settings of rel coin set by the offer provider |
original_tickers | list (string) | Tickers included in response when orderbook_ticker is configured for the queried coin in coins file |
Structure | Type | Description |
---|---|---|
coin | string | The ticker of the coin |
address | object | A standard OrderAddress object. |
price | object | A standard NumericFormatsValue object representing the coin price. |
base_min_volume | object | A standard NumericFormatsValue object representing the minimum base volume. |
base_max_volume | object | A standard NumericFormatsValue object representing the maximum base volume. |
base_max_volume_aggr | object | Orderbook (v2) only. A standard NumericFormatsValue object representing the maximum aggregated base amount at the specified price. The sum of max base volumes of the current order and all orders with a worse price. |
rel_min_volume | object | A standard NumericFormatsValue object representing the minimum rel volume. |
rel_max_volume | object | A standard NumericFormatsValue object representing the maximum rel volume. |
rel_max_volume_aggr | object | Orderbook (v2) only. A standard NumericFormatsValue object representing the maximum aggregated rel amount at the specified price. The sum of max rel volumes of the current order and all orders with a worse price. |
pubkey | string | The pubkey of the offer provider |
uuid | string | The uuid of order |
is_mine | bool | Whether the order is placed by me |
conf_settings | object | A standard ConfSettings object. |
Structure | Type | Description |
---|---|---|
uuid | string | uuid of the order |
order_type | string | Type of the order; "Maker" or "Taker" |
base | string | base coin of the order |
rel | string | rel coin of the order |
price | number (decimal) | price of the order |
volume | number (decimal) | volume of the order |
created_at | number | unix timestamp in milliseconds, indicating the order creation time |
last_updated | number | unix timestamp in milliseconds, indicating the time the order was last updated |
Was_taker | number | 1 if the order was a "Taker" order that got converted to "Maker", 0 otherwise |
status | string | status of the Order |
Structure | Type | Description |
---|---|---|
Type | string | Any to match with any other order; Orders to select specific uuids; Pubkeys to select specific nodes; default is Any |
data | array of strings | A list of order uuids (to match for Orders type) or pubkeys of nodes (to match for Pubkeys type) |