Get Symbol Details
This endpoint retrieves extra detail on supported symbols, such as minimum order size, tick size, quote increment and more.
path Parameters
symbol
string · requiredTrading pair symbol
BTCUSD
, etc. See symbols and minimums.
Responses
base_currency
stringCCY1 or the top currency. (i.e
BTC
inBTCUSD
)Example: BTCquote_currency
stringCCY2 or the quote currency. (i.e
USD
inBTCUSD
)Example: USDtick_size
number · decimalThe number of decimal places in the
base_currency
. (i.e1e-8
)Example: 1e-8quote_increment
number · decimalThe number of decimal places in the
quote_currency
(i.e0.01
)Example: 0.01min_order_size
stringThe minimum order size in
base_currency
units (i.e0.00001
)Example: 0.00001status
stringStatus of the current order book. Can be
open
,closed
,cancel_only
,post_only
,limit_only
.Example: openwrap_enabled
booleanWhen
True
, symbol can be wrapped using this endpoint:
POST https://api.gemini.com/v1/wrap/:symbol
product_type
stringInstrument type
spot
/swap
-- whereswap
signifiesperpetual swap
.Example: spotcontract_type
stringvanilla
/linear
/inverse
wherevanilla
is for spot whilelinear
is for perpetual swap andinverse
is a special case perpetual swap where the perpetual contract will be settled in base currency.Example: vanillacontract_price_currency
stringCCY2 or the quote currency for spot instrument (i.e.
USD
inBTCUSD
) 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
token
string · requiredToken identifier.
BTC
,ETH
,SOL
etc. See symbols and minimums
Responses
token
stringThe requested token.
network
string[]Network of the requested token.
Get Ticker
This endpoint retrieves information about recent trading activity for the symbol.
path Parameters
symbol
string · requiredTrading pair symbol
BTCUSD
, etc. See symbols and minimums.
Responses
bid
number · decimalThe highest bid currently available
Example: 977.59ask
number · decimalThe lowest ask currently available
Example: 977.35last
number · decimalThe price of the last executed trade
Example: 977.65volume
objectInformation 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
symbol
string · requiredTrading pair symbol
BTCUSD
, etc. See symbols and minimums.
query Parameters
limit_bids
number · 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_asks
number · 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
bids
object[]The bid price levels currently on the book. These are offers to buy at a given price.
asks
object[]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
symbol
string · requiredTrading pair symbol
BTCUSD
, etc. See symbols and minimums.
query Parameters
timestamp
Only 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.since_tid
numberOnly 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_trades
numberThe maximum number of trades to return. The default is 50.
Default: 50include_breaks
booleanWhether to display broken trades. False by default. Can be
1
ortrue
to activate
Responses
timestamp
timestamp
timestampms
timestamp
tid
integerThe trade ID number
Example: 5335307668price
string · decimalThe price the trade was executed at
Example: 3610.85amount
string · decimalThe amount that was traded
Example: 0.27413495exchange
stringWill always be "gemini"
Example: geminitype
string · enumbuy
means that an ask was removed from the book by an incoming buy order.sell
means that a bid was removed from the book by an incoming sell order.
Enum values:buysellExample: buybroken
booleanWhether the trade was broken or not. Broken trades will not be displayed by default; use the
include_breaks
to display them.Example: false
List Prices
Responses
pair
stringTrading pair symbol. See symbols and minimums
price
stringCurrent price of the pair on the Gemini order book
percentChange24h
string24 hour change in price of the pair on the Gemini order book
Get Funding Amount
path Parameters
symbol
string · requiredTrading pair symbol
BTCGUSDPERP
, etc. See symbols and minimums.
Responses
symbol
stringThe requested symbol. See symbols and minimums
fundingDateTime
stringUTC date time in format
yyyy-MM-ddThh:mm:ss.SSSZ
formatfundingTimestampMilliSecs
number · longCurrent funding amount Epoc time.
nextFundingTimestamp
number · longNext funding amount Epoc time.
amount
number · decimalThe dollar amount for a Long 1 position held in the symbol for funding period (1 hour)
estimatedFundingAmount
number · 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
symbol
string · requiredTrading pair symbol
BTCGUSDPERP
, etc. See symbols and minimums.fromDate
string · dateMandatory if
toDate
is specified, else optional. If empty, will only fetch records by numRows value.toDate
string · dateMandatory if
fromDate
is specified, else optional. If empty, will only fetch records by numRows value.numRows
integerIf empty, default value '8760'
Responses
Get Ticker V2
This endpoint retrieves information about recent trading activity for the provided symbol.
path Parameters
symbol
string · requiredTrading pair symbol
Responses
symbol
stringThe trading pair symbol
Example: BTCUSDopen
string · decimalOpen price from 24 hours ago
Example: 9121.76high
string · decimalHigh price from 24 hours ago
Example: 9440.66low
string · decimalLow price from 24 hours ago
Example: 9106.51close
string · decimalClose price (most recent trade)
Example: 9347.66changes
string[]Hourly prices descending for past 24 hours
Example: ["9365.1","9386.16","9373.41","9322.56","9268.89","9265.38"]bid
string · decimalCurrent best bid
Example: 9345.70ask
string · decimalCurrent best offer
Example: 9347.67
List Candles
This endpoint retrieves time-intervaled data for the provided symbol.
path Parameters
symbol
string · requiredTrading pair symbol
time_frame
string · 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
Candle
arrayExample: [[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
symbol
string · requiredTrading pair symbol. Available only for perpetual pairs like
BTCGUSDPERP
time_frame
string · enum · requiredTime range for each candle.
1m
: 1 minute (only)Enum values:1m
Responses
Candle
arrayExample: [[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
symbol
string · requiredTrading pair symbol
BTCUSD
, etc. See symbols and minimums.timestamp
requiredThe timestamp to pull the FX rate for.
Note: We likely need to round this to the closest timestamp we received an update for from BCB. Gemini strongly recommends using milliseconds instead of seconds for timestamps.
Headers
X-GEMINI-APIKEY
string · requiredYour API key
X-GEMINI-SIGNATURE
string · requiredHEX-encoded HMAC-SHA384 of payload signed with API secret
X-GEMINI-PAYLOAD
string · requiredBase64-encoded JSON payload
Content-Type
stringDefault: text/plainContent-Length
stringDefault: 0Cache-Control
stringDefault: no-cache
Responses
fxPair
stringThe requested currency pair
Example: AUDUSDrate
number · doubleThe exchange rate
Example: 0.69asOf
timestamp
provider
stringThe market data provider
Example: bcbbenchmark
stringThe market for which the retrieved price applies to
Example: Spot