File an exchange rate
Admin only. Files a rate for one ordered pair. Rates are append only, so a correction is another POST and a frozen sale keeps its rate.
POST
/api/v1/currency/ratesAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsonbase_codestringrequiredquote_codestringrequiredratenumberrequiredeffective_atstringsourcestringResponses
201
Rate filed
idstringrequiredbase_codestringrequiredquote_codestringrequiredratenumberrequiredsourcestringrequiredeffective_atstringrequiredcreated_atstringrequired400
base_code or quote_code is missing, the pair is a currency against itself, a currency is unknown or inactive, or the rate is not positive
detailstringrequired403
Caller is not an admin
detailstringrequired