currencies
Retrieve the conversion rate for one specific currency.
Changed onDescription
This can be used to convert quantities from GBP to the user's currency
get/v3/currencies/{code}/
Request
- Base URLhttps://api.smarkets.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
code'AUD' | 'BRL' | 'CAD' | 'CHF' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'HUF' | 'JPY' | 'NOK' | 'PLN' | 'SEK' | 'USD' required
Example:AUD
Currency code
Response
Currency success response
Example response
{
"code": "EUR",
"name": "Euro",
"rate_to_gbp": "1.14"
}Changes
- breaking
the response's body type changed from
objectto no type for status - breaking
the
response's property type changed fromnulltoobjectfor status - breaking
the
response's property type changed fromstringtostringobjectfor status - info
added the new enum value
BRLto thepathrequest parametercode - info
added the non-success response with the status
- breaking