Developers

Types

Every request, response, frame and nested object type with its fields. RPC and stream pages expand these inline.

On this page

RPC and stream pages already expand nested fields inline; this page is for looking a type up by name.

Ack

FieldTypeRequiredSummary
ack lite name aboolyesTrue when the exchange received the request and will process it.

AckResponse

Used to acknowledge a request has been received and will be processed

FieldTypeRequiredSummary
result lite name robject AckyesThe Ack Object

AggregatedAccountSummary

FieldTypeRequiredSummary
main_account_id lite name mastring (0x address)yesThe main account ID of the account to which the summary belongs
total_equity lite name testringyesTotal equity of the main (+ sub) account, denominated in USD
spot_balances lite name sbobject SpotBalance[]yesThe list of spot assets owned by this main (+ sub) account, and their balances
vault_investments lite name viobject VaultInvestment[]yesThe list of vault investments held by this main account
total_sub_account_balance lite name tsstringyesDeprecated: Use totalSubAccountEquity instead
total_sub_account_equity lite name ts1stringyesTotal equity of the sub-accounts, denominated in USD
total_vault_investments_balance lite name tvstringyesTotal amount of the vault investments, denominated in USD
total_sub_account_available_balance lite name ts2stringyesTotal available balance of the main account, denominated in USD
total_usd_notional_invested lite name tustringyesTotal entry (initial investment) amount of the open investments, denominated in USD

AlgoOrder

An algo order: a parent order that the exchange works for you by placing and managing sub-orders, until it is filled, cancelled or expires. It does not rest on the book itself.

Algo trading must be enabled for the sub-account first (algo_trading_enabled in the sub-account summary). You don't sign an algo order; the exchange signs and places its sub-orders. Follow the algo order on the v1.algo.order stream. Its sub-orders can also show up on the v1.order and v1.state streams, in open orders and in order history, marked by metadata.algo_order_id.

type picks the strategy. Only CHASE is supported.

CHASE: a post-only limit order that follows the market. It is placed at the best bid (buy) or best ask (sell) and re-priced from time to time to keep up, until it is filled, cancelled or expires. Being post-only, it only ever adds liquidity and never trades as a taker. Its settings are in metadata.chase.

  • With a trigger, it waits until the trigger price is crossed; without one, it starts at once.
  • A partial fill doesn't stop it: the rest keeps being re-priced.

Its status is PENDING while it waits for its trigger, OPEN while it chases (also while held at its maximum distance), and FILLED, CANCELLED or REJECTED once it ends.

FieldTypeRequiredSummary
algo_order_id lite name aostring (uint128)noSet by the server.
sub_account_id lite name sastring (uint64)yesThe sub-account initiating the algo order
type lite name tenum AlgoOrderTypeyesThe type of the algo order
post_only lite name poboolnoIf True, every sub-order must be a maker order.
reduce_only lite name roboolnoIf True, every sub-order must reduce the position size, or be cancelled
leg lite name lobject AlgoOrderLegyesThe single leg traded by this algo order
metadata lite name mobject AlgoOrderMetadatayesAlgo order metadata, including the type-specific parameters
state lite name sobject AlgoOrderStatenoSet by the server.
builder lite name bstring (0x address)yesThe main account ID of the builder
builder_fee lite name bfstringyesBuilder fee charged for every sub-order, expressed as a percentage (e.g., 0.001 means 0.001%).

AlgoOrderLeg

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument to trade
size lite name sstringyesThe total number of assets to trade across all sub-orders.
is_buying_asset lite name ibboolyesSpecifies if the algo order is a buy or sell

AlgoOrderMetadata

Metadata fields are used to support Backend only operations. Type-specific parameters live in the nested struct matching the algo order type.

FieldTypeRequiredSummary
client_order_id lite name costring (uint64)yesYour own id for the algo order, unique among the sub-account's open algo orders.
create_time lite name ctstring (int64 unix ns)noSet by the server.
trigger lite name tobject TriggerOrderMetadatanoTrigger fields.
broker lite name benum BrokerTagnoSpecifies the broker who brokered the algo order
expiry lite name estring (int64 unix ns)noTime at which the algo order expires, expressed in unix nanoseconds.
chase lite name cobject ChaseAlgoOrderMetadatanoChase order parameters.

AlgoOrderState

FieldTypeRequiredSummary
status lite name senum OrderStatusyesThe status of the algo order
reject_reason lite name rrenum OrderRejectReasonyesThe reason for rejection or cancellation
traded_size lite name tsstringyesThe total number of assets traded across all sub-orders
avg_fill_price lite name afstringyesThe average fill price across all sub-orders
trigger_time lite name ttstring (int64 unix ns)noTime at which the algo order was triggered in unix nanoseconds, 0 if not triggered yet
update_time lite name utstring (int64 unix ns)yesTime at which the algo order was updated by Grvt in unix nanoseconds
chase lite name cobject ChaseOrderStatenoChase order state.
last_sub_order_id lite name lsstring (uint128)yesThe latest sub-order placed for this algo order, 0 until the first sub-order is placed

ApiAddIsolatedPositionMarginRequest

The request to add margin to a isolated position

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to add isolated margin in or remove margin from
instrument lite name istring (instrument name)yesThe instrument to add margin into, or remove margin from
amount lite name astringyesThe amount of margin to add to the position, positive to add, negative to remove, in the quote asset.
signature lite name sobject SignatureyesThe signature of this operation

ApiAddIsolatedPositionMarginResponse

The response to add margin to a isolated position

FieldTypeRequiredSummary
success lite name sboolyesWhether the margin mode and leverage was set successfully

ApiAggregatedAccountSummaryResponse

The aggregated account summary, that reports the total equity and spot balances of a funding (main) account, and its constituent trading (sub) accounts

FieldTypeRequiredSummary
result lite name robject AggregatedAccountSummaryyesThe aggregated account summary

ApiAlgoOrderHistoryRequest

Retrieves the algo order history for the account. Returns one row per terminated or filled parent algo order, not per sub-order.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
type lite name tenum AlgoOrderType[]noThe algo order type filter to apply.
start_time lite name ststring (int64 unix ns)noThe start time to apply in nanoseconds.
end_time lite name etstring (int64 unix ns)noThe end time to apply in nanoseconds.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from

ApiAlgoOrderHistoryResponse

FieldTypeRequiredSummary
result lite name robject AlgoOrder[]yesThe algo orders matching the request filter
next lite name nstringyesThe cursor to indicate when to start the query from

ApiAlgoSubOrderHistoryRequest

Retrieves the terminal sub-orders of an algo order. A sub-order appears once it reaches a terminal state: partially filled and superseded, fully filled, cancelled or rejected. Re-price cancels and rejects are not included.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
algo_order_id lite name aostring (uint128)yesThe algo_order_id whose sub-orders are retrieved

ApiAlgoSubOrderHistoryResponse

FieldTypeRequiredSummary
result lite name robject Order[]yesThe sub-orders of the requested algo order

ApiAuthorizedBuilder

FieldTypeRequiredSummary
builder_account_id lite name bastring (0x address)yesThe main account ID of the builder
max_futures_fee_rate lite name mfstringyesThe maximum fee rate for the authorized builder
max_spot_fee_rate lite name msstringyesThe maximum fee rate for the authorized builder

ApiBuilderFillHistoryRequest

The request to get the historical builder trade of a builder The history is returned in reverse chronological order

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
start_time lite name ststring (int64 unix ns)noThe start time to query for in unix nanoseconds
end_time lite name etstring (int64 unix ns)noThe end time to query for in unix nanoseconds
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the next query from

ApiBuilderFillHistoryResponse

FieldTypeRequiredSummary
result lite name robject BuilderFillHistory[]yesThe builder fill history matching the request builder account
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiBulkOrdersRequest

Bulk create, cancel, or cancel-replace orders for a single sub-account.

A cancel-replace is a cancel of the old order plus a create of a new one. The new order is assigned a new order_id; the cancelled order_id is terminated. Clients must track the new order_id from the response.

Rules

  • Up to 100 entries in each of orders, order_i_ds, and client_order_i_ds
  • All create orders must target the same instrument
  • client_order_ids within orders must be unique
  • order_i_ds and client_order_i_ds are mutually exclusive; supplying both is rejected
  • Rate limits: N creates consume N create_order tokens; any cancels consume 1 cancel_order token

BulkCreate

Populate orders only; leave order_i_ds and client_order_i_ds empty. A batch may not mix multiple normal orders with trigger orders.

To mark an order as TP or SL, populate its metadata.trigger field; see TriggerOrderMetadata for details.

A 'parent' order is a normal order whose linked TP/SL trigger orders become active once the parent is fully filled.

Supported combinations:

  • Normal orders (non-TPSL): one or many orders
  • Standalone TP: 1 TP order
  • Standalone SL: 1 SL order
  • OCO (2 orders: 1 TP + 1 SL): same asset, same size, same side
  • OTO (2 orders: parent + 1 trigger): 1 parent + 1 TP or SL order. Same asset and size. Parent side is opposite of the trigger side.
  • OTOCO (3 orders: parent + TP + SL): 1 parent + 1 TP order + 1 SL order. Same asset and size across all three. Parent side is opposite of TP and SL sides.

BulkCancel

Leave orders empty; populate either order_i_ds or client_order_i_ds (not both). Targets can be normal orders, standalone TP/SL, or members of an OCO/OTO/OTOCO group. Passing any member id of a grouped TPSL order cancels the whole group.

BulkCancelReplace

Populate orders together with order_i_ds or client_order_i_ds. Ids below refer to entries in whichever id list you chose.

Normal orders (non-TPSL): the batch is processed as all cancels first, then all creates.

TPSL: #creates must equal #cancels, and one request may modify only one group. For OTO and OTOCO, only the trigger part is replaceable — the parent order is not included in orders or in the cancel id list, and stays on the book unchanged.

  • Standalone TP / Standalone SL: cancel 1 id (the existing trigger order) + create 1 new trigger order with matching triggerType.
  • OCO: cancel both ids of the existing OCO group (the TP and SL) + create 2 new orders (1 TP + 1 SL); shape conditions same as BulkCreate OCO.
  • OTO: cancel the id of the existing trigger order in the OTO group + create 1 new trigger order. The new trigger is linked to the same parent.
  • OTOCO: cancel both ids of the existing OTOCO group (the TP and SL) + create 2 new orders (1 TP + 1 SL); shape conditions same as BulkCreate OCO. The new TP and SL are linked to the same parent.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID of the user creating the request
orders lite name oobject Order[]noOrders to create or replace, supply up to 100 orders
order_i_ds lite name oistring (uint128)[]noThe order IDs of the orders to cancel or replace, supply up to 100 orderIDs (a request with both order_i_ds and client_order_i_ds is rejected)
client_order_i_ds lite name costring (uint64)[]noThe client order IDs of the orders to cancel or replace, supply up to 100 clientOrderIDs (a request with both order_i_ds and client_order_i_ds is rejected)
time_to_live_ms lite name ttstring (uint64)noHow long a cancel by client_order_id keeps waiting, in milliseconds, for an order that hasn't arrived yet.

ApiBulkOrdersResponse

FieldTypeRequiredSummary
orders lite name oobject Order[]yesThe orders in same order as requested
cancel_acks lite name caobject Ack[]yesA list of acks for the cancelled orders

ApiCancelAlgoOrderRequest

Cancel an algo order for this sub-account. This cascades to a full cancel of the sub-order currently resting on the orderbook. Either algo_order_id or client_order_id must be provided.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID cancelling the algo order
algo_order_id lite name aostring (uint128)noCancel the algo order with this algo_order_id
client_order_id lite name costring (uint64)noCancel the algo order with this client_order_id

ApiCancelAllOrdersRequest

Cancel all orders on the orderbook for this sub-account. This may not match new orders in flight.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID cancelling all orders
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.

ApiCancelOnDisconnectRequest

Arm, refresh or stop a dead man's switch for one sub-account: if the countdown reaches zero before you call again, the exchange cancels all of that sub-account's open orders.

countdown_time (ms)Effect
omitted, or 0 to 999Stops the countdown (999 rounds down to 0). Nothing is cancelled.
1000 to 300999Rounded down to whole seconds, then (re)starts the countdown from now.
301000 or moreRejected with error 6000 (Countdown time is bigger than 300s supported).

Scope: one countdown per sub_account_id. Each call replaces the previous countdown of that sub-account, from any session or socket. It is not tied to your connection: despite the name, the orders are cancelled when you stop calling, not when a socket closes. Call it as a heartbeat, e.g. every 30 s with 120000.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID cancelling the orders for
countdown_time lite name ctstring (uint64)noCountdown in milliseconds, as a string, e.g.

ApiCancelOrderRequest

Cancel an order on the orderbook for this sub-account. Either order_id or client_order_id must be provided.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID cancelling the order
order_id lite name oistring (uint128)noCancel the order with this order_id
client_order_id lite name costring (uint64)noCancel the order with this client_order_id
time_to_live_ms lite name ttstring (uint64)noHow long a cancel by client_order_id keeps waiting, in milliseconds, for an order that hasn't arrived yet.

ApiCancelRfqRequest

Cancels an open RFQ identified by its rfq_id before it is accepted or expires. On cancellation the platform auto-cancels any maker private quotes bound to the RFQ, and emits a CANCELLED event on the v1.rfq stream. (An RFQ left untouched also auto-cancels its bound quotes when it reaches rfq.expiry.)

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID cancelling the RFQ
rfq_id lite name ristring (uint128)yesCancel the RFQ with this rfq_id

ApiCandlestickRequest

