Schemas(1.0.0)
TimestampType
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 |
Gemini strongly recommends using milliseconds instead of seconds for timestamps.
Timestamp format | Example | Supported request type |
---|---|---|
whole number (seconds) | 1495127793 | GET , POST |
whole number (milliseconds) | 1495127793000 | GET , POST |
Nonce
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 |
Gemini strongly recommends using milliseconds instead of seconds for timestamps.
Timestamp format | Example | Supported request type |
---|---|---|
whole number (seconds) | 1495127793 | GET , POST |
whole number (milliseconds) | 1495127793000 | GET , POST |
ErrorResponse
result
stringError
reason
stringA short description
message
stringDetailed error message
SymbolDetails
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
Ticker
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
OrderBook
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.
OrderBookEntry
price
number · decimalThe price
amount
number · decimalThe total quantity remaining at the price
timestamp
timestamp
Trade
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
Heartbeat
request
stringThe literal string
/v1/heartbeat
NewOrderRequest
request
string · requiredThe literal string "/v1/order/new"
Example: /v1/order/newnonce
number · requiredThe nonce, as described in Private API Invocation
amount
string · requiredQuoted decimal amount to purchase
Example: 5price
string · requiredQuoted decimal amount to spend per unit
Example: 3633.00side
string · enum · requiredEnum values:buysellExample: buytype
string · enum · requiredThe order type. "exchange limit" for all order types except for stop-limit orders. "exchange stop limit" for stop-limit orders.
Enum values:exchange limitexchange stop limitexchange marketExample: exchange limit
client_order_id
stringRecommended. A client-specified order id
options
string[]An optional array containing at most one supported order execution option. See Order execution options for details.
Enum values:maker-or-cancelimmediate-or-cancelfill-or-killExample: ["maker-or-cancel"]stop_price
stringThe price to trigger a stop-limit order. Only available for stop-limit orders.
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to place the order. Only available for exchange accounts.
CancelOrderRequest
request
string · requiredThe literal string "/v1/order/cancel"
Example: /v1/order/cancelnonce
requiredtimestamp
order_id
integer · requiredThe order ID given by
/order/new
Example: 106817811
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to cancel the order. Only available for exchange accounts.
Example: primary
CancelAllOrdersRequest
request
string · requiredThe literal string "/v1/order/cancel/all"
Example: /v1/order/cancel/allnonce
requiredtimestamp
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to cancel the orders. Only available for exchange accounts.
Example: primary
CancelAllOrdersBySessionRequest
request
string · requiredThe literal string "/v1/order/cancel/session"
Example: /v1/order/cancel/sessionnonce
requiredtimestamp
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to cancel the orders. Only available for exchange accounts.
Example: primary
OrderStatusRequest
request
string · requiredThe API endpoint path
Example: /v1/order/statusnonce
requiredtimestamp
order_id
integer · requiredThe order id to get information on. The
order_id
represents a whole number and is transmitted as an unsigned 64-bit integer in JSON format.order_id
cannot be used in combination withclient_order_id
.Example: 123456789012345
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to place the order. Only available for exchange accounts.
Example: primaryclient_order_id
stringThe
client_order_id
used when placing the order.client_order_id
cannot be used in combination withorder_id
include_trades
booleanEither
True
orFalse
. IfTrue
the endpoint will return individual trade details of all fills from the order.
MyTradesRequest
request
string · requiredThe API endpoint path
Example: /v1/mytradesnonce
requiredtimestamp
account
stringRequired for Master API keys as described in Private API Invocation. The name of the account within the subaccount group. Specifies the account on which you intend to place the order. Only available for exchange accounts.
Example: primarylimit_trades
integerThe maximum number of trades to return. Default is 50, max is 500.
Example: 50timestamp
timestamp
LimitOrderResponse
order_id
stringid
stringsymbol
stringexchange
stringavg_execution_price
stringside
string · enumEnum values:buyselltype
string · enumEnum values:exchange limitexchange stop limitexchange markettimestamp
timestamp
timestampms
timestamp
is_live
booleanis_cancelled
booleanis_hidden
booleanwas_forced
booleanexecuted_amount
stringremaining_amount
string · doubleclient_order_id
stringoptions
string[]price
string · doubleoriginal_amount
string · double
StopLimitOrderResponse
order_id
stringid
stringsymbol
stringexchange
stringavg_execution_price
stringside
string · enumEnum values:buyselltype
string · enumEnum values:exchange stop limittimestamp
timestamp
timestampms
timestamp
is_live
booleanis_cancelled
booleanis_hidden
booleanwas_forced
booleanexecuted_amount
stringoptions
string[]stop_price
string · doubleprice
string · doubleoriginal_amount
string · double
CancelOrderResponse
order_id
string · integerid
string · integersymbol
stringexchange
stringavg_execution_price
string · doubleside
string · enumEnum values:buyselltype
string · enumEnum values:exchange limitexchange stop limitexchange markettimestamp
timestamp
timestampms
timestamp
is_live
booleanis_cancelled
booleanis_hidden
booleanwas_forced
booleanexecuted_amount
string · doubleremaining_amount
string · doublereason
string · enumEnum values:MakerOrCancelWouldTakeExceedsPriceLimitsSelfCrossPreventedImmediateOrCancelWouldPostFillOrKillWouldNotFillRequestedMarketClosedTradingClosedoptions
string[]price
string · doubleoriginal_amount
string · double
Order
order_id
string · integerThe order id
client_order_id
string · integerAn optional client-specified order id
symbol
stringThe symbol of the order
exchange
stringWill always be "gemini"
price
string · decimalThe price the order was issued at
avg_execution_price
string · decimalThe average price at which this order as been executed so far. 0 if the order has not been executed at all.
side
string · enumEnum values:buyselltype
string · enumDescription of the order
Enum values:exchange limitexchange stop limitexchange marketoptions
string[]An array containing at most one supported order execution option. See Order execution options for details.
timestamp
timestamp
timestampms
timestamp
is_live
booleantrue
if the order is active on the book (has remaining quantity and has not been canceled)is_cancelled
booleantrue
if the order has been canceled. Note the spelling, "cancelled" instead of "canceled". This is for compatibility reasons.reason
stringPopulated with the reason your order was canceled, if available.
was_forced
booleanWill always be
false
.executed_amount
string · decimalThe amount of the order that has been filled.
remaining_amount
string · decimalThe amount of the order that has not been filled.
original_amount
string · decimalThe originally submitted amount of the order.
is_hidden
booleanWill always return
false
.trades
object[]Contains an array of JSON objects with trade details.
CancelAllResult
result
stringExample: okdetails
objectcancelledOrders/cancelRejects with IDs of both
MyTrade
price
stringExample: 9100amount
stringExample: 1.5timestamp
timestamp
timestampms
timestamp
type
string · enumEnum values:BuySellExample: Buyaggressor
booleanExample:fee_currency
stringExample: USDfee_amount
stringExample: 13.65tid
integerExample: 123456789order_id
stringExample: 123456789client_order_id
stringexchange
stringExample: geminiis_auction_fill
booleanbreak
string · enumEnum values:trade correct
TradeVolume
symbol
stringExample: btcusdbase_currency
stringExample: BTCquote_currency
stringExample: USDnotional_currency
stringExample: USDdata_date
stringExample: 2020-06-02total_volume_base
stringExample: 10.5maker_buy_sell_ratio
stringExample: 1.2buy_maker_base
stringExample: 5.5buy_maker_notional
stringExample: 50050buy_maker_count
integerExample: 10sell_maker_base
stringExample: 5sell_maker_notional
stringExample: 45500sell_maker_count
integerExample: 8buy_taker_base
stringExample: 8.5buy_taker_notional
stringExample: 77350buy_taker_count
integerExample: 15sell_taker_base
stringExample: 7.5sell_taker_notional
stringExample: 68250sell_taker_count
integerExample: 12
Balance
type
string · enumEnum values:exchangeExample: exchangecurrency
stringThe currency symbol
Example: BTCamount
numberThe amount available
Example: 10.5available
numberThe amount available for trading
Example: 9.5availableForWithdrawal
numberThe amount available for withdrawal
Example: 9.5
NotionalVolume
date
string · dateExample: 2020-06-02last_updated_ms
integerExample: 1591084414622web_maker_fee_bps
integerExample: 25web_taker_fee_bps
integerExample: 35web_auction_fee_bps
integerExample: 25api_maker_fee_bps
integerExample: 10api_taker_fee_bps
integerExample: 35api_auction_fee_bps
integerExample: 20fix_maker_fee_bps
integerExample: 10fix_taker_fee_bps
integerExample: 35fix_auction_fee_bps
integerExample: 20notional_30d_volume
stringExample: 1000000notional_1d_volume
object[]api_notional_30d_volume
stringExample: 750000fee_tier
object
NotionalBalance
currency
stringCurrency code, see symbols and minimums
amount
stringThe current balance
amountNotional
stringAmount, in notional
available
stringThe amount that is available to trade
availableNotional
stringAvailable, in notional
availableForWithdrawal
stringThe amount that is available to withdraw
availableForWithdrawalNotional
stringAvailableForWithdrawal, in notional
Address
address
stringString representation of the cryptocurrency address
timestamp
timestamp
label
stringIf you provided a label when creating the address, it will be echoed back here
memo
stringIt would be present if applicable, it will be present for cosmos address
network
stringThe blockchain network for the address
Transfer
type
string · enumEnum values:DepositWithdrawalstatus
string · enumEnum values:CompletePendingtimestampms
timestamp
eid
integerThe transfer ID
currency
stringThe currency transferred
amount
stringThe amount transferred
txHash
stringThe transaction hash if applicable
InstantQuote
quoteId
integerUnique ID for the quote. This is used in the execution of the order
maxAgeMs
integerNumber of milliseconds until this quote price expires. Once expired, you will need to request a new quote
pair
stringThe symbol passed in the quote request
price
stringThe quoted price of the asset. This will not change when attempting execution
priceCurrency
stringThe currency in which the order is priced. Matches
CCY2
in the symbolside
string · enumEither "buy" or "sell"
Enum values:buysellquantity
stringThe quantity of the asset to be bought or sold
quantityCurrency
stringThe currency label for the
quantity
field. MatchesCCY1
in the symbolfee
stringThe fee quantity to be taken for the order upon execution
feeCurrency
stringThe currency label for the order
depositFee
stringThe deposit fee quantity. Will be applied if a debit card is used for the order. Will return 0 if there is no
depositFee
depositFeeCurrency
stringCurrency in which
depositFee
is takentotalSpend
stringTotal quantity to spend for the order. Will be the sum inclusive of all fees and amount to be traded.
totalSpendCurrency
stringCurrency of the
totalSpend
to be spent on the order
ClearingOrder
clearing_id
stringThe clearing ID
symbol
stringThe trading pair
price
stringThe order price
amount
stringThe order amount
side
string · enumEnum values:buysellstatus
stringThe order status
timestamp
timestamp
timestampms
integerThe timestamp in milliseconds
is_confirmed
booleanWhether the order is confirmed
Account
name
stringThe account name
account_id
stringThe account ID
is_default
booleanWhether the account is the default account
created
stringThe creation date
Transaction
account
stringThe account.
amount
stringThe quantity that was executed.
price
stringThe price that the execution happened at.
timestampms
timestamp
side
stringIndicating the side of the original order.
isAggressor
booleanIf true, this order was the taker in the trade.
feeAssetCode
stringThe symbol that the trade was for
feeAmount
stringThe fee amount charged
orderId
integer · int64The order that this trade executed against.
exchange
stringWill always be "Gemini Trust Co".
isAuctionFill
booleanTrue if the trade was a auction trade and not an on-exchange trade.
isClearingFill
booleanTrue if the trade was a clearing trade and not an on-exchange trade.
symbol
stringThe symbol that the trade was for.
timestampms
timestamp
source
stringThe account you are transferring from.
destination
stringThe account you are transferring to.
operationReason
stringThe operation reason.
status
stringThe status of the transfer.
eid
integer · int64Transfer event id.
currency
stringCurrency code, see symbols
amount
stringThe quantity that was transferred.
method
stringType of transfer method.
correlationId
integer · int64Correlation ID.
transferType
stringTransfer type.
bankId
stringBank ID.
purpose
stringPurpose.
transactionHash
stringSupplies the transaction hash when available.
transferId
stringTransfer ID.
withdrawalId
stringWithdrawal ID.
clientTransferId
stringClient Transfer ID. Client transfer ID is an optional client-supplied unique identifier for each withdrawal or internal transfer.
advanceEid
integer · int64Deposit advance event ID.
pendingEid
integer · int64Pending event ID.
withdrawalEid
integer · int64Withdrawal event ID.
feeId
stringFee ID.
RevokeOauthTokenResponse
message
stringA message that indicates the token has been revoked for the account
NetworkToken
token
stringThe requested token.
network
string[]Network of the requested token.
FeePromos
symbols
string[]Symbols that currently have fee promos
PriceFeedResponse
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
ApprovedAddress
network
stringThe network of the approved address. Network can be
bitcoin
,ethereum
,bitcoincash
,litecoin
,zcash
,filecoin
,dogecoin
,tezos
,solana
,polkadot
,avalanche
,cosmos
, orxrpl
scope
stringWill return the scope of the address as either "account" or "group"
label
stringThe label assigned to the address
status
stringThe status of the address that will return as "active", "pending-time" or "pending-mua". The remaining time is exactly 7 days after the initial request. "pending-mua" is for multi-user accounts and will require another administator or fund manager on the account to approve the address.
createdAt
stringUTC timestamp in millisecond of when the address was created.
address
stringThe address on the approved address list.
OpenPosition
symbol
stringThe symbol of the order.
instrument_type
stringThe type of instrument. Either "spot" or "perp".
quantity
string · decimalThe position size. Value will be negative for shorts.
notional_value
string · decimalThe value of position; calculated as (
quantity
*mark_price
). Value will be negative for shorts.realised_pnl
string · decimalThe current P&L that has been realised from the position.
unrealised_pnl
string · decimalCurrent Mark to Market value of the positions.
average_cost
string · decimalThe average price of the current position.
mark_price
string · decimalThe current Mark Price for the Asset or the position.
FundingAmountResponse
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)
StakingBalance
type
stringWill always be "Staking"
Example: Stakingcurrency
stringCurrency code, see symbols and minimums
Example: MATICbalance
number · decimalThe current Staking balance
Example: 10available
number · decimalThe amount that is available to trade
availableForWithdrawal
number · decimalThe Staking amount that is available to redeem to exchange account
Example: 10balanceByProvider
object
StakingDeposit
transactionId
stringA unique identifier for the staking transaction
Example: 65QN4XM5providerId
stringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8damount
number · decimalThe amount deposited
Example: 30accrualTotal
number · decimalThe total accrual
rates
objectA JSON object including one or many rates. If more than one rate it would be an array of rates.
StakingTransaction
transactionId
stringA unique identifier for the staking transaction
Example: MPZ7LDD8transactionType
string · enumCan be any one of the following - Deposit, Redeem, Interest, RedeemPayment, AdminRedeem, AdminCreditAdjustment, AdminDebitAdjustment
Enum values:DepositRedeemInterestRedeemPaymentAdminRedeemAdminCreditAdjustmentAdminDebitAdjustmentExample: RedeemamountCurrency
stringCurrency code
Example: MATICamount
number · decimalThe amount that is defined by the transactionType above
Example: 20priceCurrency
stringA supported three-letter fiat currency code, e.g. usd
Example: USDpriceAmount
number · decimalCurrent market price of the underlying token at the time of the reward
Example: 0.1dateTime
timestamp
StakingHistory
providerId
stringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8dtransactions
object[]
StakingRate
providerId
stringProvider Id, in uuid4 format
Example: 62bb4d27-a9c8-4493-a737-d4fa33994f1frate
integerStaking interest rate in bps (Expressed as a simple rate. Interest on Staking balances compounds daily. In mobile and web applications, APYs are derived from this rate and rounded to 1/10th of a percent.)
Example: 429.386apyPct
number · decimalStaking interest APY (Expressed as a percentage derived from the rate and rounded to 1/10th of a percent.)
Example: 4.39ratePct
number · decimalrate
expressed as a percentageExample: 4.29386depositUsdLimit
integerMaximum new amount in USD notional of this crypto that can participate in Gemini Staking per account per month
Example: 500000
StakingRateProvider
currency_symbol
object
StakingRateResponse
provider_uuid
objectCurrency Symbol Keys
StakingRewardPeriod
providerId
stringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8dapyPct
number · decimalStaking reward rate expressed as an APY at time of accrual. Interest on Staking balances compounds daily based on the simple rate which is available from
/v1/staking/rates/
Example: 5.75ratePct
number · decimalRate expressed as a percentage
Example: 5.592369numberOfAccruals
integerNumber of accruals in the specific aggregate, typically one per day. If the rate is adjusted, new accruals are added.
Example: 1accrualTotal
number · decimalThe total accrual
Example: 0.0065678firstAccrualAt
stringTime of first accrual. In iso datetime with timezone format
Example: 2022-08-23T20:00:00.000ZlastAccrualAt
stringTime of last accrual. In iso datetime with timezone format
Example: 2022-08-23T20:00:00.000Z
StakingRewards
providerId
stringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8daccrualTotal
number · decimalThe total accrual
Example: 0.103994ratePeriods
object[]Array of JSON objects with period accrual information
StakingRewardsProvider
currency_symbol
object
StakingRewardsResponse
provider_uuid
objectCurrency Symbol Keys
StakingWithdrawal
transactionId
stringA unique identifier for the staking transaction
Example: MPZ7LDD8amount
number · decimalThe amount deposited
Example: 20amountPaidSoFar
number · decimalThe amount redeemed successfully
Example: 20amountRemaining
number · decimalThe amount pending to be redeemed
currency
stringCurrency code
Example: MATICrequestInitiated
stringIn ISO datetime with timezone format
Example: 2022-11-02T19:49:20.153Z
FeeEstimateRequest
request
string · requiredThe string
/v1/withdraw/{currencyCodeLowerCase}/feeEstimate
where:currencyCodeLowerCase
is replaced with the currency code of a supported crypto-currency, e.g.eth
,aave
, etc. See Symbols and minimumsExample: /v1/withdraw/eth/feeEstimateaddress
string · requiredStandard string format of cryptocurrency address
Example: 0x31c2105b8dea834167f32f7ea7d877812e059230amount
string · requiredQuoted decimal amount to withdraw
Example: 0.01account
string · requiredThe name of the account within the subaccount group.
Example: primary
FeeEstimateResponse
fee
stringThe estimated gas fee
Example: {currency: 'ETH', value: '0'}isOverride
booleanValue that shows if an override on the customer's account for free withdrawals exists
monthlyLimit
integerTotal nunber of allowable fee-free withdrawals
Example: 1monthlyRemaining
integerTotal number of allowable fee-free withdrawals left to use
Example: 1
RoleResponse
isAuditor
boolean · requiredTrue
if the Auditor role is assigned to the API keys.False
otherwise.isFundManager
boolean · requiredTrue
if the Fund Manager role is assigned to the API keys.False
otherwise.isTrader
boolean · requiredTrue
if the Trader role is assigned to the API keys.False
otherwise.
counterparty_id
stringOnly returned for master-level API keys. The Gemini clearing counterparty ID associated with the API key making the request.
isAccountAdmin
booleanOnly returned for master-level API keys.
True
if the Administrator role is assigned to the API keys.False
otherwise.
MarginResponse
margin_assets_value
string · decimalThe $ equivalent value of all the assets available in the current trading account that can contribute to funding a derivatives position.
initial_margin
string · decimalThe $ amount that is being required by the accounts current positions and open orders.
available_margin
string · decimalThe difference between the
margin_assets_value
andinitial_margin
.margin_maintenance_limit
string · decimalThe minimum amount of
margin_assets_value
required before the account is moved to liquidation status.leverage
string · decimalThe ratio of Notional Value to Margin Assets Value.
notional_value
string · decimalThe $ value of the current position.
estimated_liquidation_price
string · decimalThe estimated price for the asset at which liquidation would occur.
initial_margin_positions
string · decimalThe contribution to
initial_margin
from open positions.reserved_margin
string · decimalThe contribution to
initial_margin
from open orders.reserved_margin_buys
string · decimalThe contribution to
initial_margin
from open BUY orders.reserved_margin_sells
string · decimalThe contribution to
initial_margin
from open SELL orders.buying_power
string · decimalThe amount of that product the account could purchase based on current
initial_margin
andmargin_assets_value
.selling_power
string · decimalThe amount of that product the account could sell based on current
initial_margin
andmargin_assets_value
.
Quantity
currency
string · requiredThe currency code of the quantity.
value
string · decimal · requiredThe value of the quantity.
FundingTransfer
eventType
string · requiredEvent type
timestamp
requiredTime of the funding payment
assetCode
string · requiredAsset symbol
action
string · enum · requiredCredit or Debit
Enum values:CreditDebitquantity
requiredA nested JSON object describing the transaction amount
instrumentSymbol
stringSymbol of the underlying instrument. Note that this is only attached to requests from 16th April 2024 onwards.
FundingPayment
eventType
string · enum · requiredEvent type
Enum values:Hourly Funding TransferhourlyFundingTransfer
object · required
FundingPaymentReportItem
eventType
string · enum · requiredEvent type
Enum values:Hourly Funding Transfertimestamp
requiredTime of the funding payment
assetCode
string · requiredAsset symbol
action
string · enum · requiredCredit or Debit
Enum values:CreditDebitquantity
requiredA nested JSON object describing the transaction amount
instrumentSymbol
stringSymbol of the underlying instrument. Note that this is only attached to requests from 16th April 2024 onwards.
RiskStatsResponse
product_type
string · enumContract type for which the symbol data is fetched
Enum values:PerpetualSwapContractmark_price
string · decimalCurrent mark price at the time of request
index_price
string · decimalCurrent index price at the time of request
open_interest
string · decimalstring representation of decimal value of open interest
open_interest_notional
string · decimalstring representation of decimal value of open interest notional
FxRate
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
Candle
Timestamp in milliseconds
Price or volume data
CandleResponse
Candle
arrayExample: [[1559755800000,7781.6,7820.23,7776.56,7819.39,34.7624802159],[1559755800000,7781.6,7829.46,7776.56,7817.28,43.4228281059]]
TickerInfo
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