Skip to main content
POST
Create a Trade

Headers

Authorization
string
required

The access token.

X-Contact-ID
string

The identifier of a contact.

Query Parameters

quote_id
string
required

The identifier of the quote

Minimum string length: 1
client_id
string
required

The identifier of a client.

Body

application/json

Request Payload

reason
enum<string>
required

Reason for trade. The 'not_related_to_goods_or_services' reason is only for spot type.

Available options:
payment_for_goods,
payment_for_services,
repatriation_of_goods,
repatriation_of_services,
intercompany_funding_operational_purposes,
salary_payroll,
tax_related,
direct_investment,
property_purchase_sale,
payment_living_costs,
repayment_of_loan,
balance_hedging,
repatriation_from_investment,
other_not_related_to_goods_or_services,
charitable_aid,
capital_investment,
property_purchase,
mortage_repayment,
property_rental_or_maintenance,
travel_costs,
living_costs,
portfolio_netting,
not_related_to_goods_or_services,
other
reference
string

Reference for the trade.

Required string length: 1 - 250
Pattern: ^[\sa-zA-Z0-9\d,\.:'\+\(\)\?'\-/]*$
trade_type
string

Currently ignored (DEPRECATED)

external_reference_id
string

API external reference id

Maximum string length: 128
Pattern: ^[\sa-zA-Z0-9\d,\.:'\+\(\)\?'\-/]*$
convert
boolean
default:false

Intention behind the trade. When set to true, the trade will be executed and funds will be transferred between two Ebury wallets. When false, the trade will be executed only when it is linked to at least one payment.

is_pad
boolean
default:false

Whether to fund this trade via Pre-Authorized Debit (direct debit). Only valid for spot trades whose sell currency is enabled for PAD on the client's credit conditions.

Response

Trade created

The created trade. Trades processed asynchronously only return trade_id; the remaining fields are only present for trades processed synchronously.

trade_id
string
required

Trade identifier

bank_account
object

An existing bank account. Only present for trades processed synchronously.

initial_margin_amount
number<double>

Only for forwards. Trade's deposit amount.

initial_margin_due_date
string<date-time>

Only for forwards. Date on or before which deposit must be received by Ebury. Date and time are in UTC.

maturity_date
string<date-time>

Limit date and time (UTC) in which funds must be received by Ebury. Only present for trades processed synchronously.

external_reference_id
string

The client's external reference ID provided during trade creation. Only present for trades processed synchronously when it was provided in the request.