Kline/Candlestick bars for an instrument. Klines are uniquely identified by their instrument, type, interval, and open time.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
interval lite name i1enum CandlestickIntervalyesThe interval of each candlestick
type lite name tenum CandlestickTypeyesThe type of candlestick data to retrieve.
start_time lite name ststring (int64 unix ns)noStart time of kline data in unix nanoseconds
end_time lite name etstring (int64 unix ns)noEnd time of kline data in unix nanoseconds
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from

ApiCandlestickResponse

FieldTypeRequiredSummary
result lite name robject Candlestick[]yesThe candlestick result set for given interval
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiCollateralAssetInfo

Platform-wide collateral configuration and usage for a single asset

FieldTypeRequiredSummary
currency lite name cstringyesThe asset
collateral_value_ratio lite name cvstringyesCVR, expressed in percentage points.
collateral_deposit_cap lite name cdstringyesCDC limit, native units.
max_borrow_rate lite name mbstringyesMBR - per-asset ceiling on the annual borrow rate, expressed in percentage points; the tier borrow rate never exceeds this.
manual_repayment_fee_rate lite name mrstringyesEffective manual-repay/convert fee = max((1-CVR)/MRR, RFR), expressed in percentage points.
cdc_status lite name csenum CDCStatusyesCollateral-deposit-cap utilization status: normal / reduceOnly / autoExchange.
show_only_when_held lite name soboolyesShow this currency only when the sub-account holds a balance of it
vault_id lite name vistring (uint64)yesThe vault whose shares this currency is; 0 for an ordinary currency.

ApiCollateralPreferenceStatus

The current effective collateral state of a single currency.

FieldTypeRequiredSummary
currency lite name cstringyesThe currency whose collateral state is being reported
enabled lite name eboolyesWhether this currency currently counts as collateral for the sub-account
locked lite name lboolyesThe sub-account cannot turn this currency off as collateral

ApiCreateAlgoOrderRequest

Create an algo order for a sub-account. Algo trading must be enabled for the sub-account first. You don't sign an algo order: the exchange signs and places its sub-orders. Only CHASE is supported.

FieldTypeRequiredSummary
order lite name oobject AlgoOrderyesThe algo order to create

ApiCreateAlgoOrderResponse

FieldTypeRequiredSummary
result lite name robject AlgoOrderyesThe created algo order

ApiCreateOrderRequest

Create an order on the orderbook for this sub-account. STABLE_PERP orders require the sub-account to be in multi-asset mode.

FieldTypeRequiredSummary
order lite name oobject OrderyesThe order to create

ApiCreateOrderResponse

FieldTypeRequiredSummary
result lite name robject OrderyesThe created order

ApiCreateRfqRequest

Creates a new RFQ (Request For Quote): a taker solicits private quotes for a single STABLE_PERP instrument by specifying a size, and optionally a direction (rfq.side; omit for a two-way request). This request is unsigned — creating an RFQ commits the taker to nothing.

End-to-end flow:

  1. The taker submits an RFQ here. (In the Grvt UI, entering a size on the trade page is the RFQ.)
  2. Grvt broadcasts the RFQ to makers on the v1.rfq stream; makers respond with private quotes.
  3. Those private quotes stream back to the taker on the v1.quote stream, alongside the public order book (firm resting liquidity + public quotes) which is already visible.
  4. The taker accepts by signing an order via create_order with metadata.rfq_id set (single leg; IOC or FOK), which executes across the private pool merged with the public book — or walks away and lets the RFQ expire.

The created RFQ is returned in the response. A sub-account may hold at most one open RFQ per instrument. The RFQ lives until rfq.expiry, after which Grvt expires it and auto-cancels the makers' private quotes bound to it. The sub-account must be in multi-asset mode.

FieldTypeRequiredSummary
rfq lite name robject RfqyesThe RFQ to create

ApiCreateRfqResponse

FieldTypeRequiredSummary
rfq lite name robject RfqyesThe created RFQ

ApiDepositHistoryRequest

The request to get the historical deposits of an account The history is returned in reverse chronological order Both finalized and pending deposits are returned, and pending deposits are indicated by an empty confirmedTime field.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records (default 500, max 1000). If more data matches, the response returns a non-empty next cursor. To read the full result set you MUST re-issue the request with cursor set to that value and keep looping until next is empty.
  • A single call silently truncates at limit and returns no error. Callers that read only the first page (or omit limit, which just applies the 500 default) will undercount whenever the account has more than limit matching records — e.g. summing deposits/transfers for a balance or PnL calculation must drain the cursor, not read one page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
currency lite name cstring[]yesThe token currency to query for, if nil or empty, return all deposits.
start_time lite name ststring (int64 unix ns)noThe start time to query for in unix nanoseconds
end_time lite name etstring (int64 unix ns)noThe end time to query for in unix nanoseconds
limit lite name linteger (uint32)noThe page size for a single response.
cursor lite name c1stringnoThe cursor to indicate when to start the next query from
main_account_id lite name mastring (0x address)noMain account ID being queried.

ApiDepositHistoryResponse

FieldTypeRequiredSummary
result lite name robject DepositHistory[]yesThe deposit history matching the request account
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiFillHistoryRequest

Query for all historical fills made by a single account. A single order can be matched multiple times, hence there is no real way to uniquely identify a trade.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to request for
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.
start_time lite name ststring (int64 unix ns)noThe start time to apply in unix nanoseconds.
end_time lite name etstring (int64 unix ns)noThe end time to apply in unix nanoseconds.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from

ApiFillHistoryResponse

FieldTypeRequiredSummary
result lite name robject Fill[]yesThe private trades matching the request asset
next lite name nstringyesThe cursor to indicate when to start the query from

ApiFundingAccountSummaryResponse

The funding account summary, that reports the total equity and spot balances of a funding (main) account

FieldTypeRequiredSummary
result lite name robject FundingAccountSummaryyesThe funding account summary
tier lite name tobject ClientTieryesClient fee tier at the time of query

ApiFundingPaymentHistoryRequest

Query for all historical funding payments made by a single account.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to request for
instrument lite name istring (instrument name)noThe perpetual instrument to filter for
start_time lite name ststring (int64 unix ns)noThe start time to apply in unix nanoseconds.
end_time lite name etstring (int64 unix ns)noThe end time to apply in unix nanoseconds.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.

ApiFundingPaymentHistoryResponse

FieldTypeRequiredSummary
result lite name robject FundingPayment[]yesThe funding payments matching the request asset
next lite name nstringyesThe cursor to indicate when to start the query from

