Get current rate

Returns the current indicative rate for a TOC currency pair. The rate is not a firm quote — use POST /v1/toc/quotes to obtain a firm, priced quote.

Authentication

AuthorizationBearer
Token obtained via the login flow.

Query parameters

sellCurrencystringRequired

Currency the client is selling (ISO 4217). Only ZAR is supported at present; unsupported values return 400.

buyCurrencystringRequired

Currency the client receives (ISO 4217).

Response

Indicative rate for the requested pair.
sellCurrencystring

Currency the client sells (ISO 4217). Always ZAR.

buyCurrencystring

Currency the client receives (ISO 4217).

ratestring

Indicative rate. 1 sellCurrency = <rate> buyCurrency.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error