FX Rate GET https://api.gemini.com/v2/fxrate/{symbol}/{timestamp}
We have a growing international institutional customer base. When pulling market data for charting, it can be useful to have access to our FX rate for the relevant currency at that time.
Note Gemini does not offer foreign exchange services. This endpoint is for historical reference only and does not provide any guarantee of future exchange rates.
GET v2/fxrate/AUDUSD/1594651859000
curl --request GET \
--url https://api.gemini.com/v2/fxrate/AUDUSD/1594651859000 \
--header 'X-GEMINI-APIKEY: <string>' \
--header 'X-GEMINI-PAYLOAD: <string>' \
--header 'X-GEMINI-SIGNATURE: <string>'Roles The API key you use to access this endpoint must have the Auditor role assigned. See Roles for more information.
Supported Pairs AUDUSD CADUSD COPUSD EURUSD CHFUSD HKDUSD NZDUSD GBPUSD BRLUSD INRUSD SGDUSD KRWUSD JPYUSD CNYUSD
Path Parameters symbol string · required
Trading pair symbol BTCUSD, etc. See symbols and minimums. timestamp required
The timestamp to pull the FX rate for. Gemini strongly recommends using milliseconds instead of seconds for timestamps. Headers X-GEMINI-APIKEY string · required
Your API key X-GEMINI-SIGNATURE string · required
HEX-encoded HMAC-SHA384 of payload signed with API secret X-GEMINI-PAYLOAD string · required
Base64-encoded JSON payload Content-Type string
Default: text/plain Content-Length string
Default: 0 Cache-Control string
Default: no-cache Responses Properties Example
Successful operation
fxPair string
The requested currency pair Example: AUDUSD rate number (double)
The exchange rate Example: 0.69 asOf string | integer
Gemini strongly recommends using milliseconds instead of seconds for timestamps. Timestamp format
Example
Supported request type
string (seconds)
1495127793
POST only
string (milliseconds)
1495127793000
POST only
whole number (seconds)
1495127793
GET , POST
whole number (milliseconds)
1495127793000
GET , POST
Example: 1594651859000 provider string
The market data provider Example: bcb benchmark string
The market for which the retrieved price applies to Example: Spot {
"fxPair": "AUDUSD",
"rate": "0.69",
"asOf": 1594651859000,
"provider": "bcb",
"benchmark": "Spot"
}