CurrencyRatePairConfig
One exchange rate the agent may quote. Rounding and markup are applied before the agent sees the rate, so it receives the final figure to quote rather than a calculation to perform.
baseCurrencyCoderequired
Currency being converted from. The rate is expressed as "1 base = N quote".
Possible values: [usd, eur, rub]
quoteCurrencyCoderequired
Currency being converted to. Must differ from base.
Possible values: [usd, eur, rub]
enabledEnabled
Whether this pair is quoted. Disabled pairs are kept but never supplied to the agent.
Default value:
trueprecisionPrecision
Number of decimal places the quoted rate is rounded to.
Possible values: >= 0 and <= 6
Default value:
2markup_percent object
Percentage added to the market rate before it reaches the agent, for quoting above (or, when negative, below) the source rate. 0 quotes the source rate as published.
- number
- string
number
Possible values: >= -100 and <= 100
CurrencyRatePairConfig
{
"base": "usd",
"quote": "usd",
"enabled": true,
"precision": 2,
"markup_percent": 0
}