ApiFundingRate

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
funding_rate lite name frstringnoThe funding rate of the instrument, expressed in percentage points.
funding_time lite name ftstring (int64 unix ns)yesThe funding timestamp of the funding rate, expressed in unix nanoseconds
mark_price lite name mpstringyesThe mark price of the instrument at funding timestamp.
funding_rate_8_h_avg lite name fr1stringnoDeprecated: Refer to funding_rate instead.
funding_interval_hours lite name fiinteger (uint8)yesFunding interval in hours (e.g.
funding_rate_long_apr_pct lite name fr2stringnoStable perps only: the annual rate for retail longs at this charge, in percent a year ('-5.5' = retail longs paid 5.5%; positive = retail receives, negative = retail pays).
funding_rate_short_apr_pct lite name fr3stringnoStable perps only: the annual rate for retail shorts at this charge, in percent a year ('-5' = retail shorts paid 5%; positive = retail receives, negative = retail pays).
funding_multiplier lite name fminteger (uint8)noStable perps only: days of funding the charge covered, 3 on the triple day, else 1.

ApiFundingRateRequest

Lookup the historical funding rate of a perpetual future.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
start_time lite name ststring (int64 unix ns)noStart time of funding rate in unix nanoseconds
end_time lite name etstring (int64 unix ns)noEnd time of funding rate in unix nanoseconds
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from
agg_type lite name atenum FundingRateAggregationTypenoAggregation method for historical funding rate observations.

ApiFundingRateResponse

FieldTypeRequiredSummary
result lite name robject ApiFundingRate[]yesThe funding rate result set for given interval
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiGetAlgoOrderRequest

Retrieve an algo order for the account. Either algo_order_id or client_order_id must be provided.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
algo_order_id lite name aostring (uint128)noFilter for algo_order_id
client_order_id lite name costring (uint64)noFilter for client_order_id

ApiGetAlgoOrderResponse

FieldTypeRequiredSummary
result lite name robject AlgoOrderyesThe algo order for the requested filter

ApiGetAllCollateralAssetInfoResponse

Response for the collateral asset info endpoint

FieldTypeRequiredSummary
assets lite name aobject ApiCollateralAssetInfo[]yesCollateral configuration for every collateral-eligible asset (CVR > 0)

ApiGetAllInitialLeverageRequest

The request to get the initial leverage of a sub-account

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to get the leverage for

ApiGetAllInitialLeverageResponse

The response to get the initial leverage of a sub-account

FieldTypeRequiredSummary
results lite name robject InitialLeverageResult[]yesThe initial leverage of the sub-account

ApiGetAllInstrumentsRequest

Fetch all instruments

FieldTypeRequiredSummary
is_active lite name iaboolnoFetch only active instruments
kinds lite name kenum Kind[]noThe kind filter to apply.

ApiGetAllInstrumentsResponse

FieldTypeRequiredSummary
result lite name robject InstrumentDisplay[]yesList of instruments

ApiGetAuthorizedBuildersResponse

Returns list of authorized builders and the associated fee

FieldTypeRequiredSummary
results lite name robject ApiAuthorizedBuilder[]yesThe list of authorized builders

ApiGetCurrencyRequest

Fetch all currencies

No fields.

ApiGetCurrencyResponse

The list of currencies

FieldTypeRequiredSummary
result lite name robject CurrencyDetail[]yesThe list of currencies

ApiGetFilteredInstrumentsRequest

Fetch a list of instruments based on the filters provided

FieldTypeRequiredSummary
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.
is_active lite name iaboolnoRequest for active instruments only
limit lite name linteger (uint32)noThe limit to query for.

ApiGetFilteredInstrumentsResponse

FieldTypeRequiredSummary
result lite name robject InstrumentDisplay[]yesThe instruments matching the request filter

ApiGetInstrumentRequest

Fetch a single instrument by supplying the asset or instrument name

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.

ApiGetInstrumentResponse

FieldTypeRequiredSummary
result lite name robject InstrumentDisplayyesThe instrument matching the request asset

ApiGetIsolatedPositionMarginLimitsRequest

The request to get the max addable and removable amount for an isolated position

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to get the margin limits for
instrument lite name istring (instrument name)yesThe isolated position asset to get the margin limits for

ApiGetIsolatedPositionMarginLimitsResponse

The response to get the max addable and removable amount for an isolated position request

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe isolated position asset
max_addable_amount lite name mastringyesThe max addable amount that can be added to the isolated position, in the quote asset.
max_removable_amount lite name mrstringyesThe max removable amount that can be removed from the isolated position, in the quote asset.

ApiGetMarginRulesRequest

API request payload to get margin rules for a particular instrument

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument to query margin rules for

ApiGetMarginRulesResponse

API response payload for margin rules of a particular instrument

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name
max_position_size lite name mpstringyesThe maximum position size.
risk_brackets lite name rbobject RiskBracket[]yesList of risk brackets defining margin requirements at different notional tiers

ApiGetOrderRequest

Retrieve the order for the account. Either order_id or client_order_id must be provided.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
order_id lite name oistring (uint128)noFilter for order_id
client_order_id lite name costring (uint64)noFilter for client_order_id

ApiGetOrderResponse

FieldTypeRequiredSummary
result lite name robject OrderyesThe order object for the requested filter

ApiGetSubAccountCollateralPreferenceRequest

Fetch the per-currency collateral enable/disable state for a Multi-Asset Mode sub-account.

Returns one entry per collateral-eligible currency (CVR > 0), including USDT, which is always enabled and cannot be toggled off.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to fetch collateral preferences for

ApiGetSubAccountCollateralPreferenceResponse

The response to get the sub-account collateral preference

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID the preferences apply to
preferences lite name pobject ApiCollateralPreferenceStatus[]yesOne entry per collateral-eligible currency (CVR configured), with its current effective state.

ApiGetSubAccountsResponse

Response payload containing all sub-accounts accessible within the given auth session

FieldTypeRequiredSummary
sub_account_ids lite name sastring (uint64)[]yesList of sub-account IDs accessible to the session

ApiGetSupportedAssetsResponse

Response for the supported assets endpoint

FieldTypeRequiredSummary
funding lite name fobject SupportedAsset[]yesAssets supported in funding wallets
spot lite name sobject SupportedAsset[]yesAssets supported in spot wallets
futures lite name f1object FuturesWalletAssets[]yesAssets supported in futures wallets, grouped by mode

ApiInterestPaymentHistoryRequest

Query for all hourly interest payments (multi-asset mode) charged to a single sub-account.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to request for
currency lite name cstring[]noThe currency filter to apply.
start_time lite name ststring (int64 unix ns)noThe start time to apply in unix nanoseconds.
end_time lite name etstring (int64 unix ns)noThe end time to apply in unix nanoseconds.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name c1stringnoThe cursor to indicate when to start the query from

ApiInterestPaymentHistoryResponse

FieldTypeRequiredSummary
result lite name robject InterestPayment[]yesThe interest payments matching the request
next lite name nstringyesThe cursor to indicate when to start the query from

ApiMiniTickerRequest

Retrieves a single mini ticker value for a single instrument. Please do not use this to repeatedly poll for data -- a websocket subscription is much more performant, and useful.

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.

ApiMiniTickerResponse

FieldTypeRequiredSummary
result lite name robject MiniTickeryesThe mini ticker matching the request asset

ApiOpenAlgoOrdersRequest

Retrieves all open algo orders for the account, including algo orders still pending on their trigger.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.
type lite name tenum AlgoOrderType[]noThe algo order type filter to apply.
trigger_filter lite name tfenum AlgoTriggerFilternoThe trigger filter to apply.

ApiOpenAlgoOrdersResponse

FieldTypeRequiredSummary
result lite name robject AlgoOrder[]yesThe open algo orders matching the request filter

ApiOpenOrdersRequest

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.

ApiOpenOrdersResponse

Retrieves all open orders for the account. This may not match new orders in flight.

FieldTypeRequiredSummary
result lite name robject Order[]yesThe Open Orders matching the request filter

ApiOrderHistoryRequest

Retrieves the order history for the account.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.
start_time lite name ststring (int64 unix ns)noThe start time to apply in nanoseconds.
end_time lite name etstring (int64 unix ns)noThe end time to apply in nanoseconds.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from

ApiOrderHistoryResponse

FieldTypeRequiredSummary
result lite name robject Order[]yesThe Open Orders matching the request filter
next lite name nstringyesThe cursor to indicate when to start the query from

ApiOrderbookLevelsRequest

Retrieves aggregated price depth for a single instrument, with a maximum depth of 10 levels. Do not use this to poll for data -- a websocket subscription is much more performant, and useful.

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
depth lite name dinteger (uint32)yesDepth of the order book to be retrieved (10, 50, 100, 500)

ApiOrderbookLevelsResponse

FieldTypeRequiredSummary
result lite name robject OrderbookLevelsyesThe orderbook levels objects matching the request asset

ApiPositionHistory

A position lifecycle record.

When status is PARTIALLY_CLOSED, the position is still open. Fields that describe the close event (close_time, position_close_mark_price) will be omitted, and leverage reflects the current value

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesSub-account ID which held this position
instrument lite name istring (instrument name)yesAsset this position was for
open_time lite name otstring (int64 unix ns)yesTimestamp of first trade that opened this lifecycle
status lite name senum PositionCloseStatusyes
is_long lite name ilboolyesTrue if the closed position was long
margin_type lite name mtenum PositionMarginTypeyes
close_time lite name ctstring (int64 unix ns)noTimestamp when the position lifecycle ended.
entry_price lite name epstringyesAverage entry price at 9 decimals
exit_price lite name ep1stringyesAverage exit price at 9 decimals
position_close_mark_price lite name pcstringnoMark price at close.
realized_pnl lite name rpstringyesCumulative realized PnL in quote currency
cumulative_fee lite name cfstringyesCumulative fees in quote currency
cumulative_realized_funding_payment lite name crstringyesCumulative realized funding payment in quote currency
closed_volume_base lite name cvstringyesSum of abs(reducingTradeSize) across all reducing trades
closed_volume_quote lite name cv1stringyesSum of abs(reducingTradeSize) * tradePrice across all reducing trades
max_open_interest_base lite name mostringyesMax absolute position size reached during lifecycle
max_open_interest_quote lite name mo1stringyesMax abs(size) * entryVWAP reached during lifecycle
cumulative_initial_margin lite name cistringyesSum of markPrice * abs(tradeSize) / leverage for position-increasing trades
max_initial_margin lite name mistringyesHigh-water mark of cumulativeInitialMargin during lifecycle
leverage lite name lstringyesLeverage at time of close.
unrealized_pnl lite name upstringnoThe unrealized PnL of the position, in the quote asset.
split_ratio_from lite name srinteger (int32)noStock split 'from' ratio (pre-split units); the position size scaled by to/from
split_ratio_to lite name sr1integer (int32)noStock split 'to' ratio (post-split units)
split_remaining_size lite name sr2stringnoSigned position size.

ApiPositionHistoryRequest

Query for position lifecycle records for a single sub-account.

Returns both fully closed positions and positions that are still open but have been partially reduced (PARTIALLY_CLOSED).

Results are ordered as follows: partially closed positions (most recently opened first), then fully closed positions (most recently closed first).

Partially closed positions are included only when all of the following are true:

  • start_time is unset (partially closed positions have no close time)
  • end_time is unset (partially closed positions have no close time)
  • cursor is unset (they are only returned on the initial page)
  • status is nil or includes PARTIALLY_CLOSED

Since these positions have no close time, query-row limits, as well as time-range and cursor-based pagination, do not apply to them.

Pagination works as follows:

  • We perform a reverse chronological lookup by position-close time, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to request for
start_time lite name ststring (int64 unix ns)noStart of the close-time range in unix nanoseconds.
end_time lite name etstring (int64 unix ns)noEnd of the close-time range in unix nanoseconds.
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the next page query from.
status lite name senum PositionCloseStatus[]noThe status filter to apply.
is_long lite name ilboolnoSet to true to filter for long positions.
is_short lite name isboolnoSet to true to filter for short positions.
margin_type lite name mtenum PositionMarginType[]noThe margin type filter to apply.

ApiPositionHistoryResponse

FieldTypeRequiredSummary
result lite name robject ApiPositionHistory[]yesPosition lifecycle records matching the request filters.
next lite name nstringyesThe cursor to indicate when to start the query from

ApiPositionsRequest

Query the positions of a sub-account

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to request for
kind lite name kenum Kind[]noThe kind filter to apply.
base lite name bstring[]noThe base filter to apply.
quote lite name qstring[]noThe quote filter to apply.

ApiPositionsResponse

FieldTypeRequiredSummary
result lite name robject Positions[]yesThe positions matching the request filter

ApiQueryVaultManagerInvestorHistoryRequest

Request for the manager to retrieve the vault investor history for their vault

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe unique identifier of the vault to filter by
only_own_investments lite name ooboolyesWhether to only return investments made by the manager
start_time lite name ststring (int64 unix ns)noOptional.
end_time lite name etstring (int64 unix ns)noOptional.

ApiQueryVaultManagerInvestorHistoryResponse

Response to retrieve the vault summary for a given vault

FieldTypeRequiredSummary
result lite name robject ApiVaultInvestorHistory[]yesThe list of vault investor history belong to the manager

ApiSetDeriskToMaintenanceMarginRatioRequest

The request to set the derisk margin to maintenance margin ratio of a sub-account

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to set the leverage for
ratio lite name rstringyesThe derisk margin to maintenance margin ratio of this sub-account
signature lite name sobject SignatureyesThe signature of this operation

ApiSetDeriskToMaintenanceMarginRatioResponse

The response to set the derisk margin to maintenance margin ratio of a sub-account

FieldTypeRequiredSummary
success lite name sboolyesWhether the derisk margin to maintenance margin ratio was set successfully

ApiSetInitialLeverageRequest

The request to set the initial leverage of a sub-account. DEPRECATED: This API is deprecated, use set_position_config API instead

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to set the leverage for
instrument lite name istring (instrument name)yesThe instrument to set the leverage for
leverage lite name lstringyesThe leverage to set for the sub-account

ApiSetInitialLeverageResponse

The response to set the initial leverage of a sub-account. DEPRECATED: This API is deprecated, use set_position_config API instead

FieldTypeRequiredSummary
success lite name sboolyesWhether the leverage was set successfully

ApiSetSubAccountPositionMarginConfigRequest

Sets the margin type and leverage configuration for a specific position (instrument) within a sub-account.

This configuration is applied per-instrument, allowing different margin settings for different positions.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to set the margin type and leverage for
instrument lite name istring (instrument name)yesThe instrument of the position to set the margin type and leverage for
margin_type lite name mtenum PositionMarginTypeyesThe margin type to set for the position
leverage lite name lstringyesThe leverage to set for the position
signature lite name sobject SignatureyesThe signature of this operation

ApiSetSubAccountPositionMarginConfigResponse

The response to set the margin type and leverage for a position

FieldTypeRequiredSummary
ack lite name aboolyesWhether the margin type and leverage was acked

ApiSfpTradingScheduleResponse

FieldTypeRequiredSummary
update_time lite name utstring (int64)yesSession data update timestamp in milliseconds
equity lite name eobject SfpMarketSchedulenoLegacy: use schedules instead.
equity_nyse lite name enobject SfpMarketSchedulenoLegacy: use schedules instead.
equity_nasdaq lite name en1object SfpMarketSchedulenoLegacy: use schedules instead.
commodity lite name cobject SfpMarketSchedulenoLegacy: use schedules instead.
commodity_cme lite name ccobject SfpMarketSchedulenoLegacy: use schedules instead.
schedules lite name sobject SfpTradingScheduleGroup[]yesTrading hours, as groups of stable funding perps that share them: one group per asset class, named after it, then one per instrument schedule, named by the exchange.

ApiSpotBorrowConfig

Per-currency borrow & collateral limits resolved at this account's tier (incl. per-account overrides).

FieldTypeRequiredSummary
currency lite name cstringyes
borrow_limit lite name blstringyesBL — max borrowable amount, denominated in the asset.
borrow_rate lite name brstringyesBR — annual borrow interest rate at this tier.
collateral_limit lite name clstringyesCL — max amount counted as collateral, denominated in the asset.

ApiSpotSubAccountSummaryRequest

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by

ApiSpotSubAccountSummaryResponse

The spot account summary, that reports the total equity and spot balances of a spot sub-account

FieldTypeRequiredSummary
result lite name robject SpotSubAccountyesThe spot sub-account summary

ApiSubAccountSummaryRequest

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by

ApiSubAccountSummaryResponse

Query for sub-account details, including base currency balance, all derivative positions, margin levels, and P&L.

FieldTypeRequiredSummary
result lite name robject SubAccountyesThe sub-account matching the request sub-account

ApiTickerRequest

Retrieves a single ticker value for a single instrument. Please do not use this to repeatedly poll for data -- a websocket subscription is much more performant, and useful.

Rate limit:

  • Perpetuals and spot swaps: the standard rate limit for this endpoint, per IP address.
  • Stable perps (_SFP instruments): a separate per-IP-address limit, shared across all stable perp instruments (one budget for all of them, not one per instrument). IP addresses on the gateway whitelist are exempt.

A request over the limit is rejected with error 1006 (HTTP 429). The X-RateLimit-Limit and X-RateLimit-Remaining response headers show the limit that applied to the request.

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.

ApiTickerResponse

FieldTypeRequiredSummary
result lite name robject TickeryesThe mini ticker matching the request asset

ApiTradeHistoryRequest

Perform historical lookup of public trades in any given instrument. This endpoint offers public trading data, use the Trading APIs instead to query for your personalized trade tape. Only data from the last three months will be retained.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records. If more data is requested, the response will contain a next cursor for you to query the next page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
start_time lite name ststring (int64 unix ns)noThe start time to apply in nanoseconds.
end_time lite name etstring (int64 unix ns)noThe end time to apply in nanoseconds.
limit lite name linteger (uint32)noThe limit to query for.
cursor lite name cstringnoThe cursor to indicate when to start the query from

ApiTradeHistoryResponse

FieldTypeRequiredSummary
result lite name robject Trade[]yesThe public trades matching the request asset
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiTradeRequest

Retrieves up to 1000 of the most recent trades in any given instrument. Do not use this to poll for data -- a websocket subscription is much more performant, and useful. This endpoint offers public trading data, use the Trading APIs instead to query for your personalized trade tape.

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
limit lite name linteger (uint32)yesThe limit to query for.

ApiTradeResponse

FieldTypeRequiredSummary
result lite name robject Trade[]yesThe public trades matching the request asset

ApiTransferAck

FieldTypeRequiredSummary
ack lite name aboolyesTrue when the exchange has processed the transfer.
tx_id lite name tistring (uint64)yesThe transaction ID of the transfer.

ApiTransferHistoryRequest

The request to get the historical transfers of an account The history is returned in reverse chronological order

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records (default 500, max 1000). If more data matches, the response returns a non-empty next cursor. To read the full result set you MUST re-issue the request with cursor set to that value and keep looping until next is empty.
  • A single call silently truncates at limit and returns no error. Callers that read only the first page (or omit limit, which just applies the 500 default) will undercount whenever the account has more than limit matching records — e.g. summing deposits/transfers for a balance or PnL calculation must drain the cursor, not read one page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
currency lite name cstring[]yesThe token currency to query for, if nil or empty, return all transfers.
start_time lite name ststring (int64 unix ns)noThe start time to query for in unix nanoseconds
end_time lite name etstring (int64 unix ns)noThe end time to query for in unix nanoseconds
limit lite name linteger (uint32)noThe page size for a single response.
cursor lite name c1stringnoThe cursor to indicate when to start the next query from
tx_id lite name tistring (uint64)noThe transaction ID to query for
main_account_id lite name mastring (0x address)noMain account ID being queried.
transfer_types lite name ttenum TransferType[]noThe transfer type to filters for.

ApiTransferHistoryResponse

FieldTypeRequiredSummary
result lite name robject TransferHistory[]yesThe transfer history matching the request account
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiTransferRequest

Transfer funds:

  • between sub-accounts of your main account
  • between your main account and its sub-accounts
  • to other main accounts you have allowlisted
FieldTypeRequiredSummary
from_account_id lite name fastring (0x address)yesThe main account to transfer from
from_sub_account_id lite name fsstring (uint64)yesThe sub-account to transfer from (0 if transferring from main account)
to_account_id lite name tastring (0x address)yesThe main account to deposit into
to_sub_account_id lite name tsstring (uint64)yesThe sub-account to transfer to (0 if transferring to main account)
currency lite name cstringyesThe token currency to transfer
num_tokens lite name ntstringyesThe number of tokens to transfer.
signature lite name sobject SignatureyesThe signature of the transfer
transfer_type lite name ttenum TransferTypeyesThe type of transfer
transfer_metadata lite name tmstringnoThe metadata of the transfer
from_wallet_type lite name fwenum WalletTypenoThe wallet type of the from account or sub-account
to_wallet_type lite name twenum WalletTypenoThe wallet type of the to account or sub-account

ApiTransferResponse

Used to acknowledge a transfer request outcome

FieldTypeRequiredSummary
result lite name robject ApiTransferAckyesThe Transfer response object

ApiVaultBurnTokensRequest

Request payload for burning tokens in a vault.

This API allows a client to burn a specified amount of tokens in a particular vault.

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe unique identifier of the vault to burn tokens from.
currency lite name cstringyesThe currency used for the burn.
num_tokens lite name ntstringyesThe number of tokens to burn.
signature lite name sobject SignatureyesThe digital signature from the investing account.

ApiVaultConversionRateRequest

Request payload for the highest exchange rate the gateway currently accepts for a vault investment or redemption that converts fromCurrency into toCurrency.

FieldTypeRequiredSummary
from_currency lite name fcstringyesThe currency converted from.
to_currency lite name tcstringyesThe currency converted into.
from_num_tokens lite name fnstringnoOptional amount of fromCurrency.

ApiVaultConversionRateResponse

Response payload with the highest exchange rate the gateway currently accepts for the currency pair. Sign it as exchangeRate: any rate at or below it passes while the quote is valid.

FieldTypeRequiredSummary
from_currency lite name fcstringyesThe currency converted from.
to_currency lite name tcstringyesThe currency converted into.
exchange_rate lite name erstringyesThe highest rate accepted now, toCurrency per unit of fromCurrency, floored to 9 decimal places.
spot_rate lite name srstringyesThe current spot rate from the latest oracle prices, 9 decimal places.
fee_rate_centi_beeps lite name frinteger (uint32)yesThe conversion fee configured for the pair, in centibeeps (1 = 0.0001%).
window_seconds lite name wsinteger (uint32)yesThe length of the window the rate is the highest of, in seconds.
valid_until lite name vustring (int64 unix ns)yesWhen the price sample the rate comes from leaves the window, in unix nanoseconds.
event_time lite name etstring (int64 unix ns)yesThe time of the newest oracle price the rate uses, in unix nanoseconds.
from_num_tokens lite name fnstringnoThe amount of fromCurrency the request named, if any.
to_num_tokens lite name tnstringnoWhat fromNumTokens converts into at exchangeRate, floored to toCurrency decimals.

ApiVaultInvestV2Request

Request payload for investing in a vault from the funding account or from a sub-account, converting the source currency into the vault's investment currency when they differ.

The investor signs VaultInvestV3 over both currencies, the amount and the exchange rate. Without conversion the rate is exactly 1. With conversion it must be at most the rate /vault_conversion_rate returns.

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe unique identifier of the vault to invest in.
from_sub_account_id lite name fsstring (uint64)yesThe sub-account to invest from.
from_wallet_type lite name fwenum WalletTypeyesFUNDING when fromSubAccountID is 0, otherwise SPOT or FUTURES.
from_currency lite name fcstringyesThe currency debited from the source wallet.
from_num_tokens lite name fnstringyesThe amount debited from the source wallet, in fromCurrency.
to_currency lite name tcstringyesThe currency the vault receives.
exchange_rate lite name erstringyesThe signed rate, toCurrency per unit of fromCurrency, up to 9 decimal places.
signature lite name sobject SignatureyesThe VaultInvestV3 signature of the investing account.

ApiVaultInvestV2Response

Response payload for a vault investment.

FieldTypeRequiredSummary
ack lite name aboolyesWhether the investment was accepted.
tx_id lite name tistring (uint64)yesThe transaction ID of the investment once risk confirmed it.
enqueued lite name eboolnoCross-exchange vaults only: true when the vault was locked and the investment was queued.

ApiVaultInvestorHistory

The vault investor history returned by the service to client

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
off_chain_account_id lite name ocstringyesThe off chain account id of the investor, only visible to the manager
vault_id lite name vistring (uint64)yesThe unique identifier of the vault.
type lite name tenum VaultInvestorActionyesThe type of transaction that occurred.
price lite name pstringyesThe price of the vault LP tokens at the time of the event.
size lite name sstringyesThe amount of Vault LP tokens invested or redeemed.
realized_pnl lite name rpstringyesThe realized PnL of the vault.
performance_fee lite name pfstringyesThe performance fee of the vault.
token_currency lite name tcstringyesThe vault leg's currency: the vault's investment currency, which the vault received or paid.
num_tokens lite name ntstringyesThe vault leg: the tokens of tokenCurrency the vault received on an invest or paid on a redemption.
from_currency lite name fcstringyesThe currency that left its owner: on an invest the investor's source currency (the user leg), on a redemption tokenCurrency.
from_num_tokens lite name fnstringyesThe tokens of fromCurrency that left their owner: on an invest what the investor paid (the user leg), on a redemption numTokens.
to_currency lite name tc1stringyesThe currency that reached its owner: on a redemption the investor's payout currency (the user leg), on an invest tokenCurrency.
to_num_tokens lite name tnstringyesThe tokens of toCurrency that reached their owner: on a redemption what the investor received (the user leg), on an invest numTokens.
conversion_fee_num_tokens lite name cfstringyesThe conversion fee in toCurrency: the difference between the two legs of a converting invest or redemption.
from_sub_account_id lite name fsstring (uint64)yesThe trading sub-account an invest was paid from.
from_wallet_type lite name fwenum WalletTypeyesThe wallet an invest was paid from: FUNDING for the funding account, otherwise SPOT or FUTURES.
request_time lite name rtstring (int64 unix ns)yesOn a redemption, when its redemption request was made, in unix nanoseconds.

ApiVaultInvestorSummaryRequest

Request payload for fetching the summary of a vault investor.

This API allows a client to retrieve the summary of investments in a specific vault.

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)noThe unique identifier of the vault to fetch the summary for.

