v1
latestOpenAPI 3.0.02026-08-06102185472.3 KBRates
Update rate
Updates an existing exchange rate. With this call, you can change value_type from RATE to MARGIN (and vice versa), change the actual rate value of the specified value type, or both.
Example - Updating an existing margin applied 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 currently reduce that rate by 20 BPS. You now want to change it and reduce it by 10 BPS instead. To do so, set "rate": "10" in the request. Once the change is applied, the final FX rate is calculated as 0.80*(1-(10/10000))=0.7992 during the Get quotes call, and then applied during quote creation.
put/config/rates/{rate_id}
Path parameters
rate_idstring uuid required
Provide the rate_id of the exchange rate you want to update.
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 updated 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"
}