v1
latestOpenAPI 3.0.02026-08-06102185472.3 KBRates
Create rate
Creates an exchange rate for a specified currency pair.
Example - Applying a margin to the live FX rate:<br> A USD-GBP live FX rate of 0.80 is provided by a third-party rate provider and you want to reduce that rate by 20 BPS. In this API call, you would set "value_type": "MARGIN", then "margin_type": "BPS", and "rate": "20". After that, during the Get quotes call, the final FX rate will be calculated as 0.80*(1-(20/10000))=0.7984 and then applied during quote creation.
post/config/rates
Request body
Example request
{
"expiration_offset": 95000,
"order_type": "buy",
"rate": 0.89,
"base_currency": "USD",
"counter_currency": "GBP",
"ledger": {
"source_ledger": "rn.eur.uk.london",
"destination_ledger": "rn.eur.uk.london"
},
"account": {
"source_ledger": "rn.eur.uk.london",
"destination_ledger": "rn.eur.uk.london",
"source_ledger_account": "alias_usd_lon",
"destination_ledger_account": "conct_gbp_lon"
},
"upper_limit": 1000,
"payout_method": "LOCAL_RAILS",
"value_type": "MARGIN",
"margin_type": "BPS"
}Response
Successfully created rate.
Example response
{
"rate_id": "328b3e50-7983-46d5-94a0-ef004d78db1d",
"expiration_offset": 95000,
"order_type": "buy",
"rate_scale": 9,
"rate": 0.89,
"base_currency": "USD",
"counter_currency": "GBP",
"source_currency": "USD",
"destination_currency": "GBP",
"source_ledger": "rn.eur.uk.london",
"destination_ledger": "rn.eur.uk.london",
"source_ledger_account": "alias_usd_lon",
"destination_ledger_account": "conct_gbp_lon",
"upper_limit": 1000,
"payout_method": "LOCAL_RAILS",
"value_type": "MARGIN",
"margin_type": "BPS"
}