ApiVaultInvestorSummaryResponse

Response payload for the summary of a vault investor.

This API provides the summary of investments in a specific vault.

FieldTypeRequiredSummary
vault_investor_summary lite name viobject VaultInvestorSummary[]yesThe summary of investments in the vault.

ApiVaultRedeemCancelRequest

Request payload for canceling a vault redemption.

This API allows a client to cancel a previously initiated redemption from a vault.

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe unique identifier of the vault to cancel the redemption from.

ApiVaultRedeemV2Request

Request payload for redeeming from a vault, paid in the vault's investment currency or converted into another currency.

The investor signs VaultRedeemV3 over both currencies, the number of shares and the exchange rate. The request keeps the signed rate and is paid at it, at the share price of the payout.

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe unique identifier of the vault to redeem from.
from_currency lite name fcstringyesThe currency the vault pays.
to_currency lite name tcstringyesThe currency paid into the funding account: the investment currency, or another currency converted at exchangeRate.
num_tokens lite name ntstringyesThe number of shares to redeem.
exchange_rate lite name erstringyesThe signed rate, toCurrency per unit of fromCurrency, up to 9 decimal places.
signature lite name sobject SignatureyesThe VaultRedeemV3 signature of the redeeming account.

ApiVaultViewRedemptionQueueRequest

Request payload for a vault manager to view the redemption queue for their vault.

Fetches the redemption queue for a vault, ordered by descending priority.

Urgent redemption requests, defined as having been pending >90% of the manager-defined maximum redemption period, have top priority (following insertion order).

Non-urgent redemption requests are otherwise prioritized by insertion order, unless they are >5x the size of the smallest redemption request.

E.g., If FIFO ordering (all non-urgent) is 1k -> 50k -> 100k -> 20k -> 10k -> 25k, then priority ordering is 1k -> 10k -> 50k -> 20k -> 100k -> 25k.

Only displays redemption requests that are eligible for automated redemption, i.e., have been pending for the manager-defined minimum redemption period.

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe unique identifier of the vault to fetch the redemption queue for.

ApiVaultViewRedemptionQueueResponse

Response payload for a vault manager to view the redemption queue for their vault, ordered by descending priority.

Also includes counters for total redemption sizes pending as well as urgent (refer to API integration guide for more detail on redemption request classifications).

FieldTypeRequiredSummary
redemption_queue lite name rqobject VaultRedemptionRequest[]yesOutstanding vault redemption requests, ordered by descending priority.
pending_redemption_token_count lite name prstringyesNumber of shares eligible for automated redemption (held in queue for at least the minimum redemption period).
urgent_redemption_token_count lite name urstringyesNumber of shares nearing the maximum redemption period (>= 90% of maximum redemption period).
auto_redeemable_balance lite name arstringyesAmount available for automated redemption request servicing (in USD).
share_price lite name spstringyesCurrent share price (in USD).
pre_min lite name pmobject PreMinRedemptionsyesDedicated section for requests yet to wait at least the minimum redemption period.

ApiWithdrawalFeeRequest

Query the flat withdrawal fee for a native (L2 -> L1) bridge withdrawal, expressed in the requested currency

