Corgi BankDocumentation
OpenAPI

Read the bank's current customer exchange rates and spreads per currency pair, as a quote asked for now would be priced

GET/fx-rate-sheet

A customer identity, or a service holding accounts:fx:quote, reads the bank's current customer rates: for every currency pair the bank quotes, the mid rate it prices from, the rate the customer buys the base currency at, the rate they sell it at, the spreads either side of mid in basis points and the largest conversion the pair prices. Rates are quote-currency major units per one base major unit, at ten decimals, for display. Every pair is quoted against USD, which is how the sheet is approved; a conversion between two foreign currencies is priced through USD on the same sheet. The rates come from the treasury's independently approved sheet, so what is published here and what a quote is struck at are one record; the sheet's maker, approver, policy reference and review evidence stay inside that record. accounts.fx_rate_unavailable-equivalent 409 (ledger.fx_rate_unavailable) when no approved sheet is valid now.

Returns

200 OK

business_datestring · dateRequired

A business date, YYYY-MM-DD

daily_limit_usd_minorintegerRequired
idstringRequired
ratesarray of objectsRequired
9 child attributes
base_currencystringRequired
buy_spread_bpsintegerRequired
customer_buy_ratestringRequired
customer_sell_ratestringRequired
max_amount_usd_minorintegerRequired
mid_ratestringRequired
pairstringRequired

BASE/QUOTE, for example EUR/USD

quote_currencystringRequired
sell_spread_bpsintegerRequired
valid_fromstring · date-timeRequired
valid_untilstring · date-timeRequired

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close