Executions API
Aquanow provides execution services to end users by leveraging our aggregated market data, liquidity, and execution algorithms.
Get or query orders
GET
https://api.aquanow.io/trades/v1/order
To view example requests for this endpoint, visit Aquanow's Postman documentation.
NOTE: The limit for this endpoint is a maximum payload of 5 mb. For larger payloads, use the v2 endpoint or change the time range parameters to query for less results.
Query Parameters
Name | Type | Description |
---|---|---|
- | - | Query all orders if no query parameters are provided. |
orderId | String | Query by order ID. |
accountId | String | Query orders by account. |
startTime/endTime | Number | Query by time range, requires both startTime and endTime. |
expirationStartTime/expirationEndTime | Number | Query by expiration time range, requires both expirationStartTime and expirationEndTime. |
openOrders=true | Bool | Query for open orders |
startsAfter | String | Pagination token used to fetch extra data |
usernameRef | String | Query by usernameRef |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String |
API Auth Key |
x-signature* | String |
Signature created using your API secret |
x-nonce* | String |
Timestamp in millisecond |
Returns an OrdersObject.
Endpoint to initiate an LIMIT/GTC/GTD request to Aquanow.
POST
https://api.aquanow.io/trades/v1/order
NOTE: Either deliverQuantity or receiveQuantity must be specified. If both are specified, receiveQuantity will be considered for sell orders, and deliverQuantity will be considered for buy orders.
If order is not filled, the request will return a 200 response with receiveQuantity and deliverQuantity set to 0.
To view example requests for this endpoint, visit Aquanow's Postman documentation.
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String |
API Auth Key |
x-signature* | String |
Signature created using your API secret |
x-nonce* | Number |
Timestamp in millisecond |
Content-Type* | String |
|
Request Body
Name | Type | Description |
---|---|---|
strategy* | String |
|
accountId* | String | Identifier for account the order will be applied to. |
ticker* | String | e.g., Currency pair |
tradeSide* | String |
|
priceLimit* | Number | Limit price of a ticker symbol, determined by |
deliverQuantity* | Number | NOTE: specify either Quantity of currency delivered by user based on the ticker and tradeSide. For example, if ticker is BTC-USD and tradeSide is buy, then the delivered currency is USD. If tradeSide is sell, the delivered currency is BTC. |
receiveQuantity* | Number | NOTE: specify either Quantity of currency received by user based on the ticker and tradeSide. For example, if ticker is BTC-USD and tradeSide is buy, then the received currency is BTC. If tradeSide is sell, the received currency is USD. |
expirationTime* | Number | NOTE: only required for GTD orders. e.g., Expiration time in milliseconds of when the pre-existing order will expire. Expiration time must be within 90 days of order creation. |
usernameRef* | String | A new reference string for sub-accounts. Must be less than 64 characters, cannot contain special characters. |
Returns an ExecutionsObject.
Last updated