FieldTypeRequiredSummary
token_currency lite name tcinteger (uint16)yesCurrency ID to express the withdrawal fee in (e.g.

ApiWithdrawalFeeResponse

The native bridge withdrawal fee, in the requested currency

FieldTypeRequiredSummary
withdrawal_fee lite name wfstringyesThe withdrawal fee.
token_currency lite name tcstringyesThe currency the withdrawal fee is expressed in.

ApiWithdrawalHistoryRequest

The request to get the historical withdrawals of an account The history is returned in reverse chronological order Both finalized and pending withdrawals are returned, and pending withdrawals are indicated by an empty l1Hash field.

Pagination works as follows:

  • We perform a reverse chronological lookup, starting from end_time. If end_time is not set, we start from the most recent data.
  • The lookup is limited to limit records (default 500, max 1000). If more data matches, the response returns a non-empty next cursor. To read the full result set you MUST re-issue the request with cursor set to that value and keep looping until next is empty.
  • A single call silently truncates at limit and returns no error. Callers that read only the first page (or omit limit, which just applies the 500 default) will undercount whenever the account has more than limit matching records — e.g. summing deposits/transfers for a balance or PnL calculation must drain the cursor, not read one page.
  • If a cursor is provided, it will be used to fetch results from that point onwards.
  • Pagination will continue until the start_time is reached. If start_time is not set, pagination will continue as far back as our data retention policy allows.
FieldTypeRequiredSummary
currency lite name cstring[]yesThe token currency to query for, if nil or empty, return all withdrawals.
start_time lite name ststring (int64 unix ns)noThe start time to query for in unix nanoseconds
end_time lite name etstring (int64 unix ns)noThe end time to query for in unix nanoseconds
limit lite name linteger (uint32)noThe page size for a single response.
cursor lite name c1stringnoThe cursor to indicate when to start the next query from
main_account_id lite name mastring (0x address)noMain account ID being queried.

ApiWithdrawalHistoryResponse

FieldTypeRequiredSummary
result lite name robject WithdrawalHistory[]yesThe withdrawals history matching the request account
next lite name nstringnoThe cursor to indicate when to start the next query from

ApiWithdrawalRequest

Withdraw funds from Grvt to an Ethereum address. Bridging to Ethereum takes time; the Grvt web app shows its progress. Unless you withdraw your whole balance there is a minimum amount (currently about 25 USDT), and a fee pays for the Ethereum transaction. Your funds stay in self-custody throughout: Grvt never takes control of them.

FieldTypeRequiredSummary
from_account_id lite name fastring (0x address)yesThe main account to withdraw from
to_eth_address lite name testring (0x address)yesThe Ethereum wallet to withdraw into
currency lite name cstringyesThe token currency to withdraw
num_tokens lite name ntstringyesThe number of tokens to withdraw.
signature lite name sobject SignatureyesThe signature of the withdrawal

BuilderFillHistory

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
off_chain_account_id lite name ocstringyesThe off chain account id
instrument lite name istring (instrument name)yesThe instrument being represented
is_buyer lite name ibboolyesThe side that the sub-account took on the trade
is_taker lite name itboolyesThe role that the sub-account took on the trade
size lite name sstringyesThe number of assets being traded.
price lite name pstringyesThe traded price.
mark_price lite name mpstringyesThe mark price of the instrument at point of trade.
index_price lite name ipstringyesThe index price of the instrument at point of trade.
fee_rate lite name frstringyesBuilder fee percentage charged for this order.
fee lite name fstring (int64)yesThe builder fee paid on the trade, in the quote asset.

CancelStatusFeed

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID that requested the cancellation
client_order_id lite name costring (uint64)yesA unique identifier for the active order within a sub-account, specified by the client
order_id lite name oistring (uint128)yesThe exchange's 128-bit id for the order.
reason lite name renum OrderRejectReasonyesThe user-provided reason for cancelling the order
update_time lite name utstring (int64 unix ns)noSet by the server.
cancel_status lite name csenum CancelStatusyesStatus of the cancellation attempt

Candlestick

FieldTypeRequiredSummary
open_time lite name otstring (int64 unix ns)yesOpen time of kline bar in unix nanoseconds
close_time lite name ctstring (int64 unix ns)yesClose time of kline bar in unix nanosecond
open lite name ostringyesThe open price, expressed in underlying currency resolution units
close lite name cstringyesThe close price, expressed in underlying currency resolution units
high lite name hstringyesThe high price, expressed in underlying currency resolution units
low lite name lstringyesThe low price, expressed in underlying currency resolution units
volume_b lite name vbstringyesThe underlying volume transacted.
volume_q lite name vqstringyesThe quote volume transacted, in the quote asset.
trades lite name tinteger (uint32)yesThe number of trades transacted
instrument lite name istring (instrument name)yesThe instrument name, e.g.

ChaseAlgoOrderMetadata

Contains the parameters of a chase algo order.

  • chase_price_mode defines how the price is derived at each re-price.
  • max_distance caps how far the chase price may move away from the reference price. Once the cap is reached, the order is held at the boundary instead of chasing further.
FieldTypeRequiredSummary
chase_price_mode lite name cpenum ChasePriceModeyesHow the chase price is determined at each re-price tick
max_distance lite name mdstringyesThe maximum distance the chase price can move away from the reference price, as an absolute price distance in quote currency units.
max_distance_bps lite name md1integer (uint32)noThe max distance as a percentage in basis points (1 bp = 0.01%, 100% = 10000), as the user entered it.

ChaseOrderState

Contains the runtime state specific to a chase algo order

FieldTypeRequiredSummary
reprice_count lite name rcinteger (uint32)yesThe number of successful re-prices of this algo order's sub-orders

ClientTier

FieldTypeRequiredSummary
tier lite name tinteger (uint8)yes
futures_taker_fee lite name ftinteger (int32)yes
futures_maker_fee lite name fminteger (int32)yes
options_taker_fee lite name otinteger (int32)yes
options_maker_fee lite name ominteger (int32)yes
spot_taker_fee lite name stinteger (int32)yes
spot_maker_fee lite name sminteger (int32)yes
spot_borrow_configs lite name sbobject ApiSpotBorrowConfig[]yesPer-currency borrow & collateral limits for this tier.

CurrencyDetail

FieldTypeRequiredSummary
id lite name iinteger (uint16)yesThe integer value of the currency
symbol lite name sstringyesThe name of the currency
balance_decimals lite name bdinteger (int8)yesThe balance decimals of the currency
quantity_multiplier lite name qmstring (uint64)yesThe quantity multiplier of the currency

Deposit

FieldTypeRequiredSummary
tx_hash lite name thstring (uint256)yesThe hash of the bridgemint event producing the deposit
to_account_id lite name tastring (0x address)yesThe account to deposit into
currency lite name cstringyesThe token currency to deposit
num_tokens lite name ntstringyesThe number of tokens to deposit

DepositHistory

FieldTypeRequiredSummary
l_1_hash lite name l1string (uint256)yesThe L1 txHash of the deposit
l_2_hash lite name l2string (uint256)yesThe L2 txHash of the deposit
to_account_id lite name tastring (0x address)yesThe account to deposit into
currency lite name cstringyesThe token currency to deposit
num_tokens lite name ntstringyesThe number of tokens to deposit
initiated_time lite name itstring (int64 unix ns)yesThe timestamp when the deposit was initiated on L1 in unix nanoseconds
confirmed_time lite name ctstring (int64 unix ns)yesThe timestamp when the deposit was confirmed on L2 in unix nanoseconds, empty if the deposit is pending.
from_address lite name fastring (0x address)yesThe address of the sender

EdgeApiKeyLoginRequest

FieldTypeRequiredSummary
api_keystringyesThe API key created in the Grvt UI.

EdgeLoginError

FieldTypeRequiredSummary
statusstringyes"failure"
errorstringyesHuman-readable reason.

EdgeLoginResponse

FieldTypeRequiredSummary
statusstringyes"success" on success.
locationstringyesAlways empty for API callers.
funding_account_addressstring (0x address)yesFunding (main) account the key belongs to.
sub_account_iduint64noSet only when the key was created for a trading (sub) account.

EdgeWalletLoginRequest

FieldTypeRequiredSummary
addressstring (0x address)yesWallet address being logged in.
signatureobject SignatureyesWalletLogin EIP-712 signature by that wallet.

EdgeWalletLoginResponse

FieldTypeRequiredSummary
funding_account_addressstring (0x address)yesFunding (main) account linked to the wallet.

EmptyRequest

Used for requests that do not require any parameters

No fields.

Error

An error response

FieldTypeRequiredSummary
code lite name cinteger (uint16)yesThe error code for the request
message lite name mstringyesThe error message for the request

Fill

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
sub_account_id lite name sastring (uint64)yesThe sub-account ID that participated in the trade
instrument lite name istring (instrument name)yesThe instrument being represented
is_buyer lite name ibboolyesTrue if you bought in this trade, false if you sold.
is_taker lite name itboolyesTrue if your order took liquidity (taker), false if it was resting on the book (maker).
size lite name sstringyesThe number of assets being traded.
price lite name pstringyesThe traded price.
mark_price lite name mpstringnoThe mark price of the instrument at point of trade.
index_price lite name ipstringyesThe index price of the instrument at point of trade.
interest_rate lite name irstringyesThe interest rate of the underlying when the trade happened, in percent ("0.01" = 0.01%).
forward_price lite name fpstringno[Options] The forward price of the option at point of trade.
realized_pnl lite name rpstringyesThe realized PnL of the trade, in the quote asset.
fee lite name fstringyesThe fees paid on the trade, in the quote asset.
fee_rate lite name frstringyesThe fee rate charged on this fill, in percent ("0.02" = 0.02%).
trade_id lite name tistringyesA trade identifier, globally unique, and monotonically increasing (not by 1).
order_id lite name oistring (uint128)yesThe exchange's id of your order that filled.
venue lite name venum VenueyesThe venue where the trade occurred
is_liquidation lite name ilboolyesIf the trade was a liquidation
client_order_id lite name costring (uint64)yesThe client_order_id of your order that filled.
signer lite name s1string (uint256)yesThe address of the wallet that signed the order.
broker lite name benum BrokerTagnoSpecifies the broker who brokered the order
is_rpi lite name ir1boolyesIf the trade is a RPI trade
builder lite name b1string (0x address)yesThe main account id of the builder the order went through, if any.
builder_fee_rate lite name bfstringyesThe builder's fee rate for this order, in percent ("0.001" = 0.001%), as set in the order's builder_fee.
builder_fee lite name bf1stringyesThe builder fee paid on this trade, in the quote asset.
fee_currency lite name fcstringyesThe currency of the fee paid on the trade
repayment_scenario lite name rsenum RepaymentScenarioyesSet when this fill repaid a multi-asset-mode USDT loan, and says how; UNSPECIFIED for ordinary trades.
rfq_id lite name ristring (uint128)noThe RFQ this fill was cleared against.
counterparty_type lite name ctenum RfqCounterpartyTypenoThe type of counterparty this fill was matched against (maker quote / resting order / forced-exit netting).

FundingAccountSummary

The funding account summary, that reports the total equity and spot balances of a funding (main) account

FieldTypeRequiredSummary
main_account_id lite name mastring (0x address)yesThe main account ID of the account to which the summary belongs
total_equity lite name testringyesTotal equity of the main account, denominated in USD
spot_balances lite name sbobject SpotBalance[]yesThe list of spot assets owned by this main account, and their balances
vault_investments lite name viobject VaultInvestment[]yesThe list of vault investments held by this main account
total_cash_balance lite name tcstringyesTotal balance of cash (stablecoin) currencies, denominated in USD
total_spot_asset_balance lite name tsstringyesTotal balance of non-cash spot currencies, denominated in USD

FundingPayment

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
sub_account_id lite name sastring (uint64)yesThe sub-account ID that made the funding payment
instrument lite name istring (instrument name)yesThe instrument being funded (perpetual or stable perp)
currency lite name cstringyesThe currency of the funding payment
amount lite name astringyesThe amount of the funding payment.
tx_id lite name tistring (uint64)yesThe transaction ID of the funding payment.

FuturesWalletAssets

Supported assets for a futures wallet mode

FieldTypeRequiredSummary
mode lite name menum SubAccountModeyesThe sub-account mode
supported_assets lite name saobject SupportedAsset[]yesAssets supported under this futures mode

InitialLeverageResult

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument to get the leverage for
leverage lite name lstringyesThe initial leverage of this instrument
min_leverage lite name mlstringyesThe min leverage user can set for this instrument
max_leverage lite name ml1stringyesThe max leverage user can set for this instrument
margin_type lite name mtenum PositionMarginTypeyesThe margin type of this instrument

InstrumentDisplay

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
instrument_hash lite name ihstring (uint256)yesThe asset ID used for instrument signing.
base lite name bstringyesThe base currency
quote lite name qstringyesThe quote currency
kind lite name kenum KindyesThe kind of instrument
venues lite name venum Venue[]yesVenues that this instrument can be traded at
settlement_period lite name sp1enum InstrumentSettlementPeriodnoThe settlement period of the instrument
base_decimals lite name bdinteger (int8)yesThe smallest denomination of the base asset supported by Grvt (+3 represents 0.001, -3 represents 1000, 0 represents 1)
quote_decimals lite name qdinteger (int8)yesThe smallest denomination of the quote asset supported by Grvt (+3 represents 0.001, -3 represents 1000, 0 represents 1)
tick_size lite name tsstringyesThe size of a single tick.
min_size lite name msstringyesThe minimum contract size.
create_time lite name ctstring (int64 unix ns)yesCreation time in unix nanoseconds
max_position_size lite name mpstringnoThe maximum position size.
funding_interval_hours lite name fiinteger (uint8)noDefines the funding interval to be applied.
adjusted_funding_rate_cap lite name afstringnoFunding rate cap over the defined intervalHours.
adjusted_funding_rate_floor lite name af1stringnoFunding rate floor over the defined intervalHours.
min_notional lite name mnstringyesThe minimum order notional value, in the quote asset.
asset_class lite name acenum AssetClassnoThe asset class of the underlying the instrument tracks
status lite name senum InstrumentStatusnoThe current lifecycle/trading status of the instrument
guaranteed_exit_band lite name gestringnoThe guaranteed exit band, expressed in percentage points
spread_penalty_tolerance lite name sp2stringnoThe spread penalty tolerance, expressed in percentage points
funding_cap_adjustment_time lite name fcstring (int64 unix ns)noTimestamp in unix nanoseconds at which the funding cap adjustment applies
funding_cap_adjustment_value lite name fc1stringnoThe funding cap adjustment value, expressed as a decimal daily rate
triple_swap_day lite name ts2enum DayOfWeeknoStable perps only: the weekday whose daily funding charge covers 3 days (the weekend)

InterestPayment

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the interest charge was computed in unix nanoseconds
sub_account_id lite name sastring (uint64)yesThe sub-account being charged interest
currency lite name cstringyesThe currency the interest is charged in
amount lite name astringyesThe interest charged for this hour.
charge_time lite name ctstring (int64 unix ns)yesThe last interest charge time accumulated to this amount (HH:05 tick).
borrowed_amount lite name bastringyesThe borrowed principal in this currency that the hourly interest was computed on.

JSONRPCRequest

All Websocket JSON RPC Requests are housed in this wrapper. You may specify a stream, and a list of feeds to subscribe to. If a request_id is supplied in this JSON RPC request, it will be propagated back to any relevant JSON RPC responses (including error). When subscribing to the same primary selector again, the previous secondary selector will be replaced. See Overview page for more details.

FieldTypeRequiredSummary
jsonrpc lite name jstringyesThe JSON RPC version to use for the request
method lite name mstringyesThe method to use for the request (eg: subscribe / unsubscribe / v1/instrument )
params lite name panyyesThe parameters for the request
id lite name iinteger (uint32)noOptional Field which is used to match the response by the client.

JSONRPCResponse

All Websocket JSON RPC Responses are housed in this wrapper. It returns a confirmation of the JSON RPC subscribe request. If a request_id is supplied in the JSON RPC request, it will be propagated back in this JSON RPC response.

FieldTypeRequiredSummary
jsonrpc lite name jstringyesThe JSON RPC version to use for the request
result lite name ranynoThe result for the request
error lite name eobject ErrornoThe error for the request
id lite name iinteger (uint32)noOptional Field which is used to match the response by the client.
method lite name mstringyesThe method used in the request for this response (eg: subscribe / unsubscribe / v1/instrument )

MiniTicker

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)noTime at which the event was emitted in unix nanoseconds
instrument lite name istring (instrument name)noThe instrument name, e.g.
mark_price lite name mpstringnoThe mark price of the instrument.
index_price lite name ipstringnoThe index price of the instrument.
last_price lite name lpstringnoThe last traded price of the instrument (also close price).
last_size lite name lsstringnoThe number of assets traded in the last trade.
mid_price lite name mp1stringnoThe mid price of the instrument.
best_bid_price lite name bbstringnoThe best bid price of the instrument.
best_bid_size lite name bb1stringnoThe number of assets offered on the best bid price of the instrument.
best_ask_price lite name bastringnoThe best ask price of the instrument.
best_ask_size lite name ba1stringnoThe number of assets offered on the best ask price of the instrument.

Order

An order: what to trade (its legs), how long it stays open, and the signature that authorises it. The same object is used for order book, RFQ and liquidation orders.

Every field except order_id, metadata and state is part of the signed message and enforced on chain, so Grvt cannot change it.

FieldTypeRequiredSummary
order_id lite name oistring (uint128)noSet by the server.
sub_account_id lite name sastring (uint64)yesThe sub-account placing the order.
is_market lite name imboolnoTrue for a market order.
time_in_force lite name tienum TimeInForceyesHow long the order stays open and whether it may fill partly.
post_only lite name poboolnoIf true, the order must rest on the book as a maker order: if it would match at once, it is rejected (FAIL_POST_ONLY).
reduce_only lite name roboolnoIf true, the order may only reduce your position; the part that would increase it is cancelled.
legs lite name lobject OrderLeg[]yesWhat to trade.
signature lite name sobject SignatureyesThe EIP-712 signature that authorises this order.
metadata lite name mobject OrderMetadatayesUnsigned data the exchange uses but the chain never sees, such as your client_order_id.
state lite name s1object OrderStatenoSet by the server.
builder lite name bstring (0x address)noThe main account id of a builder (a third party that routes your order and charges a fee on it).
builder_fee lite name bfstringnoThe builder's fee for this order, as a percentage: "0.001" means 0.001%.

OrderLeg

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument to trade, e.g.
size lite name sstringyesHow much to trade, in the base asset.
limit_price lite name lpstringnoThe worst price you accept, in the quote currency per unit.
is_buying_asset lite name ibboolyesTrue to buy, false to sell.

OrderMetadata

