TimestampType
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = 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 |
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 |
Nonce
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = TimestampType | |
| type = integer |
timestamp
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = string | |
| type = 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 |
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 |
SymbolDetails
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
Ticker
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
OrderBook
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.
OrderBookEntry
pricenumber · decimalThe price
amountnumber · decimalThe total quantity remaining at the price
timestampDO NOT USE - this field is included for compatibility reasons only and is just populated with a dummy value.
Trade
timestampThe time that the trade was executed
Example: 1547146811timestampmsThe time that the trade was executed in milliseconds
Example: 1547146811357tidintegerThe 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
NewOrderRequest
requeststring · requiredThe literal string "/v1/order/new"
Example: /v1/order/newnoncenumber · requiredThe nonce, as described in Private API Invocation
amountstring · requiredQuoted decimal amount to purchase
Example: 5pricestring · requiredQuoted decimal amount to spend per unit
Example: 3633.00sidestring · enum · requiredEnum values:buysellExample: buytypestring · 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_idstringRecommended. A client-specified order id
optionsstring[]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_pricestringThe price to trigger a stop-limit order. Only available for stop-limit orders.
accountstringRequired 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
requeststring · requiredThe literal string "/v1/order/cancel"
Example: /v1/order/cancelnonceTimestampType · requiredtimestamp
order_idinteger · requiredThe order ID given by
/order/newExample: 106817811
accountstringRequired 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
requeststring · requiredThe literal string "/v1/order/cancel/all"
Example: /v1/order/cancel/allnonceTimestampType · requiredtimestamp
accountstringRequired 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
requeststring · requiredThe literal string "/v1/order/cancel/session"
Example: /v1/order/cancel/sessionnonceTimestampType · requiredtimestamp
accountstringRequired 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
requeststring · requiredThe API endpoint path
Example: /v1/order/statusnonceTimestampType · requiredtimestamp
order_idinteger · requiredThe order id to get information on. The
order_idrepresents a whole number and is transmitted as an unsigned 64-bit integer in JSON format.order_idcannot be used in combination withclient_order_id.Example: 123456789012345
accountstringRequired 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_idstringThe
client_order_idused when placing the order.client_order_idcannot be used in combination withorder_idinclude_tradesbooleanEither
TrueorFalse. IfTruethe endpoint will return individual trade details of all fills from the order.
MyTradesRequest
requeststring · requiredThe API endpoint path
Example: /v1/mytradesnonceTimestampType · requiredtimestamp
accountstringRequired 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_tradesintegerThe maximum number of trades to return. Default is 50, max is 500.
Example: 50timestampOnly return trades on or after this timestamp. See Data Types: Timestamps for more information. If not present, will show the most recent orders.
Example: 1591084414000
LimitOrderResponse
order_idstringidstringsymbolstringexchangestringavg_execution_pricestringsidestring · enumEnum values:buyselltypestring · enumEnum values:exchange limitexchange stop limitexchange markettimestampTimestampTypetimestamp
timestampmsTimestampTypetimestamp
is_livebooleanis_cancelledbooleanis_hiddenbooleanwas_forcedbooleanexecuted_amountstringremaining_amountstring · doubleclient_order_idstringoptionsstring[]pricestring · doubleoriginal_amountstring · double
StopLimitOrderResponse
order_idstringidstringsymbolstringexchangestringavg_execution_pricestringsidestring · enumEnum values:buyselltypestring · enumEnum values:exchange stop limittimestamptimestamp
timestampmstimestamp
is_livebooleanis_cancelledbooleanis_hiddenbooleanwas_forcedbooleanexecuted_amountstringoptionsstring[]stop_pricestring · doublepricestring · doubleoriginal_amountstring · double
CancelOrderResponse
order_idstring · integeridstring · integersymbolstringexchangestringavg_execution_pricestring · doublesidestring · enumEnum values:buyselltypestring · enumEnum values:exchange limitexchange stop limitexchange markettimestamptimestamp
timestampmstimestamp
is_livebooleanis_cancelledbooleanis_hiddenbooleanwas_forcedbooleanexecuted_amountstring · doubleremaining_amountstring · doublereasonstring · enumEnum values:MakerOrCancelWouldTakeExceedsPriceLimitsSelfCrossPreventedImmediateOrCancelWouldPostFillOrKillWouldNotFillRequestedMarketClosedTradingClosedoptionsstring[]pricestring · doubleoriginal_amountstring · double
Order
order_idstring · integerThe order id
client_order_idstring · integerAn optional client-specified order id
symbolstringThe symbol of the order
exchangestringWill always be "gemini"
pricestring · decimalThe price the order was issued at
avg_execution_pricestring · decimalThe average price at which this order as been executed so far. 0 if the order has not been executed at all.
sidestring · enumEnum values:buyselltypestring · enumDescription of the order
Enum values:exchange limitexchange stop limitexchange marketoptionsstring[]An array containing at most one supported order execution option. See Order execution options for details.
timestampThe timestamp the order was submitted. Note that for compatibility reasons, this is returned as a string. We recommend using the timestampms field instead.
timestampmsThe timestamp the order was submitted in milliseconds.
is_livebooleantrueif the order is active on the book (has remaining quantity and has not been canceled)is_cancelledbooleantrueif the order has been canceled. Note the spelling, "cancelled" instead of "canceled". This is for compatibility reasons.reasonstringPopulated with the reason your order was canceled, if available.
was_forcedbooleanWill always be
false.executed_amountstring · decimalThe amount of the order that has been filled.
remaining_amountstring · decimalThe amount of the order that has not been filled.
original_amountstring · decimalThe originally submitted amount of the order.
is_hiddenbooleanWill always return
false.tradesobject[]Contains an array of JSON objects with trade details.
MyTrade
pricestringExample: 9100amountstringExample: 1.5timestamptimestamp
Example: 1591084414timestampmstimestamp
Example: 1591084414622typestring · enumEnum values:BuySellExample: BuyaggressorbooleanExample: truefee_currencystringExample: USDfee_amountstringExample: 13.65tidintegerExample: 123456789order_idstringExample: 123456789client_order_idstringexchangestringExample: geminiis_auction_fillbooleanExample: falsebreakstring · enumEnum values:trade correctExample:
TradeVolume
symbolstringExample: btcusdbase_currencystringExample: BTCquote_currencystringExample: USDnotional_currencystringExample: USDdata_datestringExample: 2020-06-02total_volume_basestringExample: 10.5maker_buy_sell_ratiostringExample: 1.2buy_maker_basestringExample: 5.5buy_maker_notionalstringExample: 50050buy_maker_countintegerExample: 10sell_maker_basestringExample: 5sell_maker_notionalstringExample: 45500sell_maker_countintegerExample: 8buy_taker_basestringExample: 8.5buy_taker_notionalstringExample: 77350buy_taker_countintegerExample: 15sell_taker_basestringExample: 7.5sell_taker_notionalstringExample: 68250sell_taker_countintegerExample: 12
Balance
typestring · enumEnum values:exchangeExample: exchangecurrencystringThe currency symbol
Example: BTCamountnumberThe amount available
Example: 10.5availablenumberThe amount available for trading
Example: 9availableForWithdrawalnumberThe amount available for withdrawal
Example: 9pendingWithdrawalnumberThe amount pending withdrawal
Example: 1pendingDepositnumberThe amount pending deposit
Example: 0.5
NotionalVolume
datestring · dateExample: 2020-06-02last_updated_msintegerExample: 1591084414622web_maker_fee_bpsintegerExample: 25web_taker_fee_bpsintegerExample: 35web_auction_fee_bpsintegerExample: 25api_maker_fee_bpsintegerExample: 10api_taker_fee_bpsintegerExample: 35api_auction_fee_bpsintegerExample: 20fix_maker_fee_bpsintegerExample: 10fix_taker_fee_bpsintegerExample: 35fix_auction_fee_bpsintegerExample: 20notional_30d_volumestringExample: 1000000notional_1d_volumeobject[]api_notional_30d_volumestringExample: 750000fee_tierobject
NotionalBalance
currencystringCurrency code, see symbols and minimums
amountstringThe current balance
amountNotionalstringAmount, in notional
availablestringThe amount that is available to trade
availableNotionalstringAvailable, in notional
availableForWithdrawalstringThe amount that is available to withdraw
availableForWithdrawalNotionalstringAvailableForWithdrawal, in notional
Address
addressstringString representation of the cryptocurrency address
timestampCreation date of the address
labelstringIf you provided a label when creating the address, it will be echoed back here
memostringIt would be present if applicable, it will be present for cosmos address
networkstringThe blockchain network for the address
Transfer
typestring · enumEnum values:DepositWithdrawalstatusstring · enumEnum values:CompletePendingtimestampmsThe timestamp in milliseconds
eidintegerThe transfer ID
currencystringThe currency transferred
amountstringThe amount transferred
txHashstringThe transaction hash if applicable
InstantQuote
quoteIdintegerUnique ID for the quote. This is used in the execution of the order
maxAgeMsintegerNumber of milliseconds until this quote price expires. Once expired, you will need to request a new quote
pairstringThe symbol passed in the quote request
pricestringThe quoted price of the asset. This will not change when attempting execution
priceCurrencystringThe currency in which the order is priced. Matches
CCY2in the symbolsidestring · enumEither "buy" or "sell"
Enum values:buysellquantitystringThe quantity of the asset to be bought or sold
quantityCurrencystringThe currency label for the
quantityfield. MatchesCCY1in the symbolfeestringThe fee quantity to be taken for the order upon execution
feeCurrencystringThe currency label for the order
depositFeestringThe deposit fee quantity. Will be applied if a debit card is used for the order. Will return 0 if there is no
depositFeedepositFeeCurrencystringCurrency in which
depositFeeis takentotalSpendstringTotal quantity to spend for the order. Will be the sum inclusive of all fees and amount to be traded.
totalSpendCurrencystringCurrency of the
totalSpendto be spent on the order
ClearingOrder
clearing_idstringThe clearing ID
symbolstringThe trading pair
pricestringThe order price
amountstringThe order amount
sidestring · enumEnum values:buysellstatusstringThe order status
timestampThe timestamp
timestampmsintegerThe timestamp in milliseconds
is_confirmedbooleanWhether the order is confirmed
Account
namestringThe account name
account_idstringThe account ID
is_defaultbooleanWhether the account is the default account
createdstringThe creation date
Transaction
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object |
Trade Reponse
accountstringThe account.
amountstringThe quantity that was executed.
pricestringThe price that the execution happened at.
timestampmsThe time that the trade happened in milliseconds.
sidestringIndicating the side of the original order.
isAggressorbooleanIf true, this order was the taker in the trade.
feeAssetCodestringThe symbol that the trade was for
feeAmountstringThe fee amount charged
orderIdinteger · int64The order that this trade executed against.
exchangestringWill always be "Gemini Trust Co".
isAuctionFillbooleanTrue if the trade was a auction trade and not an on-exchange trade.
isClearingFillbooleanTrue if the trade was a clearing trade and not an on-exchange trade.
symbolstringThe symbol that the trade was for.
RevokeOauthTokenResponse
messagestringA message that indicates the token has been revoked for the account
PriceFeedResponse
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
ApprovedAddress
networkstringThe network of the approved address. Network can be
bitcoin,ethereum,bitcoincash,litecoin,zcash,filecoin,dogecoin,tezos,solana,polkadot,avalanche,cosmos, orxrplscopestringWill return the scope of the address as either "account" or "group"
labelstringThe label assigned to the address
statusstringThe 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.
createdAtstringUTC timestamp in millisecond of when the address was created.
addressstringThe address on the approved address list.
OpenPosition
symbolstringThe symbol of the order.
instrument_typestringThe type of instrument. Either "spot" or "perp".
quantitystring · decimalThe position size. Value will be negative for shorts.
notional_valuestring · decimalThe value of position; calculated as (
quantity*mark_price). Value will be negative for shorts.realised_pnlstring · decimalThe current P&L that has been realised from the position.
unrealised_pnlstring · decimalCurrent Mark to Market value of the positions.
average_coststring · decimalThe average price of the current position.
mark_pricestring · decimalThe current Mark Price for the Asset or the position.
FundingAmountResponse
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)
StakingBalance
typestringWill always be "Staking"
Example: StakingcurrencystringCurrency code, see symbols and minimums
Example: MATICbalancenumber · decimalThe current Staking balance
Example: 10availablenumber · decimalThe amount that is available to trade
Example: 0availableForWithdrawalnumber · decimalThe Staking amount that is available to redeem to exchange account
Example: 10balanceByProviderobject
StakingDeposit
transactionIdstringA unique identifier for the staking transaction
Example: 65QN4XM5providerIdstringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8damountnumber · decimalThe amount deposited
Example: 30accrualTotalnumber · decimalThe total accrual
ratesobjectA JSON object including one or many rates. If more than one rate it would be an array of rates.
StakingTransaction
transactionIdstringA unique identifier for the staking transaction
Example: MPZ7LDD8transactionTypestring · enumCan be any one of the following - Deposit, Redeem, Interest, RedeemPayment, AdminRedeem, AdminCreditAdjustment, AdminDebitAdjustment
Enum values:DepositRedeemInterestRedeemPaymentAdminRedeemAdminCreditAdjustmentAdminDebitAdjustmentExample: RedeemamountCurrencystringCurrency code
Example: MATICamountnumber · decimalThe amount that is defined by the transactionType above
Example: 20priceCurrencystringA supported three-letter fiat currency code, e.g. usd
Example: USDpriceAmountnumber · decimalCurrent market price of the underlying token at the time of the reward
Example: 0.1dateTimeThe time of the transaction in milliseconds
Example: 1667418560153
StakingHistory
providerIdstringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8dtransactionsobject[]
StakingRate
providerIdstringProvider Id, in uuid4 format
Example: 62bb4d27-a9c8-4493-a737-d4fa33994f1frateintegerStaking 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.386apyPctnumber · decimalStaking interest APY (Expressed as a percentage derived from the rate and rounded to 1/10th of a percent.)
Example: 4.39ratePctnumber · decimalrateexpressed as a percentageExample: 4.29386depositUsdLimitintegerMaximum new amount in USD notional of this crypto that can participate in Gemini Staking per account per month
Example: 500000
StakingRewardPeriod
providerIdstringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8dapyPctnumber · 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.75ratePctnumber · decimalRate expressed as a percentage
Example: 5.592369numberOfAccrualsintegerNumber of accruals in the specific aggregate, typically one per day. If the rate is adjusted, new accruals are added.
Example: 1accrualTotalnumber · decimalThe total accrual
Example: 0.0065678firstAccrualAtstringTime of first accrual. In iso datetime with timezone format
Example: 2022-08-23T20:00:00.000ZlastAccrualAtstringTime of last accrual. In iso datetime with timezone format
Example: 2022-08-23T20:00:00.000Z
StakingRewards
providerIdstringProvider Id, in uuid4 format
Example: 62b21e17-2534-4b9f-afcf-b7edb609dd8daccrualTotalnumber · decimalThe total accrual
Example: 0.103994ratePeriodsobject[]Array of JSON objects with period accrual information
StakingWithdrawal
transactionIdstringA unique identifier for the staking transaction
Example: MPZ7LDD8amountnumber · decimalThe amount deposited
Example: 20amountPaidSoFarnumber · decimalThe amount redeemed successfully
Example: 20amountRemainingnumber · decimalThe amount pending to be redeemed
Example: 0currencystringCurrency code
Example: MATICrequestInitiatedstringIn ISO datetime with timezone format
Example: 2022-11-02T19:49:20.153Z
FeeEstimateRequest
requeststring · requiredThe string
/v1/withdraw/{currencyCodeLowerCase}/feeEstimatewhere:currencyCodeLowerCaseis replaced with the currency code of a supported crypto-currency, e.g.eth,aave, etc. See Symbols and minimumsExample: /v1/withdraw/eth/feeEstimateaddressstring · requiredStandard string format of cryptocurrency address
Example: 0x31c2105b8dea834167f32f7ea7d877812e059230amountstring · requiredQuoted decimal amount to withdraw
Example: 0.01accountstring · requiredThe name of the account within the subaccount group.
Example: primary
FeeEstimateResponse
feestringThe estimated gas fee
Example: {currency: 'ETH', value: '0'}isOverridebooleanValue that shows if an override on the customer's account for free withdrawals exists
Example: falsemonthlyLimitintegerTotal nunber of allowable fee-free withdrawals
Example: 1monthlyRemainingintegerTotal number of allowable fee-free withdrawals left to use
Example: 1
RoleResponse
isAuditorboolean · requiredTrueif the Auditor role is assigned to the API keys.Falseotherwise.isFundManagerboolean · requiredTrueif the Fund Manager role is assigned to the API keys.Falseotherwise.isTraderboolean · requiredTrueif the Trader role is assigned to the API keys.Falseotherwise.
counterparty_idstringOnly returned for master-level API keys. The Gemini clearing counterparty ID associated with the API key making the request.
isAccountAdminbooleanOnly returned for master-level API keys.
Trueif the Administrator role is assigned to the API keys.Falseotherwise.
MarginResponse
margin_assets_valuestring · decimalThe $ equivalent value of all the assets available in the current trading account that can contribute to funding a derivatives position.
initial_marginstring · decimalThe $ amount that is being required by the accounts current positions and open orders.
available_marginstring · decimalThe difference between the
margin_assets_valueandinitial_margin.margin_maintenance_limitstring · decimalThe minimum amount of
margin_assets_valuerequired before the account is moved to liquidation status.leveragestring · decimalThe ratio of Notional Value to Margin Assets Value.
notional_valuestring · decimalThe $ value of the current position.
estimated_liquidation_pricestring · decimalThe estimated price for the asset at which liquidation would occur.
initial_margin_positionsstring · decimalThe contribution to
initial_marginfrom open positions.reserved_marginstring · decimalThe contribution to
initial_marginfrom open orders.reserved_margin_buysstring · decimalThe contribution to
initial_marginfrom open BUY orders.reserved_margin_sellsstring · decimalThe contribution to
initial_marginfrom open SELL orders.buying_powerstring · decimalThe amount of that product the account could purchase based on current
initial_marginandmargin_assets_value.selling_powerstring · decimalThe amount of that product the account could sell based on current
initial_marginandmargin_assets_value.
Quantity
currencystring · requiredThe currency code of the quantity.
valuestring · decimal · requiredThe value of the quantity.
FundingTransfer
eventTypestring · requiredEvent type
timestamprequiredTime of the funding payment
assetCodestring · requiredAsset symbol
actionstring · enum · requiredCredit or Debit
Enum values:CreditDebitquantityobject · requiredA nested JSON object describing the transaction amount
instrumentSymbolstringSymbol of the underlying instrument. Note that this is only attached to requests from 16th April 2024 onwards.
FundingPayment
eventTypestring · enum · requiredEvent type
Enum values:Hourly Funding TransferhourlyFundingTransferobject · required
FundingPaymentReportItem
eventTypestring · enum · requiredEvent type
Enum values:Hourly Funding TransfertimestamprequiredTime of the funding payment
assetCodestring · requiredAsset symbol
actionstring · enum · requiredCredit or Debit
Enum values:CreditDebitquantityobject · requiredA nested JSON object describing the transaction amount
instrumentSymbolstringSymbol of the underlying instrument. Note that this is only attached to requests from 16th April 2024 onwards.
RiskStatsResponse
product_typestring · enumContract type for which the symbol data is fetched
Enum values:PerpetualSwapContractmark_pricestring · decimalCurrent mark price at the time of request
index_pricestring · decimalCurrent index price at the time of request
open_intereststring · decimalstring representation of decimal value of open interest
open_interest_notionalstring · decimalstring representation of decimal value of open interest notional
FxRate
fxPairstringThe requested currency pair
Example: AUDUSDratenumber · doubleThe exchange rate
Example: 0.69asOfThe timestamp (in Epoch time format) that the requested fxrate has been retrieved for
Example: 1594651859000providerstringThe market data provider
Example: bcbbenchmarkstringThe market for which the retrieved price applies to
Example: Spot
Candle
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = integer | |
| type = number |
Timestamp in milliseconds
Timestamp in milliseconds
CandleResponse
CandlearrayExample: [[1559755800000,7781.6,7820.23,7776.56,7819.39,34.7624802159],[1559755800000,7781.6,7829.46,7776.56,7817.28,43.4228281059]]
TickerInfo
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

