Skip to main content
POST
/
orders
/
trade
curl --request POST \
  --url https://api.equalsmoney.com/v2/orders/trade \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orderId": "string",
  "quoteRequestId": "string",
  "payments": {
    "amount": 0,
    "currency": {
      "budgetId": "775596ae-2624-40af-a9dc-9756110a4a03",
      "currencyCode": "USD"
    },
    "recipientId": "string",
    "internalReference": "string",
    "externalReference": "string"
  }
}
'
{
  "orderId": "EABCDE6FGHI0",
  "bank": "BANK",
  "settlement": {
    "date": "20221027",
    "price": {
      "amount": 5,
      "currency": "USD"
    },
    "charges": {
      "fee": 0,
      "margin": 0,
      "other": 0
    }
  },
  "trade": {
    "rate": 1,
    "inverseRate": 1,
    "from": {
      "amount": 5,
      "currency": "USD"
    },
    "to": {
      "amount": 5,
      "currency": "USD"
    }
  }
}

Authorizations

Authorization
string
header
required

Query Parameters

accountId
string
required

The ID of the account to work with.

Example:

"F50091"

Body

application/json

Body

orderId
string
required

The orderId that was returned in the currency quote.

quoteRequestId
string
required

The quoteRequestId that was returned in the currency quote.

payments
object
required

Response

200 - application/json

OK

trade
object
required

Details about the quote.

orderId
string

The ID of the order.

Example:

"EABCDE6FGHI0"

bank
string

The bank.

Example:

"BANK"

settlement
object

Details about the settlement.