Fields for the exchange's own bookkeeping. They are never signed and never sent on chain.

FieldTypeRequiredSummary
client_order_id lite name costring (uint64)yesYour own id for the order, to find or cancel it later.
create_time lite name ctstring (int64 unix ns)noSet by the server.
trigger lite name tobject TriggerOrderMetadatanoTrigger fields are used to support any type of trigger order such as TP/SL
broker lite name benum BrokerTagnoSpecifies the broker who brokered the order
is_ecn lite name ieboolnoMarks an ECN order, eligible for market maker last look.
slippage_bps lite name sbinteger (uint16)noMaximum slippage from the mark price for an IMMEDIATE_OR_CANCEL limit order, in basis points (800 = 8%).
rfq_id lite name ristring (uint128)noBinds this order to an RFQ (see ApiCreateRfqRequest and the v1.rfq / v1.quote streams).
is_private lite name ip1boolnoMaker quotes only.
algo_order_id lite name aostring (uint128)noThe algo order that placed this order as a sub-order; zero for an ordinary order.

OrderState

FieldTypeRequiredSummary
status lite name senum OrderStatusyesThe order's status.
reject_reason lite name rrenum OrderRejectReasonyesWhy the order was rejected or cancelled.
book_size lite name bsstring[]yesThe size still open to fill, per leg (same order as legs), in the base asset.
traded_size lite name tsstring[]yesThe size filled so far, per leg (same order as legs), in the base asset.
update_time lite name utstring (int64 unix ns)yesWhen the order last changed, in unix nanoseconds.
avg_fill_price lite name afstring[]yesThe average price of the fills so far, per leg (same order as legs); 0 before the first fill.

OrderStateFeed

FieldTypeRequiredSummary
order_id lite name oistring (uint128)yesThe exchange's 128-bit id for the order.
client_order_id lite name costring (uint64)yesA unique identifier for the active order within a sub-account, specified by the client
order_state lite name osobject OrderStateyesThe order state object being created or updated

OrderbookLevel

FieldTypeRequiredSummary
price lite name pstringyesThe price of the level.
size lite name sstringyesThe number of assets offered.
num_orders lite name nointeger (uint32)yesThe number of open orders at this level

OrderbookLevels

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
instrument lite name istring (instrument name)yesThe instrument name, e.g.
bids lite name bobject OrderbookLevel[]yesThe list of best bids up till query depth
asks lite name aobject OrderbookLevel[]yesThe list of best asks up till query depth

Positions

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
sub_account_id lite name sastring (uint64)yesThe sub-account ID that participated in the trade
instrument lite name istring (instrument name)yesThe instrument being represented
size lite name sstringyesThe size of the position.
notional lite name nstringyesThe notional value of the position, negative for short assets, in the quote asset.
entry_price lite name epstringyesThe entry price of the position.
exit_price lite name ep1stringyesThe exit price of the position.
mark_price lite name mpstringyesThe mark price of the position.
unrealized_pnl lite name upstringyesThe unrealized PnL of the position, in the quote asset.
realized_pnl lite name rpstringyesThe realized PnL of the position, in the quote asset.
total_pnl lite name tpstringyesThe total PnL of the position, in the quote asset.
roi lite name rstringyesThe ROI of the position, expressed as a percentage
quote_index_price lite name qistringyesThe index price of the quote currency.
est_liquidation_price lite name elstringyesThe estimated liquidation price
leverage lite name lstringyesThe current leverage value for this position
cumulative_fee lite name cfstringyesThe cumulative fee paid on the position, in the quote asset.
cumulative_realized_funding_payment lite name crstringyesThe cumulative realized funding payment of the position, in the quote asset.
margin_type lite name mtenum PositionMarginTypeyesThe margin type of the position
isolated_balance lite name ibstringno[IsolatedOnly] The wallet balance reserved for this isolated margin position, in the quote asset.
isolated_im lite name iistringno[IsolatedOnly] The initial margin of the isolated margin position, in the quote asset.
isolated_mm lite name imstringno[IsolatedOnly] The maintenance margin of the isolated margin position, in the quote asset.

PreMinRedemptions

Vault redemption queue section hidden from main view. All requests here have yet to age past the vault's minimum redemption period.

FieldTypeRequiredSummary
requests lite name robject VaultRedemptionRequest[]yesPre-minimum-age redemption requests, ordered by age (first element is the oldest request that is pre-minimum-age).
token_count lite name tcstringyesNumber of shares in the pre-minimum-age section of the vault's redemption queue.

Rfq

A Request for Quote (RFQ) lets a taker solicit private quotes on a single instrument from makers.

  • Single instrument

  • Each RFQ targets one instrument (kind = STABLE_PERP) for a single requested size.

  • The taker may disclose a direction via rfq.side, or omit it to request a two-way (buy and sell) quote.

  • Maker solicitation

  • On submission, Grvt broadcasts the RFQ to makers over the v1.rfq feed (see RfqFeed).

  • While the RFQ is open, the taker receives on the v1.quote feed an estimate of the average fill price for the RFQ size against the public book (see RfqQuoteFeed).

  • Anonymity

  • Anonymity is automatic and always enforced — the taker and makers only ever see each other's derived anonymous account ids.

  • Real taker and maker identities are never exposed to the counterparty.

  • Expiry

  • The RFQ lives until rfq.expiry, after which Grvt expires it and auto-cancels the makers' private quotes bound to it.

FieldTypeRequiredSummary
rfq_id lite name ristring (uint128)yesSet by the server.
sub_account_id lite name sastring (uint64)yesThe sub-account initiating the RFQ
expiry lite name estring (int64 unix ns)yesWhen the RFQ expires, in unix nanoseconds.
instrument lite name istring (instrument name)yesThe instrument to trade.
size lite name sstringyesRequested size (positive).
side lite name s1enum RfqSidenoOptional — omitted = two-way request.

RfqQuoteFeed

FieldTypeRequiredSummary
rfq_id lite name ristring (uint128)yesThe RFQ this estimate belongs to.
best_bid lite name bbstringnoAverage fill price to sell the RFQ size.
best_ask lite name bastringnoAverage fill price to buy the RFQ size.
bid_levels lite name blobject RfqQuoteLevel[]yesThe sell-side estimate (at most one level), from the bids
ask_levels lite name alobject RfqQuoteLevel[]yesThe buy-side estimate (at most one level), from the asks

RfqQuoteLevel

FieldTypeRequiredSummary
price lite name pstringyesAverage fill price for the size.
size lite name sstringyesFillable size, up to the RFQ size.
maker_anon_account_id lite name mastring (uint128)yesThe maker's derived anonymous account id shown to the taker.
time_in_force lite name tienum TimeInForceyesDistinguishes an AON level (liftable only in full — POST-MVP) from a GTT level

RiskBracket

FieldTypeRequiredSummary
tier lite name tinteger (uint32)yes1-indexed tier number
notional_floor lite name nfstringyesLower bound of notional value (inclusive) in quote currency
notional_cap lite name ncstringnoUpper bound of notional value (exclusive) in quote currency, omitted for last tier
maintenance_margin_rate lite name mmstringyesMaintenance margin rate as a decimal (e.g., '0.01' for 1%)
initial_margin_rate lite name imstringyesInitial margin rate as a decimal (e.g., '0.02' for 2%)
max_leverage lite name mlinteger (uint32)yesMaximum leverage allowed at this tier (floor of 1 / initial_margin_rate)
cumulative_maintenance_amount lite name cmstringyesCumulative maintenance margin amount in quote currency

SfpMarketSchedule

