The Change API
Place order
Place an exchange order
post
https://api.thechange.ltd/orders
User Device Id
You have to generate a unique user device identifier by following the best practices and standards for generating unique user identifiers.
The identifier must be unique per user and device and must be consistent between orders placed by the same user device.
Header
Field | Type | Description |
---|---|---|
X-API-KEY | String | Your API key |
Body parameters
Field | Type | Description |
---|---|---|
send | String | Ticker of currency to send |
receive | String | Ticker of currency to receive |
amount | Float | The amount you have to send |
receiveAddress | String | Receive wallet address |
userDeviceId | String | A unique user device identifier generated on your end, represents a user device. Should be unique per user and device, orders placed from the same user device should contain the same userDeviceId. |
sendNetwork optional | String | Ticker of network to send. Default network will be selected if omitted |
receiveNetwork optional | String | Ticker of network to receive. Default network will be selected if omitted |
receiveTag optional | String | Receive wallet address tag |
amountType optional | String | Set this parameter as "receive" if you want to specify as "amount" the receive amount |
Successful response
HTTP/1.1 200 OK
{
"send": "BTC",
"receive": "ETH",
"amount": "0.15",
"receiveAddress": "0x0000000000000000000000000000000000000000"
}