Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
FX List supported currency pairs

List supported currency pairs

Lists every currency pair in FX. A listed pair is not always enabled for you; `POST /v1/fx/quote` returns an error for a pair that is not. This route reads no query parameters.

GEThttps://api.gravv.xyz/v1/fx/supported-currenciesTry it
Api-Key

Response

Returns 200 OK. The pairs, in one list with no paging

NameDescription
data:object[]
Show 6 child attributesobject[]
error:null

Errors

StatusMeaning
200The pairs, in one list with no paging
400The request failed. Every FX error is a 400, including not-found and outages. Read error.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/fx/supported-currencies' \
--header 'Api-Key: <api-key>'
Responseapplication/json
200400OK
{
"data": [
{
"currency_pair": "USD_US_NGN_NG",
"pair_type": "fiat",
"from_currency": "USD",
"from_currency_name": "US Dollar",
"to_currency": "NGN",
"to_currency_name": "NGN"
}
],
"error": null
}