List Symbols
This endpoint retrieves all available symbols for trading.
Responses
The full list of supported symbols.
An array of supported symbols.
Get Symbol Details
This endpoint retrieves extra detail on supported symbols, such as minimum order size, tick size, quote increment and more.
path Parameters
symbolstring · requiredTrading pair symbol
BTCUSD, etc. See symbols and minimums.
Responses
Instrument responses examples
base_currencystringCCY1 or the top currency. (i.e
BTCinBTCUSD)Example: BTCquote_currencystringCCY2 or the quote currency. (i.e
USDinBTCUSD)Example: USDtick_sizenumber · decimalThe number of decimal places in the
base_currency. (i.e1e-8)Example: 1e-8quote_incrementnumber · decimalThe number of decimal places in the
quote_currency(i.e0.01)Example: 0.01min_order_sizestringThe minimum order size in
base_currencyunits (i.e0.00001)Example: 0.00001statusstringStatus of the current order book. Can be
open,closed,cancel_only,post_only,limit_only.Example: openwrap_enabledbooleanWhen
True, symbol can be wrapped using this endpoint:
POST https://api.gemini.com/v1/wrap/:symbolExample: falseproduct_typestringInstrument type
spot/swap-- whereswapsignifiesperpetual swap.Example: spotcontract_typestringvanilla/linear/inversewherevanillais for spot whilelinearis for perpetual swap andinverseis a special case perpetual swap where the perpetual contract will be settled in base currency.Example: vanillacontract_price_currencystringCCY2 or the quote currency for spot instrument (i.e.
USDinBTCUSD) Or collateral currency of the contract in case of perpetual swap instrument.Example: USD
Get Network
This endpoint retrieves the associated network for a requested token.
path Parameters
tokenstring · requiredToken identifier.
BTC,ETH,SOLetc. See symbols and minimums
Responses
The response will be a JSON object
tokenstringThe requested token.
networkstring[]Network of the requested token.
Get Ticker
This endpoint retrieves information about recent trading activity for the symbol.
path Parameters
symbolstring · requiredTrading pair symbol
BTCUSD, etc. See symbols and minimums.
Responses
The current ticker for the symbol
bidnumber · decimalThe highest bid currently available
Example: 977.59asknumber · decimalThe lowest ask currently available
Example: 977.35lastnumber · decimalThe price of the last executed trade
Example: 977.65volumeobjectInformation about the 24 hour volume on the exchange. See properties below
Get Current Order Book
This will return the current order book as two arrays (bids / asks).
path Parameters
symbolstring · requiredTrading pair symbol
BTCUSD, etc. See symbols and minimums.
query Parameters
limit_bidsnumber · min: 1Limit the number of bid (offers to buy) price levels returned. Default is 50. May be 0 to return the full order book on this side.
limit_asksnumber · min: 1Limit the number of ask (offers to sell) price levels returned. Default is 50. May be 0 to return the full order book on this side.
Responses
The response will be two arrays. The bids and the asks are grouped by price, so each entry may represent multiple orders at that price. Each element of the array will be a JSON object.
bidsobject[]The bid price levels currently on the book. These are offers to buy at a given price.
asksobject[]The ask price levels currently on the book. These are offers to sell at a given price.
List Trades
This will return the trades that have executed since the specified timestamp. Timestamps are either seconds or milliseconds since the epoch (1970-01-01). See the Data Types section about timestamp for information on this.
Each request will show at most 500 records.
If no since or timestamp is specified, then it will show the most recent trades; otherwise, it will show the most recent trades that occurred after that timestamp.
path Parameters
symbolstring · requiredTrading pair symbol
BTCUSD, etc. See symbols and minimums.
query Parameters
timestampOnly return trades after this timestamp. See Timestamps for more information. If not present, will show the most recent trades. For backwards compatibility, you may also use the alias
since. With timestamp, there is a 90-day hard limit.Timestamp in milliseconds
since_tidnumberOnly retuns trades that executed after this tid. since_tid trumps timestamp parameter which has no effect if provided too. You may set since_tid to zero to get the earliest available trade history data.
limit_tradesnumber · min: 0The maximum number of trades to return. The default is 50.
Default: 50include_breaksbooleanWhether to display broken trades. False by default. Can be
1ortrueto activateDefault: false
Responses
The response will be an array of JSON objects, sorted by timestamp, with the newest trade shown first.
timestamptimestamp
timestampmstimestamp
tidintegerThe trade ID number
Example: 5335307668pricestring · decimalThe price the trade was executed at
Example: 3610.85amountstring · decimalThe amount that was traded
Example: 0.27413495exchangestringWill always be "gemini"
Example: geminitypestring · enumbuymeans that an ask was removed from the book by an incoming buy order.sellmeans that a bid was removed from the book by an incoming sell order.
Enum values:buysellExample: buybrokenbooleanWhether the trade was broken or not. Broken trades will not be displayed by default; use the
include_breaksto display them.Example: false
List Prices
Responses
Response is a list of objects, one for each pair.
pairstringTrading pair symbol. See symbols and minimums
pricestringCurrent price of the pair on the Gemini order book
percentChange24hstring24 hour change in price of the pair on the Gemini order book
Get Funding Amount
path Parameters
symbolstring · requiredTrading pair symbol
BTCGUSDPERP, etc. See symbols and minimums.
Responses
The response will be an object
symbolstringThe requested symbol. See symbols and minimums
fundingDateTimestringUTC date time in format
yyyy-MM-ddThh:mm:ss.SSSZformatfundingTimestampMilliSecsnumber · longCurrent funding amount Epoc time.
nextFundingTimestampnumber · longNext funding amount Epoc time.
amountnumber · decimalThe dollar amount for a Long 1 position held in the symbol for funding period (1 hour)
estimatedFundingAmountnumber · decimalThe estimated dollar amount for a Long 1 position held in the symbol for next funding period (1 hour)
Get Funding Amount Report File
Examples
-
symbol=BTCGUSDPERP&fromDate=2024-04-10&toDate=2024-04-25&numRows=1000
Compare and obtain the minimum records between (2024-04-10 to 2024-04-25) and 1000. If (2024-04-10 to 2024-04-25) contains 360 records. Then fetch the minimum between 360 and 1000 records only. -
symbol=BTCGUSDPERP&numRows=2024-04-10&toDate=2024-04-25
If (2024-04-10 to 2024-04-25) contains 360 records. Then fetch 360 records only. -
symbol=BTCGUSDPERP&numRows=1000
Fetch maximum 1000 records starting from Now to a historical date -
symbol=BTCGUSDPERP
Fetch maximum 8760 records starting from Now to a historical date
query Parameters
symbolstring · requiredTrading pair symbol
BTCGUSDPERP, etc. See symbols and minimums.fromDatestring · dateMandatory if
toDateis specified, else optional. If empty, will only fetch records by numRows value.toDatestring · dateMandatory if
fromDateis specified, else optional. If empty, will only fetch records by numRows value.numRowsintegerIf empty, default value '8760'
Responses
The response will be an excel / csv file. filename=FundingAmount_{SYMBOL}.{xlsx,csv}
Get Ticker V2
This endpoint retrieves information about recent trading activity for the provided symbol.
path Parameters
symbolstring · requiredTrading pair symbol
Responses
Successful response
symbolstringThe trading pair symbol
Example: BTCUSDopenstring · decimalOpen price from 24 hours ago
Example: 9121.76highstring · decimalHigh price from 24 hours ago
Example: 9440.66lowstring · decimalLow price from 24 hours ago
Example: 9106.51closestring · decimalClose price (most recent trade)
Example: 9347.66changesstring[]Hourly prices descending for past 24 hours
Example: ["9365.1","9386.16","9373.41","9322.56","9268.89","9265.38"]bidstring · decimalCurrent best bid
Example: 9345.70askstring · decimalCurrent best offer
Example: 9347.67
List Candles
This endpoint retrieves time-intervaled data for the provided symbol.
path Parameters
symbolstring · requiredTrading pair symbol
time_framestring · enum · requiredTime range for each candle:
1m- 1 minute5m- 5 minutes15m- 15 minutes30m- 30 minutes1h- 1 hour6h- 6 hours1day- 1 day
Enum values:1m5m15m30m1h6h1d
Responses
The response will be an array of arrays
CandlearrayExample: [[1559755800000,7781.6,7820.23,7776.56,7819.39,34.7624802159],[1559755800000,7781.6,7829.46,7776.56,7817.28,43.4228281059]]
List Derivative Candles
This endpoint retrieves time-intervaled data for the provided perpetual symbol.
path Parameters
symbolstring · requiredTrading pair symbol. Available only for perpetual pairs like
BTCGUSDPERPtime_framestring · enum · requiredTime range for each candle.
1m: 1 minute (only)Enum values:1m
Responses
The response will be an array of arrays
CandlearrayExample: [[1559755800000,7781.6,7820.23,7776.56,7819.39,34.7624802159],[1559755800000,7781.6,7829.46,7776.56,7817.28,43.4228281059]]
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]
path Parameters
symbolstring · requiredTrading pair symbol
BTCUSD, etc. See symbols and minimums.timestamprequiredThe timestamp to pull the FX rate for.
Gemini strongly recommends using milliseconds instead of seconds for timestamps.
timestamp
Headers
X-GEMINI-APIKEYstring · requiredYour API key
X-GEMINI-SIGNATUREstring · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOADstring · requiredBase64-encoded JSON payload
Content-TypestringDefault: text/plainContent-LengthstringDefault: 0Cache-ControlstringDefault: no-cache
Responses
Successful operation
fxPairstringThe requested currency pair
Example: AUDUSDratenumber · doubleThe exchange rate
Example: 0.69asOftimestamp
providerstringThe market data provider
Example: bcbbenchmarkstringThe market for which the retrieved price applies to
Example: Spot

