Requests allow the purchase of Instruments and the sell of Assets. This document will guide you on how to create, update and get request details.
There are 2 types of requests:
Purchase Request
Sell Request
Make a POST
request to
/requests/purchase
Make a POST
request to
/requests/sell
sellAmount
, a sellPercentage
can be provided.Optionally, requests can be set to recurring mode:
If you need to cancel a request:
Make a PUT
request to /requests
When requesting account details you can do so either by getting:
Make a GET
request to /requests.
Make a GET
request to /requests/{requestId}
Property | Definition |
---|---|
requestId | Unique request identifier |
customerId | Unique customer identifier |
symbol | The symbol associated by the instrument |
requestType | The type of request being made |
status | The status of the request |
currency | Associated currency |
isRecurring | Determines whether the request should be in recurring mode |
schedule | The recurring schedule in which the instrument should be purchased |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Property | Definition |
---|---|
instrumentId | Unique instrument identifier |
purchaseAmount | The total purchase amount for an asset or group of assets |
Property | Definition |
---|---|
assetId | Unique asset identifier |
sellAmount | The total amount to sell from an asset or group of assets |
sellPercentage | The percentage amount to sell from an asset or group of assets |
Name | Definition |
---|---|
PENDING | The request is currently in progress |
COMPLETED | The request has complete processing |
CANCELED | The request was cancelled |
ERROR | The request ended in an error |
Name | Definition |
---|---|
PURCHASE | Sets the request to purchase mode |
SELL | Sets the request to sell mode |
Subscription | Definition | Domain |
---|---|---|
REQUEST | Only events that deal with requests | Requests |
REQUEST.CREATED | Triggered when a request is created | Requests |
REQUEST.UPDATED | Triggered when a request is updated | Requests |
Requests allow the purchase of Instruments and the sell of Assets. This document will guide you on how to create, update and get request details.
There are 2 types of requests:
Purchase Request
Sell Request
Make a POST
request to
/requests/purchase
Make a POST
request to
/requests/sell
sellAmount
, a sellPercentage
can be provided.Optionally, requests can be set to recurring mode:
If you need to cancel a request:
Make a PUT
request to /requests
When requesting account details you can do so either by getting:
Make a GET
request to /requests.
Make a GET
request to /requests/{requestId}
Property | Definition |
---|---|
requestId | Unique request identifier |
customerId | Unique customer identifier |
symbol | The symbol associated by the instrument |
requestType | The type of request being made |
status | The status of the request |
currency | Associated currency |
isRecurring | Determines whether the request should be in recurring mode |
schedule | The recurring schedule in which the instrument should be purchased |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Property | Definition |
---|---|
instrumentId | Unique instrument identifier |
purchaseAmount | The total purchase amount for an asset or group of assets |
Property | Definition |
---|---|
assetId | Unique asset identifier |
sellAmount | The total amount to sell from an asset or group of assets |
sellPercentage | The percentage amount to sell from an asset or group of assets |
Name | Definition |
---|---|
PENDING | The request is currently in progress |
COMPLETED | The request has complete processing |
CANCELED | The request was cancelled |
ERROR | The request ended in an error |
Name | Definition |
---|---|
PURCHASE | Sets the request to purchase mode |
SELL | Sets the request to sell mode |
Subscription | Definition | Domain |
---|---|---|
REQUEST | Only events that deal with requests | Requests |
REQUEST.CREATED | Triggered when a request is created | Requests |
REQUEST.UPDATED | Triggered when a request is updated | Requests |