Skip to Content
OrdersCreate an order

Create an order

POST/v3/orders/:orderId

Description

Create an order using the payload. If due to the user’s location there’s a restriction in the swap, it will return an error instead.

Header Parameters

NameDescriptionRequired
App-NameApp-Name for the authorizationyes
App-VersionApp-Version for the authorizationno
ForwardedIf you are proxying requests to the API, you must include the "Forwarded" header with the original request IP address. This is used for geolocation availability purposes.no

Payload

NameDescriptionRequired
fromAmountAmount the user is sending to exchange in the 'from' asset unit.yes
fromAddressAddress from which the user is sending the funds.yes
fromAddressTagThe tag/memo of the fromAddress. Only required for certain assets like ATOM, EOS, XRP, etc.no
toAmountThe amount you want receive in the 'to' assetyes
toAddressThe address to receive the exchanged fundsyes
toAddressTagThe tag/memo of the toAddress. Only required for certain assets like ATOM, EOS, XRP, etc.no
pairIdThe pair id for this exchange. Read the pairs documentation to find the correct one.yes
slippagePercentage of slippage tolerance with a 2% by default.no

Response

SUCCESSFULL ORDER CREATION
{
  "amount": {
    "assetId": "BTC",
    "value": 0.47
  },
  "createdAt": "2019-08-24T14:15:22Z",
  "fromAddress": "EJVsaNYRzo1GVhzrmYM5WnxU9FUnBtibjKNAkkq9YaP2",
  "fromAddressTag": "string",
  "fromTransactionId": "37CUt9gzAGN8LcZ2haCFmioAXn2FPp9f7y",
  "id": "vQm7GDXboWw6NbL",
  "message": "string",
  "pairId": "BTC_ETH",
  "payInAddress": "37CUt9gzAGN8LcZ2haCFmioAXn2FPp9f7y",
  "payInAddressTag": "string",
  "providerOrderId": "6fkmegv6ce6mz68refdd",
  "rateId": "6d31e45a-daa8-4578-84da-9fedb3117c1f",
  "toAddress": "0x531a9aA0f2cF0F0B193d6Ca6aA9d990a54A2657a",
  "toAddressTag": "string",
  "toTransactionId": "0x531a9aA0f2cF0F0B193d6Ca6aA9d990a54A2657a",
  "updatedAt": "2019-08-24T14:15:22Z",
  "status": "awaiting",
  "extraFeatures": {
    "pid": "string",
    "stringAmounts": "string"
  }
}
Last updated on