FieldTypeRequiredSummary
sessions lite name sobject TradingSession[]yesTrading sessions for the current calendar week (Sunday to Saturday in the exchange's local time).
holidays lite name hobject TradingHolidaySchedule[]yesMarket holidays and early closes, past and upcoming, sorted by start time.

SfpTradingScheduleGroup

FieldTypeRequiredSummary
name lite name nstringyesThe group name.
asset_class lite name acenum AssetClassyesThe instruments' asset class.
instruments lite name istring (instrument name)[]yesThe stable perps trading these hours, sorted.
sessions lite name sobject TradingSession[]yesTrading sessions for the current calendar week (Sunday to Saturday in the exchange's local time).
holidays lite name hobject TradingHolidaySchedule[]yesMarket holidays and early closes, past and upcoming, sorted by start time.

Signature

FieldTypeRequiredSummary
signer lite name sstring (uint256)yesThe address of the wallet that signed (0x + 40 hex characters).
r lite name rstring (uint256)yesThe signature's r, as 0x + 64 hex characters.
s lite name s1string (uint256)yesThe signature's s, as 0x + 64 hex characters.
v lite name vinteger (uint8)yesThe signature's v, 27 or 28.
expiration lite name estring (int64 unix ns)yesWhen the signature stops being valid, in unix nanoseconds, measured on the exchange's clock.
nonce lite name ninteger (uint32)yesA number you choose, 0 to 4,294,967,295 (uint32), so that two otherwise identical requests have different signatures.
chain_id lite name cistring (uint64)yesThe chain id in the signed EIP-712 domain, as a string.

SpotBalance

FieldTypeRequiredSummary
currency lite name cstringyesThe currency you hold a spot balance in
balance lite name bstringyesThis currency's balance in this sub-account.
index_price lite name ipstringyesThe index price of this currency.
entry_price lite name epstringyesThe entry price of this spot currency.
realized_pnl lite name rpstringyesThe realized PnL of this spot currency.
unrealized_pnl lite name upstringyesThe unrealized PnL of this spot currency.
available_to_transfer lite name atstringyesThe available to transfer amount of this spot currency.
borrowed_amount lite name bastringnoThe amount borrowed in this currency, inclusive of accrued interest.

SpotSubAccount

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
sub_account_id lite name sastring (uint64)yesThe sub-account ID this entry refers to
total_equity lite name testringyesTotal equity of the spot sub-account, denominated USD
spot_balances lite name sbobject SpotBalance[]yesThe list of spot assets owned by this spot sub-account, and their balances

StreamReference

FieldTypeRequiredSummary
stream lite name sstringyesThe channel to subscribe to (eg: ticker.s / ticker.d)
selectors lite name s1string[]yesThe list of selectors for the stream

SubAccount

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
sub_account_id lite name sastring (uint64)yesThe sub-account ID this entry refers to
margin_type lite name mtenum MarginTypeyesThe type of margin algorithm this sub-account uses
settle_currency lite name scstringyesThe settlement, margin, and reporting currency of this account.
unrealized_pnl lite name upstringyesThe total unrealized PnL of all positions owned by this sub-account, in the quote asset.
total_equity lite name testringyesThe notional value of your account if all positions are closed, excluding trading fees (reported in settle_currency).
initial_margin lite name imstringyesThe total_equity required to open positions in the account (reported in settle_currency).
maintenance_margin lite name mmstringyesThe total_equity required to avoid liquidation of positions in the account (reported in settle_currency).
available_balance lite name abstringyesDEPRECATED: use the per-currency availableToTransfer of the quote-currency entry in spotBalances instead.
spot_balances lite name sbobject SpotBalance[]yesThe list of spot assets owned by this sub-account, and their balances
positions lite name pobject Positions[]yesThe list of positions owned by this sub-account
settle_index_price lite name sistringyesThe index price of the settle currency.
is_vault lite name ivboolnoWhether this sub-account is a vault
vault_im_additions lite name vistringnoTotal amount of IM (reported in settle_currency) deducted from the vault due to redemptions nearing the end of their redemption period
derisk_margin lite name dmstringyesThe derisk margin of this sub-account
derisk_to_maintenance_margin_ratio lite name dtstringyesThe derisk margin to maintenance margin ratio of this sub-account
total_cross_equity lite name tcstringyesThe total equity of this sub-account for cross margin
cross_unrealized_pnl lite name custringyesThe unrealized PnL of this sub-account for cross margin
sub_account_mode lite name sa1enum SubAccountModeyesThe mode of the sub-account
margin_balance lite name mbstringyesThe margin balance of this sub-account for cross margin
algo_trading_enabled lite name atboolyesWhether algo trading is enabled for this sub-account

SupportedAsset

An asset supported for a given wallet type

FieldTypeRequiredSummary
asset_id lite name aiinteger (uint16)yesThe currency ID of the asset
asset_code lite name acstringyesThe readable currency code of the asset
balance_decimals lite name bdinteger (int8)yesThe number of decimals used for balance representation
transfer_disabled lite name tdboolyesThe asset cannot be transferred between wallets

TPSLOrderMetadata

Contains metadata for Take Profit (TP) and Stop Loss (SL) trigger orders.

FieldTypeRequiredSummary
trigger_by lite name tbenum TriggerByyesDefines the price type (e.g., index price) that activates a Take Profit (TP) or Stop Loss (SL) order
trigger_price lite name tpstringyesThe Trigger Price of the order.
close_position lite name cpboolyesIf True, the order will close the position when the trigger price is reached
is_split_position lite name isboolyesIf True, the order will be treated as part of a position's split-TP/SL set, subject to aggregate size/count limits.

Ticker

Prices, 24-hour statistics, open interest and funding for one instrument.

Figures that can be worked out from these fields are not sent. For example the 24-hour volume is buy_volume_24h_b + sell_volume_24h_b.

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)noTime at which the event was emitted in unix nanoseconds
instrument lite name istring (instrument name)noThe instrument name, e.g.
mark_price lite name mpstringnoThe mark price of the instrument.
index_price lite name ipstringnoThe index price of the instrument.
last_price lite name lpstringnoThe price of the last trade (the close price).
last_size lite name lsstringnoThe number of assets traded in the last trade.
mid_price lite name mp1stringnoThe mid price of the instrument.
best_bid_price lite name bbstringnoThe best bid price of the instrument.
best_bid_size lite name bb1stringnoThe number of assets offered on the best bid price of the instrument.
best_ask_price lite name bastringnoThe best ask price of the instrument.
best_ask_size lite name ba1stringnoThe number of assets offered on the best ask price of the instrument.
funding_rate_8h_curr lite name frstringnoDeprecated and will be removed.
funding_rate_8h_avg lite name fr1stringnoDeprecated and will be removed.
interest_rate lite name irstringnoThe interest rate of the underlying, in percent ("0.01" = 0.01%).
forward_price lite name fpstringno[Options] The forward price of the option.
buy_volume_24h_b lite name bvstringnoTaker buy volume over the last 24 hours, in the base asset.
sell_volume_24h_b lite name svstringnoTaker sell volume over the last 24 hours, in the base asset.
buy_volume_24h_q lite name bv1stringnoTaker buy volume over the last 24 hours, in the quote asset.
sell_volume_24h_q lite name sv1stringnoTaker sell volume over the last 24 hours, in the quote asset.
high_price lite name hpstringnoThe highest trade price of the last 24 hours.
low_price lite name lp1stringnoThe lowest trade price of the last 24 hours.
open_price lite name opstringnoThe first trade price of the last 24 hours.
open_interest lite name oistringnoThe open interest in the instrument.
long_short_ratio lite name ls1stringnoThe ratio of accounts that are net long to accounts that are net short on this instrument.
funding_rate lite name fr2stringnoThe indicative funding rate for the current funding interval, in percent ("0.01" = 0.01%).
next_funding_time lite name nfstring (int64 unix ns)noWhen the current funding interval ends, in unix nanoseconds.
status lite name senum InstrumentStatusnoThe current status of the instrument
session lite name s1enum TradingSessionTypenoThe current trading session of the instrument's underlying market
long_open_interest lite name lostringnoThe long open interest in the instrument.
short_open_interest lite name sostringnoThe short open interest in the instrument.
funding_rate_long_apr_pct lite name fr3stringnoStable perps only: the indicative annual rate for retail longs at the next charge, in percent a year ('-5.5' = retail longs pay 5.5%; positive = retail receives, negative = retail pays).
funding_rate_short_apr_pct lite name fr4stringnoStable perps only: the indicative annual rate for retail shorts at the next charge, in percent a year ('-5' = retail shorts pay 5%; positive = retail receives, negative = retail pays).

Trade

All private RFQs and Private AXEs will be filtered out from the responses

FieldTypeRequiredSummary
event_time lite name etstring (int64 unix ns)yesTime at which the event was emitted in unix nanoseconds
instrument lite name istring (instrument name)yesThe instrument name, e.g.
is_taker_buyer lite name itboolyesIf taker was the buyer on the trade
size lite name sstringyesThe number of assets being traded.
price lite name pstringyesThe traded price.
mark_price lite name mpstringnoThe mark price of the instrument at point of trade.
index_price lite name ipstringyesThe index price of the instrument at point of trade.
interest_rate lite name irstringyesThe interest rate of the underlying when the trade happened, in percent ("0.01" = 0.01%).
forward_price lite name fpstringno[Options] The forward price of the option at point of trade.
trade_id lite name tistringyesA trade identifier, globally unique, and monotonically increasing (not by 1).
venue lite name venum VenueyesThe venue where the trade occurred
is_rpi lite name ir1boolyesIf the trade is a RPI trade

TradingHolidaySchedule

FieldTypeRequiredSummary
name lite name nstringyesHoliday name
close_type lite name ctenum TradingScheduleCloseTypeyesFULL_DAY: the market is closed for the whole day.
start_time lite name ststring (int64)yesWhen the closure begins, as a Unix timestamp in milliseconds.
end_time lite name etstring (int64)yesWhen the closed or shortened trading day's session would have closed, as a Unix timestamp in milliseconds.

TradingSession

FieldTypeRequiredSummary
start_time lite name ststring (int64)yesTrading session start time timestamp in milliseconds
end_time lite name etstring (int64)yesTrading session end time timestamp in milliseconds
type lite name tenum TradingSessionTypeyesTrading session type

TransferHistory

FieldTypeRequiredSummary
tx_id lite name tistring (uint64)yesThe transaction ID of the transfer
from_account_id lite name fastring (0x address)yesThe account to transfer from
from_sub_account_id lite name fsstring (uint64)yesThe sub-account to transfer from (0 if transferring from main account)
to_account_id lite name tastring (0x address)yesThe account to deposit into
to_sub_account_id lite name tsstring (uint64)yesThe sub-account to transfer to (0 if transferring to main account)
currency lite name cstringyesThe token currency to transfer
num_tokens lite name ntstringyesThe number of tokens to transfer
signature lite name sobject SignatureyesThe signature of the transfer
event_time lite name etstring (int64 unix ns)yesThe timestamp of the transfer in unix nanoseconds
transfer_type lite name ttenum TransferTypeyesThe type of transfer
transfer_metadata lite name tmstringyesThe metadata of the transfer
from_wallet_type lite name fwenum WalletTypeyesThe wallet type of the from account or sub-account
to_wallet_type lite name twenum WalletTypeyesThe wallet type of the to account or sub-account

TriggerOrderMetadata

Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.

FieldTypeRequiredSummary
trigger_type lite name ttenum TriggerTypeyesType of the trigger order.
tpsl lite name tobject TPSLOrderMetadatayesContains metadata for Take Profit (TP) and Stop Loss (SL) trigger orders.

VaultInvestment

Summarizes a vault investment held by a funding account

FieldTypeRequiredSummary
vault_id lite name vistring (uint64)yesThe sub-account ID of the vault invested in.
num_lp_tokens lite name nlstringyesThe number of shares held by the investor.
share_price lite name spstringyesThe current share price (in USD) of this vault investment.
usd_notional_invested lite name unstringyesThe USD notional invested in this vault investment.
share_balances lite name sbobject VaultShareBalancesnoThe owner's Funding, trading and reserved vault shares.

VaultInvestorSummary

Vault investor summary information.

This struct contains the summary of investments in a vault.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe unique identifier of the vault sub-account.
num_lp_tokens lite name nlstringyesThe number of vault LP tokens the investor holds: those in the funding account plus those in every sub-account.
avg_entry_price lite name aestringyesThe average entry price (in USD) of the investor's vault LP tokens: the investor's invested notional divided by numLPTokens.
current_price lite name cpstringyesThe current price (in USD) of the vault LP tokens.
total_equity lite name testringyesThe vault's total equity (in USD).
all_time_realized_pnl lite name atstringyesThe all-time realized PnL (in USD) that the investor has received from the vault.
pending_redemption lite name probject VaultRedemptionnoThe singleton pending redemption (omitted if none).
can_burn lite name cbboolnoTrue if the requesting account is authorized to burn tokens on this vault, omitted otherwise.
num_lp_tokens_locked lite name nl1stringyesThe number of the investor's vault LP tokens still within the vault's minimum investment period.
num_lp_tokens_redeemable lite name nl2stringyesThe number of vault LP tokens the investor can request to redeem now: those past the minimum investment period, less any pending redemption.
locked_lots lite name llobject VaultLpLotView[]yesThe investor's vault LP tokens within the minimum investment period, by the time they unlock (earliest first).
share_balances lite name sbobject VaultShareBalancesyesWhere the investor's vault LP tokens sit: the funding account and the sub-accounts.
trading_balances lite name tbobject VaultShareTradingBalance[]yesOne entry per sub-account holding the vault's LP tokens.
investor_equity lite name iestringyesThe current valuation (in USD) of all the investor's vault LP tokens: numLPTokens times currentPrice.
unrealized_pnl lite name upstringyesThe investor's unrealized PnL (in USD): investorEquity less the investor's invested notional.

VaultLpLotView

Vault LP tokens minted together that unlock at the same time.

FieldTypeRequiredSummary
unlock_time lite name utstring (int64 unix ns)yesTime in unix nanoseconds from which these LP tokens can be redeemed.
num_lp_tokens lite name nlstringyesThe number of LP tokens in the lot.

VaultRedemption

Vault redemption information.

This struct contains information about a pending redemption from a vault.

FieldTypeRequiredSummary
num_lp_tokens lite name nlstringyesThe number of LP Tokens requested for redemption.
request_valuation lite name rvstringyesThe valuation (in USD) of the redemption request.
request_time lite name rtstring (int64 unix ns)yesSet by the server.
max_redemption_period_timestamp lite name mrstring (int64 unix ns)yesSet by the server.
cancel_blocked lite name cbboolnoOmitted for redemption requests to non-cross exchange vaults.
to_currency lite name tcstringyesThe currency the request pays into the investor's funding account: the vault's investment currency, unless the request converts.
exchange_rate lite name erstringyesThe signed rate the request is paid at, to_currency per unit of the vault's investment currency.

VaultRedemptionRequest

Representation of a pending redemption request for a given vault.

FieldTypeRequiredSummary
request_time lite name rtstring (int64 unix ns)yesSet by the server.
num_lp_tokens lite name nlstringyesThe number of shares to redeem
max_redemption_period_timestamp lite name mrstring (int64 unix ns)yesSet by the server.
age_category lite name acenum VaultRedemptionReqAgeCategoryyesAge category of this redemption request.
is_manager lite name imboolnotrue if this request belongs to the vault manager, omitted otherwise.
eligible_for_auto_redemption_timestamp lite name efstring (int64 unix ns)yesSet by the server.
from_currency lite name fcstringyesThe currency the vault pays: the vault's investment currency.
to_currency lite name tcstringyesThe currency paid into the investor's funding account.
exchange_rate lite name erstringyesThe signed rate the request is paid at, to_currency per unit of from_currency.

VaultShareBalances

Where an investor's vault LP tokens sit.

FieldTypeRequiredSummary
funding_lp_token_balance lite name flstringyesThe vault LP tokens in the funding account, including those a pending redemption reserves.
trading_lp_token_balance lite name tlstringyesThe vault LP tokens across all sub-accounts: the sum of tradingBalances.
pending_redemption_lp_token_balance lite name prstringyesThe funding account's vault LP tokens a pending redemption reserves.
available_to_transfer lite name atstringyesThe funding account's vault LP tokens that can move to a sub-account now: fundingLpTokenBalance less pendingRedemptionLpTokenBalance.
currency lite name cstringnoThe vault's share currency, used to transfer its LP tokens.

VaultShareTradingBalance

A sub-account's holding of a vault's LP tokens.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account.
num_lp_tokens lite name nlstringyesThe vault LP tokens in the sub-account.
equity lite name estringyesThe current valuation (in USD) of the sub-account's vault LP tokens.
available_to_transfer lite name atstringyesAn estimate of the vault LP tokens that can move back to the funding account without failing the sub-account's withdrawal checks.
margin_balance_usd lite name mbstringyesWhat the vault LP tokens add to the sub-account's margin (in USD): equity times the collateral value ratio.

WSAlgoOrderFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject AlgoOrderyesThe algo order object being created or updated
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSAlgoOrderFeedSelectorV1

Subscribes to a feed of algo order updates pertaining to algo orders made by your account. Each algo order can be uniquely identified by its algo_order_id or client_order_id, and carries its type so that clients can filter by algo order type. To subscribe to all algo orders, specify an empty instrument (eg. 2345123). Otherwise, specify the instrument to only receive algo orders for that instrument (eg. 2345123-BTC_USDT_Perp).

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
instrument lite name istring (instrument name)noThe instrument filter to apply.

WSCancelFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject CancelStatusFeedyesData relating to the status of the cancellation attempt
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSCancelFeedSelectorV1

Subscribes to a feed of time-to-live expiry events for order cancellations requested by a given sub-account. This stream presently only provides expiry updates for cancel-order requests set with a valid TTL value. Successful order cancellations will reflect as updates published to the order-state stream. A future release will expand the functionality of this stream to provide more general status updates on order cancellation requests. Each Order can be uniquely identified by its client_order_id.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by

WSCandlestickFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject CandlestickyesA candlestick entry matching the request filters
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSCandlestickFeedSelectorV1

Subscribes to a stream of Kline/Candlestick updates for an instrument. A Kline is uniquely identified by its open time. A new Kline is published every interval (if it exists). Upon subscription, the server will send the 5 most recent Kline for the requested interval.

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
interval lite name i1enum WsCandlestickIntervalyesThe interval of each candlestick
type lite name tenum CandlestickTypeyesThe type of candlestick data to retrieve

WSDepositFeedDataV1

Subscribes to a feed of deposit updates.

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject DeposityesThe Deposit object
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSDepositFeedSelectorV1

Subscribes to a feed of deposits. This will execute when there is any deposit to selected account. To subscribe to a main account, specify the account ID (eg. 0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a).

FieldTypeRequiredSummary
main_account_id lite name mastring (0x address)yesThe main account ID to request for

WSFillFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject FillyesA private trade matching the request filter
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSFillFeedSelectorV1

Subscribes to a feed of private trade updates. This happens when a trade is executed. To subscribe to all private trades, specify an empty instrument (eg. 2345123). Otherwise, specify the instrument to only receive private trades for that instrument (eg. 2345123-BTC_USDT_Perp).

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to request for
instrument lite name istring (instrument name)noThe instrument filter to apply.

WSListStreamsParams

List down all the streams this connection has connected to.

No fields.

WSListStreamsResult

Returns a list of all rooms the client has subscribed to.

FieldTypeRequiredSummary
stream_reference lite name srobject StreamReference[]yesThe list of stream references the connection is connected to

WSMiniTickerFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject MiniTickeryesA mini ticker matching the request filter
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSMiniTickerFeedSelectorV1

Subscribes to a mini ticker feed for a single instrument. The mini.s channel offers simpler integration. To experience higher publishing rates, please use the mini.d channel. Unlike the mini.d channel which publishes an initial snapshot, then only streams deltas after, the mini.s channel publishes full snapshots at each feed.

The Delta feed will work as follows:

  • On subscription, the server will send a full snapshot of the mini ticker.
  • After the snapshot, the server will only send deltas of the mini ticker.
  • The server will send a delta if any of the fields in the mini ticker have changed.

Field Semantics:

  • [DeltaOnly] If a field is not updated, {}
  • If a field is updated, {field: '123'}
  • If a field is set to zero, {field: '0'}
  • If a field is set to null, {field: ''}
FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
rate lite name rinteger (uint32)yesThe minimal rate at which we publish feeds (in milliseconds)

WSOrderFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject OrderyesThe order object being created or updated
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSOrderFeedSelectorV1

Subscribes to a feed of order updates pertaining to orders made by your account. Each Order can be uniquely identified by its order_id or client_order_id. To subscribe to all orders, specify an empty instrument (eg. 2345123). Otherwise, specify the instrument to only receive orders for that instrument (eg. 2345123-BTC_USDT_Perp).

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
instrument lite name istring (instrument name)noThe instrument filter to apply.

WSOrderStateFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject OrderStateFeedyesThe Order State Feed
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSOrderStateFeedSelectorV1

Subscribes to a feed of order updates pertaining to orders made by your account. Unlike the Order Stream, this only streams state updates, drastically improving throughput, and latency. Each Order can be uniquely identified by its order_id or client_order_id. To subscribe to all orders, specify an empty instrument (eg. 2345123). Otherwise, specify the instrument to only receive orders for that instrument (eg. 2345123-BTC_USDT_Perp).

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
instrument lite name istring (instrument name)noThe instrument filter to apply.

WSOrderbookLevelsFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject OrderbookLevelsyesAn orderbook levels object matching the request filter
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSOrderbookLevelsFeedSelectorV1

Subscribes to aggregated orderbook updates for a single instrument. The book.s channel offers simpler integration. To experience higher publishing rates, please use the book.d channel. Unlike the book.d channel which publishes an initial snapshot, then only streams deltas after, the book.s channel publishes full snapshots at each feed.

The Delta feed will work as follows:

  • On subscription, the server will send a full snapshot of all levels of the Orderbook.
  • After the snapshot, the server will only send levels that have changed in value.

Subscription Pattern:

  • Delta - instrument@rate
  • Snapshot - instrument@rate-depth

Field Semantics:

  • [DeltaOnly] If a level is not updated, level not published
  • If a level is updated, {size: '123'}
  • If a level is set to zero, {size: '0'}
  • Incoming levels will be published as soon as price moves
  • Outgoing levels will be published with size = 0
FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
rate lite name rinteger (uint32)yesThe minimal rate at which we publish feeds (in milliseconds)
depth lite name dinteger (uint32)noDepth of the order book to be retrieved

WSPositionsFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject PositionsyesA Position being created or updated matching the request filter
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSPositionsFeedSelectorV1

Subscribes to a feed of position updates. Updates get published when a trade is executed, and when leverage configurations are changed for instruments with ongoing positions. To subscribe to all positions, specify an empty instrument (eg. 2345123). Otherwise, specify the instrument to only receive positions for that instrument (eg. 2345123-BTC_USDT_Perp).

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
instrument lite name istring (instrument name)noThe instrument filter to apply.

WSRfqQuoteFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject RfqQuoteFeedyesThe taker's private quote book for their open RFQ on this instrument
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSRfqQuoteFeedSelectorV1

Taker feed. Subscribe with selector (sub_account_id, instrument) to receive your private RFQ quote book — best bid/ask and all private quote levels — for your open RFQ on that instrument.

These private quotes are the makers' responses to your RFQ (created via ApiCreateRfqRequest). View them alongside the public order book (firm resting liquidity + public quotes) to decide, then accept by signing an order via create_order with metadata.rfq_id set.

Each update pertains to a single RFQ, uniquely identified by its rfq_id. A sub-account may hold at most one open RFQ per instrument, which is what lets this selector be keyed by (sub_account_id, instrument) alone, with no rfq_id required.

FieldTypeRequiredSummary
sub_account_id lite name sastring (uint64)yesThe sub-account ID to filter by
instrument lite name istring (instrument name)noThe instrument filter to apply.

WSSubscribeParams

The params of a WebSocket subscribe request: a stream and the selectors to subscribe to. Subscribing again to the same selector before @ replaces the options after it.

Set use_global_sequence_number to true. Each frame's sequence_number is then unique across the exchange and you can chain frames with prev_sequence_number. With false, sequence numbers count up by one per stream and start again when the server you are connected to restarts.

FieldTypeRequiredSummary
stream lite name sstringyesThe channel to subscribe to (eg: ticker.s / ticker.d)
selectors lite name s1string[]yesThe list of feeds to subscribe to
use_global_sequence_number lite name ugboolnoWhether to use the global sequence number for the stream

WSSubscribeRequestV1Legacy

All V1 Websocket Requests are housed in this wrapper. You may specify a stream, and a list of feeds to subscribe to. If a request_id is supplied in this JSON RPC request, it will be propagated back to any relevant JSON RPC responses (including error). When subscribing to the same primary selector again, the previous secondary selector will be replaced. See Overview page for more details.

FieldTypeRequiredSummary
request_id lite name riinteger (uint32)noOptional Field which is used to match the response by the client.
stream lite name sstringyesThe channel to subscribe to (eg: ticker.s / ticker.d)
feed lite name fstring[]yesThe list of feeds to subscribe to
method lite name mstringyesThe method to use for the request (eg: subscribe / unsubscribe)
is_full lite name ifboolnoWhether the request is for full data or lite data

WSSubscribeResponseV1Legacy

All V1 Websocket Responses are housed in this wrapper. It returns a confirmation of the JSON RPC subscribe request. If a request_id is supplied in the JSON RPC request, it will be propagated back in this JSON RPC response. To ensure you always know if you have missed any payloads, Grvt servers apply the following heuristics to sequence numbers:

  • All snapshot payloads will have a sequence number of 0. All delta payloads will have a sequence number of 1+. So its easy to distinguish between snapshots, and deltas
  • Num snapshots returned in Response (per stream): You can ensure that you received the right number of snapshots
  • First sequence number returned in Response (per stream): You can ensure that you received the first stream, without gaps from snapshots
  • Sequence numbers should always monotonically increase by 1. If it decreases, or increases by more than 1. Please reconnect
  • Duplicate sequence numbers are possible due to network retries. If you receive a duplicate, please ignore it, or idempotently re-update it.

When subscribing to the same primary selector again, the previous secondary selector will be replaced. See Overview page for more details.

FieldTypeRequiredSummary
request_id lite name riinteger (uint32)noOptional Field which is used to match the response by the client.
stream lite name sstringyesThe channel to subscribe to (eg: ticker.s / ticker.d)
subs lite name s1string[]yesThe list of feeds subscribed to
unsubs lite name ustring[]yesThe list of feeds unsubscribed from
num_snapshots lite name nsinteger (uint32)[]yesThe number of snapshot payloads to expect for each subscribed feed.
first_sequence_number lite name fsstring (uint64)[]yesThe first sequence number to expect for each subscribed feed.
latest_sequence_number lite name lsstring (uint64)[]yesThe sequence number of the most recent message in the stream.

WSSubscribeResult

To ensure you always know if you have missed any payloads, Grvt servers apply the following heuristics to sequence numbers:

  • All snapshot payloads will have a sequence number of 0. All delta payloads will have a sequence number of 1+. So its easy to distinguish between snapshots, and deltas
  • Num snapshots returned in Response (per stream): You can ensure that you received the right number of snapshots
  • First sequence number returned in Response (per stream): You can ensure that you received the first stream, without gaps from snapshots
  • Sequence numbers should always monotonically increase by 1. If it decreases, or increases by more than 1. Please reconnect
  • Duplicate sequence numbers are possible due to network retries. If you receive a duplicate, please ignore it, or idempotently re-update it.

When subscribing to the same primary selector again, the previous secondary selector will be replaced. See Overview page for more details.

FieldTypeRequiredSummary
stream lite name sstringyesThe channel to subscribe to (eg: ticker.s / ticker.d)
subs lite name s1string[]yesThe list of feeds subscribed to
unsubs lite name ustring[]yesThe list of feeds unsubscribed from
num_snapshots lite name nsinteger (uint32)[]yesThe number of snapshot payloads to expect for each subscribed feed.
first_sequence_number lite name fsstring (uint64)[]yesThe first sequence number to expect for each subscribed feed.
latest_sequence_number lite name lsstring (uint64)[]yesThe sequence number of the most recent message in the stream.

WSTickerFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject TickeryesA ticker matching the request filter
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSTickerFeedSelectorV1

Subscribes to a ticker feed for a single instrument. The ticker.s channel offers simpler integration. To experience higher publishing rates, please use the ticker.d channel. Unlike the ticker.d channel which publishes an initial snapshot, then only streams deltas after, the ticker.s channel publishes full snapshots at each feed.

The Delta feed will work as follows:

  • On subscription, the server will send a full snapshot of the ticker.
  • After the snapshot, the server will only send deltas of the ticker.
  • The server will send a delta if any of the fields in the ticker have changed.

Field Semantics:

  • [DeltaOnly] If a field is not updated, {}
  • If a field is updated, {field: '123'}
  • If a field is set to zero, {field: '0'}
  • If a field is set to null, {field: ''}
FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
rate lite name rinteger (uint32)yesThe minimal rate at which we publish feeds (in milliseconds)

WSTradeFeedDataV1

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject TradeyesA public trade matching the request filter
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSTradeFeedSelectorV1

Subscribes to a stream of Public Trades for an instrument.

FieldTypeRequiredSummary
instrument lite name istring (instrument name)yesThe instrument name, e.g.
limit lite name linteger (uint32)yesThe limit to query for.

WSTransferFeedDataV1

Subscribes to a feed of transfer updates.

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject TransferHistoryyesThe transfer history matching the requested filters
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSTransferFeedSelectorV1

Subscribes to a feed of transfers. This will execute when there is any transfer to or from the selected account. To subscribe to a main account, specify the account ID (eg. 0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a). To subscribe to a sub-account, specify the main account and the sub-account dash separated (eg. 0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a-1920109784202388).

FieldTypeRequiredSummary
main_account_id lite name mastring (0x address)yesThe main account ID to request for
sub_account_id lite name sastring (uint64)noThe sub-account ID to request for

WSUnsubscribeAllParams

All V1 Websocket Unsubscription Request to unsubscribe from all active websocket streams.

No fields.

WSUnsubscribeAllResult

Returns a list of all rooms the client has unsubscribed from.

FieldTypeRequiredSummary
stream_reference lite name srobject StreamReference[]yesThe list of stream references unsubscribed from

WSUnsubscribeParams

All V1 Websocket Unsubscription Requests are housed in this wrapper. You may specify a stream, a list of feeds and whether those feeds use global sequence numbers to unsubscribe from.

FieldTypeRequiredSummary
stream lite name sstringyesThe channel to unsubscribe from (eg: ticker.s / ticker.d)
selectors lite name s1string[]yesThe list of feeds to unsubscribe from
use_global_sequence_number lite name ugboolnoWhether to use the global sequence number for the stream

WSUnsubscribeResult

Returns a confirmation of all unsubscribes

FieldTypeRequiredSummary
stream lite name sstringyesThe channel to subscribe to (eg: ticker.s / ticker.d)
unsubs lite name ustring[]yesThe list of feeds unsubscribed from

WSWithdrawalFeedDataV1

Subscribes to a feed of withdrawal updates.

FieldTypeRequiredSummary
stream lite name sstringyesThe stream this frame belongs to, e.g.
selector lite name s1stringyesThe selector this frame is for, as you subscribed with it.
sequence_number lite name snstring (uint64)yesThis frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer.
feed lite name fobject WithdrawalyesThe Withdrawal object
prev_sequence_number lite name psstring (uint64)yesThe sequence_number of the frame before this one on this selector.

WSWithdrawalFeedSelectorV1

Subscribes to a feed of withdrawals. This will execute when there is any withdrawal from the selected account. To subscribe to a main account, specify the account ID (eg. 0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a).

FieldTypeRequiredSummary
main_account_id lite name mastring (0x address)yesThe main account ID to request for

Withdrawal

FieldTypeRequiredSummary
from_account_id lite name fastring (0x address)yesThe sub-account to withdraw from
to_eth_address lite name testring (0x address)yesThe ethereum address to withdraw to
currency lite name cstringyesThe token currency to withdraw
num_tokens lite name ntstringyesThe number of tokens to withdraw
signature lite name sobject SignatureyesThe signature of the withdrawal

WithdrawalHistory

FieldTypeRequiredSummary
tx_id lite name tistring (uint64)yesThe transaction ID of the withdrawal
from_account_id lite name fastring (0x address)yesThe sub-account to withdraw from
to_eth_address lite name testring (0x address)yesThe ethereum address to withdraw to
currency lite name cstringyesThe token currency to withdraw
num_tokens lite name ntstringyesThe number of tokens to withdraw
signature lite name sobject SignatureyesThe signature of the withdrawal
event_time lite name etstring (int64 unix ns)yesThe timestamp of the withdrawal in unix nanoseconds
l_1_hash lite name l1stringnoThe finalized withdrawal transaction hash on L1, empty if the withdrawal is 'pending'.
l_2_hash lite name l2stringyesThe transaction hash on L2
esc

↑ ↓ move↵ open⇧↵ open .mdTry an error code like 2002

Keyboard shortcuts

⌘ K
Search the docs
/
Search
l
Next code language (Python → TypeScript → Go → Rust → curl → WebSocket)
j / k
Next / previous page
t
Light / dark theme
?
This help
Esc
Close dialogs and drawers