FX Rate
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.
Please 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.
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]
Request
- Base URLhttps://api.gemini.com
- URLhttps://api.gemini.com/v2/fxrate/{symbol}/{timestamp}
- AuthAPI key in header X-GEMINI-APIKEY and API key in header X-GEMINI-SIGNATURE and API key in header X-GEMINI-PAYLOAD
Path parameters
Trading pair symbol <br /> <br />
BTCUSD, etc. See <u>symbols and minimums</u>.
The timestamp to pull the FX rate for.
Gemini strongly recommends using milliseconds instead of seconds for timestamps.
Headers
Your API key
HEX-encoded HMAC-SHA384 of payload signed with API secret
Base64-encoded JSON payload
Response
Successful operation
Example response
{
"fxPair": "AUDUSD",
"rate": 0.69,
"asOf": "1495127793000",
"provider": "bcb",
"benchmark": "Spot"
}Changes
No recorded changes to this operation across all 1 revision of this API.