Order
GET v1/Orders
GET v1/Orders
Retrieve all orders.
Request
Headers
Header | Type | Description |
Authorization |
| Auth token using |
Query Parameters
Attribute | Type | Description |
startDateTime |
| ISO 8601 format datetime. If defined, only orders created after this datetime are included in the response. |
endDateTime |
| ISO 8601 format datetime. If defined, only orders created before this datetime are included in the response. |
status |
|
|
offset |
| Number of orders to skip the beginning of list. Defaults to 0. |
limit |
| Number of orders to include in the result. Defaults to 25, maximum of 100. |
Response
HTTP Status | Return Object |
200 | array of Orders. |
Order
Attribute | Type | Description |
ID |
| The order ID. |
Conversion |
| Conversion symbol for the order. See conversion. |
SendingAddress |
| The address where the source amount is sent from. |
SourceAmount |
| The amount available for exchange in source currency. |
Price |
| The price the order will use for the exchange. The unit is |
ReceivingAddress |
| The address where the exchanged amount is received. |
Status |
|
|
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
403 |
| Not authorized to use this endpoint. Make sure your authorization header is correct and you are using valid API key and secret. |
500 |
| Server error. |
GET v1/Orders/:ID
GET v1/Orders/:ID
Retrieve an order with specified ID.
Request
Headers
Header | Type | Description |
Authorization |
| Auth token using |
Path Parameters
Attribute | Type | Description |
ID |
| Order ID. |
Response
HTTP Status | Return Object |
200 |
Order
Attribute | Type | Description |
ID |
| The order ID. |
Conversion |
| Conversion symbol for the order. See conversion. |
SendingAddress |
| The address where the source amount is sent from. |
SourceAmount |
| The amount available for exchange in source currency. |
Price |
| The price the order will use for the exchange. The unit is |
ReceivingAddress |
| The address where the exchanged amount is received. |
Status |
|
|
Exchanges |
| The list of the past and pending exchanges this order is fulfilling. |
Exchange
Attribute | Type | Description |
SendingAddress |
| The address where the source amount is sent from. |
ReceivingAddress |
| The address where the exchanged amount is received. |
SourceAmount |
| The amount in source currency to be exchanged. |
Fee |
| The total fee paid for the exchange. |
ExchangedAmount |
| The amount in exchanged currency you received. |
Price |
| The price used for this exchange. The unit is |
Status |
|
|
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
403 |
| Access is denied for this resource. Make sure your authorization header is correct and you are using valid API key and secret |
404 |
| Order not found. |
500 |
| Server error. |
POST v1/Orders
POST v1/Orders
Create a new order.
You MUST create Exchange Request Webhook URL in the dashboard before you use this endpoint.
Request
Headers
Header | Type | Description |
Authorization |
| Auth token using |
Request Body
Attribute | Type | Description |
Conversion |
| Conversion symbol for the order. See conversion. |
SendingAddress |
| The address that funds the source amount. |
SendingAddressSignature |
| Address Signature of the |
ReceivingAddress |
| The address that the exchanged amount will be received. |
ReceivingAddressSignature |
| Address Signature of the |
SourceAmount |
| The amount in source currency to be exchanged. |
Price |
| The price you want to use. Any exchange that this order will fulfill will use this price. The unit is |
BtcPublicKey |
| Optional. Required if the source currency is |
Response
HTTP Status | Return Object |
201 |
CreatedOrder
Attribute | Type | Description |
ID |
| The order ID. |
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
400 |
| Request body is missing. |
400 |
| Request validation errors. See InnerErrors. |
400 |
| Request validation errors. See InnerErrors. |
403 |
| Not authorized to use this endpoint. Make sure your authorization header is correct and you are using valid API key and secret. |
403 |
| Webhook URL to send exchange request is unavailable. |
500 |
| Server error. |
503 |
| Service unavailable for the specified conversion. |
PATCH v1/Orders/:ID
PATCH v1/Orders/:ID
Cancel an order.
Request
Headers
Header | Type | Description |
Authorization |
| Auth token using |
Path Parameters
Attribute | Type | Description |
ID |
| Order ID. |
Request Body
Attribute | Type | Description |
Action |
| Use |
Response
HTTP Status | Return Object |
200 | none. If the order is already canceled, it will have no effect and return 200. |
Errors
HTTP Status | Error Code | Description |
400 |
| Invalid URL parameters |
400 |
| Request body is missing. |
400 |
| Request validation errors. See InnerErrors. |
400 |
| Request validation errors. See InnerErrors. |
403 |
| Access is denied for this resource. Make sure your authorization header is correct and you are using valid API key and secret |
404 |
| Order is not found. |
409 |
| Cannot be canceled. Usually because the order is already completed. |
500 |
| Server error. |
Last updated