{"auth":{"auth_required":"rpcs[].auth_required and streams[].auth_required. Calling one without a session returns error 1000.","schemes":[{"name":"api_key","note":"POST {api_key} to the edge.","route":"edge.api_key_login"},{"name":"wallet","note":"POST {address, signature} where signature is a WalletLogin EIP-712 signature by the wallet.","route":"edge.wallet_login"}],"session":{"account_id_header":"X-Grvt-Account-Id","cookie":"gravity","expiry":"Read the cookie's Expires/Max-Age; re-login before it passes. Not exported as a number yet.","how_to_send":"Login sets the gravity cookie and returns the X-Grvt-Account-Id response header. Send both on every gateway HTTP request and on the WS upgrade.","websocket":"Auth is taken from the upgrade request only; there is no in-band re-auth. Reconnect with a fresh cookie after re-login."}},"contract_version":"0.1.0","edge":{"note":"Hand-written in sdk/generator/edgespec.json. Edge is not described by apispec.json.","routes":[{"auth_required":false,"error_body":"EdgeLoginError","errors":[{"message":"invalid request body","status":400},{"message":"Invalid Credentials","status":401},{"message":"IP not whitelisted, country restricted, or account deactivated, closed or on hold","status":403},{"message":"Internal Server Error","status":500}],"http_method":"POST","id":"edge.api_key_login","method_name":"login_api_key","namespace":"auth","path":"/auth/api_key/login","request":"EdgeApiKeyLoginRequest","response":"EdgeLoginResponse","sets_session":true},{"auth_required":false,"error_body":"plain text (httputil.WriteError)","errors":[{"message":"invalid request body | invalid wallet address | signature expiration exceeds maximum allowed window","status":400},{"message":"signature expired | invalid signature | signature already used | wallet address not registered | user not found","status":401},{"message":"Internal Server Error","status":500}],"http_method":"POST","id":"edge.wallet_login","method_name":"login_wallet","namespace":"auth","path":"/auth/wallet/login","request":"EdgeWalletLoginRequest","response":"EdgeWalletLoginResponse","sets_session":true,"signs":{"field":"","notes":"signer must equal address; expiration at most 5 minutes ahead of server time; (address, nonce) is single-use","signature_field":"signature","types":["WalletLogin"],"variant_rule":"always WalletLogin"}}],"types":[{"fields":[{"description":"The API key created in the GRVT UI.","kind":"primitive","name":"api_key","type":"string"}],"name":"EdgeApiKeyLoginRequest"},{"fields":[{"description":"\"success\" on success.","kind":"primitive","name":"status","type":"string"},{"description":"Always empty for API callers.","kind":"primitive","name":"location","type":"string"},{"description":"Funding (main) account the key belongs to.","kind":"primitive","name":"funding_account_address","type":"address"},{"description":"Set only when the key was created for a trading (sub) account.","kind":"primitive","name":"sub_account_id","optional":true,"type":"uint64"}],"name":"EdgeLoginResponse"},{"fields":[{"description":"\"failure\"","kind":"primitive","name":"status","type":"string"},{"description":"Human-readable reason.","kind":"primitive","name":"error","type":"string"}],"name":"EdgeLoginError"},{"fields":[{"description":"Wallet address being logged in.","kind":"primitive","name":"address","type":"address"},{"description":"WalletLogin EIP-712 signature by that wallet.","kind":"struct","name":"signature","type":"Signature"}],"name":"EdgeWalletLoginRequest"},{"fields":[{"description":"Funding (main) account linked to the wallet. Note: the public docs show the API-key response shape here; the code returns only this field.","kind":"primitive","name":"funding_account_address","type":"address"}],"name":"EdgeWalletLoginResponse"}]},"enums":[{"description":"Defines the type of an algo order","name":"AlgoOrderType","values":[{"description":"CHASE - A post-only limit order that re-prices toward the best bid/ask until filled or cancelled","name":"CHASE","value":1}]},{"description":"Filters algo orders by whether they carry a trigger condition. Leave the filter unset to apply no trigger filter","name":"AlgoTriggerFilter","values":[{"description":"WITH_TRIGGER - Only algo orders that carry a trigger and wait for it to cross before becoming active","name":"WITH_TRIGGER","value":1},{"description":"WITHOUT_TRIGGER - Only algo orders that have no trigger and become active on creation","name":"WITHOUT_TRIGGER","value":2}]},{"description":"Asset class of an instrument's underlying. The first five values (crypto through index) are general classifications used by Perpetuals for display. The remaining values (equityNasdaq, equityNyse, etc.) are schedule-specific and used by SFPs to route to a trading schedule","name":"AssetClass","values":[{"description":"Digital assets (e.g. BTC, ETH)","name":"CRYPTO","value":1},{"description":"Equities and equity-linked underlyings (e.g. stocks)","name":"EQUITY","value":2},{"description":"Physical commodities (e.g. gold, oil)","name":"COMMODITY","value":3},{"description":"Foreign-exchange currency pairs","name":"FX","value":4},{"description":"Composite indices tracking a basket of underlyings","name":"INDEX","value":5},{"description":"NASDAQ-listed equities — maps to a TradingSchedule entry","name":"EQUITY_NASDAQ","value":6},{"description":"NYSE/NYSE Arca-listed equities and ETFs — maps to a TradingSchedule entry","name":"EQUITY_NYSE","value":7},{"description":"Korea Exchange (KRX)-listed equities — maps to a TradingSchedule entry","name":"EQUITY_KRX","value":8},{"description":"CME-traded commodities — maps to a TradingSchedule entry","name":"COMMODITY_CME","value":9},{"description":"Pre-IPO instruments — maps to a TradingSchedule entry","name":"PRE_IPO","value":10}]},{"description":"BrokerTag is a tag for the broker that the order is sent from.","name":"BrokerTag","values":[{"name":"UNSPECIFIED","value":0},{"description":"CoinRoutes","name":"COIN_ROUTES","value":1},{"description":"Alertatron","name":"ALERTATRON","value":2},{"description":"Origami","name":"ORIGAMI","value":3}]},{"description":"Per-asset collateral-deposit-cap (CDC) utilization status.","name":"CDCStatus","values":[{"description":"CDC utilization below the reduce-only threshold.","name":"NORMAL","value":1},{"description":"CDC utilization at or above the reduce-only threshold but below 100% — new collateral deposits are restricted.","name":"REDUCE_ONLY","value":2},{"description":"CDC utilization at or above 100% — subject to auto-exchange.","name":"AUTO_EXCHANGE","value":3}]},{"name":"CancelStatus","values":[{"description":"Cancellation has expired because corresponding order had not arrived within the defined time-to-live window.","name":"EXPIRED","value":1},{"description":"This cancellation request was dropped because its TTL window overlaps with another cancellation request for the same order.","name":"DROPPED_DUPLICATE","value":2}]},{"name":"CandlestickInterval","values":[{"description":"1 minute","name":"CI_1_M","value":1},{"description":"3 minutes","name":"CI_3_M","value":2},{"description":"5 minutes","name":"CI_5_M","value":3},{"description":"15 minutes","name":"CI_15_M","value":4},{"description":"30 minutes","name":"CI_30_M","value":5},{"description":"1 hour","name":"CI_1_H","value":6},{"description":"2 hour","name":"CI_2_H","value":7},{"description":"4 hour","name":"CI_4_H","value":8},{"description":"6 hour","name":"CI_6_H","value":9},{"description":"8 hour","name":"CI_8_H","value":10},{"description":"12 hour","name":"CI_12_H","value":11},{"description":"1 day","name":"CI_1_D","value":12},{"description":"3 days","name":"CI_3_D","value":13},{"description":"5 days","name":"CI_5_D","value":14},{"description":"1 week","name":"CI_1_W","value":15},{"description":"2 weeks","name":"CI_2_W","value":16},{"description":"3 weeks","name":"CI_3_W","value":17},{"description":"4 weeks","name":"CI_4_W","value":18}]},{"name":"CandlestickType","values":[{"description":"Tracks traded prices","name":"TRADE","value":1},{"description":"Tracks mark prices","name":"MARK","value":2},{"description":"Tracks index prices","name":"INDEX","value":3},{"description":"Tracks book mid prices","name":"MID","value":4}]},{"description":"Defines how a chase order determines its price at each re-price tick","name":"ChasePriceMode","values":[{"description":"BEST_BID_ASK - The chase price equals the best bid (buy) or best ask (sell)","name":"BEST_BID_ASK","value":1}]},{"description":"Day of the week, used by recurring trading schedule sessions","name":"DayOfWeek","values":[{"description":"Monday","name":"MONDAY","value":1},{"description":"Tuesday","name":"TUESDAY","value":2},{"description":"Wednesday","name":"WEDNESDAY","value":3},{"description":"Thursday","name":"THURSDAY","value":4},{"description":"Friday","name":"FRIDAY","value":5},{"description":"Saturday","name":"SATURDAY","value":6},{"description":"Sunday","name":"SUNDAY","value":7}]},{"description":"Specifies different methods of aggregating historical funding rates","name":"FundingRateAggregationType","values":[{"description":"Default value -- one record returned per funding interval. Query instruments endpoint to learn funding interval of each instrument.","name":"FUNDING_INTERVAL","value":1},{"description":"Returns one record per hour -- normalizes all funding rates to 1h durations, so `fundingRate`  value is cumulative and can exceed a funding interval's configured cap / floor.","name":"ONE_HOURLY","value":2},{"description":"Returns one record per 4 hours -- normalizes all funding rates to 4h durations, so `fundingRate`  value is cumulative and can exceed a funding interval's configured cap / floor.","name":"FOUR_HOURLY","value":3},{"description":"Returns one record for eight hours -- normalizes all funding rates to 8h durations, so `fundingRate`  value is cumulative and can exceed a funding interval's configured cap / floor.","name":"EIGHT_HOURLY","value":4}]},{"name":"InstrumentSettlementPeriod","values":[{"description":"Instrument settles through perpetual funding cycles","name":"PERPETUAL","value":1},{"description":"Instrument settles at an expiry date, marked as a daily instrument","name":"DAILY","value":2},{"description":"Instrument settles at an expiry date, marked as a weekly instrument","name":"WEEKLY","value":3},{"description":"Instrument settles at an expiry date, marked as a monthly instrument","name":"MONTHLY","value":4},{"description":"Instrument settles at an expiry date, marked as a quarterly instrument","name":"QUARTERLY","value":5}]},{"description":"The lifecycle/trading status of an instrument on the GRVT exchange","name":"InstrumentStatus","values":[{"description":"Instrument is fully tradable","name":"ACTIVE","value":1},{"description":"Only position-reducing orders are accepted (e.g. pre-delist wind-down)","name":"REDUCE_ONLY","value":2},{"description":"Trading is temporarily paused for scheduled maintenance; cancel-only","name":"MAINTENANCE","value":3},{"description":"Underlying halted at its primary market (LULD, news pending); index and mark frozen","name":"HALTED","value":4},{"description":"Outside trading window: daily maintenance break, weekend, holiday; cancel-only","name":"CLOSED","value":5},{"description":"Instrument is created but not yet open for trading (pre-listing)","name":"PENDING","value":6},{"description":"Instrument has been permanently removed","name":"DELISTED","value":7}]},{"description":"The list of asset kinds that are supported on the GRVT exchange","name":"Kind","values":[{"description":"the perpetual asset kind","name":"PERPETUAL","value":1},{"description":"the future asset kind","name":"FUTURE","value":2},{"description":"the call option asset kind","name":"CALL","value":3},{"description":"the put option asset kind","name":"PUT","value":4},{"description":"the spot swap asset kind","name":"SPOT_SWAP","value":8},{"description":"Stable Funding Perp on an RWA underlying, USDC-settled","name":"STABLE_PERP","value":9}]},{"name":"MarginType","values":[{"description":"Simple Cross Margin Mode: all assets have a predictable margin impact, the whole subaccount shares a single margin","name":"SIMPLE_CROSS_MARGIN","value":2},{"description":"Portfolio Cross Margin Mode: asset margin impact is analysed on portfolio level, the whole subaccount shares a single margin","name":"PORTFOLIO_CROSS_MARGIN","value":3}]},{"name":"OrderRejectReason","values":[{"description":"order is not cancelled or rejected","name":"UNSPECIFIED","value":0},{"description":"client called a Cancel API","name":"CLIENT_CANCEL","value":1},{"description":"client called a Bulk Cancel API","name":"CLIENT_BULK_CANCEL","value":2},{"description":"client called a Session Cancel API, or set the WebSocket connection to 'cancelOrdersOnTerminate'","name":"CLIENT_SESSION_END","value":3},{"description":"the market order was cancelled after no/partial fill. Lower precedence than other TimeInForce cancel reasons","name":"MARKET_CANCEL","value":4},{"description":"the IOC order was cancelled after no/partial fill","name":"IOC_CANCEL","value":5},{"description":"the AON order was cancelled as it could not be fully matched","name":"AON_CANCEL","value":6},{"description":"the FOK order was cancelled as it could not be fully matched","name":"FOK_CANCEL","value":7},{"description":"the order was cancelled as it has expired","name":"EXPIRED","value":8},{"description":"the post-only order could not be posted into the orderbook","name":"FAIL_POST_ONLY","value":9},{"description":"the reduce-only order would have caused position size to increase","name":"FAIL_REDUCE_ONLY","value":10},{"description":"the order was cancelled due to market maker protection trigger","name":"MM_PROTECTION","value":11},{"description":"the order was cancelled due to self-trade protection trigger","name":"SELF_TRADE_PROTECTION","value":12},{"description":"the order matched with another order from the same sub account","name":"SELF_MATCHED_SUBACCOUNT","value":13},{"description":"an active order on your sub account shares the same clientOrderId","name":"OVERLAPPING_CLIENT_ORDER_ID","value":14},{"description":"the order will bring the sub account below initial margin requirement","name":"BELOW_MARGIN","value":15},{"description":"the sub account is liquidated (and all open orders are cancelled by the exchange)","name":"LIQUIDATION","value":16},{"description":"instrument is invalid or not found on Grvt","name":"INSTRUMENT_INVALID","value":17},{"description":"instrument is no longer tradable on Grvt. (typically due to a market halt, or instrument expiry)","name":"INSTRUMENT_DEACTIVATED","value":18},{"description":"system failover resulting in loss of order state","name":"SYSTEM_FAILOVER","value":19},{"description":"the credentials used (userSession/apiKeySession/walletSignature) is not authorised to perform the action","name":"UNAUTHORISED","value":20},{"description":"the session key used to sign the order expired","name":"SESSION_KEY_EXPIRED","value":21},{"description":"the subaccount does not exist","name":"SUB_ACCOUNT_NOT_FOUND","value":22},{"description":"the signature used to sign the order has no trade permission","name":"NO_TRADE_PERMISSION","value":23},{"description":"the order payload does not contain a supported TimeInForce value","name":"UNSUPPORTED_TIME_IN_FORCE","value":24},{"description":"the order has multiple legs, but multiple legs are not supported by this venue","name":"MULTI_LEGGED_ORDER","value":25},{"description":"the order would have caused the subaccount to exceed the max position size","name":"EXCEED_MAX_POSITION_SIZE","value":26},{"description":"the signature supplied is more than 30 days in the future","name":"EXCEED_MAX_SIGNATURE_EXPIRATION","value":27},{"description":"the market order has a limit price set","name":"MARKET_ORDER_WITH_LIMIT_PRICE","value":28},{"description":"client cancel on disconnect triggered","name":"CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED","value":29},{"description":"the OCO counter part order was triggered","name":"OCO_COUNTER_PART_TRIGGERED","value":30},{"description":"the remaining order size was cancelled because it exceeded current position size","name":"REDUCE_ONLY_LIMIT","value":31},{"description":"the order was replaced by a client replace request","name":"CLIENT_REPLACE","value":32},{"description":"the derisk order must be an IOC order","name":"DERISK_MUST_BE_IOC","value":33},{"description":"the derisk order must be a reduce-only order","name":"DERISK_MUST_BE_REDUCE_ONLY","value":34},{"description":"derisk is not supported","name":"DERISK_NOT_SUPPORTED","value":35},{"description":"the order type is invalid","name":"INVALID_ORDER_TYPE","value":36},{"description":"the currency is not defined","name":"CURRENCY_NOT_DEFINED","value":37},{"description":"the chain ID is invalid","name":"INVALID_CHAIN_ID","value":38},{"description":"Builder fee exceed the limit","name":"BUILDER_ORDER_FEE_EXCEED","value":39},{"description":"Builder fee is below 0","name":"BUILDER_ORDER_FEE_NEGATIVE","value":40},{"description":"Builder is not an authorized builder for client","name":"BUILDER_ORDER_BUILDER_NOT_AUTHORIZED","value":41},{"description":"Builder does not exist","name":"BUILDER_ORDER_BUILDER_NOT_EXIST","value":42},{"description":"the trade price is worse than the bankruptcy price","name":"TRADE_PRICE_WORSE_THAN_BANKRUPTCY_PRICE","value":44},{"description":"the order was cancelled due to matching with too many maker orders","name":"TOO_MANY_MAKER_ORDERS","value":45},{"description":"reduce-only order is not supported for spot order","name":"REDUCE_ONLY_NOT_SUPPORTED_FOR_SPOT_ORDER","value":46},{"description":"tpsl is not supported for spot order","name":"TPSL_NOT_SUPPORTED_FOR_SPOT_ORDER","value":47},{"description":"spot order is not supported","name":"SPOT_ORDER_NOT_SUPPORTED","value":48},{"description":"the subaccount has insufficient balance","name":"INSUFFICIENT_BALANCE","value":49},{"description":"spot trading is blocked during socialized loss (SLOW)","name":"SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS","value":50},{"description":"the order will bring the sub account below initial margin requirement considering wide price deviation","name":"BELOW_MARGIN_WITH_PENALTY_DEVIATION","value":51},{"description":"Cancelled by the system due to Corporate Action","name":"CORPORATE_ACTION","value":56},{"description":"the order was rejected because the sub account is not a qualified maker","name":"NOT_QUALIFIED_MAKER","value":57},{"description":"rfq_id is required when is_private = true","name":"PRIVATE_QUOTE_REQUIRES_RFQ","value":58},{"description":"a signed slippage bound filled in limit_price is required","name":"STABLE_PERP_REQUIRES_PRICE_BOUND","value":59},{"description":"SFP order only supports trigger_by = index or mid","name":"UNSUPPORTED_TRIGGER_BY","value":60},{"description":"the order was rejected because the referenced RFQ could not be found","name":"RFQ_NOT_FOUND","value":61},{"description":"post-only resting placement crosses opposite best resting or index mid","name":"RESTING_ORDER_WOULD_CROSS","value":62},{"description":"the order was submitted when the trading session was either closed or under maintenance","name":"SESSION_CLOSED","value":63},{"description":"the quote was cancelled because the RFQ it was bound to reached a terminal state — expired, cancelled by the taker, or closed once its taker order filled","name":"RFQ_TERMINATED","value":65},{"description":"stable perp orders require a multi-asset-mode sub-account","name":"STABLE_PERP_REQUIRES_MULTI_ASSET_MODE","value":66},{"description":"the trade would have left the sub account borrowing more than its tier borrow limit in the traded quote currency","name":"BORROW_LIMIT_EXCEEDED_AFTER_TRADE","value":67},{"description":"an undeployed-loan (LTV) auto-exchange executed on the sub account, and all open orders are cancelled by the exchange","name":"UNDEPLOYED_LOAN_AUTO_EXCHANGE","value":68},{"description":"a liquidation auto-exchange executed on the sub account, and all open orders are cancelled by the exchange","name":"LIQUIDATION_AUTO_EXCHANGE","value":69},{"description":"USDC is not enabled as collateral on the sub account, so USDC-quoted instruments cannot be traded; enable USDC as collateral first","name":"USDC_COLLATERAL_DISABLED","value":70},{"description":"post-only orders are not supported on STABLE_PERP for accounts that are not qualified market makers; their orders only take liquidity","name":"SFP_POST_ONLY_NOT_ALLOWED","value":71},{"description":"the order was rejected because its sub account is a vault in single-asset margin mode whose investment currency is not its quote currency, and such a vault cannot trade","name":"VAULT_NON_QUOTE_INVESTMENT_CURRENCY","value":72},{"description":"rfq_id was set on an order whose instrument is not a STABLE_PERP; RFQ is a STABLE_PERP-only product","name":"RFQ_ID_REQUIRES_STABLE_PERP","value":161},{"description":"is_private = true is not supported yet; private per-RFQ quote pools are post-MVP","name":"RFQ_PRIVATE_POOL_NOT_SUPPORTED","value":162},{"description":"the taker order accepting an RFQ must be a bounded IOC order — IOC, carrying a limit price; an acceptance takes liquidity immediately and must not be able to rest on the book","name":"RFQ_REQUIRES_IOC","value":163},{"description":"the order does not match the RFQ it references — wrong instrument, or a side the RFQ did not request","name":"RFQ_MISMATCH","value":164},{"description":"the RFQ already has a taker order bound to it; an RFQ accepts only one","name":"RFQ_ALREADY_BOUND","value":165},{"description":"a resting order carrying rfq_id must be an ECN quote (is_ecn = true)","name":"RFQ_MAKER_MUST_BE_ECN","value":166},{"description":"fill-or-kill is not supported on STABLE_PERP yet","name":"FOK_NOT_SUPPORTED","value":167},{"description":"market orders are not supported on STABLE_PERP; a taker order must be a bounded IOC order, carrying a limit price","name":"MARKET_ORDER_NOT_SUPPORTED","value":168},{"description":"STABLE_PERP orders are disabled on this cluster","name":"STABLE_PERP_ORDER_NOT_SUPPORTED","value":169}]},{"name":"OrderStatus","values":[{"description":"Order has been sent to the matching engine and is pending a transition to open/filled/rejected.","name":"PENDING","value":1},{"description":"Order is actively matching on the matching engine, could be unfilled or partially filled.","name":"OPEN","value":2},{"description":"Order is fully filled and hence closed. Taker Orders can transition directly from pending to filled, without going through open.","name":"FILLED","value":3},{"description":"Order is rejected by matching engine since if fails a particular check (See OrderRejectReason). Once an order is open, it cannot be rejected.","name":"REJECTED","value":4},{"description":"Order is cancelled by the user using one of the supported APIs (See OrderRejectReason). Before an order is open, it cannot be cancelled.","name":"CANCELLED","value":5}]},{"name":"PositionCloseStatus","values":[{"description":"Position fully closed via reducing trade or flip","name":"CLOSED","value":1},{"description":"Position closed via liquidation","name":"LIQUIDATED","value":2},{"description":"Position closed via settlement","name":"SETTLED","value":3},{"description":"Position partially closed","name":"PARTIALLY_CLOSED","value":4},{"description":"Lifecycle ended by a stock split; reopened re-denominated","name":"SPLIT_CLOSED","value":5}]},{"name":"PositionMarginType","values":[{"description":"Isolated Margin Mode: each position is allocated a fixed amount of collateral","name":"ISOLATED","value":1},{"description":"Cross Margin Mode: uses all available funds in your account as collateral across all cross margin positions","name":"CROSS","value":2}]},{"description":"Server-only fee scenario tag for spot orders that repay MAM USDT debt against the insurance fund.\nThe default value 'unspecified' means the order is NOT a repayment (regular spot fees apply).\nRisk rejects any user-submitted order with a non-unspecified value.","name":"RepaymentScenario","values":[{"description":"User-initiated MAM repay via TDG; uses MRR (/8) divisor for fee.","name":"MANUAL_REPAYMENT","value":1},{"description":"DEPRECATED — replaced by autoRepayBorrowLimit / autoRepayLTV. Kept for capnp ordinal compatibility; no producer emits this value.","name":"AUTO_REPAYMENT","value":2},{"description":"Liquidator MMR>=100% step 2 repayment; uses LRR (/2) divisor for fee.","name":"LIQUIDATION_REPAYMENT","value":3},{"description":"Liquidator borrow-limit auto-repay; uses ARR (/4) divisor for fee. Validator checks BL trigger is still active.","name":"AUTO_REPAY_BORROW_LIMIT","value":4},{"description":"Liquidator undeployed-loan / LTV auto-repay; uses ARR (/4) divisor for fee. Validator checks LTV trigger is still active.","name":"AUTO_REPAY_LTV","value":5},{"description":"Collateral conversion inside a liquidation bundle. Fee-free.","name":"LIQUIDATION_REBALANCING","value":6}]},{"name":"RfqCounterpartyType","values":[{"description":"the counterparty is a maker quote submitted to the RFQ","name":"MAKER_QUOTE","value":1},{"description":"the counterparty is a resting order on the orderbook","name":"RESTING_ORDER","value":2},{"description":"the counterparty is a forced-exit netting fill","name":"FORCED_EXIT_NETTING","value":3}]},{"name":"RfqSide","values":[{"description":"omitted = two-way request","name":"UNSPECIFIED","value":0},{"description":"the RFQ side is a buy","name":"BUY","value":1},{"description":"the RFQ side is a sell","name":"SELL","value":2}]},{"name":"SubAccountMode","values":[{"description":"Single asset mode: the subaccount is only allowed to hold one asset as collateral","name":"SINGLE_ASSET_MODE","value":1}]},{"description":"|                       | Must Fill All | Can Fill Partial |\n| -                     | -             | -                |\n| Must Fill Immediately | FOK           | IOC              |\n| Can Fill Till Time    | AON           | GTC              |","name":"TimeInForce","values":[{"description":"GTT - Remains open until it is cancelled, or expired","name":"GOOD_TILL_TIME","value":1},{"description":"AON - Either fill the whole order or none of it (Block Trades Only)","name":"ALL_OR_NONE","value":2},{"description":"IOC - Fill the order as much as possible, when hitting the orderbook. Then cancel it","name":"IMMEDIATE_OR_CANCEL","value":3},{"description":"FOK - Both AoN and IoC. Either fill the full order when hitting the orderbook, or cancel it","name":"FILL_OR_KILL","value":4},{"description":"RPI - A GTT + PostOnly maker order, that can only be taken by non-algorithmic UI users.","name":"RETAIL_PRICE_IMPROVEMENT","value":5}]},{"description":"How the market behaves on a holiday date","name":"TradingScheduleCloseType","values":[{"description":"Market is fully closed for the entire day","name":"FULL_DAY","value":1},{"description":"Market closes early; see the earlyClose time","name":"EARLY_CLOSE","value":2}]},{"description":"Specifies different types of trading sessions","name":"TradingSessionType","values":[{"description":"Core market hours. Full liquidity.","name":"REGULAR","value":1},{"description":"Extended hours before open. Lower liquidity.","name":"PRE_MARKET","value":2},{"description":"Extended hours after close. Lower liquidity.","name":"AFTER_MARKET","value":3},{"description":"For 24/5 or specific overnight TradFi perps. Minimal liquidity.","name":"OVERNIGHT","value":4},{"description":"Weekends, holidays, or daily maintenance windows.","name":"CLOSE","value":5}]},{"name":"TransferType","values":[{"description":"Deprecated: use `standard` instead. Legacy value for transfers created before transfer types were introduced.","name":"UNSPECIFIED","value":0},{"description":"Standard transfer that has nothing to do with bridging","name":"STANDARD","value":1},{"description":"Fast Arb Deposit Metadata type","name":"FAST_ARB_DEPOSIT","value":2},{"description":"Fast Arb Withdrawal Metadata type","name":"FAST_ARB_WITHDRAWAL","value":3},{"description":"Transfer type for non native bridging deposit","name":"NON_NATIVE_BRIDGE_DEPOSIT","value":4},{"description":"Transfer type for non native bridging withdrawal","name":"NON_NATIVE_BRIDGE_WITHDRAWAL","value":5},{"description":"Transfer type for adhoc incentive","name":"ADHOC_INCENTIVE","value":6},{"description":"Transfer type for referral incentive","name":"REFERRAL_INCENTIVE","value":7},{"description":"Transfer type for trading deposit yield incentive","name":"TRADING_DEPOSIT_YIELD_INCENTIVE","value":8},{"description":"Transfer type for TGE vesting distribution","name":"TGE_VESTING","value":9},{"description":"Transfer type for TGE airdrop distribution","name":"TGE_AIRDROP","value":10},{"description":"Transfer type for feedback reward distribution","name":"FEEDBACK_REWARD","value":11}]},{"description":"Defines the price type that activates a Take Profit (TP) or Stop Loss (SL) order.\n\nTrigger orders are executed when the selected price type reaches the specified trigger price.Different price types ensure flexibility in executing strategies based on market conditions.","name":"TriggerBy","values":[{"description":"no trigger condition","name":"UNSPECIFIED","value":0},{"description":"INDEX - Order is activated when the index price reaches the trigger price","name":"INDEX","value":1},{"description":"LAST - Order is activated when the last trade price reaches the trigger price","name":"LAST","value":2},{"description":"MID - Order is activated when the mid price reaches the trigger price","name":"MID","value":3},{"description":"MARK - Order is activated when the mark price reaches the trigger price","name":"MARK","value":4}]},{"description":"Defines the type of trigger order used in trading, such as Take Profit or Stop Loss.\n\nTrigger orders allow execution based on pre-defined price conditions rather than immediate market conditions.","name":"TriggerType","values":[{"description":"Not a trigger order. The order executes normally without any trigger conditions.","name":"UNSPECIFIED","value":0},{"description":"Take Profit Order - Executes when the price reaches a specified level to secure profits.","name":"TAKE_PROFIT","value":1},{"description":"Stop Loss Order - Executes when the price reaches a specified level to limit losses.","name":"STOP_LOSS","value":2}]},{"name":"VaultInvestorAction","values":[{"name":"UNSPECIFIED","value":0},{"name":"VAULT_INVEST","value":1},{"name":"VAULT_BURN_LP_TOKEN","value":2},{"name":"VAULT_REDEEM","value":3}]},{"description":"Denotes the age category of a given redemption request.","name":"VaultRedemptionReqAgeCategory","values":[{"description":"This request is at least as old as the minimum redemption period, and is eligible for automated redemption.","name":"NORMAL","value":1},{"description":"This request is nearing the maxmimum redemption period and will be factored into pre-order check margin requirements.","name":"URGENT","value":2},{"description":"This request has exceeded the maximum redemption period and will be considered for forced redemptions.","name":"OVERDUE","value":3},{"description":"This request has yet to exceed the minimum redemption period, and is not yet eligible for automated redemption.","name":"PRE_MIN","value":4}]},{"description":"The list of Trading Venues that are supported on the GRVT exchange","name":"Venue","values":[{"description":"the trade is cleared on the orderbook venue","name":"ORDERBOOK","value":1},{"description":"the trade is cleared on the RFQ venue","name":"RFQ","value":2}]},{"name":"WalletType","values":[{"description":"Funding wallet","name":"FUNDING","value":1},{"description":"Spot wallet","name":"SPOT","value":2},{"description":"Futures wallet","name":"FUTURES","value":3}]},{"name":"WsCandlestickInterval","values":[{"description":"1 minute","name":"CI_1_M","value":1},{"description":"3 minutes","name":"CI_3_M","value":2},{"description":"5 minutes","name":"CI_5_M","value":3},{"description":"15 minutes","name":"CI_15_M","value":4},{"description":"30 minutes","name":"CI_30_M","value":5},{"description":"1 hour","name":"CI_1_H","value":6},{"description":"2 hour","name":"CI_2_H","value":7},{"description":"4 hour","name":"CI_4_H","value":8},{"description":"6 hour","name":"CI_6_H","value":9},{"description":"8 hour","name":"CI_8_H","value":10},{"description":"12 hour","name":"CI_12_H","value":11},{"description":"1 day","name":"CI_1_D","value":12},{"description":"3 days","name":"CI_3_D","value":13},{"description":"5 days","name":"CI_5_D","value":14},{"description":"1 week from Thursday","name":"CI_1_W","value":15},{"description":"2 weeks from Thursday","name":"CI_2_W","value":16},{"description":"3 weeks from Thursday","name":"CI_3_W","value":17},{"description":"4 weeks from Thursday","name":"CI_4_W","value":18}]}],"environments":{"prod":{"chain_id":325,"edge":"https://edge.grvt.io","market_data":"https://market-data.grvt.io","market_data_ws":"wss://market-data.grvt.io/ws/full","market_data_ws_lite":"wss://market-data.grvt.io/ws/lite","trading":"https://trades.grvt.io","trading_ws":"wss://trades.grvt.io/ws/full","trading_ws_lite":"wss://trades.grvt.io/ws/lite"},"staging":{"chain_id":327,"edge":"https://edge.staging.gravitymarkets.io","market_data":"https://market-data.staging.gravitymarkets.io","market_data_ws":"wss://market-data.staging.gravitymarkets.io/ws/full","market_data_ws_lite":"wss://market-data.staging.gravitymarkets.io/ws/lite","optional":true,"trading":"https://trades.staging.gravitymarkets.io","trading_ws":"wss://trades.staging.gravitymarkets.io/ws/full","trading_ws_lite":"wss://trades.staging.gravitymarkets.io/ws/lite"},"testnet":{"chain_id":326,"edge":"https://edge.testnet.grvt.io","market_data":"https://market-data.testnet.grvt.io","market_data_ws":"wss://market-data.testnet.grvt.io/ws/full","market_data_ws_lite":"wss://market-data.testnet.grvt.io/ws/lite","trading":"https://trades.testnet.grvt.io","trading_ws":"wss://trades.testnet.grvt.io/ws/full","trading_ws_lite":"wss://trades.testnet.grvt.io/ws/lite"}},"errors":{"codes":[{"code":1000,"message":"You need to authenticate prior to using this functionality","name":"ErrUnauthorized","retryable":false,"status":401},{"code":1001,"message":"You are not authorized to access this functionality","name":"ErrForbidden","retryable":false,"status":403},{"code":1002,"message":"Internal Server Error","name":"ErrInternalServer","retryable":false,"status":500},{"code":1003,"message":"Request could not be processed due to malformed syntax","name":"ErrInvalidRequest","retryable":false,"status":400},{"code":1004,"message":"Data Not Found","name":"ErrNotFound","retryable":false,"status":404},{"code":1005,"message":"Unknown Error","name":"UnknownErr","retryable":false,"status":500},{"code":1006,"message":"You have surpassed the allocated rate limit for your tier","name":"ErrRateLimit","retryable":true,"status":429},{"code":1007,"message":"The currency you are requesting for is  not currently supported","name":"ErrUnsupportedCurrency","retryable":false,"status":404},{"code":1008,"message":"Your IP has not been whitelisted for access","name":"ErrIPNotWhitelisted","retryable":false,"status":401},{"code":1009,"message":"We are temporarily deactivating this API endpoint, please try again later","name":"ErrAPIEndpointTemporarilyDeactivated","retryable":true,"status":503},{"code":1010,"message":"Invalid tier order","name":"ErrInvalidTierOrder","retryable":false,"status":400},{"code":1011,"message":"This API is restricted based on the client type","name":"ErrVisibilityRestricted","retryable":false,"status":403},{"code":1012,"message":"Invalid signature chain ID","name":"ErrInvalidSignatureChainID","retryable":false,"status":400},{"code":1013,"message":"Spot fee rebate is not supported","name":"ErrSpotFeeRebateNotSupported","retryable":false,"status":400},{"code":1014,"message":"Upstream data service timed out, please try again","name":"ErrGatewayTimeout","retryable":true,"status":504},{"code":1015,"message":"Upstream data service is temporarily unavailable, please try again","name":"ErrServiceUnavailable","retryable":true,"status":503},{"code":1100,"message":"Stream not supported on this gateway","name":"ErrStreamNotFound","retryable":false,"status":400},{"code":1101,"message":"Feed Format must be in the format of <primary>@<secondary>","name":"ErrInvalidFeedFormat","retryable":false,"status":400},{"code":1102,"message":"Wrong number of primary selectors","name":"ErrPrimarySelectorParts","retryable":false,"status":400},{"code":1103,"message":"Wrong number of secondary selectors","name":"ErrSecondarySelectorParts","retryable":false,"status":400},{"code":1104,"message":"Attempted to subscribe to same primary selector twice, in same request","name":"ErrDuplicatePrimarySelector","retryable":false,"status":400},{"code":1105,"message":"Subscribe params are invalid","name":"ErrInvalidSubscribeParams","retryable":false,"status":400},{"code":1106,"message":"Unsubscribe params are invalid","name":"ErrInvalidUnsubscribeParams","retryable":false,"status":400},{"code":1107,"message":"JSON RPC version must be 2.0","name":"ErrInvalidJSONRPCVersion","retryable":false,"status":400},{"code":1200,"message":"RPC method not found","name":"ErrRPCMethodNotFound","retryable":false,"status":404},{"code":1300,"message":"JSON RPC ID exceeds uint32","name":"ErrJSONRPCIDExceedsUint32","retryable":false,"status":400},{"code":1400,"message":"Signer does not have trade permission","name":"ErrNoTradePermission","retryable":false,"status":403},{"code":1500,"message":"Request must contain a valid main account ID","name":"ErrMainAccIDInvalid","retryable":false,"status":400},{"code":2000,"message":"Signature is from an unauthorized signer","name":"SignerUnauthorized","retryable":false,"status":403},{"code":2001,"message":"Signature has expired","name":"SignatureExpired","retryable":false,"status":403},{"code":2002,"message":"Signature does not match payload","name":"SignatureDoesNotMatchPayload","retryable":false,"status":403},{"code":2003,"message":"Order sub account does not match logged in user","name":"OrderSubAccountDoesNotMatchLoggedInUser","retryable":false,"status":403},{"code":2004,"message":"Signature is from an expired session key","name":"SessionKeySignerExpired","retryable":false,"status":403},{"code":2005,"message":"Signature V must be 27/28","name":"SignatureInvalidV","retryable":false,"status":403},{"code":2006,"message":"Signature R/S must have exactly 64 characters long without 0x prefix","name":"SignatureInvalidRSLength","note":"The message is misleading: send r and s as \"0x\" + 64 hex characters. Without 0x the server reads them as 0 and the signature fails to verify.","retryable":false,"status":403},{"code":2007,"message":"Signature S must be in the lower half of the curve","name":"SignatureSIsNotCurveLowerHalf","retryable":false,"status":403},{"code":2008,"message":"Signature exceeds maximum allowed duration.","name":"SignatureExpirationTooLong","retryable":false,"status":403},{"code":2010,"message":"Order ID should be empty when creating an order","name":"OrderIDShouldBeEmpty","retryable":false,"status":400},{"code":2011,"message":"Client Order ID should be supplied when creating an order","name":"ClientOrderIDShouldBeSupplied","retryable":false,"status":400},{"code":2012,"message":"Client Order ID overlaps with existing active order","name":"ClientOrderIDOverlaps","retryable":false,"status":400},{"code":2013,"message":"Client Order ID repeats with the last order","name":"ClientOrderIDRepeats","retryable":false,"status":400},{"code":2020,"message":"Market Order must always be supplied without a limit price","name":"MarketOrderWithLimitPrice","retryable":false,"status":400},{"code":2021,"message":"Limit Order must always be supplied with a limit price","name":"LimitOrderWithoutLimitPrice","retryable":false,"status":400},{"code":2030,"message":"Orderbook Orders must have a TimeInForce of GTT/IOC/FOK","name":"InvalidTimeInForceOrderbook","retryable":false,"status":400},{"code":2031,"message":"RFQ Orders must have a TimeInForce of GTT/AON/IOC/FOK","name":"InvalidTimeInForceRFQ","retryable":false,"status":400},{"code":2032,"message":"Post Only can only be set to true for GTT/AON orders","name":"PostOnlyWhenTakerOrder","retryable":false,"status":400},{"code":2040,"message":"Order must contain at least one leg","name":"LegsEmpty","retryable":false,"status":400},{"code":2041,"message":"Order Legs must be sorted by Derivative.Instrument/Underlying/BaseCurrency/Expiration/StrikePrice","name":"LegsNotSorted","retryable":false,"status":400},{"code":2042,"message":"Orderbook Orders must contain only one leg","name":"LegsMultipleOrderbook","retryable":false,"status":400},{"code":2050,"message":"Order state must be empty upon creation","name":"NonEmptyState","retryable":false,"status":400},{"code":2051,"message":"Order execution metadata must be empty upon creation","name":"ExecutionMetadataShouldBeEmpty","retryable":false,"status":400},{"code":2060,"message":"Order Legs contain one or more inactive derivative","name":"InactiveDerivative","retryable":false,"status":400},{"code":2061,"message":"Unsupported Instrument Requested","name":"InstrumentNotSupported","retryable":false,"status":400},{"code":2062,"message":"Order size smaller than min size","name":"NumContractsUnderMinSize","retryable":false,"status":400},{"code":2063,"message":"Order size smaller than min block size in block trade venue","name":"NumContractsUnderMinBlockSize","retryable":false,"status":400},{"code":2064,"message":"Invalid limit price tick","name":"InvalidLimitPriceTick","retryable":false,"status":400},{"code":2065,"message":"Order size too granular","name":"InvalidContractGrainSize","retryable":false,"status":400},{"code":2066,"message":"Order below minimum notional. Please try again with a higher price or size.","name":"NotionalBelowMinimum","retryable":false,"status":400},{"code":2067,"message":"Order below minimum notional. Please try reducing your position again with a higher price or size.","name":"PositionClosingNotionalBelowMinimum","retryable":false,"status":400},{"code":2070,"message":"Liquidation Order is not supported","name":"LiquidationOrderNotSupported","retryable":false,"status":400},{"code":2080,"message":"Insufficient margin to create order","name":"InsufficientMargin","retryable":false,"status":400},{"code":2081,"message":"Order Fill would result in exceeding maximum position size","name":"MaximumPositionSizeExceeded","retryable":false,"status":400},{"code":2082,"message":"Pre-order check failed","name":"ErrFailedPreOrderCheck","retryable":false,"status":400},{"code":2083,"message":"Order Fill would result in exceeding maximum position size under current configurable leverage tier","name":"MaximumLeverageConfigPositionSizeExceeded","retryable":false,"status":400},{"code":2084,"message":"Post-order check failed","name":"ErrFailedPostOrderCheck","retryable":false,"status":400},{"code":2090,"message":"Max open orders exceeded","name":"MaxOpenOrdersExceeded","retryable":false,"status":429},{"code":2091,"message":"As a precaution, only position-reducing (`reduce_only` as true) orders are currently allowed on your account. Please contact support so we can help complete the necessary checks.","name":"ErrSessionOrderReduceOnlyRequired","retryable":false,"status":403},{"code":2100,"message":"Invalid initial leverage","name":"InvalidInitialLeverage","retryable":false,"status":400},{"code":2101,"message":"Vaults cannot configure leverage","name":"VaultsCannotConfigureLeverage","retryable":false,"status":400},{"code":2102,"message":"Margin type change failed, has open position for this instrument","name":"MarginTypeChangeFailedHasOpenPosition","retryable":false,"status":400},{"code":2103,"message":"Margin type change failed, has open orders for this instrument","name":"MarginTypeChangeFailedHasOpenOrders","retryable":false,"status":400},{"code":2104,"message":"Margin type not supported","name":"MarginTypeNotSupported","retryable":false,"status":400},{"code":2105,"message":"Margin type change failed","name":"MarginTypeChangeFailed","retryable":false,"status":400},{"code":2107,"message":"Attempted to set leverage below minimum","name":"NewLeverageBelowMinimum","retryable":false,"status":400},{"code":2108,"message":"Attempted to set leverage above maximum","name":"NewLeverageAboveMaximum","retryable":false,"status":400},{"code":2110,"message":"Invalid trigger by","name":"InvalidTriggerBy","retryable":false,"status":400},{"code":2111,"message":"Unsupported trigger by","name":"UnsupportedTriggerBy","retryable":false,"status":400},{"code":2112,"message":"Invalid trigger order","name":"InvalidTriggerOrder","retryable":false,"status":400},{"code":2113,"message":"Trigger price must be non-zero","name":"EmptyTriggerPrice","retryable":false,"status":400},{"code":2114,"message":"Invalid position linked TPSL orders, position linked TPSL must be a reduce-only order","name":"ErrInvalidPTPSLReduceOnly","retryable":false,"status":400},{"code":2115,"message":"Invalid position linked TPSL orders, position linked TPSL must not have smaller size than the position","name":"ErrInvalidPTPSLSize","retryable":false,"status":400},{"code":2116,"message":"Position linked TPSL order for this asset already exists","name":"ErrPTPSLOrderAlreadyExists","retryable":false,"status":400},{"code":2117,"message":"Position linked TPSL orders must be created from web or mobile clients","name":"ErrPTPSLMustBeFromWebOrMobile","retryable":false,"status":400},{"code":2118,"message":"Invalid trigger price tick","name":"InvalidTriggerPriceTick","retryable":false,"status":400},{"code":2120,"message":"RPI orders are not supported yet","name":"RPIOrderNotSupported","retryable":false,"status":400},{"code":2121,"message":"RPI order must be a limit order","name":"RPIOrderMustBeLimit","retryable":false,"status":400},{"code":2122,"message":"RPI order must be post-only","name":"RPIOrderMustBePostOnly","retryable":false,"status":400},{"code":2123,"message":"RPI order must be from API source","name":"RPIOrderMustBeFromApiSource","retryable":false,"status":400},{"code":2130,"message":"ECN orders are not supported yet","name":"ECNOrderNotSupported","retryable":false,"status":400},{"code":2131,"message":"ECN order must be a GTT order","name":"ECNOrderMustBeGTT","retryable":false,"status":400},{"code":2132,"message":"ECN order must be a limit order","name":"ECNOrderMustBeLimit","retryable":false,"status":400},{"code":2133,"message":"ECN order must be post-only","name":"ECNOrderMustBePostOnly","retryable":false,"status":400},{"code":2134,"message":"ECN order must be from API source","name":"ECNOrderMustBeFromApiSource","retryable":false,"status":400},{"code":2135,"message":"ECN order must not be a reduce-only order","name":"ECNOrderMustNotBeReduceOnly","retryable":false,"status":400},{"code":2136,"message":"ECN order must not be a conditional order","name":"ECNOrderMustNotBeConditional","retryable":false,"status":400},{"code":2141,"message":"RFQ sub account does not match logged in user","name":"RfqSubAccountDoesNotMatchLoggedInUser","retryable":false,"status":403},{"code":2142,"message":"RFQ instrument must be a stable perpetual","name":"RfqInstrumentNotStablePerp","retryable":false,"status":400},{"code":2143,"message":"RFQ size is below the instrument minimum size","name":"RfqSizeBelowMinimum","retryable":false,"status":400},{"code":2144,"message":"RFQ size exceeds the instrument maximum position size","name":"RfqSizeAboveMaximum","retryable":false,"status":400},{"code":2145,"message":"RFQ expiry is invalid","name":"RfqInvalidExpiry","retryable":false,"status":400},{"code":2146,"message":"An open RFQ already exists for this sub account and instrument","name":"RfqAlreadyExistsForAsset","retryable":false,"status":400},{"code":2147,"message":"stable perp orders require a multi-asset-mode sub-account","name":"StablePerpRequiresMultiAssetMode","retryable":false,"status":400},{"code":2148,"message":"a vault whose investment currency is not its quote currency cannot trade","name":"ErrVaultCannotTrade","retryable":false,"status":400},{"code":2220,"message":"No orders provided","name":"ErrNoOrdersProvided","retryable":false,"status":400},{"code":2222,"message":"Order is not a TPSL order","name":"ErrNotTPSLOrder","retryable":false,"status":400},{"code":2223,"message":"Unsupported bulk orders type","name":"ErrUnsupportedBulkOrders","retryable":false,"status":400},{"code":2224,"message":"Invalid OCO orders","name":"ErrInvalidOCO","retryable":false,"status":400},{"code":2225,"message":"OCO orders have invalid legs ","name":"ErrInvalidOCOInvalidLeg","retryable":false,"status":400},{"code":2226,"message":"OCO order take profit and stop loss legs must share the same instrument, size and direction","name":"ErrInvalidOCOMismatchedLegs","retryable":false,"status":400},{"code":2227,"message":"Invalid OSO orders","name":"ErrInvalidOSO","retryable":false,"status":400},{"code":2228,"message":"OSO orders have invalid legs","name":"ErrInvalidOSOInvalidLeg","retryable":false,"status":400},{"code":2229,"message":"OSO orders must share the same instrument and size, with main order direction opposite to TPSL orders","name":"ErrInvalidOSOMismatchedLegs","retryable":false,"status":400},{"code":2230,"message":"OSO orders has invalid trigger price","name":"ErrInvalidOSOTriggerPrice","retryable":false,"status":400},{"code":2231,"message":"Invalid position linked TPSL orders","name":"ErrInvalidPTPSL","retryable":false,"status":400},{"code":2232,"message":"Invalid position linked TPSL orders, position linked TPSL must not have order linkage","name":"ErrInvalidPTPSLOrderLinkage","retryable":false,"status":400},{"code":2233,"message":"Both order ID and client order ID cannot be provided","name":"ErrBothOrderIDAndClientOrderIDProvided","retryable":false,"status":400},{"code":2234,"message":"Bulk create orders must have the same instrument","name":"ErrInvalidBulkOrdersAssetMismatch","retryable":false,"status":400},{"code":2235,"message":"Bulk orders count exceeds the maximum allowed","name":"ErrBulkOrdersMaxCountExceeded","retryable":false,"status":400},{"code":2236,"message":"Bulk orders does not support trigger order","name":"ErrBulkOrdersNotSupportTriggerOrder","retryable":false,"status":400},{"code":2237,"message":"Bulk orders must be from API source","name":"ErrBulkOrdersNotFromApiSource","retryable":false,"status":400},{"code":2238,"message":"Split TPSL orders must not be position-linked TPSL","name":"ErrSplitTPSLMustNotBePositionLinkedTPSL","retryable":false,"status":400},{"code":2239,"message":"Split TPSL orders must be reduce-only","name":"ErrSplitTPSLMustBeReduceOnly","retryable":false,"status":400},{"code":2240,"message":"If creating split TPSL orders, can only specify split TPSL orders in the creation array","name":"ErrSplitTPSLCreatesMustNotContainNonSplit","retryable":false,"status":400},{"code":2241,"message":"Split TPSL order count exceeds maximum allowed set size","name":"ErrSplitTPSLCreatesExceedsSetSize","retryable":false,"status":400},{"code":2242,"message":"Split TPSL functionality not supported; you may be using a deprecated API, or this functionality is temporarily disabled","name":"ErrSplitTPSLNotSupported","retryable":false,"status":400},{"code":2243,"message":"Split TPSL set already exists for this asset. Please modify the existing set of split TPSL orders.","name":"ErrSplitTPSLSetAlreadyExists","retryable":false,"status":400},{"code":2244,"message":"Split TPSL creation only allowed for instruments with already-existing positions.","name":"ErrCreatingSplitTPSLWithoutExistingPosition","retryable":false,"status":400},{"code":2245,"message":"Split TPSL creation exceeds position size.","name":"ErrCreatingSplitTPSLExceedingPositionSize","retryable":false,"status":400},{"code":2246,"message":"Split TPSL modification requires all existing split TPSL orders to be cancelled","name":"ErrModifyingSplitTPSLMismatchedCancels","retryable":false,"status":400},{"code":2300,"message":"Order cancel time-to-live settings currently disabled.","name":"CancelTTLDisabled","retryable":false,"status":400},{"code":2301,"message":"Order cancel time-to-live exceeds maximum allowed value.","name":"CancelTTLMaxExceeded","retryable":false,"status":400},{"code":2400,"message":"Reduce only order with no position","name":"ReduceOnlyOrderWithNoPosition","retryable":false,"status":400},{"code":2401,"message":"Reduce only order must not increase position size","name":"ReduceOnlyOrderIncreaseSize","retryable":false,"status":400},{"code":2402,"message":"Reduce only order size exceeds maximum allowed value","name":"ReduceOnlyOrderSizeExceeded","retryable":false,"status":400},{"code":2413,"message":"Replace order failed, number of orders provided does not match the number of orders to replace","name":"ErrReplaceOrderNumOrdersMismatch","retryable":false,"status":400},{"code":2450,"message":"Spot order is not supported","name":"ErrSpotOrderNotSupported","retryable":false,"status":400},{"code":2451,"message":"Spot order must not be a reduce-only order","name":"ErrSpotOrderReduceOnlyNotSupported","retryable":false,"status":400},{"code":2452,"message":"Spot order must not be a TPSL order","name":"ErrSpotOrderTPSLNotSupported","retryable":false,"status":400},{"code":2453,"message":"Spot trading is blocked during socialized loss","name":"ErrSpotTradingBlockedDuringSocializedLoss","retryable":false,"status":400},{"code":3000,"message":"Instrument is invalid","name":"ErrInvalidInstrument","retryable":false,"status":400},{"code":3004,"message":"Instrument does not have a valid maintenance margin configuration","name":"ErrMMConfigNotFound","retryable":false,"status":500},{"code":3005,"message":"Instrument's underlying currency does not have a valid balance decimal configuration","name":"ErrAssetUnderlyingBalDecConfigNotFound","retryable":false,"status":500},{"code":3006,"message":"Instrument's quote currency does not have a valid balance decimal configuration","name":"ErrAssetQuoteBalDecConfigNotFound","retryable":false,"status":500},{"code":3007,"message":"API is not applicable for spot instruments","name":"ErrNotApplicableForSpotInstrument","retryable":false,"status":400},{"code":3008,"message":"Funding rate aggregation type is not applicable for stable perp instruments","name":"ErrInvalidFundingAggregationTypeForStablePerp","retryable":false,"status":400},{"code":3011,"message":"Limit exceeds min or max value","name":"ErrInvalidLimit","retryable":false,"status":400},{"code":3012,"message":"Cursor is invalid","name":"ErrInvalidCursor","retryable":false,"status":400},{"code":3013,"message":"Exact limit value is not supported","name":"ErrExactLimitNotSupported","retryable":false,"status":400},{"code":3020,"message":"Sub account ID must be an uint64 integer","name":"ErrInvalidSubAccountID","retryable":false,"status":400},{"code":3021,"message":"Either order ID or client order ID must be supplied","name":"ErrInvalidOrderID","retryable":false,"status":400},{"code":3030,"message":"Feed rate is invalid","name":"ErrInvalidFeedRate","retryable":false,"status":400},{"code":3031,"message":"Depth is invalid","name":"ErrInvalidDepth","retryable":false,"status":400},{"code":3040,"message":"Candlestick interval is invalid","name":"ErrInvalidCandlestickInterval","retryable":false,"status":400},{"code":3041,"message":"Candlestick type is invalid","name":"ErrInvalidCandlestickType","retryable":false,"status":400},{"code":3042,"message":"Candlestick type is not applicable for spot instruments","name":"ErrInvalidCandlestickTypeForSpot","retryable":false,"status":400},{"code":3043,"message":"Candlestick type not supported for this instrument","name":"ErrInvalidCandlestickTypeForStablePerp","retryable":false,"status":400},{"code":4000,"message":"Insufficient balance to complete transfer","name":"ErrInsufficientBalanceToTransfer","retryable":false,"status":400},{"code":4002,"message":"Transfer failed with an unrefined failure reason, please report to GRVT","name":"ErrTransferFailedReasonUnrefined","retryable":false,"status":400},{"code":4004,"message":"Both transfer wallet types must be provided","name":"ErrBothTransferWalletTypeMustBeProvided","retryable":false,"status":400},{"code":4005,"message":"Invalid wallet type for funding account","name":"ErrInvalidWalletTypeForFundingAccount","retryable":false,"status":400},{"code":4006,"message":"Invalid wallet type for sub account","name":"ErrInvalidWalletTypeForSubAccount","retryable":false,"status":400},{"code":4007,"message":"Transfer failed because signature is an exact duplicate of another recently-observed transfer.","name":"ErrDuplicatedTransfer","retryable":false,"status":400},{"code":4008,"message":"Currency is not allowed in the target wallet type","name":"ErrCurrencyNotAllowedInWallet","retryable":false,"status":400},{"code":4009,"message":"Please specify the transfer type","name":"ErrUnspecifiedTransferType","retryable":false,"status":400},{"code":4010,"message":"This wallet is not supported. Please try another wallet.","name":"ErrWithdrawalWalletNotSupported","retryable":false,"status":400},{"code":4011,"message":"This currency cannot be used as collateral in a multi-asset margin futures wallet.","name":"ErrCVRZeroNotAllowedInFuturesWallet","retryable":false,"status":400},{"code":4012,"message":"Transfer would push your holdings of this currency above the per-user collateral limit.","name":"ErrCollateralLimitExceeded","retryable":false,"status":400},{"code":4014,"message":"This currency has been disabled for transfers and withdrawals.","name":"ErrCurrencyTransferNotAllowed","retryable":false,"status":400},{"code":4015,"message":"Signer does not have transfer permission","name":"ErrNoTransferPermission","retryable":false,"status":403},{"code":4016,"message":"As a precaution, funds movements on your account are temporarily unavailable. Please contact support so we can help complete the necessary checks.","name":"ErrTransferWithdrawalBlocked","retryable":false,"status":403},{"code":4018,"message":"$GRVT is disabled for external transfer","name":"ErrGrvtExternalTransferNotAllowed","retryable":false,"status":400},{"code":4019,"message":"Your wallet has been put under review. Please reach out to kyc@grvt.io for any questions.","name":"ErrWithdrawalWalletUnderReview","retryable":false,"status":400},{"code":4020,"message":"This currency is not enabled as collateral for the destination sub account. Enable it in your collateral preferences first.","name":"ErrCurrencyNotEnabledAsCollateral","retryable":false,"status":400},{"code":4021,"message":"The funding account has fewer vault shares than requested, after reserving any pending redemption.","name":"ErrInsufficientFundingVaultShares","retryable":false,"status":400},{"code":4022,"message":"The trading account has fewer vault shares than requested.","name":"ErrInsufficientTradingVaultShares","retryable":false,"status":400},{"code":4023,"message":"Vault shares move only between your own funding account and your own multi-asset trading accounts.","name":"ErrVaultShareTransferRoute","retryable":false,"status":400},{"code":5000,"message":"Transfer Metadata does not match the expected structure.","name":"ErrInvalidTransferMetadata","retryable":false,"status":400},{"code":5001,"message":"Transfer Provider does not match the expected provider.","name":"ErrInvalidTransferProvider","retryable":false,"status":400},{"code":5002,"message":"Direction of the transfer does not match the expected direction.","name":"ErrInvalidDirection","retryable":false,"status":400},{"code":5003,"message":"Endpoint account ID is invalid.","name":"ErrInvalidEndpoint","retryable":false,"status":400},{"code":5004,"message":"Funding account does not exist in our system.","name":"ErrFundingAccountDoesntExist","retryable":false,"status":400},{"code":5005,"message":"Invalid ChainID for the transfer request.","name":"ErrInvalidChainID","retryable":false,"status":400},{"code":6000,"message":"Countdown time is bigger than 300s supported","name":"ErrLongCancelOnDisconnectCountdown","retryable":false,"status":400},{"code":6100,"message":"Derisk MM Ratio is out of range","name":"ErrDeriskMMRatioOutOfRange","retryable":false,"status":400},{"code":7000,"message":"Vault ID provided is invalid and does not belong to any vault","name":"ErrInvalidVaultID","retryable":false,"status":400},{"code":7001,"message":"Vault does not have sufficient LP token balance","name":"ErrInsufficientVaultLPToken","retryable":false,"status":400},{"code":7002,"message":"User has an ongoing redemption","name":"ErrOngoingRedemption","retryable":false,"status":400},{"code":7003,"message":"This vault has been delisted/closed.","name":"ErrVaultNotActive","retryable":false,"status":400},{"code":7004,"message":"This investment would cause the vault to exceed its valuation cap.","name":"ErrInvestmentExceedsCap","retryable":false,"status":400},{"code":7005,"message":"You are attempting to burn more vault tokens than you own.","name":"ErrBurningMoreVaultTokensThanOwned","retryable":false,"status":400},{"code":7006,"message":"You are attempting to burn vault tokens whilst having an active redemption request.","name":"ErrBurningTokenWhileActiveRedemption","retryable":false,"status":400},{"code":7007,"message":"The investor is not an LP for this vault.","name":"ErrInvestorNotVaultLP","retryable":false,"status":400},{"code":7008,"message":"Vault redemption requests may only be submitted in the vault's investment currency.","name":"ErrOnlyAllowedToRedeemInVaultInvestmentCurrency","retryable":false,"status":400},{"code":7009,"message":"Vault Investor does not have enough LP tokens to redeem.","name":"ErrInsufficientInvestorTokenBalanceForRedemption","retryable":false,"status":400},{"code":7012,"message":"Vault investor ID provided is invalid.","name":"ErrInvalidVaultInvestorID","retryable":false,"status":400},{"code":7013,"message":"Cross-exchange vaults not supported","name":"ErrCrossExchangeVaultNotSupported","retryable":false,"status":400},{"code":7014,"message":"Only allowed to invest in vault's investment currency","name":"ErrOnlyAllowedToInvestInVaultInvestmentCurrency","retryable":false,"status":400},{"code":7015,"message":"Some of these vault shares are still within the vault's minimum investment period and cannot be redeemed yet.","name":"ErrVaultLpTokensLocked","retryable":false,"status":400},{"code":7017,"message":"The exchange rate is not allowed: it must be exactly 1 when both currencies are the same, and at most the current conversion rate otherwise.","name":"ErrVaultConversionRateNotAllowed","retryable":false,"status":400},{"code":7018,"message":"Invalid invest source: use the funding account with the funding wallet, or a spot or futures wallet of one of your own trading accounts that is not a vault.","name":"ErrVaultInvalidInvestSource","retryable":false,"status":400},{"code":7019,"message":"A price this conversion needs is stale or not available yet. Please try again later.","name":"ErrVaultConversionPriceStale","retryable":false,"status":400},{"code":7027,"message":"The conversion would pay out nothing: the exchange rate or the amount is too small.","name":"ErrVaultConversionZeroOutput","retryable":false,"status":400},{"code":7028,"message":"This signed vault investment has already been executed. Sign a new one to invest again.","name":"ErrVaultInvestAlreadyExecuted","retryable":false,"status":400},{"code":7035,"message":"Spot transfers are not enabled, so only the funding account or the futures wallet of a trading account, in USDT, can pay this investment.","name":"ErrVaultInvestSourceNeedsSpotTransfers","retryable":false,"status":400},{"code":7100,"message":"Unknown transaction type","name":"ErrUnknownTransactionType","retryable":false,"status":500},{"code":7101,"message":"Transfer account not found","name":"ErrTransferAccountNotFound","retryable":false,"status":400},{"code":7102,"message":"Transfer sub-account not found","name":"ErrTransferSubAccountNotFound","retryable":false,"status":400},{"code":7103,"message":"Charged trading fee below the config minimum","name":"ErrChargedTradingFeeBelowConfigMinimum","retryable":false,"status":500},{"code":7104,"message":"Transfer sub-account doesn't belong to the transfer main account","name":"ErrTransferSubAccountNotUnderAccount","retryable":false,"status":400},{"code":7105,"message":"Transfer between subaccounts of different accounts","name":"ErrTransferBetweenSubAccOfDifferentAccount","retryable":false,"status":400},{"code":7303,"message":"Order creations have been blocked for this delisted asset.","name":"ErrDelistCreateOrderBlocked","retryable":false,"status":400},{"code":7304,"message":"Only position-reducing orders (`reduce_only` as true) allowed for this asset right now.","name":"ErrDelistPositionOpenBlocked","retryable":false,"status":400},{"code":7306,"message":"Order creation is temporarily blocked during the corporate action / maintenance window","name":"ErrMaintenanceCreateOrderBlocked","retryable":false,"status":400},{"code":7450,"message":"Add margin failed","name":"AddMarginFailed","retryable":false,"status":400},{"code":7451,"message":"Add margin to empty position","name":"AddMarginToEmptyPosition","retryable":false,"status":400},{"code":7452,"message":"Add margin to non isolated position","name":"AddMarginToNonIsolatedPosition","retryable":false,"status":400},{"code":7453,"message":"Max addable amount exceeded","name":"MaxAddableAmountExceeded","retryable":false,"status":400},{"code":7454,"message":"Max removable amount exceeded","name":"MaxRemovableAmountExceeded","retryable":false,"status":400},{"code":7455,"message":"Not isolated margin position","name":"NotIsolatedMarginPosition","retryable":false,"status":400},{"code":7501,"message":"Builder Fee can't be negative.","name":"ErrBuilderFeeNegative","retryable":false,"status":400},{"code":7504,"message":"Builder is not authorized for the specified user.","name":"ErrBuilderNotAuthorized","retryable":false,"status":400},{"code":7505,"message":"Builder Fee exceeds authorized limit.","name":"ErrBuilderFeeExceedsAuthorizationLimit","retryable":false,"status":400},{"code":7506,"message":"Builder Account is missing but builder fee is provided.","name":"ErrBuilderMissing","retryable":false,"status":400},{"code":7600,"message":"Order slippage protection is not enabled.","name":"ErrSlippageFeatureDisabled","retryable":false,"status":400},{"code":7601,"message":"Slippage protection is only supported on IOC limit orders.","name":"ErrSlippageRequiresIOCLimitOrder","retryable":false,"status":400},{"code":7602,"message":"Slippage is below the minimum allowed value.","name":"ErrSlippageBelowMinimum","retryable":false,"status":400},{"code":7603,"message":"Slippage exceeds the asset's price protection band.","name":"ErrSlippageExceedsPriceProtectionBand","retryable":false,"status":400},{"code":7701,"message":"You are not a qualified market maker or designated market maker for this instrument.","name":"ErrSfpIndicativeNotQualifiedMaker","retryable":false,"status":403},{"code":7704,"message":"Stable Funding Perpetual orders are not yet supported.","name":"ErrSfpOrderNotSupported","retryable":false,"status":400},{"code":7705,"message":"The order's instrument does not match the referenced RFQ's instrument.","name":"ErrSfpInstrumentMismatch","retryable":false,"status":400},{"code":7706,"message":"Private maker quotes are not yet supported.","name":"ErrSfpPrivateQuoteNotSupported","retryable":false,"status":400},{"code":7707,"message":"The referenced RFQ is not open.","name":"ErrSfpRfqNotLive","retryable":false,"status":400},{"code":7708,"message":"The referenced RFQ already has a taker order.","name":"ErrSfpRfqAlreadyHasTakerOrder","retryable":false,"status":400},{"code":7709,"message":"Invalid time in force for a Stable Funding Perpetual taker order.","name":"ErrSfpTakerInvalidTimeInForce","retryable":false,"status":400},{"code":7711,"message":"Market orders are not allowed for Stable Funding Perpetual taker orders; a market-order slippage bound must be set.","name":"ErrSfpMarketOrderNotAllowed","retryable":false,"status":400},{"code":7712,"message":"Non-Stable-Funding-Perpetual orders must always be supplied without rfq_id.","name":"ErrRfqIDNotAllowedForNonSFP","retryable":false,"status":400},{"code":7723,"message":"USDC must be enabled as collateral on this sub account to trade USDC-quoted instruments.","name":"ErrUsdcCollateralDisabled","retryable":false,"status":400},{"code":7724,"message":"Post-only orders are not allowed on Stable Funding Perpetuals.","name":"ErrSfpPostOnlyNotAllowedForRetail","retryable":false,"status":400},{"code":7725,"message":"This endpoint is not supported for stable funding.","name":"ErrSfpEndpointNotSupported","retryable":false,"status":403},{"code":7726,"message":"The Stable Funding Perpetual market is closed.","name":"ErrSfpMarketClosed","retryable":false,"status":400},{"code":7801,"message":"This currency is not enabled for stable coin convert.","name":"ErrCurrencyNotConvertible","retryable":false,"status":400},{"code":7802,"message":"The index price of one of the currencies is outside the permitted convert band. Please try again later.","name":"ErrPriceOutOfConvertBand","retryable":false,"status":400},{"code":7803,"message":"An index price required for this conversion is unavailable. Please try again later.","name":"ErrMissingIndexPrice","retryable":false,"status":400},{"code":7805,"message":"This amount cannot be converted exactly between the two currencies’ decimals. Please adjust the amount.","name":"ErrInexactConversion","retryable":false,"status":400},{"code":7811,"message":"This conversion would leave a negative balance.","name":"ErrNegativeBalance","retryable":false,"status":400},{"code":7812,"message":"The convert amount is too large to be represented. Please use a smaller amount.","name":"ErrValueOverflow","retryable":false,"status":400},{"code":7901,"message":"Trading coupons move only by an adjustment or a liquidation.","name":"ErrTradingCouponNotTransferable","retryable":false,"status":400}],"retryable_rule":"retryable = the rate-limit code (1006) or HTTP status 502, 503 or 504. Other 429s (e.g. 2090 max open orders) depend on account state and are not retryable. Reads may retry with backoff; writes never retry automatically."},"order_checks":{"description":"Checked by the SDK on every leg of every order, after loading instrument metadata and before signing; nothing is sent when a check fails. Values are compared as exact integers scaled like the signed fields. The SDK only checks; it never rounds or changes an order.","instrument":"instrument","legs":"legs","refresh_metadata_on":[2062,2064,2065,2066,2067],"rules":[{"check":"at_least","field":"size","limit":"min_size","server_code":2062,"skip_if":["reduce_only"],"why":"size >= min_size. Skipped for reduce-only orders: the gateway waives it when an order closes the exact open position, which only the gateway can see."},{"check":"multiple_of","field":"limit_price","limit":"tick_size","server_code":2064,"skip_if":["is_market"],"why":"limit_price is a whole multiple of tick_size. Market orders carry no price."},{"check":"at_least","field":"limit_price","limit":"min_notional","server_code":2066,"skip_if":["is_market","reduce_only","metadata.trigger.tpsl.close_position"],"times":"size","why":"limit_price * size >= min_notional, per leg. Skipped for market orders (the gateway uses the mark or trigger price) and for reduce-only or close-position orders (the gateway may waive it based on the position)."},{"check":"multiple_of","field":"size","limit":"min_size","server_code":2065,"skip_if":["reduce_only"],"why":"size is a whole multiple of min_size (the size step). Skipped for reduce-only orders, like the minimum."}],"scales":{"limit_price":{"decimals":9,"kind":"fixed","server_rule":"Uint64ToStringPriceDecimals"},"size":{"kind":"instrument_base_decimals","lookup":"balance_decimals of the instrument's base currency; equals instrument.base_decimals from RPCGetInstrumentV1 / RPCGetAllInstrumentsV1","server_rule":"Uint64ToStringUnderlyingDecimals"}},"type":"Order"},"rpcs":[{"access":"read","auth_required":true,"errors":[1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/aggregated_account_summary","id":"account.aggregated_account_summary","method_name":"aggregated_account_summary","name":"RPCAggregatedAccountSummaryV1","namespace":"account","request":"EmptyRequest","response":"ApiAggregatedAccountSummaryResponse","route":"/aggregated_account_summary","version":1,"ws_method":"v1/aggregated_account_summary"},{"access":"read","auth_required":true,"errors":[1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/funding_account_summary","id":"account.funding_account_summary","method_name":"funding_account_summary","name":"RPCFundingAccountSummaryV1","namespace":"account","request":"EmptyRequest","response":"ApiFundingAccountSummaryResponse","route":"/funding_account_summary","version":1,"ws_method":"v1/funding_account_summary"},{"access":"read","auth_required":true,"errors":[1000,1002,1006],"gateway":"trading","http_path":"/full/v1/get_sub_accounts","id":"account.get_sub_accounts","method_name":"get_sub_accounts","name":"RPCGetSubAccountsV1","namespace":"account","request":"EmptyRequest","response":"ApiGetSubAccountsResponse","route":"/get_sub_accounts","version":1,"ws_method":"v1/get_sub_accounts"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/spot_account_summary","id":"account.spot_account_summary","method_name":"spot_account_summary","name":"RPCSpotAccountSummaryV1","namespace":"account","request":"ApiSpotSubAccountSummaryRequest","response":"ApiSpotSubAccountSummaryResponse","route":"/spot_account_summary","version":1,"ws_method":"v1/spot_account_summary"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/account_summary","id":"account.sub_account_summary","method_name":"sub_account_summary","name":"RPCSubAccountSummaryV1","namespace":"account","request":"ApiSubAccountSummaryRequest","response":"ApiSubAccountSummaryResponse","route":"/account_summary","version":1,"ws_method":"v1/account_summary"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/algo_order_history","id":"algo_order.algo_order_history","method_name":"algo_order_history","name":"RPCAlgoOrderHistoryV1","namespace":"algo_order","request":"ApiAlgoOrderHistoryRequest","response":"ApiAlgoOrderHistoryResponse","route":"/algo_order_history","version":1,"ws_method":"v1/algo_order_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/algo_sub_order_history","id":"algo_order.algo_sub_order_history","method_name":"algo_sub_order_history","name":"RPCAlgoSubOrderHistoryV1","namespace":"algo_order","request":"ApiAlgoSubOrderHistoryRequest","response":"ApiAlgoSubOrderHistoryResponse","route":"/algo_sub_order_history","version":1,"ws_method":"v1/algo_sub_order_history"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/cancel_algo_order","id":"algo_order.cancel_algo_order","method_name":"cancel_algo_order","name":"RPCCancelAlgoOrderV1","namespace":"algo_order","request":"ApiCancelAlgoOrderRequest","response":"AckResponse","route":"/cancel_algo_order","version":1,"ws_method":"v1/cancel_algo_order"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/create_algo_order","id":"algo_order.create_algo_order","method_name":"create_algo_order","name":"RPCCreateAlgoOrderV1","namespace":"algo_order","request":"ApiCreateAlgoOrderRequest","response":"ApiCreateAlgoOrderResponse","route":"/create_algo_order","version":1,"ws_method":"v1/create_algo_order"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/get_algo_order","id":"algo_order.get_algo_order","method_name":"get_algo_order","name":"RPCGetAlgoOrderV1","namespace":"algo_order","request":"ApiGetAlgoOrderRequest","response":"ApiGetAlgoOrderResponse","route":"/get_algo_order","version":1,"ws_method":"v1/get_algo_order"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/open_algo_orders","id":"algo_order.open_algo_orders","method_name":"open_algo_orders","name":"RPCOpenAlgoOrdersV1","namespace":"algo_order","request":"ApiOpenAlgoOrdersRequest","response":"ApiOpenAlgoOrdersResponse","route":"/open_algo_orders","version":1,"ws_method":"v1/open_algo_orders"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/get_authorized_builders","id":"builder.get_authorized_builders","method_name":"get_authorized_builders","name":"RPCGetAuthorizedBuildersV1","namespace":"builder","request":"EmptyRequest","response":"ApiGetAuthorizedBuildersResponse","route":"/get_authorized_builders","version":1,"ws_method":"v1/get_authorized_builders"},{"access":"read","auth_required":false,"errors":[1002,1003,1006,1014,1015,3042,3043],"gateway":"market_data","http_path":"/full/v1/kline","id":"candlestick.candlestick","method_name":"candlestick","name":"RPCCandlestickV1","namespace":"candlestick","request":"ApiCandlestickRequest","response":"ApiCandlestickResponse","route":"/kline","version":1,"ws_method":"v1/kline"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,6100],"gateway":"trading","http_path":"/full/v1/set_derisk_mm_ratio","id":"derisk_mm_ratio.set_derisk_mm_ratio","method_name":"set_derisk_mm_ratio","name":"RPCSetDeriskMMRatioV1","namespace":"derisk_mm_ratio","request":"ApiSetDeriskToMaintenanceMarginRatioRequest","response":"ApiSetDeriskToMaintenanceMarginRatioResponse","route":"/set_derisk_mm_ratio","signs":{"field":"","notes":"Only risk checks this signature; the gateway does not.","signature_field":"signature","types":["SetDeriskToMaintenanceMarginRatio"],"variant_rule":"always SetDeriskToMaintenanceMarginRatio"},"version":1,"ws_method":"v1/set_derisk_mm_ratio"},{"access":"read","audience":{"note":"Other accounts get an empty list.","who":"builders"},"auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/builder_fill_history","id":"execution.builder_fill_history","method_name":"builder_fill_history","name":"RPCBuilderFillHistoryV1","namespace":"execution","request":"ApiBuilderFillHistoryRequest","response":"ApiBuilderFillHistoryResponse","route":"/builder_fill_history","version":1,"ws_method":"v1/builder_fill_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/fill_history","id":"execution.fill_history","method_name":"fill_history","name":"RPCFillHistoryV1","namespace":"execution","request":"ApiFillHistoryRequest","response":"ApiFillHistoryResponse","route":"/fill_history","version":1,"ws_method":"v1/fill_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015,3007],"gateway":"trading","http_path":"/full/v1/funding_payment_history","id":"execution.funding_payment_history","method_name":"funding_payment_history","name":"RPCFundingPaymentHistoryV1","namespace":"execution","request":"ApiFundingPaymentHistoryRequest","response":"ApiFundingPaymentHistoryResponse","route":"/funding_payment_history","version":1,"ws_method":"v1/funding_payment_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/interest_payment_history","id":"execution.interest_payment_history","method_name":"interest_payment_history","name":"RPCInterestPaymentHistoryV1","namespace":"execution","request":"ApiInterestPaymentHistoryRequest","response":"ApiInterestPaymentHistoryResponse","route":"/interest_payment_history","version":1,"ws_method":"v1/interest_payment_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006],"gateway":"trading","http_path":"/full/v1/get_all_initial_leverage","id":"initial_leverage.get_all_initial_leverage","method_name":"get_all_initial_leverage","name":"RPCGetAllInitialLeverageV1","namespace":"initial_leverage","request":"ApiGetAllInitialLeverageRequest","response":"ApiGetAllInitialLeverageResponse","route":"/get_all_initial_leverage","version":1,"ws_method":"v1/get_all_initial_leverage"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,2100,2101,3007],"gateway":"trading","http_path":"/full/v1/set_initial_leverage","id":"initial_leverage.set_initial_leverage","method_name":"set_initial_leverage","name":"RPCSetInitialLeverageV1","namespace":"initial_leverage","request":"ApiSetInitialLeverageRequest","response":"ApiSetInitialLeverageResponse","route":"/set_initial_leverage","version":1,"ws_method":"v1/set_initial_leverage"},{"access":"read","auth_required":false,"errors":[1002,1003,1006],"gateway":"market_data","http_path":"/full/v1/get_all_collateral_asset_info","id":"instrument.get_all_collateral_asset_info","method_name":"get_all_collateral_asset_info","name":"RPCGetAllCollateralAssetInfoV1","namespace":"instrument","request":"EmptyRequest","response":"ApiGetAllCollateralAssetInfoResponse","route":"/get_all_collateral_asset_info","version":1,"ws_method":"v1/get_all_collateral_asset_info"},{"access":"read","auth_required":false,"errors":[1002,1003,1006],"gateway":"market_data","http_path":"/full/v1/all_instruments","id":"instrument.get_all_instruments","method_name":"get_all_instruments","name":"RPCGetAllInstrumentsV1","namespace":"instrument","request":"ApiGetAllInstrumentsRequest","response":"ApiGetAllInstrumentsResponse","route":"/all_instruments","version":1,"ws_method":"v1/all_instruments"},{"access":"read","auth_required":false,"errors":[1002,1003,1004,1006],"gateway":"market_data","http_path":"/full/v1/currency","id":"instrument.get_currency","method_name":"get_currency","name":"RPCGetCurrencyV1","namespace":"instrument","request":"ApiGetCurrencyRequest","response":"ApiGetCurrencyResponse","route":"/currency","version":1,"ws_method":"v1/currency"},{"access":"read","auth_required":false,"errors":[1002,1003,1006],"gateway":"market_data","http_path":"/full/v1/instruments","id":"instrument.get_filtered_instruments","method_name":"get_filtered_instruments","name":"RPCGetFilteredInstrumentsV1","namespace":"instrument","request":"ApiGetFilteredInstrumentsRequest","response":"ApiGetFilteredInstrumentsResponse","route":"/instruments","version":1,"ws_method":"v1/instruments"},{"access":"read","auth_required":false,"errors":[1002,1003,1004,1006],"gateway":"market_data","http_path":"/full/v1/instrument","id":"instrument.get_instrument","method_name":"get_instrument","name":"RPCGetInstrumentV1","namespace":"instrument","request":"ApiGetInstrumentRequest","response":"ApiGetInstrumentResponse","route":"/instrument","version":1,"ws_method":"v1/instrument"},{"access":"read","auth_required":false,"errors":[1002,1003,1004,1006,3000],"gateway":"market_data","http_path":"/full/v1/margin_rules","id":"instrument.get_margin_rules","method_name":"get_margin_rules","name":"RPCGetMarginRulesV1","namespace":"instrument","request":"ApiGetMarginRulesRequest","response":"ApiGetMarginRulesResponse","route":"/margin_rules","version":1,"ws_method":"v1/margin_rules"},{"access":"read","auth_required":false,"errors":[1002,1003,1006],"gateway":"market_data","http_path":"/full/v1/supported_assets","id":"instrument.get_supported_assets","method_name":"get_supported_assets","name":"RPCGetSupportedAssetsV1","namespace":"instrument","request":"EmptyRequest","response":"ApiGetSupportedAssetsResponse","route":"/supported_assets","version":1,"ws_method":"v1/supported_assets"},{"access":"write","auth_required":true,"checks_order":"order","errors":[1000,1001,1002,1003,1004,1005,1006,1008,1009,1012,1400,2000,2001,2002,2003,2004,2005,2006,2007,2010,2011,2012,2020,2021,2030,2031,2032,2040,2041,2042,2050,2051,2060,2061,2062,2063,2064,2065,2066,2067,2070,2080,2081,2082,2083,2084,2090,2091,2110,2111,2112,2113,2114,2115,2116,2117,2118,2147,2148,2222,2230,2232,2233,2234,2235,2236,2237,2238,2239,2240,2241,2242,2243,2244,2245,2246,2400,2401,2402,2413,2450,2451,2452,2453,3004,3005,3006,7303,7304,7600,7601,7602,7603,7701,7704,7705,7706,7707,7708,7709,7711,7712,7723,7724,7726],"gateway":"trading","http_path":"/full/v2/bulk_orders","id":"order.bulk_orders","method_name":"bulk_orders","name":"RPCBulkOrdersV2","namespace":"order","request":"ApiBulkOrdersRequest","response":"ApiBulkOrdersResponse","route":"/bulk_orders","signs":{"element_as":"order","field":"orders[]","signature_field":"orders[].signature","types":["Order","OrderWithBuilderFee"],"variant_rule":{"description":"Each order is signed on its own, like create_order: OrderWithBuilderFee when that order's builder is set to a non-zero address, otherwise Order. The cancel lists and time_to_live_ms are not signed.","kind":"builder","otherwise":"Order","path":"order.builder","when_set":"OrderWithBuilderFee"}},"version":2,"ws_method":"v2/bulk_orders"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/cancel_all_orders","id":"order.cancel_all_orders","method_name":"cancel_all_orders","name":"RPCCancelAllOrdersV1","namespace":"order","request":"ApiCancelAllOrdersRequest","response":"AckResponse","route":"/cancel_all_orders","version":1,"ws_method":"v1/cancel_all_orders"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,6000],"gateway":"trading","http_path":"/full/v1/cancel_on_disconnect","id":"order.cancel_on_disconnect","method_name":"cancel_on_disconnect","name":"RPCCancelOnDisconnectV1","namespace":"order","request":"ApiCancelOnDisconnectRequest","response":"AckResponse","route":"/cancel_on_disconnect","version":1,"ws_method":"v1/cancel_on_disconnect"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,2300,2301,3021],"gateway":"trading","http_path":"/full/v1/cancel_order","id":"order.cancel_order","method_name":"cancel_order","name":"RPCCancelOrderV1","namespace":"order","request":"ApiCancelOrderRequest","response":"AckResponse","route":"/cancel_order","version":1,"ws_method":"v1/cancel_order"},{"access":"write","auth_required":true,"checks_order":"order","errors":[1000,1001,1002,1003,1004,1005,1006,1008,1009,1012,1400,2000,2001,2002,2003,2004,2005,2006,2007,2010,2011,2012,2020,2021,2030,2031,2032,2040,2041,2042,2050,2051,2060,2061,2062,2063,2064,2065,2066,2067,2070,2080,2081,2082,2083,2084,2090,2091,2110,2111,2112,2113,2114,2115,2116,2117,2118,2147,2148,2242,2400,2401,2402,2450,2451,2452,2453,3004,3005,3006,7303,7304,7600,7601,7602,7603,7701,7704,7705,7706,7707,7708,7709,7711,7712,7723,7724,7726],"gateway":"trading","http_path":"/full/v1/create_order","id":"order.create_order","method_name":"create_order","name":"RPCCreateOrderV1","namespace":"order","request":"ApiCreateOrderRequest","response":"ApiCreateOrderResponse","route":"/create_order","signs":{"field":"order","signature_field":"order.signature","types":["Order","OrderWithBuilderFee"],"variant_rule":{"description":"Use OrderWithBuilderFee when order.builder is set to a non-zero address, otherwise Order.","kind":"builder","otherwise":"Order","path":"order.builder","when_set":"OrderWithBuilderFee"}},"version":1,"ws_method":"v1/create_order"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,1008,1014,1015,3021],"gateway":"trading","http_path":"/full/v1/order","id":"order.get_order","method_name":"get_order","name":"RPCGetOrderV1","namespace":"order","request":"ApiGetOrderRequest","response":"ApiGetOrderResponse","route":"/order","version":1,"ws_method":"v1/order"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/open_orders","id":"order.open_orders","method_name":"open_orders","name":"RPCOpenOrdersV1","namespace":"order","request":"ApiOpenOrdersRequest","response":"ApiOpenOrdersResponse","route":"/open_orders","version":1,"ws_method":"v1/open_orders"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/order_history","id":"order.order_history","method_name":"order_history","name":"RPCOrderHistoryV1","namespace":"order","request":"ApiOrderHistoryRequest","response":"ApiOrderHistoryResponse","route":"/order_history","version":1,"ws_method":"v1/order_history"},{"access":"read","auth_required":false,"errors":[1002,1003,1004,1006,3000,3031,7725],"gateway":"market_data","http_path":"/full/v1/book","id":"orderbook.orderbook_levels","method_name":"orderbook_levels","name":"RPCOrderbookLevelsV1","namespace":"orderbook","request":"ApiOrderbookLevelsRequest","response":"ApiOrderbookLevelsResponse","route":"/book","version":1,"ws_method":"v1/book"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,3007,7450,7451,7452,7453,7454],"gateway":"trading","http_path":"/full/v1/add_position_margin","id":"position.add_position_margin","method_name":"add_position_margin","name":"RPCAddPositionMarginV1","namespace":"position","request":"ApiAddIsolatedPositionMarginRequest","response":"ApiAddIsolatedPositionMarginResponse","route":"/add_position_margin","signs":{"field":"","notes":"amount is signed (int64): negative removes margin.","signature_field":"signature","types":["AddIsolatedPositionMargin"],"variant_rule":"always AddIsolatedPositionMargin"},"version":1,"ws_method":"v1/add_position_margin"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,3007,7455],"gateway":"trading","http_path":"/full/v1/get_position_margin_limits","id":"position.get_position_margin_limits","method_name":"get_position_margin_limits","name":"RPCGetPositionMarginLimitsV1","namespace":"position","request":"ApiGetIsolatedPositionMarginLimitsRequest","response":"ApiGetIsolatedPositionMarginLimitsResponse","route":"/get_position_margin_limits","version":1,"ws_method":"v1/get_position_margin_limits"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015,3007],"gateway":"trading","http_path":"/full/v1/position_history","id":"position.position_history","method_name":"position_history","name":"RPCPositionHistoryV1","namespace":"position","request":"ApiPositionHistoryRequest","response":"ApiPositionHistoryResponse","route":"/position_history","version":1,"ws_method":"v1/position_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,3007],"gateway":"trading","http_path":"/full/v1/positions","id":"position.positions","method_name":"positions","name":"RPCPositionsV1","namespace":"position","request":"ApiPositionsRequest","response":"ApiPositionsResponse","route":"/positions","version":1,"ws_method":"v1/positions"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,2100,2101,2102,2103,2104,2105,2107,2108,3007],"gateway":"trading","http_path":"/full/v1/set_position_config","id":"position.set_position_config","method_name":"set_position_config","name":"RPCSetPositionConfigV1","namespace":"position","request":"ApiSetSubAccountPositionMarginConfigRequest","response":"ApiSetSubAccountPositionMarginConfigResponse","route":"/set_position_config","signs":{"field":"","signature_field":"signature","types":["SetSubAccountPositionMarginConfig"],"variant_rule":"always SetSubAccountPositionMarginConfig"},"version":1,"ws_method":"v1/set_position_config"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006],"gateway":"trading","http_path":"/full/v1/cancel_rfq","id":"rfq.cancel_rfq","method_name":"cancel_rfq","name":"RPCCancelRfqV1","namespace":"rfq","request":"ApiCancelRfqRequest","response":"AckResponse","route":"/cancel_rfq","version":1,"ws_method":"v1/cancel_rfq"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006,2061,2065,2141,2142,2143,2144,2145,2146,2147,7726],"gateway":"trading","http_path":"/full/v1/create_rfq","id":"rfq.create_rfq","method_name":"create_rfq","name":"RPCCreateRfqV1","namespace":"rfq","request":"ApiCreateRfqRequest","response":"ApiCreateRfqResponse","route":"/create_rfq","version":1,"ws_method":"v1/create_rfq"},{"access":"read","auth_required":false,"errors":[1002,1003,1006,1014,1015,3007,3008,3012],"gateway":"market_data","http_path":"/full/v1/funding","id":"settlement.funding_rate","method_name":"funding_rate","name":"RPCFundingRateV1","namespace":"settlement","request":"ApiFundingRateRequest","response":"ApiFundingRateResponse","route":"/funding","version":1,"ws_method":"v1/funding"},{"access":"read","auth_required":false,"errors":[1002,1003,1006],"gateway":"market_data","http_path":"/full/v1/sfp_trading_schedule","id":"sfp_trading_schedule.get_sfp_trading_schedule","method_name":"get_sfp_trading_schedule","name":"RPCGetSfpTradingSchedule","namespace":"sfp_trading_schedule","request":"EmptyRequest","response":"ApiSfpTradingScheduleResponse","route":"/sfp_trading_schedule","version":1,"ws_method":"v1/sfp_trading_schedule"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1004,1006],"gateway":"trading","http_path":"/full/v1/get_collateral_preference","id":"sub_account.get_collateral_preference","method_name":"get_collateral_preference","name":"RPCGetCollateralPreferenceV1","namespace":"sub_account","request":"ApiGetSubAccountCollateralPreferenceRequest","response":"ApiGetSubAccountCollateralPreferenceResponse","route":"/get_collateral_preference","version":1,"ws_method":"v1/get_collateral_preference"},{"access":"read","auth_required":false,"errors":[1002,1003,1004,1006,7725],"gateway":"market_data","http_path":"/full/v1/mini","id":"ticker.mini_ticker","method_name":"mini_ticker","name":"RPCMiniTickerV1","namespace":"ticker","request":"ApiMiniTickerRequest","response":"ApiMiniTickerResponse","route":"/mini","version":1,"ws_method":"v1/mini"},{"access":"read","auth_required":false,"errors":[1002,1003,1004,1006],"gateway":"market_data","http_path":"/full/v1/ticker","id":"ticker.ticker","method_name":"ticker","name":"RPCTickerV1","namespace":"ticker","request":"ApiTickerRequest","response":"ApiTickerResponse","route":"/ticker","version":1,"ws_method":"v1/ticker"},{"access":"read","auth_required":false,"errors":[1002,1003,1006,7725],"gateway":"market_data","http_path":"/full/v1/trade","id":"trade.trade","method_name":"trade","name":"RPCTradeV1","namespace":"trade","request":"ApiTradeRequest","response":"ApiTradeResponse","route":"/trade","version":1,"ws_method":"v1/trade"},{"access":"read","auth_required":false,"errors":[1002,1003,1006,1014,1015,7725],"gateway":"market_data","http_path":"/full/v1/trade_history","id":"trade.trade_history","method_name":"trade_history","name":"RPCTradeHistoryV1","namespace":"trade","request":"ApiTradeHistoryRequest","response":"ApiTradeHistoryResponse","route":"/trade_history","version":1,"ws_method":"v1/trade_history"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/deposit_history","id":"transfer.deposit_history","method_name":"deposit_history","name":"RPCDepositHistoryV1","namespace":"transfer","request":"ApiDepositHistoryRequest","response":"ApiDepositHistoryResponse","route":"/deposit_history","version":1,"ws_method":"v1/deposit_history"},{"access":"read","auth_required":true,"errors":[1002,1003,1006,1008],"gateway":"trading","http_path":"/full/v1/withdrawal_fee","id":"transfer.get_withdrawal_fee","method_name":"get_withdrawal_fee","name":"RPCGetWithdrawalFeeV1","namespace":"transfer","request":"ApiWithdrawalFeeRequest","response":"ApiWithdrawalFeeResponse","route":"/withdrawal_fee","version":1,"ws_method":"v1/withdrawal_fee"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015,4000,4002,4004,4005,4006,4007,4008,4009,4010,4011,4012,4014,4015,4016,4018,4019,4020,4021,4022,4023,5000,5001,5002,5003,5004,5005,7100,7101,7102,7103,7104],"gateway":"trading","http_path":"/full/v1/transfer","id":"transfer.transfer","method_name":"transfer","name":"RPCTransferV1","namespace":"transfer","request":"ApiTransferRequest","response":"ApiTransferResponse","route":"/transfer","signs":{"field":"","signature_field":"signature","types":["Transfer","TransferV2","TransferV3"],"variant_rule":{"description":"If from_wallet_type and to_wallet_type are both set: TransferV2 when the currency id fits uint8 (<= 255), else TransferV3. If neither is set: Transfer (only for currency ids <= 255). Setting only one is rejected. Sign TransferV3 only for currency ids above 255.","kind":"wallet_types","max_legacy_currency_id":255}},"version":1,"ws_method":"v1/transfer"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/transfer_history","id":"transfer.transfer_history","method_name":"transfer_history","name":"RPCTransferHistoryV1","namespace":"transfer","request":"ApiTransferHistoryRequest","response":"ApiTransferHistoryResponse","route":"/transfer_history","version":1,"ws_method":"v1/transfer_history"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015,4010,4014,4016,4019],"gateway":"trading","http_path":"/full/v1/withdrawal","id":"transfer.withdrawal","method_name":"withdrawal","name":"RPCWithdrawalV1","namespace":"transfer","request":"ApiWithdrawalRequest","response":"AckResponse","route":"/withdrawal","signs":{"field":"","signature_field":"signature","types":["Withdrawal","WithdrawalV2"],"variant_rule":{"description":"Withdrawal when the currency id fits uint8 (<= 255), else WithdrawalV2.","kind":"currency_width","max_legacy_currency_id":255}},"version":1,"ws_method":"v1/withdrawal"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/withdrawal_history","id":"transfer.withdrawal_history","method_name":"withdrawal_history","name":"RPCWithdrawalHistoryV1","namespace":"transfer","request":"ApiWithdrawalHistoryRequest","response":"ApiWithdrawalHistoryResponse","route":"/withdrawal_history","version":1,"ws_method":"v1/withdrawal_history"},{"access":"write","audience":{"note":"Other accounts get error 1001.","who":"vault managers"},"auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1009,2000,2001,2002,2004,2005,2006,2007,2008,7000,7005,7006],"gateway":"trading","http_path":"/full/v1/vault_burn_tokens","id":"vault.vault_burn_tokens","method_name":"vault_burn_tokens","name":"RPCVaultBurnTokensV1","namespace":"vault","request":"ApiVaultBurnTokensRequest","response":"AckResponse","route":"/vault_burn_tokens","signs":{"field":"","notes":"accountID is the session's main account (see main_account). currency is not signed.","signature_field":"signature","types":["VaultBurnLpToken"],"variant_rule":"always VaultBurnLpToken"},"version":1,"ws_method":"v1/vault_burn_tokens"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1007,1008,1009,7019,7801,7802,7805],"gateway":"trading","http_path":"/full/v1/vault_conversion_rate","id":"vault.vault_conversion_rate","method_name":"vault_conversion_rate","name":"RPCVaultConversionRateV1","namespace":"vault","request":"ApiVaultConversionRateRequest","response":"ApiVaultConversionRateResponse","route":"/vault_conversion_rate","version":1,"ws_method":"v1/vault_conversion_rate"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1007,1008,1009,1012,1014,2000,2001,2002,2004,2005,2006,2007,2008,4000,4008,7000,7003,7004,7012,7013,7014,7017,7018,7019,7027,7028,7035,7101,7102,7801,7802,7803,7805,7811,7812],"gateway":"trading","http_path":"/full/v2/vault_invest","id":"vault.vault_invest","method_name":"vault_invest","name":"RPCVaultInvestV2","namespace":"vault","request":"ApiVaultInvestV2Request","response":"ApiVaultInvestV2Response","route":"/vault_invest","signs":{"field":"","notes":"accountID is the session's main account (see main_account), not a request field.","signature_field":"signature","types":["VaultInvestV3"],"variant_rule":"always VaultInvestV3"},"version":2,"ws_method":"v2/vault_invest"},{"access":"read","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015,7000,7007],"gateway":"trading","http_path":"/full/v1/vault_investor_summary","id":"vault.vault_investor_summary","method_name":"vault_investor_summary","name":"RPCVaultInvestorSummaryV1","namespace":"vault","request":"ApiVaultInvestorSummaryRequest","response":"ApiVaultInvestorSummaryResponse","route":"/vault_investor_summary","version":1,"ws_method":"v1/vault_investor_summary"},{"access":"read","audience":{"note":"Other accounts get error 1001.","who":"vault managers"},"auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015],"gateway":"trading","http_path":"/full/v1/vault_manager_investor_history","id":"vault.vault_manager_investment_history","method_name":"vault_manager_investment_history","name":"RPCVaultManagerInvestmentHistoryV1","namespace":"vault","request":"ApiQueryVaultManagerInvestorHistoryRequest","response":"ApiQueryVaultManagerInvestorHistoryResponse","route":"/vault_manager_investor_history","version":1,"ws_method":"v1/vault_manager_investor_history"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1009,1012,2000,2001,2002,2004,2005,2006,2007,2008,7000,7001,7002,7007,7008,7009,7015,7017,7019,7027,7801,7802,7803,7805,7812],"gateway":"trading","http_path":"/full/v2/vault_redeem","id":"vault.vault_redeem","method_name":"vault_redeem","name":"RPCVaultRedeemV2","namespace":"vault","request":"ApiVaultRedeemV2Request","response":"AckResponse","route":"/vault_redeem","signs":{"field":"","notes":"accountID is the session's main account (see main_account), not a request field.","signature_field":"signature","types":["VaultRedeemV3"],"variant_rule":"always VaultRedeemV3"},"version":2,"ws_method":"v2/vault_redeem"},{"access":"write","auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,1014,1015,7000],"gateway":"trading","http_path":"/full/v1/vault_redeem_cancel","id":"vault.vault_redeem_cancel","method_name":"vault_redeem_cancel","name":"RPCVaultRedeemCancelV1","namespace":"vault","request":"ApiVaultRedeemCancelRequest","response":"AckResponse","route":"/vault_redeem_cancel","version":1,"ws_method":"v1/vault_redeem_cancel"},{"access":"read","audience":{"note":"Other accounts get error 1001.","who":"vault managers"},"auth_required":true,"errors":[1000,1001,1002,1003,1006,1008,7000],"gateway":"trading","http_path":"/full/v1/vault_view_redemption_queue","id":"vault.vault_redemption_queue","method_name":"vault_redemption_queue","name":"RPCVaultRedemptionQueueV1","namespace":"vault","request":"ApiVaultViewRedemptionQueueRequest","response":"ApiVaultViewRedemptionQueueResponse","route":"/vault_view_redemption_queue","version":1,"ws_method":"v1/vault_view_redemption_queue"}],"sdk":{"names":{"rpcs":{"account.aggregated_account_summary":{"python":"aggregated_account_summary","typescript":"aggregatedAccountSummary","go":"AggregatedAccountSummary","rust":"aggregated_account_summary"},"account.funding_account_summary":{"python":"funding_account_summary","typescript":"fundingAccountSummary","go":"FundingAccountSummary","rust":"funding_account_summary"},"account.get_sub_accounts":{"python":"get_sub_accounts","typescript":"getSubAccounts","go":"GetSubAccounts","rust":"get_sub_accounts"},"account.spot_account_summary":{"python":"spot_account_summary","typescript":"spotAccountSummary","go":"SpotAccountSummary","rust":"spot_account_summary"},"account.sub_account_summary":{"python":"sub_account_summary","typescript":"subAccountSummary","go":"SubAccountSummary","rust":"sub_account_summary"},"algo_order.algo_order_history":{"python":"algo_order_history","typescript":"algoOrderHistory","go":"AlgoOrderHistory","rust":"algo_order_history"},"algo_order.algo_sub_order_history":{"python":"algo_sub_order_history","typescript":"algoSubOrderHistory","go":"AlgoSubOrderHistory","rust":"algo_sub_order_history"},"algo_order.cancel_algo_order":{"python":"cancel_algo_order","typescript":"cancelAlgoOrder","go":"CancelAlgoOrder","rust":"cancel_algo_order"},"algo_order.create_algo_order":{"python":"create_algo_order","typescript":"createAlgoOrder","go":"CreateAlgoOrder","rust":"create_algo_order"},"algo_order.get_algo_order":{"python":"get_algo_order","typescript":"getAlgoOrder","go":"GetAlgoOrder","rust":"get_algo_order"},"algo_order.open_algo_orders":{"python":"open_algo_orders","typescript":"openAlgoOrders","go":"OpenAlgoOrders","rust":"open_algo_orders"},"builder.get_authorized_builders":{"python":"get_authorized_builders","typescript":"getAuthorizedBuilders","go":"GetAuthorizedBuilders","rust":"get_authorized_builders"},"candlestick.candlestick":{"python":"candlestick","typescript":"candlestick","go":"Candlestick","rust":"candlestick"},"derisk_mm_ratio.set_derisk_mm_ratio":{"python":"set_derisk_mm_ratio","typescript":"setDeriskMmRatio","go":"SetDeriskMmRatio","rust":"set_derisk_mm_ratio"},"execution.builder_fill_history":{"python":"builder_fill_history","typescript":"builderFillHistory","go":"BuilderFillHistory","rust":"builder_fill_history"},"execution.fill_history":{"python":"fill_history","typescript":"fillHistory","go":"FillHistory","rust":"fill_history"},"execution.funding_payment_history":{"python":"funding_payment_history","typescript":"fundingPaymentHistory","go":"FundingPaymentHistory","rust":"funding_payment_history"},"execution.interest_payment_history":{"python":"interest_payment_history","typescript":"interestPaymentHistory","go":"InterestPaymentHistory","rust":"interest_payment_history"},"initial_leverage.get_all_initial_leverage":{"python":"get_all_initial_leverage","typescript":"getAllInitialLeverage","go":"GetAllInitialLeverage","rust":"get_all_initial_leverage"},"initial_leverage.set_initial_leverage":{"python":"set_initial_leverage","typescript":"setInitialLeverage","go":"SetInitialLeverage","rust":"set_initial_leverage"},"instrument.get_all_collateral_asset_info":{"python":"get_all_collateral_asset_info","typescript":"getAllCollateralAssetInfo","go":"GetAllCollateralAssetInfo","rust":"get_all_collateral_asset_info"},"instrument.get_all_instruments":{"python":"get_all_instruments","typescript":"getAllInstruments","go":"GetAllInstruments","rust":"get_all_instruments"},"instrument.get_currency":{"python":"get_currency","typescript":"getCurrency","go":"GetCurrency","rust":"get_currency"},"instrument.get_filtered_instruments":{"python":"get_filtered_instruments","typescript":"getFilteredInstruments","go":"GetFilteredInstruments","rust":"get_filtered_instruments"},"instrument.get_instrument":{"python":"get_instrument","typescript":"getInstrument","go":"GetInstrument","rust":"get_instrument"},"instrument.get_margin_rules":{"python":"get_margin_rules","typescript":"getMarginRules","go":"GetMarginRules","rust":"get_margin_rules"},"instrument.get_supported_assets":{"python":"get_supported_assets","typescript":"getSupportedAssets","go":"GetSupportedAssets","rust":"get_supported_assets"},"order.bulk_orders":{"python":"bulk_orders","typescript":"bulkOrders","go":"BulkOrders","rust":"bulk_orders"},"order.cancel_all_orders":{"python":"cancel_all_orders","typescript":"cancelAllOrders","go":"CancelAllOrders","rust":"cancel_all_orders"},"order.cancel_on_disconnect":{"python":"cancel_on_disconnect","typescript":"cancelOnDisconnect","go":"CancelOnDisconnect","rust":"cancel_on_disconnect"},"order.cancel_order":{"python":"cancel_order","typescript":"cancelOrder","go":"CancelOrder","rust":"cancel_order"},"order.create_order":{"python":"create_order","typescript":"createOrder","go":"CreateOrder","rust":"create_order"},"order.get_order":{"python":"get_order","typescript":"getOrder","go":"GetOrder","rust":"get_order"},"order.open_orders":{"python":"open_orders","typescript":"openOrders","go":"OpenOrders","rust":"open_orders"},"order.order_history":{"python":"order_history","typescript":"orderHistory","go":"OrderHistory","rust":"order_history"},"orderbook.orderbook_levels":{"python":"orderbook_levels","typescript":"orderbookLevels","go":"OrderbookLevels","rust":"orderbook_levels"},"position.add_position_margin":{"python":"add_position_margin","typescript":"addPositionMargin","go":"AddPositionMargin","rust":"add_position_margin"},"position.get_position_margin_limits":{"python":"get_position_margin_limits","typescript":"getPositionMarginLimits","go":"GetPositionMarginLimits","rust":"get_position_margin_limits"},"position.position_history":{"python":"position_history","typescript":"positionHistory","go":"PositionHistory","rust":"position_history"},"position.positions":{"python":"positions","typescript":"positions","go":"Positions","rust":"positions"},"position.set_position_config":{"python":"set_position_config","typescript":"setPositionConfig","go":"SetPositionConfig","rust":"set_position_config"},"rfq.cancel_rfq":{"python":"cancel_rfq","typescript":"cancelRfq","go":"CancelRfq","rust":"cancel_rfq"},"rfq.create_rfq":{"python":"create_rfq","typescript":"createRfq","go":"CreateRfq","rust":"create_rfq"},"settlement.funding_rate":{"python":"funding_rate","typescript":"fundingRate","go":"FundingRate","rust":"funding_rate"},"sfp_trading_schedule.get_sfp_trading_schedule":{"python":"get_sfp_trading_schedule","typescript":"getSfpTradingSchedule","go":"GetSfpTradingSchedule","rust":"get_sfp_trading_schedule"},"sub_account.get_collateral_preference":{"python":"get_collateral_preference","typescript":"getCollateralPreference","go":"GetCollateralPreference","rust":"get_collateral_preference"},"ticker.mini_ticker":{"python":"mini_ticker","typescript":"miniTicker","go":"MiniTicker","rust":"mini_ticker"},"ticker.ticker":{"python":"ticker","typescript":"ticker","go":"Ticker","rust":"ticker"},"trade.trade":{"python":"trade","typescript":"trade","go":"Trade","rust":"trade"},"trade.trade_history":{"python":"trade_history","typescript":"tradeHistory","go":"TradeHistory","rust":"trade_history"},"transfer.deposit_history":{"python":"deposit_history","typescript":"depositHistory","go":"DepositHistory","rust":"deposit_history"},"transfer.get_withdrawal_fee":{"python":"get_withdrawal_fee","typescript":"getWithdrawalFee","go":"GetWithdrawalFee","rust":"get_withdrawal_fee"},"transfer.transfer":{"python":"transfer","typescript":"transfer","go":"Transfer","rust":"transfer"},"transfer.transfer_history":{"python":"transfer_history","typescript":"transferHistory","go":"TransferHistory","rust":"transfer_history"},"transfer.withdrawal":{"python":"withdrawal","typescript":"withdrawal","go":"Withdrawal","rust":"withdrawal"},"transfer.withdrawal_history":{"python":"withdrawal_history","typescript":"withdrawalHistory","go":"WithdrawalHistory","rust":"withdrawal_history"},"vault.vault_burn_tokens":{"python":"vault_burn_tokens","typescript":"vaultBurnTokens","go":"VaultBurnTokens","rust":"vault_burn_tokens"},"vault.vault_conversion_rate":{"python":"vault_conversion_rate","typescript":"vaultConversionRate","go":"VaultConversionRate","rust":"vault_conversion_rate"},"vault.vault_invest":{"python":"vault_invest","typescript":"vaultInvest","go":"VaultInvest","rust":"vault_invest"},"vault.vault_investor_summary":{"python":"vault_investor_summary","typescript":"vaultInvestorSummary","go":"VaultInvestorSummary","rust":"vault_investor_summary"},"vault.vault_manager_investment_history":{"python":"vault_manager_investment_history","typescript":"vaultManagerInvestmentHistory","go":"VaultManagerInvestmentHistory","rust":"vault_manager_investment_history"},"vault.vault_redeem":{"python":"vault_redeem","typescript":"vaultRedeem","go":"VaultRedeem","rust":"vault_redeem"},"vault.vault_redeem_cancel":{"python":"vault_redeem_cancel","typescript":"vaultRedeemCancel","go":"VaultRedeemCancel","rust":"vault_redeem_cancel"},"vault.vault_redemption_queue":{"python":"vault_redemption_queue","typescript":"vaultRedemptionQueue","go":"VaultRedemptionQueue","rust":"vault_redemption_queue"}},"streams":{"algo_order.algo_order":{"python":"algo_order_stream","typescript":"algoOrderStream","go":"AlgoOrderStream","rust":"algo_order_stream"},"candlestick.candlestick":{"python":"candlestick_stream","typescript":"candlestickStream","go":"CandlestickStream","rust":"candlestick_stream"},"execution.fill":{"python":"fill_stream","typescript":"fillStream","go":"FillStream","rust":"fill_stream"},"execution.positions":{"python":"positions_stream","typescript":"positionsStream","go":"PositionsStream","rust":"positions_stream"},"order.cancel_status":{"python":"cancel_status_stream","typescript":"cancelStatusStream","go":"CancelStatusStream","rust":"cancel_status_stream"},"order.order":{"python":"order_stream","typescript":"orderStream","go":"OrderStream","rust":"order_stream"},"order.order_state":{"python":"order_state_stream","typescript":"orderStateStream","go":"OrderStateStream","rust":"order_state_stream"},"orderbook.orderbook_delta":{"python":"orderbook_delta_stream","typescript":"orderbookDeltaStream","go":"OrderbookDeltaStream","rust":"orderbook_delta_stream"},"orderbook.orderbook_snap":{"python":"orderbook_snap_stream","typescript":"orderbookSnapStream","go":"OrderbookSnapStream","rust":"orderbook_snap_stream"},"rfq.rfq_quote":{"python":"rfq_quote_stream","typescript":"rfqQuoteStream","go":"RfqQuoteStream","rust":"rfq_quote_stream"},"ticker.mini_ticker_delta":{"python":"mini_ticker_delta_stream","typescript":"miniTickerDeltaStream","go":"MiniTickerDeltaStream","rust":"mini_ticker_delta_stream"},"ticker.mini_ticker_snap":{"python":"mini_ticker_snap_stream","typescript":"miniTickerSnapStream","go":"MiniTickerSnapStream","rust":"mini_ticker_snap_stream"},"ticker.ticker_delta":{"python":"ticker_delta_stream","typescript":"tickerDeltaStream","go":"TickerDeltaStream","rust":"ticker_delta_stream"},"ticker.ticker_snap":{"python":"ticker_snap_stream","typescript":"tickerSnapStream","go":"TickerSnapStream","rust":"ticker_snap_stream"},"trade.trade":{"python":"trade_stream","typescript":"tradeStream","go":"TradeStream","rust":"trade_stream"},"transfer.deposit":{"python":"deposit_stream","typescript":"depositStream","go":"DepositStream","rust":"deposit_stream"},"transfer.transfer":{"python":"transfer_stream","typescript":"transferStream","go":"TransferStream","rust":"transfer_stream"},"transfer.withdrawal":{"python":"withdrawal_stream","typescript":"withdrawalStream","go":"WithdrawalStream","rust":"withdrawal_stream"}},"fields":{"Ack":{"ack":{"python":"ack","typescript":"ack","go":"Ack","rust":"ack"}},"AckResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"AggregatedAccountSummary":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"spot_balances":{"python":"spot_balances","typescript":"spot_balances","go":"SpotBalances","rust":"spot_balances"},"total_equity":{"python":"total_equity","typescript":"total_equity","go":"TotalEquity","rust":"total_equity"},"total_sub_account_available_balance":{"python":"total_sub_account_available_balance","typescript":"total_sub_account_available_balance","go":"TotalSubAccountAvailableBalance","rust":"total_sub_account_available_balance"},"total_sub_account_balance":{"python":"total_sub_account_balance","typescript":"total_sub_account_balance","go":"TotalSubAccountBalance","rust":"total_sub_account_balance"},"total_sub_account_equity":{"python":"total_sub_account_equity","typescript":"total_sub_account_equity","go":"TotalSubAccountEquity","rust":"total_sub_account_equity"},"total_usd_notional_invested":{"python":"total_usd_notional_invested","typescript":"total_usd_notional_invested","go":"TotalUsdNotionalInvested","rust":"total_usd_notional_invested"},"total_vault_investments_balance":{"python":"total_vault_investments_balance","typescript":"total_vault_investments_balance","go":"TotalVaultInvestmentsBalance","rust":"total_vault_investments_balance"},"vault_investments":{"python":"vault_investments","typescript":"vault_investments","go":"VaultInvestments","rust":"vault_investments"}},"AlgoOrder":{"algo_order_id":{"python":"algo_order_id","typescript":"algo_order_id","go":"AlgoOrderID","rust":"algo_order_id"},"builder":{"python":"builder","typescript":"builder","go":"Builder","rust":"builder"},"builder_fee":{"python":"builder_fee","typescript":"builder_fee","go":"BuilderFee","rust":"builder_fee"},"leg":{"python":"leg","typescript":"leg","go":"Leg","rust":"leg"},"metadata":{"python":"metadata","typescript":"metadata","go":"Metadata","rust":"metadata"},"post_only":{"python":"post_only","typescript":"post_only","go":"PostOnly","rust":"post_only"},"reduce_only":{"python":"reduce_only","typescript":"reduce_only","go":"ReduceOnly","rust":"reduce_only"},"state":{"python":"state","typescript":"state","go":"State","rust":"state"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"AlgoOrderLeg":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"is_buying_asset":{"python":"is_buying_asset","typescript":"is_buying_asset","go":"IsBuyingAsset","rust":"is_buying_asset"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"}},"AlgoOrderMetadata":{"broker":{"python":"broker","typescript":"broker","go":"Broker","rust":"broker"},"chase":{"python":"chase","typescript":"chase","go":"Chase","rust":"chase"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"create_time":{"python":"create_time","typescript":"create_time","go":"CreateTime","rust":"create_time"},"expiry":{"python":"expiry","typescript":"expiry","go":"Expiry","rust":"expiry"},"trigger":{"python":"trigger","typescript":"trigger","go":"Trigger","rust":"trigger"}},"AlgoOrderState":{"avg_fill_price":{"python":"avg_fill_price","typescript":"avg_fill_price","go":"AvgFillPrice","rust":"avg_fill_price"},"chase":{"python":"chase","typescript":"chase","go":"Chase","rust":"chase"},"last_sub_order_id":{"python":"last_sub_order_id","typescript":"last_sub_order_id","go":"LastSubOrderID","rust":"last_sub_order_id"},"reject_reason":{"python":"reject_reason","typescript":"reject_reason","go":"RejectReason","rust":"reject_reason"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"},"traded_size":{"python":"traded_size","typescript":"traded_size","go":"TradedSize","rust":"traded_size"},"trigger_time":{"python":"trigger_time","typescript":"trigger_time","go":"TriggerTime","rust":"trigger_time"},"update_time":{"python":"update_time","typescript":"update_time","go":"UpdateTime","rust":"update_time"}},"ApiAddIsolatedPositionMarginRequest":{"amount":{"python":"amount","typescript":"amount","go":"Amount","rust":"amount"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiAddIsolatedPositionMarginRequestInput":{"amount":{"python":"amount","typescript":"amount","go":"Amount","rust":"amount"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiAddIsolatedPositionMarginResponse":{"success":{"python":"success","typescript":"success","go":"Success","rust":"success"}},"ApiAggregatedAccountSummaryResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiAlgoOrderHistoryRequest":{"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"ApiAlgoOrderHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiAlgoSubOrderHistoryRequest":{"algo_order_id":{"python":"algo_order_id","typescript":"algo_order_id","go":"AlgoOrderID","rust":"algo_order_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiAlgoSubOrderHistoryResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiAlgoSubOrderHistoryResponseInput":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiAuthorizedBuilder":{"builder_account_id":{"python":"builder_account_id","typescript":"builder_account_id","go":"BuilderAccountID","rust":"builder_account_id"},"max_futures_fee_rate":{"python":"max_futures_fee_rate","typescript":"max_futures_fee_rate","go":"MaxFuturesFeeRate","rust":"max_futures_fee_rate"},"max_spot_fee_rate":{"python":"max_spot_fee_rate","typescript":"max_spot_fee_rate","go":"MaxSpotFeeRate","rust":"max_spot_fee_rate"}},"ApiBuilderFillHistoryRequest":{"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"}},"ApiBuilderFillHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiBulkOrdersRequest":{"client_order_i_ds":{"python":"client_order_ids","typescript":"client_order_ids","go":"ClientOrderIDs","rust":"client_order_ids"},"order_i_ds":{"python":"order_ids","typescript":"order_ids","go":"OrderIDs","rust":"order_ids"},"orders":{"python":"orders","typescript":"orders","go":"Orders","rust":"orders"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"time_to_live_ms":{"python":"time_to_live_ms","typescript":"time_to_live_ms","go":"TimeToLiveMs","rust":"time_to_live_ms"}},"ApiBulkOrdersRequestInput":{"client_order_i_ds":{"python":"client_order_ids","typescript":"client_order_ids","go":"ClientOrderIDs","rust":"client_order_ids"},"order_i_ds":{"python":"order_ids","typescript":"order_ids","go":"OrderIDs","rust":"order_ids"},"orders":{"python":"orders","typescript":"orders","go":"Orders","rust":"orders"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"time_to_live_ms":{"python":"time_to_live_ms","typescript":"time_to_live_ms","go":"TimeToLiveMs","rust":"time_to_live_ms"}},"ApiBulkOrdersResponse":{"cancel_acks":{"python":"cancel_acks","typescript":"cancel_acks","go":"CancelAcks","rust":"cancel_acks"},"orders":{"python":"orders","typescript":"orders","go":"Orders","rust":"orders"}},"ApiBulkOrdersResponseInput":{"cancel_acks":{"python":"cancel_acks","typescript":"cancel_acks","go":"CancelAcks","rust":"cancel_acks"},"orders":{"python":"orders","typescript":"orders","go":"Orders","rust":"orders"}},"ApiCancelAlgoOrderRequest":{"algo_order_id":{"python":"algo_order_id","typescript":"algo_order_id","go":"AlgoOrderID","rust":"algo_order_id"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiCancelAllOrdersRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiCancelOnDisconnectRequest":{"countdown_time":{"python":"countdown_time","typescript":"countdown_time","go":"CountdownTime","rust":"countdown_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiCancelOrderRequest":{"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"time_to_live_ms":{"python":"time_to_live_ms","typescript":"time_to_live_ms","go":"TimeToLiveMs","rust":"time_to_live_ms"}},"ApiCancelRfqRequest":{"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiCandlestickRequest":{"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interval":{"python":"interval","typescript":"interval","go":"Interval","rust":"interval"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"ApiCandlestickResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiCollateralAssetInfo":{"cdc_status":{"python":"cdc_status","typescript":"cdc_status","go":"CdcStatus","rust":"cdc_status"},"collateral_deposit_cap":{"python":"collateral_deposit_cap","typescript":"collateral_deposit_cap","go":"CollateralDepositCap","rust":"collateral_deposit_cap"},"collateral_value_ratio":{"python":"collateral_value_ratio","typescript":"collateral_value_ratio","go":"CollateralValueRatio","rust":"collateral_value_ratio"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"manual_repayment_fee_rate":{"python":"manual_repayment_fee_rate","typescript":"manual_repayment_fee_rate","go":"ManualRepaymentFeeRate","rust":"manual_repayment_fee_rate"},"max_borrow_rate":{"python":"max_borrow_rate","typescript":"max_borrow_rate","go":"MaxBorrowRate","rust":"max_borrow_rate"},"show_only_when_held":{"python":"show_only_when_held","typescript":"show_only_when_held","go":"ShowOnlyWhenHeld","rust":"show_only_when_held"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiCollateralPreferenceStatus":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"enabled":{"python":"enabled","typescript":"enabled","go":"Enabled","rust":"enabled"},"locked":{"python":"locked","typescript":"locked","go":"Locked","rust":"locked"}},"ApiCreateAlgoOrderRequest":{"order":{"python":"order","typescript":"order","go":"Order","rust":"order"}},"ApiCreateAlgoOrderResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiCreateOrderRequest":{"order":{"python":"order","typescript":"order","go":"Order","rust":"order"}},"ApiCreateOrderRequestInput":{"order":{"python":"order","typescript":"order","go":"Order","rust":"order"}},"ApiCreateOrderResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiCreateOrderResponseInput":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiCreateRfqRequest":{"rfq":{"python":"rfq","typescript":"rfq","go":"Rfq","rust":"rfq"}},"ApiCreateRfqRequestInput":{"rfq":{"python":"rfq","typescript":"rfq","go":"Rfq","rust":"rfq"}},"ApiCreateRfqResponse":{"rfq":{"python":"rfq","typescript":"rfq","go":"Rfq","rust":"rfq"}},"ApiCreateRfqResponseInput":{"rfq":{"python":"rfq","typescript":"rfq","go":"Rfq","rust":"rfq"}},"ApiDepositHistoryRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"}},"ApiDepositHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiFillHistoryRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiFillHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiFundingAccountSummaryResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"},"tier":{"python":"tier","typescript":"tier","go":"Tier","rust":"tier"}},"ApiFundingPaymentHistoryRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiFundingPaymentHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiFundingRate":{"funding_interval_hours":{"python":"funding_interval_hours","typescript":"funding_interval_hours","go":"FundingIntervalHours","rust":"funding_interval_hours"},"funding_multiplier":{"python":"funding_multiplier","typescript":"funding_multiplier","go":"FundingMultiplier","rust":"funding_multiplier"},"funding_rate":{"python":"funding_rate","typescript":"funding_rate","go":"FundingRate","rust":"funding_rate"},"funding_rate_8_h_avg":{"python":"funding_rate_8_h_avg","typescript":"funding_rate_8_h_avg","go":"FundingRate8HAvg","rust":"funding_rate_8_h_avg"},"funding_rate_long_apr_pct":{"python":"funding_rate_long_apr_pct","typescript":"funding_rate_long_apr_pct","go":"FundingRateLongAprPct","rust":"funding_rate_long_apr_pct"},"funding_rate_short_apr_pct":{"python":"funding_rate_short_apr_pct","typescript":"funding_rate_short_apr_pct","go":"FundingRateShortAprPct","rust":"funding_rate_short_apr_pct"},"funding_time":{"python":"funding_time","typescript":"funding_time","go":"FundingTime","rust":"funding_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"}},"ApiFundingRateRequest":{"agg_type":{"python":"agg_type","typescript":"agg_type","go":"AggType","rust":"agg_type"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"}},"ApiFundingRateResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetAlgoOrderRequest":{"algo_order_id":{"python":"algo_order_id","typescript":"algo_order_id","go":"AlgoOrderID","rust":"algo_order_id"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiGetAlgoOrderResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetAllCollateralAssetInfoResponse":{"assets":{"python":"assets","typescript":"assets","go":"Assets","rust":"assets"}},"ApiGetAllInitialLeverageRequest":{"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiGetAllInitialLeverageResponse":{"results":{"python":"results","typescript":"results","go":"Results","rust":"results"}},"ApiGetAllInstrumentsRequest":{"is_active":{"python":"is_active","typescript":"is_active","go":"IsActive","rust":"is_active"},"kinds":{"python":"kinds","typescript":"kinds","go":"Kinds","rust":"kinds"}},"ApiGetAllInstrumentsResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetAuthorizedBuildersResponse":{"results":{"python":"results","typescript":"results","go":"Results","rust":"results"}},"ApiGetCurrencyRequest":{},"ApiGetCurrencyResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetFilteredInstrumentsRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"is_active":{"python":"is_active","typescript":"is_active","go":"IsActive","rust":"is_active"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"}},"ApiGetFilteredInstrumentsResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetInstrumentRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"}},"ApiGetInstrumentResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetIsolatedPositionMarginLimitsRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiGetIsolatedPositionMarginLimitsResponse":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"max_addable_amount":{"python":"max_addable_amount","typescript":"max_addable_amount","go":"MaxAddableAmount","rust":"max_addable_amount"},"max_removable_amount":{"python":"max_removable_amount","typescript":"max_removable_amount","go":"MaxRemovableAmount","rust":"max_removable_amount"}},"ApiGetMarginRulesRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"}},"ApiGetMarginRulesResponse":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"max_position_size":{"python":"max_position_size","typescript":"max_position_size","go":"MaxPositionSize","rust":"max_position_size"},"risk_brackets":{"python":"risk_brackets","typescript":"risk_brackets","go":"RiskBrackets","rust":"risk_brackets"}},"ApiGetOrderRequest":{"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiGetOrderResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetOrderResponseInput":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiGetSubAccountCollateralPreferenceRequest":{"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiGetSubAccountCollateralPreferenceResponse":{"preferences":{"python":"preferences","typescript":"preferences","go":"Preferences","rust":"preferences"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiGetSubAccountsResponse":{"sub_account_ids":{"python":"sub_account_ids","typescript":"sub_account_ids","go":"SubAccountIDs","rust":"sub_account_ids"}},"ApiGetSupportedAssetsResponse":{"funding":{"python":"funding","typescript":"funding","go":"Funding","rust":"funding"},"futures":{"python":"futures","typescript":"futures","go":"Futures","rust":"futures"},"spot":{"python":"spot","typescript":"spot","go":"Spot","rust":"spot"}},"ApiInterestPaymentHistoryRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiInterestPaymentHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiMiniTickerRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"}},"ApiMiniTickerResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiOpenAlgoOrdersRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"trigger_filter":{"python":"trigger_filter","typescript":"trigger_filter","go":"TriggerFilter","rust":"trigger_filter"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"ApiOpenAlgoOrdersResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiOpenOrdersRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiOpenOrdersResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiOpenOrdersResponseInput":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiOrderHistoryRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiOrderHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiOrderHistoryResponseInput":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiOrderbookLevelsRequest":{"depth":{"python":"depth","typescript":"depth","go":"Depth","rust":"depth"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"}},"ApiOrderbookLevelsResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiPositionHistory":{"close_time":{"python":"close_time","typescript":"close_time","go":"CloseTime","rust":"close_time"},"closed_volume_base":{"python":"closed_volume_base","typescript":"closed_volume_base","go":"ClosedVolumeBase","rust":"closed_volume_base"},"closed_volume_quote":{"python":"closed_volume_quote","typescript":"closed_volume_quote","go":"ClosedVolumeQuote","rust":"closed_volume_quote"},"cumulative_fee":{"python":"cumulative_fee","typescript":"cumulative_fee","go":"CumulativeFee","rust":"cumulative_fee"},"cumulative_initial_margin":{"python":"cumulative_initial_margin","typescript":"cumulative_initial_margin","go":"CumulativeInitialMargin","rust":"cumulative_initial_margin"},"cumulative_realized_funding_payment":{"python":"cumulative_realized_funding_payment","typescript":"cumulative_realized_funding_payment","go":"CumulativeRealizedFundingPayment","rust":"cumulative_realized_funding_payment"},"entry_price":{"python":"entry_price","typescript":"entry_price","go":"EntryPrice","rust":"entry_price"},"exit_price":{"python":"exit_price","typescript":"exit_price","go":"ExitPrice","rust":"exit_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"is_long":{"python":"is_long","typescript":"is_long","go":"IsLong","rust":"is_long"},"leverage":{"python":"leverage","typescript":"leverage","go":"Leverage","rust":"leverage"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"max_initial_margin":{"python":"max_initial_margin","typescript":"max_initial_margin","go":"MaxInitialMargin","rust":"max_initial_margin"},"max_open_interest_base":{"python":"max_open_interest_base","typescript":"max_open_interest_base","go":"MaxOpenInterestBase","rust":"max_open_interest_base"},"max_open_interest_quote":{"python":"max_open_interest_quote","typescript":"max_open_interest_quote","go":"MaxOpenInterestQuote","rust":"max_open_interest_quote"},"open_time":{"python":"open_time","typescript":"open_time","go":"OpenTime","rust":"open_time"},"position_close_mark_price":{"python":"position_close_mark_price","typescript":"position_close_mark_price","go":"PositionCloseMarkPrice","rust":"position_close_mark_price"},"realized_pnl":{"python":"realized_pnl","typescript":"realized_pnl","go":"RealizedPnl","rust":"realized_pnl"},"split_ratio_from":{"python":"split_ratio_from","typescript":"split_ratio_from","go":"SplitRatioFrom","rust":"split_ratio_from"},"split_ratio_to":{"python":"split_ratio_to","typescript":"split_ratio_to","go":"SplitRatioTo","rust":"split_ratio_to"},"split_remaining_size":{"python":"split_remaining_size","typescript":"split_remaining_size","go":"SplitRemainingSize","rust":"split_remaining_size"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"unrealized_pnl":{"python":"unrealized_pnl","typescript":"unrealized_pnl","go":"UnrealizedPnl","rust":"unrealized_pnl"}},"ApiPositionHistoryRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"is_long":{"python":"is_long","typescript":"is_long","go":"IsLong","rust":"is_long"},"is_short":{"python":"is_short","typescript":"is_short","go":"IsShort","rust":"is_short"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiPositionHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiPositionsRequest":{"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiPositionsResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiQueryVaultManagerInvestorHistoryRequest":{"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"only_own_investments":{"python":"only_own_investments","typescript":"only_own_investments","go":"OnlyOwnInvestments","rust":"only_own_investments"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiQueryVaultManagerInvestorHistoryResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiSetDeriskToMaintenanceMarginRatioRequest":{"ratio":{"python":"ratio","typescript":"ratio","go":"Ratio","rust":"ratio"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSetDeriskToMaintenanceMarginRatioRequestInput":{"ratio":{"python":"ratio","typescript":"ratio","go":"Ratio","rust":"ratio"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSetDeriskToMaintenanceMarginRatioResponse":{"success":{"python":"success","typescript":"success","go":"Success","rust":"success"}},"ApiSetInitialLeverageRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"leverage":{"python":"leverage","typescript":"leverage","go":"Leverage","rust":"leverage"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSetInitialLeverageResponse":{"success":{"python":"success","typescript":"success","go":"Success","rust":"success"}},"ApiSetSubAccountPositionMarginConfigRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"leverage":{"python":"leverage","typescript":"leverage","go":"Leverage","rust":"leverage"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSetSubAccountPositionMarginConfigRequestInput":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"leverage":{"python":"leverage","typescript":"leverage","go":"Leverage","rust":"leverage"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSetSubAccountPositionMarginConfigResponse":{"ack":{"python":"ack","typescript":"ack","go":"Ack","rust":"ack"}},"ApiSfpTradingScheduleResponse":{"commodity":{"python":"commodity","typescript":"commodity","go":"Commodity","rust":"commodity"},"commodity_cme":{"python":"commodity_cme","typescript":"commodity_cme","go":"CommodityCme","rust":"commodity_cme"},"equity":{"python":"equity","typescript":"equity","go":"Equity","rust":"equity"},"equity_nasdaq":{"python":"equity_nasdaq","typescript":"equity_nasdaq","go":"EquityNasdaq","rust":"equity_nasdaq"},"equity_nyse":{"python":"equity_nyse","typescript":"equity_nyse","go":"EquityNyse","rust":"equity_nyse"},"schedules":{"python":"schedules","typescript":"schedules","go":"Schedules","rust":"schedules"},"update_time":{"python":"update_time","typescript":"update_time","go":"UpdateTime","rust":"update_time"}},"ApiSpotBorrowConfig":{"borrow_limit":{"python":"borrow_limit","typescript":"borrow_limit","go":"BorrowLimit","rust":"borrow_limit"},"borrow_rate":{"python":"borrow_rate","typescript":"borrow_rate","go":"BorrowRate","rust":"borrow_rate"},"collateral_limit":{"python":"collateral_limit","typescript":"collateral_limit","go":"CollateralLimit","rust":"collateral_limit"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"}},"ApiSpotSubAccountSummaryRequest":{"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSpotSubAccountSummaryResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiSubAccountSummaryRequest":{"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ApiSubAccountSummaryResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiTickerRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"}},"ApiTickerResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiTradeHistoryRequest":{"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"}},"ApiTradeHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiTradeRequest":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"}},"ApiTradeResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiTransferAck":{"ack":{"python":"ack","typescript":"ack","go":"Ack","rust":"ack"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"ApiTransferHistoryRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"transfer_types":{"python":"transfer_types","typescript":"transfer_types","go":"TransferTypes","rust":"transfer_types"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"ApiTransferHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiTransferHistoryResponseInput":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiTransferRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_account_id":{"python":"to_account_id","typescript":"to_account_id","go":"ToAccountID","rust":"to_account_id"},"to_sub_account_id":{"python":"to_sub_account_id","typescript":"to_sub_account_id","go":"ToSubAccountID","rust":"to_sub_account_id"},"to_wallet_type":{"python":"to_wallet_type","typescript":"to_wallet_type","go":"ToWalletType","rust":"to_wallet_type"},"transfer_metadata":{"python":"transfer_metadata","typescript":"transfer_metadata","go":"TransferMetadata","rust":"transfer_metadata"},"transfer_type":{"python":"transfer_type","typescript":"transfer_type","go":"TransferType","rust":"transfer_type"}},"ApiTransferRequestInput":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_account_id":{"python":"to_account_id","typescript":"to_account_id","go":"ToAccountID","rust":"to_account_id"},"to_sub_account_id":{"python":"to_sub_account_id","typescript":"to_sub_account_id","go":"ToSubAccountID","rust":"to_sub_account_id"},"to_wallet_type":{"python":"to_wallet_type","typescript":"to_wallet_type","go":"ToWalletType","rust":"to_wallet_type"},"transfer_metadata":{"python":"transfer_metadata","typescript":"transfer_metadata","go":"TransferMetadata","rust":"transfer_metadata"},"transfer_type":{"python":"transfer_type","typescript":"transfer_type","go":"TransferType","rust":"transfer_type"}},"ApiTransferResponse":{"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiVaultBurnTokensRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultBurnTokensRequestInput":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultConversionRateRequest":{"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"from_num_tokens":{"python":"from_num_tokens","typescript":"from_num_tokens","go":"FromNumTokens","rust":"from_num_tokens"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"}},"ApiVaultConversionRateResponse":{"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"fee_rate_centi_beeps":{"python":"fee_rate_centi_beeps","typescript":"fee_rate_centi_beeps","go":"FeeRateCentiBeeps","rust":"fee_rate_centi_beeps"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"from_num_tokens":{"python":"from_num_tokens","typescript":"from_num_tokens","go":"FromNumTokens","rust":"from_num_tokens"},"spot_rate":{"python":"spot_rate","typescript":"spot_rate","go":"SpotRate","rust":"spot_rate"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"},"to_num_tokens":{"python":"to_num_tokens","typescript":"to_num_tokens","go":"ToNumTokens","rust":"to_num_tokens"},"valid_until":{"python":"valid_until","typescript":"valid_until","go":"ValidUntil","rust":"valid_until"},"window_seconds":{"python":"window_seconds","typescript":"window_seconds","go":"WindowSeconds","rust":"window_seconds"}},"ApiVaultInvestV2Request":{"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"from_num_tokens":{"python":"from_num_tokens","typescript":"from_num_tokens","go":"FromNumTokens","rust":"from_num_tokens"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultInvestV2RequestInput":{"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"from_num_tokens":{"python":"from_num_tokens","typescript":"from_num_tokens","go":"FromNumTokens","rust":"from_num_tokens"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultInvestV2Response":{"ack":{"python":"ack","typescript":"ack","go":"Ack","rust":"ack"},"enqueued":{"python":"enqueued","typescript":"enqueued","go":"Enqueued","rust":"enqueued"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"ApiVaultInvestorHistory":{"conversion_fee_num_tokens":{"python":"conversion_fee_num_tokens","typescript":"conversion_fee_num_tokens","go":"ConversionFeeNumTokens","rust":"conversion_fee_num_tokens"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"from_num_tokens":{"python":"from_num_tokens","typescript":"from_num_tokens","go":"FromNumTokens","rust":"from_num_tokens"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"off_chain_account_id":{"python":"off_chain_account_id","typescript":"off_chain_account_id","go":"OffChainAccountID","rust":"off_chain_account_id"},"performance_fee":{"python":"performance_fee","typescript":"performance_fee","go":"PerformanceFee","rust":"performance_fee"},"price":{"python":"price","typescript":"price","go":"Price","rust":"price"},"realized_pnl":{"python":"realized_pnl","typescript":"realized_pnl","go":"RealizedPnl","rust":"realized_pnl"},"request_time":{"python":"request_time","typescript":"request_time","go":"RequestTime","rust":"request_time"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"},"to_num_tokens":{"python":"to_num_tokens","typescript":"to_num_tokens","go":"ToNumTokens","rust":"to_num_tokens"},"token_currency":{"python":"token_currency","typescript":"token_currency","go":"TokenCurrency","rust":"token_currency"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultInvestorSummaryRequest":{"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultInvestorSummaryResponse":{"vault_investor_summary":{"python":"vault_investor_summary","typescript":"vault_investor_summary","go":"VaultInvestorSummary","rust":"vault_investor_summary"}},"ApiVaultRedeemCancelRequest":{"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultRedeemV2Request":{"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultRedeemV2RequestInput":{"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultViewRedemptionQueueRequest":{"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"ApiVaultViewRedemptionQueueResponse":{"auto_redeemable_balance":{"python":"auto_redeemable_balance","typescript":"auto_redeemable_balance","go":"AutoRedeemableBalance","rust":"auto_redeemable_balance"},"pending_redemption_token_count":{"python":"pending_redemption_token_count","typescript":"pending_redemption_token_count","go":"PendingRedemptionTokenCount","rust":"pending_redemption_token_count"},"pre_min":{"python":"pre_min","typescript":"pre_min","go":"PreMin","rust":"pre_min"},"redemption_queue":{"python":"redemption_queue","typescript":"redemption_queue","go":"RedemptionQueue","rust":"redemption_queue"},"share_price":{"python":"share_price","typescript":"share_price","go":"SharePrice","rust":"share_price"},"urgent_redemption_token_count":{"python":"urgent_redemption_token_count","typescript":"urgent_redemption_token_count","go":"UrgentRedemptionTokenCount","rust":"urgent_redemption_token_count"}},"ApiWithdrawalFeeRequest":{"token_currency":{"python":"token_currency","typescript":"token_currency","go":"TokenCurrency","rust":"token_currency"}},"ApiWithdrawalFeeResponse":{"token_currency":{"python":"token_currency","typescript":"token_currency","go":"TokenCurrency","rust":"token_currency"},"withdrawal_fee":{"python":"withdrawal_fee","typescript":"withdrawal_fee","go":"WithdrawalFee","rust":"withdrawal_fee"}},"ApiWithdrawalHistoryRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"cursor":{"python":"cursor","typescript":"cursor","go":"Cursor","rust":"cursor"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"},"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"}},"ApiWithdrawalHistoryResponse":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiWithdrawalHistoryResponseInput":{"next":{"python":"next","typescript":"next","go":"Next","rust":"next"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"ApiWithdrawalRequest":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_eth_address":{"python":"to_eth_address","typescript":"to_eth_address","go":"ToEthAddress","rust":"to_eth_address"}},"ApiWithdrawalRequestInput":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_eth_address":{"python":"to_eth_address","typescript":"to_eth_address","go":"ToEthAddress","rust":"to_eth_address"}},"BuilderFillHistory":{"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"fee":{"python":"fee","typescript":"fee","go":"Fee","rust":"fee"},"fee_rate":{"python":"fee_rate","typescript":"fee_rate","go":"FeeRate","rust":"fee_rate"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"is_buyer":{"python":"is_buyer","typescript":"is_buyer","go":"IsBuyer","rust":"is_buyer"},"is_taker":{"python":"is_taker","typescript":"is_taker","go":"IsTaker","rust":"is_taker"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"off_chain_account_id":{"python":"off_chain_account_id","typescript":"off_chain_account_id","go":"OffChainAccountID","rust":"off_chain_account_id"},"price":{"python":"price","typescript":"price","go":"Price","rust":"price"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"}},"CancelStatusFeed":{"cancel_status":{"python":"cancel_status","typescript":"cancel_status","go":"CancelStatus","rust":"cancel_status"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"reason":{"python":"reason","typescript":"reason","go":"Reason","rust":"reason"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"update_time":{"python":"update_time","typescript":"update_time","go":"UpdateTime","rust":"update_time"}},"Candlestick":{"close":{"python":"close","typescript":"close","go":"Close","rust":"close"},"close_time":{"python":"close_time","typescript":"close_time","go":"CloseTime","rust":"close_time"},"high":{"python":"high","typescript":"high","go":"High","rust":"high"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"low":{"python":"low","typescript":"low","go":"Low","rust":"low"},"open":{"python":"open","typescript":"open","go":"Open","rust":"open"},"open_time":{"python":"open_time","typescript":"open_time","go":"OpenTime","rust":"open_time"},"trades":{"python":"trades","typescript":"trades","go":"Trades","rust":"trades"},"volume_b":{"python":"volume_b","typescript":"volume_b","go":"VolumeB","rust":"volume_b"},"volume_q":{"python":"volume_q","typescript":"volume_q","go":"VolumeQ","rust":"volume_q"}},"ChaseAlgoOrderMetadata":{"chase_price_mode":{"python":"chase_price_mode","typescript":"chase_price_mode","go":"ChasePriceMode","rust":"chase_price_mode"},"max_distance":{"python":"max_distance","typescript":"max_distance","go":"MaxDistance","rust":"max_distance"},"max_distance_bps":{"python":"max_distance_bps","typescript":"max_distance_bps","go":"MaxDistanceBps","rust":"max_distance_bps"}},"ChaseOrderState":{"reprice_count":{"python":"reprice_count","typescript":"reprice_count","go":"RepriceCount","rust":"reprice_count"}},"ClientTier":{"futures_maker_fee":{"python":"futures_maker_fee","typescript":"futures_maker_fee","go":"FuturesMakerFee","rust":"futures_maker_fee"},"futures_taker_fee":{"python":"futures_taker_fee","typescript":"futures_taker_fee","go":"FuturesTakerFee","rust":"futures_taker_fee"},"options_maker_fee":{"python":"options_maker_fee","typescript":"options_maker_fee","go":"OptionsMakerFee","rust":"options_maker_fee"},"options_taker_fee":{"python":"options_taker_fee","typescript":"options_taker_fee","go":"OptionsTakerFee","rust":"options_taker_fee"},"spot_borrow_configs":{"python":"spot_borrow_configs","typescript":"spot_borrow_configs","go":"SpotBorrowConfigs","rust":"spot_borrow_configs"},"spot_maker_fee":{"python":"spot_maker_fee","typescript":"spot_maker_fee","go":"SpotMakerFee","rust":"spot_maker_fee"},"spot_taker_fee":{"python":"spot_taker_fee","typescript":"spot_taker_fee","go":"SpotTakerFee","rust":"spot_taker_fee"},"tier":{"python":"tier","typescript":"tier","go":"Tier","rust":"tier"}},"CurrencyDetail":{"balance_decimals":{"python":"balance_decimals","typescript":"balance_decimals","go":"BalanceDecimals","rust":"balance_decimals"},"id":{"python":"id","typescript":"id","go":"ID","rust":"id"},"quantity_multiplier":{"python":"quantity_multiplier","typescript":"quantity_multiplier","go":"QuantityMultiplier","rust":"quantity_multiplier"},"symbol":{"python":"symbol","typescript":"symbol","go":"Symbol","rust":"symbol"}},"Deposit":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"to_account_id":{"python":"to_account_id","typescript":"to_account_id","go":"ToAccountID","rust":"to_account_id"},"tx_hash":{"python":"tx_hash","typescript":"tx_hash","go":"TxHash","rust":"tx_hash"}},"DepositHistory":{"confirmed_time":{"python":"confirmed_time","typescript":"confirmed_time","go":"ConfirmedTime","rust":"confirmed_time"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_address":{"python":"from_address","typescript":"from_address","go":"FromAddress","rust":"from_address"},"initiated_time":{"python":"initiated_time","typescript":"initiated_time","go":"InitiatedTime","rust":"initiated_time"},"l_1_hash":{"python":"l_1_hash","typescript":"l_1_hash","go":"L1Hash","rust":"l_1_hash"},"l_2_hash":{"python":"l_2_hash","typescript":"l_2_hash","go":"L2Hash","rust":"l_2_hash"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"to_account_id":{"python":"to_account_id","typescript":"to_account_id","go":"ToAccountID","rust":"to_account_id"}},"EdgeApiKeyLoginRequest":{"api_key":{"python":"api_key","typescript":"api_key","go":"APIKey","rust":"api_key"}},"EdgeLoginError":{"error":{"python":"error","typescript":"error","go":"Error","rust":"error"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"}},"EdgeLoginResponse":{"funding_account_address":{"python":"funding_account_address","typescript":"funding_account_address","go":"FundingAccountAddress","rust":"funding_account_address"},"location":{"python":"location","typescript":"location","go":"Location","rust":"location"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"EdgeWalletLoginRequest":{"address":{"python":"address","typescript":"address","go":"Address","rust":"address"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"}},"EdgeWalletLoginRequestInput":{"address":{"python":"address","typescript":"address","go":"Address","rust":"address"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"}},"EdgeWalletLoginResponse":{"funding_account_address":{"python":"funding_account_address","typescript":"funding_account_address","go":"FundingAccountAddress","rust":"funding_account_address"}},"EmptyRequest":{},"Error":{"code":{"python":"code","typescript":"code","go":"Code","rust":"code"},"message":{"python":"message","typescript":"message","go":"Message","rust":"message"}},"Fill":{"broker":{"python":"broker","typescript":"broker","go":"Broker","rust":"broker"},"builder":{"python":"builder","typescript":"builder","go":"Builder","rust":"builder"},"builder_fee":{"python":"builder_fee","typescript":"builder_fee","go":"BuilderFee","rust":"builder_fee"},"builder_fee_rate":{"python":"builder_fee_rate","typescript":"builder_fee_rate","go":"BuilderFeeRate","rust":"builder_fee_rate"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"counterparty_type":{"python":"counterparty_type","typescript":"counterparty_type","go":"CounterpartyType","rust":"counterparty_type"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"fee":{"python":"fee","typescript":"fee","go":"Fee","rust":"fee"},"fee_currency":{"python":"fee_currency","typescript":"fee_currency","go":"FeeCurrency","rust":"fee_currency"},"fee_rate":{"python":"fee_rate","typescript":"fee_rate","go":"FeeRate","rust":"fee_rate"},"forward_price":{"python":"forward_price","typescript":"forward_price","go":"ForwardPrice","rust":"forward_price"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interest_rate":{"python":"interest_rate","typescript":"interest_rate","go":"InterestRate","rust":"interest_rate"},"is_buyer":{"python":"is_buyer","typescript":"is_buyer","go":"IsBuyer","rust":"is_buyer"},"is_liquidation":{"python":"is_liquidation","typescript":"is_liquidation","go":"IsLiquidation","rust":"is_liquidation"},"is_rpi":{"python":"is_rpi","typescript":"is_rpi","go":"IsRpi","rust":"is_rpi"},"is_taker":{"python":"is_taker","typescript":"is_taker","go":"IsTaker","rust":"is_taker"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"price":{"python":"price","typescript":"price","go":"Price","rust":"price"},"realized_pnl":{"python":"realized_pnl","typescript":"realized_pnl","go":"RealizedPnl","rust":"realized_pnl"},"repayment_scenario":{"python":"repayment_scenario","typescript":"repayment_scenario","go":"RepaymentScenario","rust":"repayment_scenario"},"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"},"signer":{"python":"signer","typescript":"signer","go":"Signer","rust":"signer"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"trade_id":{"python":"trade_id","typescript":"trade_id","go":"TradeID","rust":"trade_id"},"venue":{"python":"venue","typescript":"venue","go":"Venue","rust":"venue"}},"FundingAccountSummary":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"spot_balances":{"python":"spot_balances","typescript":"spot_balances","go":"SpotBalances","rust":"spot_balances"},"total_cash_balance":{"python":"total_cash_balance","typescript":"total_cash_balance","go":"TotalCashBalance","rust":"total_cash_balance"},"total_equity":{"python":"total_equity","typescript":"total_equity","go":"TotalEquity","rust":"total_equity"},"total_spot_asset_balance":{"python":"total_spot_asset_balance","typescript":"total_spot_asset_balance","go":"TotalSpotAssetBalance","rust":"total_spot_asset_balance"},"vault_investments":{"python":"vault_investments","typescript":"vault_investments","go":"VaultInvestments","rust":"vault_investments"}},"FundingPayment":{"amount":{"python":"amount","typescript":"amount","go":"Amount","rust":"amount"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"FuturesWalletAssets":{"mode":{"python":"mode","typescript":"mode","go":"Mode","rust":"mode"},"supported_assets":{"python":"supported_assets","typescript":"supported_assets","go":"SupportedAssets","rust":"supported_assets"}},"InitialLeverageResult":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"leverage":{"python":"leverage","typescript":"leverage","go":"Leverage","rust":"leverage"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"max_leverage":{"python":"max_leverage","typescript":"max_leverage","go":"MaxLeverage","rust":"max_leverage"},"min_leverage":{"python":"min_leverage","typescript":"min_leverage","go":"MinLeverage","rust":"min_leverage"}},"InstrumentDisplay":{"adjusted_funding_rate_cap":{"python":"adjusted_funding_rate_cap","typescript":"adjusted_funding_rate_cap","go":"AdjustedFundingRateCap","rust":"adjusted_funding_rate_cap"},"adjusted_funding_rate_floor":{"python":"adjusted_funding_rate_floor","typescript":"adjusted_funding_rate_floor","go":"AdjustedFundingRateFloor","rust":"adjusted_funding_rate_floor"},"asset_class":{"python":"asset_class","typescript":"asset_class","go":"AssetClass","rust":"asset_class"},"base":{"python":"base","typescript":"base","go":"Base","rust":"base"},"base_decimals":{"python":"base_decimals","typescript":"base_decimals","go":"BaseDecimals","rust":"base_decimals"},"create_time":{"python":"create_time","typescript":"create_time","go":"CreateTime","rust":"create_time"},"funding_cap_adjustment_time":{"python":"funding_cap_adjustment_time","typescript":"funding_cap_adjustment_time","go":"FundingCapAdjustmentTime","rust":"funding_cap_adjustment_time"},"funding_cap_adjustment_value":{"python":"funding_cap_adjustment_value","typescript":"funding_cap_adjustment_value","go":"FundingCapAdjustmentValue","rust":"funding_cap_adjustment_value"},"funding_interval_hours":{"python":"funding_interval_hours","typescript":"funding_interval_hours","go":"FundingIntervalHours","rust":"funding_interval_hours"},"guaranteed_exit_band":{"python":"guaranteed_exit_band","typescript":"guaranteed_exit_band","go":"GuaranteedExitBand","rust":"guaranteed_exit_band"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"instrument_hash":{"python":"instrument_hash","typescript":"instrument_hash","go":"InstrumentHash","rust":"instrument_hash"},"kind":{"python":"kind","typescript":"kind","go":"Kind","rust":"kind"},"max_position_size":{"python":"max_position_size","typescript":"max_position_size","go":"MaxPositionSize","rust":"max_position_size"},"min_notional":{"python":"min_notional","typescript":"min_notional","go":"MinNotional","rust":"min_notional"},"min_size":{"python":"min_size","typescript":"min_size","go":"MinSize","rust":"min_size"},"quote":{"python":"quote","typescript":"quote","go":"Quote","rust":"quote"},"quote_decimals":{"python":"quote_decimals","typescript":"quote_decimals","go":"QuoteDecimals","rust":"quote_decimals"},"settlement_period":{"python":"settlement_period","typescript":"settlement_period","go":"SettlementPeriod","rust":"settlement_period"},"spread_penalty_tolerance":{"python":"spread_penalty_tolerance","typescript":"spread_penalty_tolerance","go":"SpreadPenaltyTolerance","rust":"spread_penalty_tolerance"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"},"tick_size":{"python":"tick_size","typescript":"tick_size","go":"TickSize","rust":"tick_size"},"triple_swap_day":{"python":"triple_swap_day","typescript":"triple_swap_day","go":"TripleSwapDay","rust":"triple_swap_day"},"venues":{"python":"venues","typescript":"venues","go":"Venues","rust":"venues"}},"InterestPayment":{"amount":{"python":"amount","typescript":"amount","go":"Amount","rust":"amount"},"borrowed_amount":{"python":"borrowed_amount","typescript":"borrowed_amount","go":"BorrowedAmount","rust":"borrowed_amount"},"charge_time":{"python":"charge_time","typescript":"charge_time","go":"ChargeTime","rust":"charge_time"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"JSONRPCRequest":{"id":{"python":"id","typescript":"id","go":"ID","rust":"id"},"jsonrpc":{"python":"jsonrpc","typescript":"jsonrpc","go":"Jsonrpc","rust":"jsonrpc"},"method":{"python":"method","typescript":"method","go":"Method","rust":"method"},"params":{"python":"params","typescript":"params","go":"Params","rust":"params"}},"JSONRPCResponse":{"error":{"python":"error","typescript":"error","go":"Error","rust":"error"},"id":{"python":"id","typescript":"id","go":"ID","rust":"id"},"jsonrpc":{"python":"jsonrpc","typescript":"jsonrpc","go":"Jsonrpc","rust":"jsonrpc"},"method":{"python":"method","typescript":"method","go":"Method","rust":"method"},"result":{"python":"result","typescript":"result","go":"Result","rust":"result"}},"MiniTicker":{"best_ask_price":{"python":"best_ask_price","typescript":"best_ask_price","go":"BestAskPrice","rust":"best_ask_price"},"best_ask_size":{"python":"best_ask_size","typescript":"best_ask_size","go":"BestAskSize","rust":"best_ask_size"},"best_bid_price":{"python":"best_bid_price","typescript":"best_bid_price","go":"BestBidPrice","rust":"best_bid_price"},"best_bid_size":{"python":"best_bid_size","typescript":"best_bid_size","go":"BestBidSize","rust":"best_bid_size"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"last_price":{"python":"last_price","typescript":"last_price","go":"LastPrice","rust":"last_price"},"last_size":{"python":"last_size","typescript":"last_size","go":"LastSize","rust":"last_size"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"mid_price":{"python":"mid_price","typescript":"mid_price","go":"MidPrice","rust":"mid_price"}},"Order":{"builder":{"python":"builder","typescript":"builder","go":"Builder","rust":"builder"},"builder_fee":{"python":"builder_fee","typescript":"builder_fee","go":"BuilderFee","rust":"builder_fee"},"is_market":{"python":"is_market","typescript":"is_market","go":"IsMarket","rust":"is_market"},"legs":{"python":"legs","typescript":"legs","go":"Legs","rust":"legs"},"metadata":{"python":"metadata","typescript":"metadata","go":"Metadata","rust":"metadata"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"post_only":{"python":"post_only","typescript":"post_only","go":"PostOnly","rust":"post_only"},"reduce_only":{"python":"reduce_only","typescript":"reduce_only","go":"ReduceOnly","rust":"reduce_only"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"state":{"python":"state","typescript":"state","go":"State","rust":"state"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"time_in_force":{"python":"time_in_force","typescript":"time_in_force","go":"TimeInForce","rust":"time_in_force"}},"OrderInput":{"builder":{"python":"builder","typescript":"builder","go":"Builder","rust":"builder"},"builder_fee":{"python":"builder_fee","typescript":"builder_fee","go":"BuilderFee","rust":"builder_fee"},"is_market":{"python":"is_market","typescript":"is_market","go":"IsMarket","rust":"is_market"},"legs":{"python":"legs","typescript":"legs","go":"Legs","rust":"legs"},"metadata":{"python":"metadata","typescript":"metadata","go":"Metadata","rust":"metadata"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"post_only":{"python":"post_only","typescript":"post_only","go":"PostOnly","rust":"post_only"},"reduce_only":{"python":"reduce_only","typescript":"reduce_only","go":"ReduceOnly","rust":"reduce_only"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"state":{"python":"state","typescript":"state","go":"State","rust":"state"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"time_in_force":{"python":"time_in_force","typescript":"time_in_force","go":"TimeInForce","rust":"time_in_force"}},"OrderLeg":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"is_buying_asset":{"python":"is_buying_asset","typescript":"is_buying_asset","go":"IsBuyingAsset","rust":"is_buying_asset"},"limit_price":{"python":"limit_price","typescript":"limit_price","go":"LimitPrice","rust":"limit_price"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"}},"OrderMetadata":{"algo_order_id":{"python":"algo_order_id","typescript":"algo_order_id","go":"AlgoOrderID","rust":"algo_order_id"},"broker":{"python":"broker","typescript":"broker","go":"Broker","rust":"broker"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"create_time":{"python":"create_time","typescript":"create_time","go":"CreateTime","rust":"create_time"},"is_ecn":{"python":"is_ecn","typescript":"is_ecn","go":"IsEcn","rust":"is_ecn"},"is_private":{"python":"is_private","typescript":"is_private","go":"IsPrivate","rust":"is_private"},"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"},"slippage_bps":{"python":"slippage_bps","typescript":"slippage_bps","go":"SlippageBps","rust":"slippage_bps"},"trigger":{"python":"trigger","typescript":"trigger","go":"Trigger","rust":"trigger"}},"OrderMetadataInput":{"algo_order_id":{"python":"algo_order_id","typescript":"algo_order_id","go":"AlgoOrderID","rust":"algo_order_id"},"broker":{"python":"broker","typescript":"broker","go":"Broker","rust":"broker"},"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"create_time":{"python":"create_time","typescript":"create_time","go":"CreateTime","rust":"create_time"},"is_ecn":{"python":"is_ecn","typescript":"is_ecn","go":"IsEcn","rust":"is_ecn"},"is_private":{"python":"is_private","typescript":"is_private","go":"IsPrivate","rust":"is_private"},"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"},"slippage_bps":{"python":"slippage_bps","typescript":"slippage_bps","go":"SlippageBps","rust":"slippage_bps"},"trigger":{"python":"trigger","typescript":"trigger","go":"Trigger","rust":"trigger"}},"OrderState":{"avg_fill_price":{"python":"avg_fill_price","typescript":"avg_fill_price","go":"AvgFillPrice","rust":"avg_fill_price"},"book_size":{"python":"book_size","typescript":"book_size","go":"BookSize","rust":"book_size"},"reject_reason":{"python":"reject_reason","typescript":"reject_reason","go":"RejectReason","rust":"reject_reason"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"},"traded_size":{"python":"traded_size","typescript":"traded_size","go":"TradedSize","rust":"traded_size"},"update_time":{"python":"update_time","typescript":"update_time","go":"UpdateTime","rust":"update_time"}},"OrderStateFeed":{"client_order_id":{"python":"client_order_id","typescript":"client_order_id","go":"ClientOrderID","rust":"client_order_id"},"order_id":{"python":"order_id","typescript":"order_id","go":"OrderID","rust":"order_id"},"order_state":{"python":"order_state","typescript":"order_state","go":"OrderState","rust":"order_state"}},"OrderbookLevel":{"num_orders":{"python":"num_orders","typescript":"num_orders","go":"NumOrders","rust":"num_orders"},"price":{"python":"price","typescript":"price","go":"Price","rust":"price"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"}},"OrderbookLevels":{"asks":{"python":"asks","typescript":"asks","go":"Asks","rust":"asks"},"bids":{"python":"bids","typescript":"bids","go":"Bids","rust":"bids"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"}},"PartialMiniTicker":{"best_ask_price":{"python":"best_ask_price","typescript":"best_ask_price","go":"BestAskPrice","rust":"best_ask_price"},"best_ask_size":{"python":"best_ask_size","typescript":"best_ask_size","go":"BestAskSize","rust":"best_ask_size"},"best_bid_price":{"python":"best_bid_price","typescript":"best_bid_price","go":"BestBidPrice","rust":"best_bid_price"},"best_bid_size":{"python":"best_bid_size","typescript":"best_bid_size","go":"BestBidSize","rust":"best_bid_size"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"last_price":{"python":"last_price","typescript":"last_price","go":"LastPrice","rust":"last_price"},"last_size":{"python":"last_size","typescript":"last_size","go":"LastSize","rust":"last_size"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"mid_price":{"python":"mid_price","typescript":"mid_price","go":"MidPrice","rust":"mid_price"}},"PartialTicker":{"best_ask_price":{"python":"best_ask_price","typescript":"best_ask_price","go":"BestAskPrice","rust":"best_ask_price"},"best_ask_size":{"python":"best_ask_size","typescript":"best_ask_size","go":"BestAskSize","rust":"best_ask_size"},"best_bid_price":{"python":"best_bid_price","typescript":"best_bid_price","go":"BestBidPrice","rust":"best_bid_price"},"best_bid_size":{"python":"best_bid_size","typescript":"best_bid_size","go":"BestBidSize","rust":"best_bid_size"},"buy_volume_24h_b":{"python":"buy_volume_24h_b","typescript":"buy_volume_24h_b","go":"BuyVolume24hB","rust":"buy_volume_24h_b"},"buy_volume_24h_q":{"python":"buy_volume_24h_q","typescript":"buy_volume_24h_q","go":"BuyVolume24hQ","rust":"buy_volume_24h_q"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"forward_price":{"python":"forward_price","typescript":"forward_price","go":"ForwardPrice","rust":"forward_price"},"funding_rate":{"python":"funding_rate","typescript":"funding_rate","go":"FundingRate","rust":"funding_rate"},"funding_rate_8h_avg":{"python":"funding_rate_8h_avg","typescript":"funding_rate_8h_avg","go":"FundingRate8hAvg","rust":"funding_rate_8h_avg"},"funding_rate_8h_curr":{"python":"funding_rate_8h_curr","typescript":"funding_rate_8h_curr","go":"FundingRate8hCurr","rust":"funding_rate_8h_curr"},"funding_rate_long_apr_pct":{"python":"funding_rate_long_apr_pct","typescript":"funding_rate_long_apr_pct","go":"FundingRateLongAprPct","rust":"funding_rate_long_apr_pct"},"funding_rate_short_apr_pct":{"python":"funding_rate_short_apr_pct","typescript":"funding_rate_short_apr_pct","go":"FundingRateShortAprPct","rust":"funding_rate_short_apr_pct"},"high_price":{"python":"high_price","typescript":"high_price","go":"HighPrice","rust":"high_price"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interest_rate":{"python":"interest_rate","typescript":"interest_rate","go":"InterestRate","rust":"interest_rate"},"last_price":{"python":"last_price","typescript":"last_price","go":"LastPrice","rust":"last_price"},"last_size":{"python":"last_size","typescript":"last_size","go":"LastSize","rust":"last_size"},"long_open_interest":{"python":"long_open_interest","typescript":"long_open_interest","go":"LongOpenInterest","rust":"long_open_interest"},"long_short_ratio":{"python":"long_short_ratio","typescript":"long_short_ratio","go":"LongShortRatio","rust":"long_short_ratio"},"low_price":{"python":"low_price","typescript":"low_price","go":"LowPrice","rust":"low_price"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"mid_price":{"python":"mid_price","typescript":"mid_price","go":"MidPrice","rust":"mid_price"},"next_funding_time":{"python":"next_funding_time","typescript":"next_funding_time","go":"NextFundingTime","rust":"next_funding_time"},"open_interest":{"python":"open_interest","typescript":"open_interest","go":"OpenInterest","rust":"open_interest"},"open_price":{"python":"open_price","typescript":"open_price","go":"OpenPrice","rust":"open_price"},"sell_volume_24h_b":{"python":"sell_volume_24h_b","typescript":"sell_volume_24h_b","go":"SellVolume24hB","rust":"sell_volume_24h_b"},"sell_volume_24h_q":{"python":"sell_volume_24h_q","typescript":"sell_volume_24h_q","go":"SellVolume24hQ","rust":"sell_volume_24h_q"},"session":{"python":"session","typescript":"session","go":"Session","rust":"session"},"short_open_interest":{"python":"short_open_interest","typescript":"short_open_interest","go":"ShortOpenInterest","rust":"short_open_interest"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"}},"PartialWSMiniTickerFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"PartialWSTickerFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"Positions":{"cumulative_fee":{"python":"cumulative_fee","typescript":"cumulative_fee","go":"CumulativeFee","rust":"cumulative_fee"},"cumulative_realized_funding_payment":{"python":"cumulative_realized_funding_payment","typescript":"cumulative_realized_funding_payment","go":"CumulativeRealizedFundingPayment","rust":"cumulative_realized_funding_payment"},"entry_price":{"python":"entry_price","typescript":"entry_price","go":"EntryPrice","rust":"entry_price"},"est_liquidation_price":{"python":"est_liquidation_price","typescript":"est_liquidation_price","go":"EstLiquidationPrice","rust":"est_liquidation_price"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"exit_price":{"python":"exit_price","typescript":"exit_price","go":"ExitPrice","rust":"exit_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"isolated_balance":{"python":"isolated_balance","typescript":"isolated_balance","go":"IsolatedBalance","rust":"isolated_balance"},"isolated_im":{"python":"isolated_im","typescript":"isolated_im","go":"IsolatedIm","rust":"isolated_im"},"isolated_mm":{"python":"isolated_mm","typescript":"isolated_mm","go":"IsolatedMm","rust":"isolated_mm"},"leverage":{"python":"leverage","typescript":"leverage","go":"Leverage","rust":"leverage"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"notional":{"python":"notional","typescript":"notional","go":"Notional","rust":"notional"},"quote_index_price":{"python":"quote_index_price","typescript":"quote_index_price","go":"QuoteIndexPrice","rust":"quote_index_price"},"realized_pnl":{"python":"realized_pnl","typescript":"realized_pnl","go":"RealizedPnl","rust":"realized_pnl"},"roi":{"python":"roi","typescript":"roi","go":"Roi","rust":"roi"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"total_pnl":{"python":"total_pnl","typescript":"total_pnl","go":"TotalPnl","rust":"total_pnl"},"unrealized_pnl":{"python":"unrealized_pnl","typescript":"unrealized_pnl","go":"UnrealizedPnl","rust":"unrealized_pnl"}},"PreMinRedemptions":{"requests":{"python":"requests","typescript":"requests","go":"Requests","rust":"requests"},"token_count":{"python":"token_count","typescript":"token_count","go":"TokenCount","rust":"token_count"}},"Rfq":{"expiry":{"python":"expiry","typescript":"expiry","go":"Expiry","rust":"expiry"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"},"side":{"python":"side","typescript":"side","go":"Side","rust":"side"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"RfqInput":{"expiry":{"python":"expiry","typescript":"expiry","go":"Expiry","rust":"expiry"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"},"side":{"python":"side","typescript":"side","go":"Side","rust":"side"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"RfqQuoteFeed":{"ask_levels":{"python":"ask_levels","typescript":"ask_levels","go":"AskLevels","rust":"ask_levels"},"best_ask":{"python":"best_ask","typescript":"best_ask","go":"BestAsk","rust":"best_ask"},"best_bid":{"python":"best_bid","typescript":"best_bid","go":"BestBid","rust":"best_bid"},"bid_levels":{"python":"bid_levels","typescript":"bid_levels","go":"BidLevels","rust":"bid_levels"},"rfq_id":{"python":"rfq_id","typescript":"rfq_id","go":"RfqID","rust":"rfq_id"}},"RfqQuoteLevel":{"maker_anon_account_id":{"python":"maker_anon_account_id","typescript":"maker_anon_account_id","go":"MakerAnonAccountID","rust":"maker_anon_account_id"},"price":{"python":"price","typescript":"price","go":"Price","rust":"price"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"time_in_force":{"python":"time_in_force","typescript":"time_in_force","go":"TimeInForce","rust":"time_in_force"}},"RiskBracket":{"cumulative_maintenance_amount":{"python":"cumulative_maintenance_amount","typescript":"cumulative_maintenance_amount","go":"CumulativeMaintenanceAmount","rust":"cumulative_maintenance_amount"},"initial_margin_rate":{"python":"initial_margin_rate","typescript":"initial_margin_rate","go":"InitialMarginRate","rust":"initial_margin_rate"},"maintenance_margin_rate":{"python":"maintenance_margin_rate","typescript":"maintenance_margin_rate","go":"MaintenanceMarginRate","rust":"maintenance_margin_rate"},"max_leverage":{"python":"max_leverage","typescript":"max_leverage","go":"MaxLeverage","rust":"max_leverage"},"notional_cap":{"python":"notional_cap","typescript":"notional_cap","go":"NotionalCap","rust":"notional_cap"},"notional_floor":{"python":"notional_floor","typescript":"notional_floor","go":"NotionalFloor","rust":"notional_floor"},"tier":{"python":"tier","typescript":"tier","go":"Tier","rust":"tier"}},"SfpMarketSchedule":{"holidays":{"python":"holidays","typescript":"holidays","go":"Holidays","rust":"holidays"},"sessions":{"python":"sessions","typescript":"sessions","go":"Sessions","rust":"sessions"}},"SfpTradingScheduleGroup":{"asset_class":{"python":"asset_class","typescript":"asset_class","go":"AssetClass","rust":"asset_class"},"holidays":{"python":"holidays","typescript":"holidays","go":"Holidays","rust":"holidays"},"instruments":{"python":"instruments","typescript":"instruments","go":"Instruments","rust":"instruments"},"name":{"python":"name","typescript":"name","go":"Name","rust":"name"},"sessions":{"python":"sessions","typescript":"sessions","go":"Sessions","rust":"sessions"}},"Signature":{"chain_id":{"python":"chain_id","typescript":"chain_id","go":"ChainID","rust":"chain_id"},"expiration":{"python":"expiration","typescript":"expiration","go":"Expiration","rust":"expiration"},"nonce":{"python":"nonce","typescript":"nonce","go":"Nonce","rust":"nonce"},"r":{"python":"r","typescript":"r","go":"R","rust":"r"},"s":{"python":"s","typescript":"s","go":"S","rust":"s"},"signer":{"python":"signer","typescript":"signer","go":"Signer","rust":"signer"},"v":{"python":"v","typescript":"v","go":"V","rust":"v"}},"SignatureInput":{"chain_id":{"python":"chain_id","typescript":"chain_id","go":"ChainID","rust":"chain_id"},"expiration":{"python":"expiration","typescript":"expiration","go":"Expiration","rust":"expiration"},"nonce":{"python":"nonce","typescript":"nonce","go":"Nonce","rust":"nonce"},"r":{"python":"r","typescript":"r","go":"R","rust":"r"},"s":{"python":"s","typescript":"s","go":"S","rust":"s"},"signer":{"python":"signer","typescript":"signer","go":"Signer","rust":"signer"},"v":{"python":"v","typescript":"v","go":"V","rust":"v"}},"SpotBalance":{"available_to_transfer":{"python":"available_to_transfer","typescript":"available_to_transfer","go":"AvailableToTransfer","rust":"available_to_transfer"},"balance":{"python":"balance","typescript":"balance","go":"Balance","rust":"balance"},"borrowed_amount":{"python":"borrowed_amount","typescript":"borrowed_amount","go":"BorrowedAmount","rust":"borrowed_amount"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"entry_price":{"python":"entry_price","typescript":"entry_price","go":"EntryPrice","rust":"entry_price"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"realized_pnl":{"python":"realized_pnl","typescript":"realized_pnl","go":"RealizedPnl","rust":"realized_pnl"},"unrealized_pnl":{"python":"unrealized_pnl","typescript":"unrealized_pnl","go":"UnrealizedPnl","rust":"unrealized_pnl"}},"SpotSubAccount":{"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"spot_balances":{"python":"spot_balances","typescript":"spot_balances","go":"SpotBalances","rust":"spot_balances"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"total_equity":{"python":"total_equity","typescript":"total_equity","go":"TotalEquity","rust":"total_equity"}},"StreamReference":{"selectors":{"python":"selectors","typescript":"selectors","go":"Selectors","rust":"selectors"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"SubAccount":{"algo_trading_enabled":{"python":"algo_trading_enabled","typescript":"algo_trading_enabled","go":"AlgoTradingEnabled","rust":"algo_trading_enabled"},"available_balance":{"python":"available_balance","typescript":"available_balance","go":"AvailableBalance","rust":"available_balance"},"cross_unrealized_pnl":{"python":"cross_unrealized_pnl","typescript":"cross_unrealized_pnl","go":"CrossUnrealizedPnl","rust":"cross_unrealized_pnl"},"derisk_margin":{"python":"derisk_margin","typescript":"derisk_margin","go":"DeriskMargin","rust":"derisk_margin"},"derisk_to_maintenance_margin_ratio":{"python":"derisk_to_maintenance_margin_ratio","typescript":"derisk_to_maintenance_margin_ratio","go":"DeriskToMaintenanceMarginRatio","rust":"derisk_to_maintenance_margin_ratio"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"initial_margin":{"python":"initial_margin","typescript":"initial_margin","go":"InitialMargin","rust":"initial_margin"},"is_vault":{"python":"is_vault","typescript":"is_vault","go":"IsVault","rust":"is_vault"},"maintenance_margin":{"python":"maintenance_margin","typescript":"maintenance_margin","go":"MaintenanceMargin","rust":"maintenance_margin"},"margin_balance":{"python":"margin_balance","typescript":"margin_balance","go":"MarginBalance","rust":"margin_balance"},"margin_type":{"python":"margin_type","typescript":"margin_type","go":"MarginType","rust":"margin_type"},"positions":{"python":"positions","typescript":"positions","go":"Positions","rust":"positions"},"settle_currency":{"python":"settle_currency","typescript":"settle_currency","go":"SettleCurrency","rust":"settle_currency"},"settle_index_price":{"python":"settle_index_price","typescript":"settle_index_price","go":"SettleIndexPrice","rust":"settle_index_price"},"spot_balances":{"python":"spot_balances","typescript":"spot_balances","go":"SpotBalances","rust":"spot_balances"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"sub_account_mode":{"python":"sub_account_mode","typescript":"sub_account_mode","go":"SubAccountMode","rust":"sub_account_mode"},"total_cross_equity":{"python":"total_cross_equity","typescript":"total_cross_equity","go":"TotalCrossEquity","rust":"total_cross_equity"},"total_equity":{"python":"total_equity","typescript":"total_equity","go":"TotalEquity","rust":"total_equity"},"unrealized_pnl":{"python":"unrealized_pnl","typescript":"unrealized_pnl","go":"UnrealizedPnl","rust":"unrealized_pnl"},"vault_im_additions":{"python":"vault_im_additions","typescript":"vault_im_additions","go":"VaultImAdditions","rust":"vault_im_additions"}},"SupportedAsset":{"asset_code":{"python":"asset_code","typescript":"asset_code","go":"AssetCode","rust":"asset_code"},"asset_id":{"python":"asset_id","typescript":"asset_id","go":"AssetID","rust":"asset_id"},"balance_decimals":{"python":"balance_decimals","typescript":"balance_decimals","go":"BalanceDecimals","rust":"balance_decimals"},"transfer_disabled":{"python":"transfer_disabled","typescript":"transfer_disabled","go":"TransferDisabled","rust":"transfer_disabled"}},"TPSLOrderMetadata":{"close_position":{"python":"close_position","typescript":"close_position","go":"ClosePosition","rust":"close_position"},"is_split_position":{"python":"is_split_position","typescript":"is_split_position","go":"IsSplitPosition","rust":"is_split_position"},"trigger_by":{"python":"trigger_by","typescript":"trigger_by","go":"TriggerBy","rust":"trigger_by"},"trigger_price":{"python":"trigger_price","typescript":"trigger_price","go":"TriggerPrice","rust":"trigger_price"}},"Ticker":{"best_ask_price":{"python":"best_ask_price","typescript":"best_ask_price","go":"BestAskPrice","rust":"best_ask_price"},"best_ask_size":{"python":"best_ask_size","typescript":"best_ask_size","go":"BestAskSize","rust":"best_ask_size"},"best_bid_price":{"python":"best_bid_price","typescript":"best_bid_price","go":"BestBidPrice","rust":"best_bid_price"},"best_bid_size":{"python":"best_bid_size","typescript":"best_bid_size","go":"BestBidSize","rust":"best_bid_size"},"buy_volume_24h_b":{"python":"buy_volume_24h_b","typescript":"buy_volume_24h_b","go":"BuyVolume24hB","rust":"buy_volume_24h_b"},"buy_volume_24h_q":{"python":"buy_volume_24h_q","typescript":"buy_volume_24h_q","go":"BuyVolume24hQ","rust":"buy_volume_24h_q"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"forward_price":{"python":"forward_price","typescript":"forward_price","go":"ForwardPrice","rust":"forward_price"},"funding_rate":{"python":"funding_rate","typescript":"funding_rate","go":"FundingRate","rust":"funding_rate"},"funding_rate_8h_avg":{"python":"funding_rate_8h_avg","typescript":"funding_rate_8h_avg","go":"FundingRate8hAvg","rust":"funding_rate_8h_avg"},"funding_rate_8h_curr":{"python":"funding_rate_8h_curr","typescript":"funding_rate_8h_curr","go":"FundingRate8hCurr","rust":"funding_rate_8h_curr"},"funding_rate_long_apr_pct":{"python":"funding_rate_long_apr_pct","typescript":"funding_rate_long_apr_pct","go":"FundingRateLongAprPct","rust":"funding_rate_long_apr_pct"},"funding_rate_short_apr_pct":{"python":"funding_rate_short_apr_pct","typescript":"funding_rate_short_apr_pct","go":"FundingRateShortAprPct","rust":"funding_rate_short_apr_pct"},"high_price":{"python":"high_price","typescript":"high_price","go":"HighPrice","rust":"high_price"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interest_rate":{"python":"interest_rate","typescript":"interest_rate","go":"InterestRate","rust":"interest_rate"},"last_price":{"python":"last_price","typescript":"last_price","go":"LastPrice","rust":"last_price"},"last_size":{"python":"last_size","typescript":"last_size","go":"LastSize","rust":"last_size"},"long_open_interest":{"python":"long_open_interest","typescript":"long_open_interest","go":"LongOpenInterest","rust":"long_open_interest"},"long_short_ratio":{"python":"long_short_ratio","typescript":"long_short_ratio","go":"LongShortRatio","rust":"long_short_ratio"},"low_price":{"python":"low_price","typescript":"low_price","go":"LowPrice","rust":"low_price"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"mid_price":{"python":"mid_price","typescript":"mid_price","go":"MidPrice","rust":"mid_price"},"next_funding_time":{"python":"next_funding_time","typescript":"next_funding_time","go":"NextFundingTime","rust":"next_funding_time"},"open_interest":{"python":"open_interest","typescript":"open_interest","go":"OpenInterest","rust":"open_interest"},"open_price":{"python":"open_price","typescript":"open_price","go":"OpenPrice","rust":"open_price"},"sell_volume_24h_b":{"python":"sell_volume_24h_b","typescript":"sell_volume_24h_b","go":"SellVolume24hB","rust":"sell_volume_24h_b"},"sell_volume_24h_q":{"python":"sell_volume_24h_q","typescript":"sell_volume_24h_q","go":"SellVolume24hQ","rust":"sell_volume_24h_q"},"session":{"python":"session","typescript":"session","go":"Session","rust":"session"},"short_open_interest":{"python":"short_open_interest","typescript":"short_open_interest","go":"ShortOpenInterest","rust":"short_open_interest"},"status":{"python":"status","typescript":"status","go":"Status","rust":"status"}},"Trade":{"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"forward_price":{"python":"forward_price","typescript":"forward_price","go":"ForwardPrice","rust":"forward_price"},"index_price":{"python":"index_price","typescript":"index_price","go":"IndexPrice","rust":"index_price"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interest_rate":{"python":"interest_rate","typescript":"interest_rate","go":"InterestRate","rust":"interest_rate"},"is_rpi":{"python":"is_rpi","typescript":"is_rpi","go":"IsRpi","rust":"is_rpi"},"is_taker_buyer":{"python":"is_taker_buyer","typescript":"is_taker_buyer","go":"IsTakerBuyer","rust":"is_taker_buyer"},"mark_price":{"python":"mark_price","typescript":"mark_price","go":"MarkPrice","rust":"mark_price"},"price":{"python":"price","typescript":"price","go":"Price","rust":"price"},"size":{"python":"size","typescript":"size","go":"Size","rust":"size"},"trade_id":{"python":"trade_id","typescript":"trade_id","go":"TradeID","rust":"trade_id"},"venue":{"python":"venue","typescript":"venue","go":"Venue","rust":"venue"}},"TradingHolidaySchedule":{"close_type":{"python":"close_type","typescript":"close_type","go":"CloseType","rust":"close_type"},"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"name":{"python":"name","typescript":"name","go":"Name","rust":"name"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"}},"TradingSession":{"end_time":{"python":"end_time","typescript":"end_time","go":"EndTime","rust":"end_time"},"start_time":{"python":"start_time","typescript":"start_time","go":"StartTime","rust":"start_time"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"TransferHistory":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_account_id":{"python":"to_account_id","typescript":"to_account_id","go":"ToAccountID","rust":"to_account_id"},"to_sub_account_id":{"python":"to_sub_account_id","typescript":"to_sub_account_id","go":"ToSubAccountID","rust":"to_sub_account_id"},"to_wallet_type":{"python":"to_wallet_type","typescript":"to_wallet_type","go":"ToWalletType","rust":"to_wallet_type"},"transfer_metadata":{"python":"transfer_metadata","typescript":"transfer_metadata","go":"TransferMetadata","rust":"transfer_metadata"},"transfer_type":{"python":"transfer_type","typescript":"transfer_type","go":"TransferType","rust":"transfer_type"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"TransferHistoryInput":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"from_sub_account_id":{"python":"from_sub_account_id","typescript":"from_sub_account_id","go":"FromSubAccountID","rust":"from_sub_account_id"},"from_wallet_type":{"python":"from_wallet_type","typescript":"from_wallet_type","go":"FromWalletType","rust":"from_wallet_type"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_account_id":{"python":"to_account_id","typescript":"to_account_id","go":"ToAccountID","rust":"to_account_id"},"to_sub_account_id":{"python":"to_sub_account_id","typescript":"to_sub_account_id","go":"ToSubAccountID","rust":"to_sub_account_id"},"to_wallet_type":{"python":"to_wallet_type","typescript":"to_wallet_type","go":"ToWalletType","rust":"to_wallet_type"},"transfer_metadata":{"python":"transfer_metadata","typescript":"transfer_metadata","go":"TransferMetadata","rust":"transfer_metadata"},"transfer_type":{"python":"transfer_type","typescript":"transfer_type","go":"TransferType","rust":"transfer_type"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"TriggerOrderMetadata":{"tpsl":{"python":"tpsl","typescript":"tpsl","go":"Tpsl","rust":"tpsl"},"trigger_type":{"python":"trigger_type","typescript":"trigger_type","go":"TriggerType","rust":"trigger_type"}},"VaultInvestment":{"num_lp_tokens":{"python":"num_lp_tokens","typescript":"num_lp_tokens","go":"NumLpTokens","rust":"num_lp_tokens"},"share_balances":{"python":"share_balances","typescript":"share_balances","go":"ShareBalances","rust":"share_balances"},"share_price":{"python":"share_price","typescript":"share_price","go":"SharePrice","rust":"share_price"},"usd_notional_invested":{"python":"usd_notional_invested","typescript":"usd_notional_invested","go":"UsdNotionalInvested","rust":"usd_notional_invested"},"vault_id":{"python":"vault_id","typescript":"vault_id","go":"VaultID","rust":"vault_id"}},"VaultInvestorSummary":{"all_time_realized_pnl":{"python":"all_time_realized_pnl","typescript":"all_time_realized_pnl","go":"AllTimeRealizedPnl","rust":"all_time_realized_pnl"},"avg_entry_price":{"python":"avg_entry_price","typescript":"avg_entry_price","go":"AvgEntryPrice","rust":"avg_entry_price"},"can_burn":{"python":"can_burn","typescript":"can_burn","go":"CanBurn","rust":"can_burn"},"current_price":{"python":"current_price","typescript":"current_price","go":"CurrentPrice","rust":"current_price"},"investor_equity":{"python":"investor_equity","typescript":"investor_equity","go":"InvestorEquity","rust":"investor_equity"},"locked_lots":{"python":"locked_lots","typescript":"locked_lots","go":"LockedLots","rust":"locked_lots"},"num_lp_tokens":{"python":"num_lp_tokens","typescript":"num_lp_tokens","go":"NumLpTokens","rust":"num_lp_tokens"},"num_lp_tokens_locked":{"python":"num_lp_tokens_locked","typescript":"num_lp_tokens_locked","go":"NumLpTokensLocked","rust":"num_lp_tokens_locked"},"num_lp_tokens_redeemable":{"python":"num_lp_tokens_redeemable","typescript":"num_lp_tokens_redeemable","go":"NumLpTokensRedeemable","rust":"num_lp_tokens_redeemable"},"pending_redemption":{"python":"pending_redemption","typescript":"pending_redemption","go":"PendingRedemption","rust":"pending_redemption"},"share_balances":{"python":"share_balances","typescript":"share_balances","go":"ShareBalances","rust":"share_balances"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"},"total_equity":{"python":"total_equity","typescript":"total_equity","go":"TotalEquity","rust":"total_equity"},"trading_balances":{"python":"trading_balances","typescript":"trading_balances","go":"TradingBalances","rust":"trading_balances"},"unrealized_pnl":{"python":"unrealized_pnl","typescript":"unrealized_pnl","go":"UnrealizedPnl","rust":"unrealized_pnl"}},"VaultLpLotView":{"num_lp_tokens":{"python":"num_lp_tokens","typescript":"num_lp_tokens","go":"NumLpTokens","rust":"num_lp_tokens"},"unlock_time":{"python":"unlock_time","typescript":"unlock_time","go":"UnlockTime","rust":"unlock_time"}},"VaultRedemption":{"cancel_blocked":{"python":"cancel_blocked","typescript":"cancel_blocked","go":"CancelBlocked","rust":"cancel_blocked"},"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"max_redemption_period_timestamp":{"python":"max_redemption_period_timestamp","typescript":"max_redemption_period_timestamp","go":"MaxRedemptionPeriodTimestamp","rust":"max_redemption_period_timestamp"},"num_lp_tokens":{"python":"num_lp_tokens","typescript":"num_lp_tokens","go":"NumLpTokens","rust":"num_lp_tokens"},"request_time":{"python":"request_time","typescript":"request_time","go":"RequestTime","rust":"request_time"},"request_valuation":{"python":"request_valuation","typescript":"request_valuation","go":"RequestValuation","rust":"request_valuation"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"}},"VaultRedemptionRequest":{"age_category":{"python":"age_category","typescript":"age_category","go":"AgeCategory","rust":"age_category"},"eligible_for_auto_redemption_timestamp":{"python":"eligible_for_auto_redemption_timestamp","typescript":"eligible_for_auto_redemption_timestamp","go":"EligibleForAutoRedemptionTimestamp","rust":"eligible_for_auto_redemption_timestamp"},"exchange_rate":{"python":"exchange_rate","typescript":"exchange_rate","go":"ExchangeRate","rust":"exchange_rate"},"from_currency":{"python":"from_currency","typescript":"from_currency","go":"FromCurrency","rust":"from_currency"},"is_manager":{"python":"is_manager","typescript":"is_manager","go":"IsManager","rust":"is_manager"},"max_redemption_period_timestamp":{"python":"max_redemption_period_timestamp","typescript":"max_redemption_period_timestamp","go":"MaxRedemptionPeriodTimestamp","rust":"max_redemption_period_timestamp"},"num_lp_tokens":{"python":"num_lp_tokens","typescript":"num_lp_tokens","go":"NumLpTokens","rust":"num_lp_tokens"},"request_time":{"python":"request_time","typescript":"request_time","go":"RequestTime","rust":"request_time"},"to_currency":{"python":"to_currency","typescript":"to_currency","go":"ToCurrency","rust":"to_currency"}},"VaultShareBalances":{"available_to_transfer":{"python":"available_to_transfer","typescript":"available_to_transfer","go":"AvailableToTransfer","rust":"available_to_transfer"},"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"funding_lp_token_balance":{"python":"funding_lp_token_balance","typescript":"funding_lp_token_balance","go":"FundingLpTokenBalance","rust":"funding_lp_token_balance"},"pending_redemption_lp_token_balance":{"python":"pending_redemption_lp_token_balance","typescript":"pending_redemption_lp_token_balance","go":"PendingRedemptionLpTokenBalance","rust":"pending_redemption_lp_token_balance"},"trading_lp_token_balance":{"python":"trading_lp_token_balance","typescript":"trading_lp_token_balance","go":"TradingLpTokenBalance","rust":"trading_lp_token_balance"}},"VaultShareTradingBalance":{"available_to_transfer":{"python":"available_to_transfer","typescript":"available_to_transfer","go":"AvailableToTransfer","rust":"available_to_transfer"},"equity":{"python":"equity","typescript":"equity","go":"Equity","rust":"equity"},"margin_balance_usd":{"python":"margin_balance_usd","typescript":"margin_balance_usd","go":"MarginBalanceUsd","rust":"margin_balance_usd"},"num_lp_tokens":{"python":"num_lp_tokens","typescript":"num_lp_tokens","go":"NumLpTokens","rust":"num_lp_tokens"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSAlgoOrderFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSAlgoOrderFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSCancelFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSCancelFeedSelectorV1":{"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSCandlestickFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSCandlestickFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interval":{"python":"interval","typescript":"interval","go":"Interval","rust":"interval"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"WSDepositFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSDepositFeedSelectorV1":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"}},"WSFillFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSFillFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSListStreamsParams":{},"WSListStreamsResult":{"stream_reference":{"python":"stream_reference","typescript":"stream_reference","go":"StreamReference","rust":"stream_reference"}},"WSMiniTickerFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSMiniTickerFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"WSOrderFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSOrderFeedDataV1Input":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSOrderFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSOrderStateFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSOrderStateFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSOrderbookLevelsFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSOrderbookLevelsFeedSelectorV1":{"depth":{"python":"depth","typescript":"depth","go":"Depth","rust":"depth"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"WSPositionsFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSPositionsFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSRfqQuoteFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSRfqQuoteFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSSubscribeParams":{"selectors":{"python":"selectors","typescript":"selectors","go":"Selectors","rust":"selectors"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"},"use_global_sequence_number":{"python":"use_global_sequence_number","typescript":"use_global_sequence_number","go":"UseGlobalSequenceNumber","rust":"use_global_sequence_number"}},"WSSubscribeRequestV1Legacy":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"is_full":{"python":"is_full","typescript":"is_full","go":"IsFull","rust":"is_full"},"method":{"python":"method","typescript":"method","go":"Method","rust":"method"},"request_id":{"python":"request_id","typescript":"request_id","go":"RequestID","rust":"request_id"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSSubscribeResponseV1Legacy":{"first_sequence_number":{"python":"first_sequence_number","typescript":"first_sequence_number","go":"FirstSequenceNumber","rust":"first_sequence_number"},"latest_sequence_number":{"python":"latest_sequence_number","typescript":"latest_sequence_number","go":"LatestSequenceNumber","rust":"latest_sequence_number"},"num_snapshots":{"python":"num_snapshots","typescript":"num_snapshots","go":"NumSnapshots","rust":"num_snapshots"},"request_id":{"python":"request_id","typescript":"request_id","go":"RequestID","rust":"request_id"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"},"subs":{"python":"subs","typescript":"subs","go":"Subs","rust":"subs"},"unsubs":{"python":"unsubs","typescript":"unsubs","go":"Unsubs","rust":"unsubs"}},"WSSubscribeResult":{"first_sequence_number":{"python":"first_sequence_number","typescript":"first_sequence_number","go":"FirstSequenceNumber","rust":"first_sequence_number"},"latest_sequence_number":{"python":"latest_sequence_number","typescript":"latest_sequence_number","go":"LatestSequenceNumber","rust":"latest_sequence_number"},"num_snapshots":{"python":"num_snapshots","typescript":"num_snapshots","go":"NumSnapshots","rust":"num_snapshots"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"},"subs":{"python":"subs","typescript":"subs","go":"Subs","rust":"subs"},"unsubs":{"python":"unsubs","typescript":"unsubs","go":"Unsubs","rust":"unsubs"}},"WSTickerFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSTickerFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"WSTradeFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSTradeFeedSelectorV1":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"}},"WSTransferFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSTransferFeedDataV1Input":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSTransferFeedSelectorV1":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"WSUnsubscribeAllParams":{},"WSUnsubscribeAllResult":{"stream_reference":{"python":"stream_reference","typescript":"stream_reference","go":"StreamReference","rust":"stream_reference"}},"WSUnsubscribeParams":{"selectors":{"python":"selectors","typescript":"selectors","go":"Selectors","rust":"selectors"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"},"use_global_sequence_number":{"python":"use_global_sequence_number","typescript":"use_global_sequence_number","go":"UseGlobalSequenceNumber","rust":"use_global_sequence_number"}},"WSUnsubscribeResult":{"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"},"unsubs":{"python":"unsubs","typescript":"unsubs","go":"Unsubs","rust":"unsubs"}},"WSWithdrawalFeedDataV1":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSWithdrawalFeedDataV1Input":{"feed":{"python":"feed","typescript":"feed","go":"Feed","rust":"feed"},"prev_sequence_number":{"python":"prev_sequence_number","typescript":"prev_sequence_number","go":"PrevSequenceNumber","rust":"prev_sequence_number"},"selector":{"python":"selector","typescript":"selector","go":"Selector","rust":"selector"},"sequence_number":{"python":"sequence_number","typescript":"sequence_number","go":"SequenceNumber","rust":"sequence_number"},"stream":{"python":"stream","typescript":"stream","go":"Stream","rust":"stream"}},"WSWithdrawalFeedSelectorV1":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"}},"Withdrawal":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_eth_address":{"python":"to_eth_address","typescript":"to_eth_address","go":"ToEthAddress","rust":"to_eth_address"}},"WithdrawalHistory":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"l_1_hash":{"python":"l_1_hash","typescript":"l_1_hash","go":"L1Hash","rust":"l_1_hash"},"l_2_hash":{"python":"l_2_hash","typescript":"l_2_hash","go":"L2Hash","rust":"l_2_hash"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_eth_address":{"python":"to_eth_address","typescript":"to_eth_address","go":"ToEthAddress","rust":"to_eth_address"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"WithdrawalHistoryInput":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"event_time":{"python":"event_time","typescript":"event_time","go":"EventTime","rust":"event_time"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"l_1_hash":{"python":"l_1_hash","typescript":"l_1_hash","go":"L1Hash","rust":"l_1_hash"},"l_2_hash":{"python":"l_2_hash","typescript":"l_2_hash","go":"L2Hash","rust":"l_2_hash"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_eth_address":{"python":"to_eth_address","typescript":"to_eth_address","go":"ToEthAddress","rust":"to_eth_address"},"tx_id":{"python":"tx_id","typescript":"tx_id","go":"TxID","rust":"tx_id"}},"WithdrawalInput":{"currency":{"python":"currency","typescript":"currency","go":"Currency","rust":"currency"},"from_account_id":{"python":"from_account_id","typescript":"from_account_id","go":"FromAccountID","rust":"from_account_id"},"num_tokens":{"python":"num_tokens","typescript":"num_tokens","go":"NumTokens","rust":"num_tokens"},"signature":{"python":"signature","typescript":"signature","go":"Signature","rust":"signature"},"to_eth_address":{"python":"to_eth_address","typescript":"to_eth_address","go":"ToEthAddress","rust":"to_eth_address"}}},"selectors":{"algo_order.algo_order":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"candlestick.candlestick":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"interval":{"python":"interval","typescript":"interval","go":"Interval","rust":"interval"},"type":{"python":"type","typescript":"type","go":"Type","rust":"r#type"}},"execution.fill":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"execution.positions":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"order.cancel_status":{"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"order.order":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"order.order_state":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"orderbook.orderbook_delta":{"depth":{"python":"depth","typescript":"depth","go":"Depth","rust":"depth"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"orderbook.orderbook_snap":{"depth":{"python":"depth","typescript":"depth","go":"Depth","rust":"depth"},"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"rfq.rfq_quote":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"ticker.mini_ticker_delta":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"ticker.mini_ticker_snap":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"ticker.ticker_delta":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"ticker.ticker_snap":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"rate":{"python":"rate","typescript":"rate","go":"Rate","rust":"rate"}},"trade.trade":{"instrument":{"python":"instrument","typescript":"instrument","go":"Instrument","rust":"instrument"},"limit":{"python":"limit","typescript":"limit","go":"Limit","rust":"limit"}},"transfer.deposit":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"}},"transfer.transfer":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"},"sub_account_id":{"python":"sub_account_id","typescript":"sub_account_id","go":"SubAccountID","rust":"sub_account_id"}},"transfer.withdrawal":{"main_account_id":{"python":"main_account_id","typescript":"main_account_id","go":"MainAccountID","rust":"main_account_id"}}},"enums":{"AlgoOrderType":{"CHASE":{"go":"AlgoOrderTypeChase","rust":"Chase"}},"AlgoTriggerFilter":{"WITHOUT_TRIGGER":{"go":"AlgoTriggerFilterWithoutTrigger","rust":"WithoutTrigger"},"WITH_TRIGGER":{"go":"AlgoTriggerFilterWithTrigger","rust":"WithTrigger"}},"AssetClass":{"COMMODITY":{"go":"AssetClassCommodity","rust":"Commodity"},"COMMODITY_CME":{"go":"AssetClassCommodityCme","rust":"CommodityCme"},"CRYPTO":{"go":"AssetClassCrypto","rust":"Crypto"},"EQUITY":{"go":"AssetClassEquity","rust":"Equity"},"EQUITY_KRX":{"go":"AssetClassEquityKrx","rust":"EquityKrx"},"EQUITY_NASDAQ":{"go":"AssetClassEquityNasdaq","rust":"EquityNasdaq"},"EQUITY_NYSE":{"go":"AssetClassEquityNyse","rust":"EquityNyse"},"FX":{"go":"AssetClassFx","rust":"Fx"},"INDEX":{"go":"AssetClassIndex","rust":"Index"},"PRE_IPO":{"go":"AssetClassPreIpo","rust":"PreIpo"}},"BrokerTag":{"ALERTATRON":{"go":"BrokerTagAlertatron","rust":"Alertatron"},"COIN_ROUTES":{"go":"BrokerTagCoinRoutes","rust":"CoinRoutes"},"ORIGAMI":{"go":"BrokerTagOrigami","rust":"Origami"},"UNSPECIFIED":{"go":"BrokerTagUnspecified","rust":"Unspecified"}},"CDCStatus":{"AUTO_EXCHANGE":{"go":"CDCStatusAutoExchange","rust":"AutoExchange"},"NORMAL":{"go":"CDCStatusNormal","rust":"Normal"},"REDUCE_ONLY":{"go":"CDCStatusReduceOnly","rust":"ReduceOnly"}},"CancelStatus":{"DROPPED_DUPLICATE":{"go":"CancelStatusDroppedDuplicate","rust":"DroppedDuplicate"},"EXPIRED":{"go":"CancelStatusExpired","rust":"Expired"}},"CandlestickInterval":{"CI_12_H":{"go":"CandlestickIntervalCi12H","rust":"Ci12H"},"CI_15_M":{"go":"CandlestickIntervalCi15M","rust":"Ci15M"},"CI_1_D":{"go":"CandlestickIntervalCi1D","rust":"Ci1D"},"CI_1_H":{"go":"CandlestickIntervalCi1H","rust":"Ci1H"},"CI_1_M":{"go":"CandlestickIntervalCi1M","rust":"Ci1M"},"CI_1_W":{"go":"CandlestickIntervalCi1W","rust":"Ci1W"},"CI_2_H":{"go":"CandlestickIntervalCi2H","rust":"Ci2H"},"CI_2_W":{"go":"CandlestickIntervalCi2W","rust":"Ci2W"},"CI_30_M":{"go":"CandlestickIntervalCi30M","rust":"Ci30M"},"CI_3_D":{"go":"CandlestickIntervalCi3D","rust":"Ci3D"},"CI_3_M":{"go":"CandlestickIntervalCi3M","rust":"Ci3M"},"CI_3_W":{"go":"CandlestickIntervalCi3W","rust":"Ci3W"},"CI_4_H":{"go":"CandlestickIntervalCi4H","rust":"Ci4H"},"CI_4_W":{"go":"CandlestickIntervalCi4W","rust":"Ci4W"},"CI_5_D":{"go":"CandlestickIntervalCi5D","rust":"Ci5D"},"CI_5_M":{"go":"CandlestickIntervalCi5M","rust":"Ci5M"},"CI_6_H":{"go":"CandlestickIntervalCi6H","rust":"Ci6H"},"CI_8_H":{"go":"CandlestickIntervalCi8H","rust":"Ci8H"}},"CandlestickType":{"INDEX":{"go":"CandlestickTypeIndex","rust":"Index"},"MARK":{"go":"CandlestickTypeMark","rust":"Mark"},"MID":{"go":"CandlestickTypeMid","rust":"Mid"},"TRADE":{"go":"CandlestickTypeTrade","rust":"Trade"}},"ChasePriceMode":{"BEST_BID_ASK":{"go":"ChasePriceModeBestBidAsk","rust":"BestBidAsk"}},"DayOfWeek":{"FRIDAY":{"go":"DayOfWeekFriday","rust":"Friday"},"MONDAY":{"go":"DayOfWeekMonday","rust":"Monday"},"SATURDAY":{"go":"DayOfWeekSaturday","rust":"Saturday"},"SUNDAY":{"go":"DayOfWeekSunday","rust":"Sunday"},"THURSDAY":{"go":"DayOfWeekThursday","rust":"Thursday"},"TUESDAY":{"go":"DayOfWeekTuesday","rust":"Tuesday"},"WEDNESDAY":{"go":"DayOfWeekWednesday","rust":"Wednesday"}},"FundingRateAggregationType":{"EIGHT_HOURLY":{"go":"FundingRateAggregationTypeEightHourly","rust":"EightHourly"},"FOUR_HOURLY":{"go":"FundingRateAggregationTypeFourHourly","rust":"FourHourly"},"FUNDING_INTERVAL":{"go":"FundingRateAggregationTypeFundingInterval","rust":"FundingInterval"},"ONE_HOURLY":{"go":"FundingRateAggregationTypeOneHourly","rust":"OneHourly"}},"InstrumentSettlementPeriod":{"DAILY":{"go":"InstrumentSettlementPeriodDaily","rust":"Daily"},"MONTHLY":{"go":"InstrumentSettlementPeriodMonthly","rust":"Monthly"},"PERPETUAL":{"go":"InstrumentSettlementPeriodPerpetual","rust":"Perpetual"},"QUARTERLY":{"go":"InstrumentSettlementPeriodQuarterly","rust":"Quarterly"},"WEEKLY":{"go":"InstrumentSettlementPeriodWeekly","rust":"Weekly"}},"InstrumentStatus":{"ACTIVE":{"go":"InstrumentStatusActive","rust":"Active"},"CLOSED":{"go":"InstrumentStatusClosed","rust":"Closed"},"DELISTED":{"go":"InstrumentStatusDelisted","rust":"Delisted"},"HALTED":{"go":"InstrumentStatusHalted","rust":"Halted"},"MAINTENANCE":{"go":"InstrumentStatusMaintenance","rust":"Maintenance"},"PENDING":{"go":"InstrumentStatusPending","rust":"Pending"},"REDUCE_ONLY":{"go":"InstrumentStatusReduceOnly","rust":"ReduceOnly"}},"Kind":{"CALL":{"go":"KindCall","rust":"Call"},"FUTURE":{"go":"KindFuture","rust":"Future"},"PERPETUAL":{"go":"KindPerpetual","rust":"Perpetual"},"PUT":{"go":"KindPut","rust":"Put"},"SPOT_SWAP":{"go":"KindSpotSwap","rust":"SpotSwap"},"STABLE_PERP":{"go":"KindStablePerp","rust":"StablePerp"}},"MarginType":{"PORTFOLIO_CROSS_MARGIN":{"go":"MarginTypePortfolioCrossMargin","rust":"PortfolioCrossMargin"},"SIMPLE_CROSS_MARGIN":{"go":"MarginTypeSimpleCrossMargin","rust":"SimpleCrossMargin"}},"OrderRejectReason":{"AON_CANCEL":{"go":"OrderRejectReasonAonCancel","rust":"AonCancel"},"BELOW_MARGIN":{"go":"OrderRejectReasonBelowMargin","rust":"BelowMargin"},"BELOW_MARGIN_WITH_PENALTY_DEVIATION":{"go":"OrderRejectReasonBelowMarginWithPenaltyDeviation","rust":"BelowMarginWithPenaltyDeviation"},"BORROW_LIMIT_EXCEEDED_AFTER_TRADE":{"go":"OrderRejectReasonBorrowLimitExceededAfterTrade","rust":"BorrowLimitExceededAfterTrade"},"BUILDER_ORDER_BUILDER_NOT_AUTHORIZED":{"go":"OrderRejectReasonBuilderOrderBuilderNotAuthorized","rust":"BuilderOrderBuilderNotAuthorized"},"BUILDER_ORDER_BUILDER_NOT_EXIST":{"go":"OrderRejectReasonBuilderOrderBuilderNotExist","rust":"BuilderOrderBuilderNotExist"},"BUILDER_ORDER_FEE_EXCEED":{"go":"OrderRejectReasonBuilderOrderFeeExceed","rust":"BuilderOrderFeeExceed"},"BUILDER_ORDER_FEE_NEGATIVE":{"go":"OrderRejectReasonBuilderOrderFeeNegative","rust":"BuilderOrderFeeNegative"},"CLIENT_BULK_CANCEL":{"go":"OrderRejectReasonClientBulkCancel","rust":"ClientBulkCancel"},"CLIENT_CANCEL":{"go":"OrderRejectReasonClientCancel","rust":"ClientCancel"},"CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED":{"go":"OrderRejectReasonClientCancelOnDisconnectTriggered","rust":"ClientCancelOnDisconnectTriggered"},"CLIENT_REPLACE":{"go":"OrderRejectReasonClientReplace","rust":"ClientReplace"},"CLIENT_SESSION_END":{"go":"OrderRejectReasonClientSessionEnd","rust":"ClientSessionEnd"},"CORPORATE_ACTION":{"go":"OrderRejectReasonCorporateAction","rust":"CorporateAction"},"CURRENCY_NOT_DEFINED":{"go":"OrderRejectReasonCurrencyNotDefined","rust":"CurrencyNotDefined"},"DERISK_MUST_BE_IOC":{"go":"OrderRejectReasonDeriskMustBeIoc","rust":"DeriskMustBeIoc"},"DERISK_MUST_BE_REDUCE_ONLY":{"go":"OrderRejectReasonDeriskMustBeReduceOnly","rust":"DeriskMustBeReduceOnly"},"DERISK_NOT_SUPPORTED":{"go":"OrderRejectReasonDeriskNotSupported","rust":"DeriskNotSupported"},"EXCEED_MAX_POSITION_SIZE":{"go":"OrderRejectReasonExceedMaxPositionSize","rust":"ExceedMaxPositionSize"},"EXCEED_MAX_SIGNATURE_EXPIRATION":{"go":"OrderRejectReasonExceedMaxSignatureExpiration","rust":"ExceedMaxSignatureExpiration"},"EXPIRED":{"go":"OrderRejectReasonExpired","rust":"Expired"},"FAIL_POST_ONLY":{"go":"OrderRejectReasonFailPostOnly","rust":"FailPostOnly"},"FAIL_REDUCE_ONLY":{"go":"OrderRejectReasonFailReduceOnly","rust":"FailReduceOnly"},"FOK_CANCEL":{"go":"OrderRejectReasonFokCancel","rust":"FokCancel"},"FOK_NOT_SUPPORTED":{"go":"OrderRejectReasonFokNotSupported","rust":"FokNotSupported"},"INSTRUMENT_DEACTIVATED":{"go":"OrderRejectReasonInstrumentDeactivated","rust":"InstrumentDeactivated"},"INSTRUMENT_INVALID":{"go":"OrderRejectReasonInstrumentInvalid","rust":"InstrumentInvalid"},"INSUFFICIENT_BALANCE":{"go":"OrderRejectReasonInsufficientBalance","rust":"InsufficientBalance"},"INVALID_CHAIN_ID":{"go":"OrderRejectReasonInvalidChainID","rust":"InvalidChainId"},"INVALID_ORDER_TYPE":{"go":"OrderRejectReasonInvalidOrderType","rust":"InvalidOrderType"},"IOC_CANCEL":{"go":"OrderRejectReasonIocCancel","rust":"IocCancel"},"LIQUIDATION":{"go":"OrderRejectReasonLiquidation","rust":"Liquidation"},"LIQUIDATION_AUTO_EXCHANGE":{"go":"OrderRejectReasonLiquidationAutoExchange","rust":"LiquidationAutoExchange"},"MARKET_CANCEL":{"go":"OrderRejectReasonMarketCancel","rust":"MarketCancel"},"MARKET_ORDER_NOT_SUPPORTED":{"go":"OrderRejectReasonMarketOrderNotSupported","rust":"MarketOrderNotSupported"},"MARKET_ORDER_WITH_LIMIT_PRICE":{"go":"OrderRejectReasonMarketOrderWithLimitPrice","rust":"MarketOrderWithLimitPrice"},"MM_PROTECTION":{"go":"OrderRejectReasonMmProtection","rust":"MmProtection"},"MULTI_LEGGED_ORDER":{"go":"OrderRejectReasonMultiLeggedOrder","rust":"MultiLeggedOrder"},"NOT_QUALIFIED_MAKER":{"go":"OrderRejectReasonNotQualifiedMaker","rust":"NotQualifiedMaker"},"NO_TRADE_PERMISSION":{"go":"OrderRejectReasonNoTradePermission","rust":"NoTradePermission"},"OCO_COUNTER_PART_TRIGGERED":{"go":"OrderRejectReasonOcoCounterPartTriggered","rust":"OcoCounterPartTriggered"},"OVERLAPPING_CLIENT_ORDER_ID":{"go":"OrderRejectReasonOverlappingClientOrderID","rust":"OverlappingClientOrderId"},"PRIVATE_QUOTE_REQUIRES_RFQ":{"go":"OrderRejectReasonPrivateQuoteRequiresRfq","rust":"PrivateQuoteRequiresRfq"},"REDUCE_ONLY_LIMIT":{"go":"OrderRejectReasonReduceOnlyLimit","rust":"ReduceOnlyLimit"},"REDUCE_ONLY_NOT_SUPPORTED_FOR_SPOT_ORDER":{"go":"OrderRejectReasonReduceOnlyNotSupportedForSpotOrder","rust":"ReduceOnlyNotSupportedForSpotOrder"},"RESTING_ORDER_WOULD_CROSS":{"go":"OrderRejectReasonRestingOrderWouldCross","rust":"RestingOrderWouldCross"},"RFQ_ALREADY_BOUND":{"go":"OrderRejectReasonRfqAlreadyBound","rust":"RfqAlreadyBound"},"RFQ_ID_REQUIRES_STABLE_PERP":{"go":"OrderRejectReasonRfqIDRequiresStablePerp","rust":"RfqIdRequiresStablePerp"},"RFQ_MAKER_MUST_BE_ECN":{"go":"OrderRejectReasonRfqMakerMustBeEcn","rust":"RfqMakerMustBeEcn"},"RFQ_MISMATCH":{"go":"OrderRejectReasonRfqMismatch","rust":"RfqMismatch"},"RFQ_NOT_FOUND":{"go":"OrderRejectReasonRfqNotFound","rust":"RfqNotFound"},"RFQ_PRIVATE_POOL_NOT_SUPPORTED":{"go":"OrderRejectReasonRfqPrivatePoolNotSupported","rust":"RfqPrivatePoolNotSupported"},"RFQ_REQUIRES_IOC":{"go":"OrderRejectReasonRfqRequiresIoc","rust":"RfqRequiresIoc"},"RFQ_TERMINATED":{"go":"OrderRejectReasonRfqTerminated","rust":"RfqTerminated"},"SELF_MATCHED_SUBACCOUNT":{"go":"OrderRejectReasonSelfMatchedSubaccount","rust":"SelfMatchedSubaccount"},"SELF_TRADE_PROTECTION":{"go":"OrderRejectReasonSelfTradeProtection","rust":"SelfTradeProtection"},"SESSION_CLOSED":{"go":"OrderRejectReasonSessionClosed","rust":"SessionClosed"},"SESSION_KEY_EXPIRED":{"go":"OrderRejectReasonSessionKeyExpired","rust":"SessionKeyExpired"},"SFP_POST_ONLY_NOT_ALLOWED":{"go":"OrderRejectReasonSfpPostOnlyNotAllowed","rust":"SfpPostOnlyNotAllowed"},"SPOT_ORDER_NOT_SUPPORTED":{"go":"OrderRejectReasonSpotOrderNotSupported","rust":"SpotOrderNotSupported"},"SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS":{"go":"OrderRejectReasonSpotTradingBlockedDuringSocializedLoss","rust":"SpotTradingBlockedDuringSocializedLoss"},"STABLE_PERP_ORDER_NOT_SUPPORTED":{"go":"OrderRejectReasonStablePerpOrderNotSupported","rust":"StablePerpOrderNotSupported"},"STABLE_PERP_REQUIRES_MULTI_ASSET_MODE":{"go":"OrderRejectReasonStablePerpRequiresMultiAssetMode","rust":"StablePerpRequiresMultiAssetMode"},"STABLE_PERP_REQUIRES_PRICE_BOUND":{"go":"OrderRejectReasonStablePerpRequiresPriceBound","rust":"StablePerpRequiresPriceBound"},"SUB_ACCOUNT_NOT_FOUND":{"go":"OrderRejectReasonSubAccountNotFound","rust":"SubAccountNotFound"},"SYSTEM_FAILOVER":{"go":"OrderRejectReasonSystemFailover","rust":"SystemFailover"},"TOO_MANY_MAKER_ORDERS":{"go":"OrderRejectReasonTooManyMakerOrders","rust":"TooManyMakerOrders"},"TPSL_NOT_SUPPORTED_FOR_SPOT_ORDER":{"go":"OrderRejectReasonTpslNotSupportedForSpotOrder","rust":"TpslNotSupportedForSpotOrder"},"TRADE_PRICE_WORSE_THAN_BANKRUPTCY_PRICE":{"go":"OrderRejectReasonTradePriceWorseThanBankruptcyPrice","rust":"TradePriceWorseThanBankruptcyPrice"},"UNAUTHORISED":{"go":"OrderRejectReasonUnauthorised","rust":"Unauthorised"},"UNDEPLOYED_LOAN_AUTO_EXCHANGE":{"go":"OrderRejectReasonUndeployedLoanAutoExchange","rust":"UndeployedLoanAutoExchange"},"UNSPECIFIED":{"go":"OrderRejectReasonUnspecified","rust":"Unspecified"},"UNSUPPORTED_TIME_IN_FORCE":{"go":"OrderRejectReasonUnsupportedTimeInForce","rust":"UnsupportedTimeInForce"},"UNSUPPORTED_TRIGGER_BY":{"go":"OrderRejectReasonUnsupportedTriggerBy","rust":"UnsupportedTriggerBy"},"USDC_COLLATERAL_DISABLED":{"go":"OrderRejectReasonUsdcCollateralDisabled","rust":"UsdcCollateralDisabled"},"VAULT_NON_QUOTE_INVESTMENT_CURRENCY":{"go":"OrderRejectReasonVaultNonQuoteInvestmentCurrency","rust":"VaultNonQuoteInvestmentCurrency"}},"OrderStatus":{"CANCELLED":{"go":"OrderStatusCancelled","rust":"Cancelled"},"FILLED":{"go":"OrderStatusFilled","rust":"Filled"},"OPEN":{"go":"OrderStatusOpen","rust":"Open"},"PENDING":{"go":"OrderStatusPending","rust":"Pending"},"REJECTED":{"go":"OrderStatusRejected","rust":"Rejected"}},"PositionCloseStatus":{"CLOSED":{"go":"PositionCloseStatusClosed","rust":"Closed"},"LIQUIDATED":{"go":"PositionCloseStatusLiquidated","rust":"Liquidated"},"PARTIALLY_CLOSED":{"go":"PositionCloseStatusPartiallyClosed","rust":"PartiallyClosed"},"SETTLED":{"go":"PositionCloseStatusSettled","rust":"Settled"},"SPLIT_CLOSED":{"go":"PositionCloseStatusSplitClosed","rust":"SplitClosed"}},"PositionMarginType":{"CROSS":{"go":"PositionMarginTypeCross","rust":"Cross"},"ISOLATED":{"go":"PositionMarginTypeIsolated","rust":"Isolated"}},"RepaymentScenario":{"AUTO_REPAYMENT":{"go":"RepaymentScenarioAutoRepayment","rust":"AutoRepayment"},"AUTO_REPAY_BORROW_LIMIT":{"go":"RepaymentScenarioAutoRepayBorrowLimit","rust":"AutoRepayBorrowLimit"},"AUTO_REPAY_LTV":{"go":"RepaymentScenarioAutoRepayLtv","rust":"AutoRepayLtv"},"LIQUIDATION_REBALANCING":{"go":"RepaymentScenarioLiquidationRebalancing","rust":"LiquidationRebalancing"},"LIQUIDATION_REPAYMENT":{"go":"RepaymentScenarioLiquidationRepayment","rust":"LiquidationRepayment"},"MANUAL_REPAYMENT":{"go":"RepaymentScenarioManualRepayment","rust":"ManualRepayment"}},"RfqCounterpartyType":{"FORCED_EXIT_NETTING":{"go":"RfqCounterpartyTypeForcedExitNetting","rust":"ForcedExitNetting"},"MAKER_QUOTE":{"go":"RfqCounterpartyTypeMakerQuote","rust":"MakerQuote"},"RESTING_ORDER":{"go":"RfqCounterpartyTypeRestingOrder","rust":"RestingOrder"}},"RfqSide":{"BUY":{"go":"RfqSideBuy","rust":"Buy"},"SELL":{"go":"RfqSideSell","rust":"Sell"},"UNSPECIFIED":{"go":"RfqSideUnspecified","rust":"Unspecified"}},"SubAccountMode":{"SINGLE_ASSET_MODE":{"go":"SubAccountModeSingleAssetMode","rust":"SingleAssetMode"}},"TimeInForce":{"ALL_OR_NONE":{"go":"TimeInForceAllOrNone","rust":"AllOrNone"},"FILL_OR_KILL":{"go":"TimeInForceFillOrKill","rust":"FillOrKill"},"GOOD_TILL_TIME":{"go":"TimeInForceGoodTillTime","rust":"GoodTillTime"},"IMMEDIATE_OR_CANCEL":{"go":"TimeInForceImmediateOrCancel","rust":"ImmediateOrCancel"},"RETAIL_PRICE_IMPROVEMENT":{"go":"TimeInForceRetailPriceImprovement","rust":"RetailPriceImprovement"}},"TradingScheduleCloseType":{"EARLY_CLOSE":{"go":"TradingScheduleCloseTypeEarlyClose","rust":"EarlyClose"},"FULL_DAY":{"go":"TradingScheduleCloseTypeFullDay","rust":"FullDay"}},"TradingSessionType":{"AFTER_MARKET":{"go":"TradingSessionTypeAfterMarket","rust":"AfterMarket"},"CLOSE":{"go":"TradingSessionTypeClose","rust":"Close"},"OVERNIGHT":{"go":"TradingSessionTypeOvernight","rust":"Overnight"},"PRE_MARKET":{"go":"TradingSessionTypePreMarket","rust":"PreMarket"},"REGULAR":{"go":"TradingSessionTypeRegular","rust":"Regular"}},"TransferType":{"ADHOC_INCENTIVE":{"go":"TransferTypeAdhocIncentive","rust":"AdhocIncentive"},"FAST_ARB_DEPOSIT":{"go":"TransferTypeFastArbDeposit","rust":"FastArbDeposit"},"FAST_ARB_WITHDRAWAL":{"go":"TransferTypeFastArbWithdrawal","rust":"FastArbWithdrawal"},"FEEDBACK_REWARD":{"go":"TransferTypeFeedbackReward","rust":"FeedbackReward"},"NON_NATIVE_BRIDGE_DEPOSIT":{"go":"TransferTypeNonNativeBridgeDeposit","rust":"NonNativeBridgeDeposit"},"NON_NATIVE_BRIDGE_WITHDRAWAL":{"go":"TransferTypeNonNativeBridgeWithdrawal","rust":"NonNativeBridgeWithdrawal"},"REFERRAL_INCENTIVE":{"go":"TransferTypeReferralIncentive","rust":"ReferralIncentive"},"STANDARD":{"go":"TransferTypeStandard","rust":"Standard"},"TGE_AIRDROP":{"go":"TransferTypeTgeAirdrop","rust":"TgeAirdrop"},"TGE_VESTING":{"go":"TransferTypeTgeVesting","rust":"TgeVesting"},"TRADING_DEPOSIT_YIELD_INCENTIVE":{"go":"TransferTypeTradingDepositYieldIncentive","rust":"TradingDepositYieldIncentive"},"UNSPECIFIED":{"go":"TransferTypeUnspecified","rust":"Unspecified"}},"TriggerBy":{"INDEX":{"go":"TriggerByIndex","rust":"Index"},"LAST":{"go":"TriggerByLast","rust":"Last"},"MARK":{"go":"TriggerByMark","rust":"Mark"},"MID":{"go":"TriggerByMid","rust":"Mid"},"UNSPECIFIED":{"go":"TriggerByUnspecified","rust":"Unspecified"}},"TriggerType":{"STOP_LOSS":{"go":"TriggerTypeStopLoss","rust":"StopLoss"},"TAKE_PROFIT":{"go":"TriggerTypeTakeProfit","rust":"TakeProfit"},"UNSPECIFIED":{"go":"TriggerTypeUnspecified","rust":"Unspecified"}},"VaultInvestorAction":{"UNSPECIFIED":{"go":"VaultInvestorActionUnspecified","rust":"Unspecified"},"VAULT_BURN_LP_TOKEN":{"go":"VaultInvestorActionVaultBurnLpToken","rust":"VaultBurnLpToken"},"VAULT_INVEST":{"go":"VaultInvestorActionVaultInvest","rust":"VaultInvest"},"VAULT_REDEEM":{"go":"VaultInvestorActionVaultRedeem","rust":"VaultRedeem"}},"VaultRedemptionReqAgeCategory":{"NORMAL":{"go":"VaultRedemptionReqAgeCategoryNormal","rust":"Normal"},"OVERDUE":{"go":"VaultRedemptionReqAgeCategoryOverdue","rust":"Overdue"},"PRE_MIN":{"go":"VaultRedemptionReqAgeCategoryPreMin","rust":"PreMin"},"URGENT":{"go":"VaultRedemptionReqAgeCategoryUrgent","rust":"Urgent"}},"Venue":{"ORDERBOOK":{"go":"VenueOrderbook","rust":"Orderbook"},"RFQ":{"go":"VenueRfq","rust":"Rfq"}},"WalletType":{"FUNDING":{"go":"WalletTypeFunding","rust":"Funding"},"FUTURES":{"go":"WalletTypeFutures","rust":"Futures"},"SPOT":{"go":"WalletTypeSpot","rust":"Spot"}},"WsCandlestickInterval":{"CI_12_H":{"go":"WsCandlestickIntervalCi12H","rust":"Ci12H"},"CI_15_M":{"go":"WsCandlestickIntervalCi15M","rust":"Ci15M"},"CI_1_D":{"go":"WsCandlestickIntervalCi1D","rust":"Ci1D"},"CI_1_H":{"go":"WsCandlestickIntervalCi1H","rust":"Ci1H"},"CI_1_M":{"go":"WsCandlestickIntervalCi1M","rust":"Ci1M"},"CI_1_W":{"go":"WsCandlestickIntervalCi1W","rust":"Ci1W"},"CI_2_H":{"go":"WsCandlestickIntervalCi2H","rust":"Ci2H"},"CI_2_W":{"go":"WsCandlestickIntervalCi2W","rust":"Ci2W"},"CI_30_M":{"go":"WsCandlestickIntervalCi30M","rust":"Ci30M"},"CI_3_D":{"go":"WsCandlestickIntervalCi3D","rust":"Ci3D"},"CI_3_M":{"go":"WsCandlestickIntervalCi3M","rust":"Ci3M"},"CI_3_W":{"go":"WsCandlestickIntervalCi3W","rust":"Ci3W"},"CI_4_H":{"go":"WsCandlestickIntervalCi4H","rust":"Ci4H"},"CI_4_W":{"go":"WsCandlestickIntervalCi4W","rust":"Ci4W"},"CI_5_D":{"go":"WsCandlestickIntervalCi5D","rust":"Ci5D"},"CI_5_M":{"go":"WsCandlestickIntervalCi5M","rust":"Ci5M"},"CI_6_H":{"go":"WsCandlestickIntervalCi6H","rust":"Ci6H"},"CI_8_H":{"go":"WsCandlestickIntervalCi8H","rust":"Ci8H"}}}},"requests":{"account.aggregated_account_summary":"EmptyRequest","account.funding_account_summary":"EmptyRequest","account.get_sub_accounts":"EmptyRequest","account.spot_account_summary":"ApiSpotSubAccountSummaryRequest","account.sub_account_summary":"ApiSubAccountSummaryRequest","algo_order.algo_order_history":"ApiAlgoOrderHistoryRequest","algo_order.algo_sub_order_history":"ApiAlgoSubOrderHistoryRequest","algo_order.cancel_algo_order":"ApiCancelAlgoOrderRequest","algo_order.create_algo_order":"ApiCreateAlgoOrderRequest","algo_order.get_algo_order":"ApiGetAlgoOrderRequest","algo_order.open_algo_orders":"ApiOpenAlgoOrdersRequest","builder.get_authorized_builders":"EmptyRequest","candlestick.candlestick":"ApiCandlestickRequest","derisk_mm_ratio.set_derisk_mm_ratio":"ApiSetDeriskToMaintenanceMarginRatioRequestInput","execution.builder_fill_history":"ApiBuilderFillHistoryRequest","execution.fill_history":"ApiFillHistoryRequest","execution.funding_payment_history":"ApiFundingPaymentHistoryRequest","execution.interest_payment_history":"ApiInterestPaymentHistoryRequest","initial_leverage.get_all_initial_leverage":"ApiGetAllInitialLeverageRequest","initial_leverage.set_initial_leverage":"ApiSetInitialLeverageRequest","instrument.get_all_collateral_asset_info":"EmptyRequest","instrument.get_all_instruments":"ApiGetAllInstrumentsRequest","instrument.get_currency":"ApiGetCurrencyRequest","instrument.get_filtered_instruments":"ApiGetFilteredInstrumentsRequest","instrument.get_instrument":"ApiGetInstrumentRequest","instrument.get_margin_rules":"ApiGetMarginRulesRequest","instrument.get_supported_assets":"EmptyRequest","order.bulk_orders":"ApiBulkOrdersRequestInput","order.cancel_all_orders":"ApiCancelAllOrdersRequest","order.cancel_on_disconnect":"ApiCancelOnDisconnectRequest","order.cancel_order":"ApiCancelOrderRequest","order.create_order":"ApiCreateOrderRequestInput","order.get_order":"ApiGetOrderRequest","order.open_orders":"ApiOpenOrdersRequest","order.order_history":"ApiOrderHistoryRequest","orderbook.orderbook_levels":"ApiOrderbookLevelsRequest","position.add_position_margin":"ApiAddIsolatedPositionMarginRequestInput","position.get_position_margin_limits":"ApiGetIsolatedPositionMarginLimitsRequest","position.position_history":"ApiPositionHistoryRequest","position.positions":"ApiPositionsRequest","position.set_position_config":"ApiSetSubAccountPositionMarginConfigRequestInput","rfq.cancel_rfq":"ApiCancelRfqRequest","rfq.create_rfq":"ApiCreateRfqRequestInput","settlement.funding_rate":"ApiFundingRateRequest","sfp_trading_schedule.get_sfp_trading_schedule":"EmptyRequest","sub_account.get_collateral_preference":"ApiGetSubAccountCollateralPreferenceRequest","ticker.mini_ticker":"ApiMiniTickerRequest","ticker.ticker":"ApiTickerRequest","trade.trade":"ApiTradeRequest","trade.trade_history":"ApiTradeHistoryRequest","transfer.deposit_history":"ApiDepositHistoryRequest","transfer.get_withdrawal_fee":"ApiWithdrawalFeeRequest","transfer.transfer":"ApiTransferRequestInput","transfer.transfer_history":"ApiTransferHistoryRequest","transfer.withdrawal":"ApiWithdrawalRequestInput","transfer.withdrawal_history":"ApiWithdrawalHistoryRequest","vault.vault_burn_tokens":"ApiVaultBurnTokensRequestInput","vault.vault_conversion_rate":"ApiVaultConversionRateRequest","vault.vault_invest":"ApiVaultInvestV2RequestInput","vault.vault_investor_summary":"ApiVaultInvestorSummaryRequest","vault.vault_manager_investment_history":"ApiQueryVaultManagerInvestorHistoryRequest","vault.vault_redeem":"ApiVaultRedeemV2RequestInput","vault.vault_redeem_cancel":"ApiVaultRedeemCancelRequest","vault.vault_redemption_queue":"ApiVaultViewRedemptionQueueRequest"},"types":[{"name":"Ack","fields":[{"name":"ack","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"AckResponse","fields":[{"name":"result","type":"Ack","kind":"struct","json_type":"Ack"}]},{"name":"AggregatedAccountSummary","fields":[{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"total_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"spot_balances","type":"SpotBalance","kind":"struct","json_type":"SpotBalance","array_depth":1,"nullable":true},{"name":"vault_investments","type":"VaultInvestment","kind":"struct","json_type":"VaultInvestment","array_depth":1,"nullable":true},{"name":"total_sub_account_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"total_sub_account_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"total_vault_investments_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"total_sub_account_available_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"total_usd_notional_invested","type":"string","kind":"decimal","json_type":"string"}]},{"name":"AlgoOrder","fields":[{"name":"algo_order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"type","type":"AlgoOrderType","kind":"enum","json_type":"AlgoOrderType"},{"name":"post_only","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"reduce_only","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"leg","type":"AlgoOrderLeg","kind":"struct","json_type":"AlgoOrderLeg"},{"name":"metadata","type":"AlgoOrderMetadata","kind":"struct","json_type":"AlgoOrderMetadata"},{"name":"state","type":"AlgoOrderState","kind":"struct","json_type":"AlgoOrderState","optional":true},{"name":"builder","type":"address","kind":"primitive","json_type":"string"},{"name":"builder_fee","type":"string","kind":"decimal","json_type":"string"}]},{"name":"AlgoOrderLeg","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"is_buying_asset","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"AlgoOrderMetadata","fields":[{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"create_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"trigger","type":"TriggerOrderMetadata","kind":"struct","json_type":"TriggerOrderMetadata","optional":true},{"name":"broker","type":"BrokerTag","kind":"enum","json_type":"BrokerTag","optional":true},{"name":"expiry","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"chase","type":"ChaseAlgoOrderMetadata","kind":"struct","json_type":"ChaseAlgoOrderMetadata","optional":true}]},{"name":"AlgoOrderState","fields":[{"name":"status","type":"OrderStatus","kind":"enum","json_type":"OrderStatus"},{"name":"reject_reason","type":"OrderRejectReason","kind":"enum","json_type":"OrderRejectReason"},{"name":"traded_size","type":"string","kind":"decimal","json_type":"string"},{"name":"avg_fill_price","type":"string","kind":"decimal","json_type":"string"},{"name":"trigger_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"update_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"chase","type":"ChaseOrderState","kind":"struct","json_type":"ChaseOrderState","optional":true},{"name":"last_sub_order_id","type":"uint128","kind":"primitive","json_type":"string"}]},{"name":"ApiAddIsolatedPositionMarginRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"amount","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"ApiAddIsolatedPositionMarginResponse","fields":[{"name":"success","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"ApiAggregatedAccountSummaryResponse","fields":[{"name":"result","type":"AggregatedAccountSummary","kind":"struct","json_type":"AggregatedAccountSummary"}]},{"name":"ApiAlgoOrderHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"type","type":"AlgoOrderType","kind":"enum","json_type":"AlgoOrderType","array_depth":1,"optional":true,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiAlgoOrderHistoryResponse","fields":[{"name":"result","type":"AlgoOrder","kind":"struct","json_type":"AlgoOrder","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiAlgoSubOrderHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"algo_order_id","type":"uint128","kind":"primitive","json_type":"string"}]},{"name":"ApiAlgoSubOrderHistoryResponse","fields":[{"name":"result","type":"Order","kind":"struct","json_type":"Order","array_depth":1,"nullable":true}]},{"name":"ApiAuthorizedBuilder","fields":[{"name":"builder_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"max_futures_fee_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"max_spot_fee_rate","type":"string","kind":"decimal","json_type":"string"}]},{"name":"ApiBuilderFillHistoryRequest","fields":[{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiBuilderFillHistoryResponse","fields":[{"name":"result","type":"BuilderFillHistory","kind":"struct","json_type":"BuilderFillHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiBulkOrdersRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"orders","type":"Order","kind":"struct","json_type":"Order","array_depth":1,"optional":true,"nullable":true},{"sdk_name":"order_ids","name":"order_i_ds","type":"uint128","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"sdk_name":"client_order_ids","name":"client_order_i_ds","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"time_to_live_ms","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiBulkOrdersResponse","fields":[{"name":"orders","type":"Order","kind":"struct","json_type":"Order","array_depth":1,"nullable":true},{"name":"cancel_acks","type":"Ack","kind":"struct","json_type":"Ack","array_depth":1,"nullable":true}]},{"name":"ApiCancelAlgoOrderRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"algo_order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiCancelAllOrdersRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiCancelOnDisconnectRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"countdown_time","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiCancelOrderRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string","optional":true},{"name":"time_to_live_ms","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiCancelRfqRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string"}]},{"name":"ApiCandlestickRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"interval","type":"CandlestickInterval","kind":"enum","json_type":"CandlestickInterval"},{"name":"type","type":"CandlestickType","kind":"enum","json_type":"CandlestickType"},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiCandlestickResponse","fields":[{"name":"result","type":"Candlestick","kind":"struct","json_type":"Candlestick","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiCollateralAssetInfo","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"collateral_value_ratio","type":"string","kind":"decimal","json_type":"string"},{"name":"collateral_deposit_cap","type":"string","kind":"decimal","json_type":"string"},{"name":"max_borrow_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"manual_repayment_fee_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"cdc_status","type":"CDCStatus","kind":"enum","json_type":"CDCStatus"},{"name":"show_only_when_held","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiCollateralPreferenceStatus","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"enabled","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"locked","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"ApiCreateAlgoOrderRequest","fields":[{"name":"order","type":"AlgoOrder","kind":"struct","json_type":"AlgoOrder"}]},{"name":"ApiCreateAlgoOrderResponse","fields":[{"name":"result","type":"AlgoOrder","kind":"struct","json_type":"AlgoOrder"}]},{"name":"ApiCreateOrderRequest","fields":[{"name":"order","type":"Order","kind":"struct","json_type":"Order"}]},{"name":"ApiCreateOrderResponse","fields":[{"name":"result","type":"Order","kind":"struct","json_type":"Order"}]},{"name":"ApiCreateRfqRequest","fields":[{"name":"rfq","type":"Rfq","kind":"struct","json_type":"Rfq"}]},{"name":"ApiCreateRfqResponse","fields":[{"name":"rfq","type":"Rfq","kind":"struct","json_type":"Rfq"}]},{"name":"ApiDepositHistoryRequest","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiDepositHistoryResponse","fields":[{"name":"result","type":"DepositHistory","kind":"struct","json_type":"DepositHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiFillHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiFillHistoryResponse","fields":[{"name":"result","type":"Fill","kind":"struct","json_type":"Fill","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiFundingAccountSummaryResponse","fields":[{"name":"result","type":"FundingAccountSummary","kind":"struct","json_type":"FundingAccountSummary"},{"name":"tier","type":"ClientTier","kind":"struct","json_type":"ClientTier"}]},{"name":"ApiFundingPaymentHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiFundingPaymentHistoryResponse","fields":[{"name":"result","type":"FundingPayment","kind":"struct","json_type":"FundingPayment","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiFundingRate","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"funding_rate","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string"},{"name":"funding_rate_8_h_avg","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_interval_hours","type":"uint8","kind":"primitive","json_type":"integer"},{"name":"funding_rate_long_apr_pct","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_short_apr_pct","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_multiplier","type":"uint8","kind":"primitive","json_type":"integer","optional":true}]},{"name":"ApiFundingRateRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"agg_type","type":"FundingRateAggregationType","kind":"enum","json_type":"FundingRateAggregationType","optional":true}]},{"name":"ApiFundingRateResponse","fields":[{"name":"result","type":"ApiFundingRate","kind":"struct","json_type":"ApiFundingRate","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiGetAlgoOrderRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"algo_order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiGetAlgoOrderResponse","fields":[{"name":"result","type":"AlgoOrder","kind":"struct","json_type":"AlgoOrder"}]},{"name":"ApiGetAllCollateralAssetInfoResponse","fields":[{"name":"assets","type":"ApiCollateralAssetInfo","kind":"struct","json_type":"ApiCollateralAssetInfo","array_depth":1,"nullable":true}]},{"name":"ApiGetAllInitialLeverageRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiGetAllInitialLeverageResponse","fields":[{"name":"results","type":"InitialLeverageResult","kind":"struct","json_type":"InitialLeverageResult","array_depth":1,"nullable":true}]},{"name":"ApiGetAllInstrumentsRequest","fields":[{"name":"is_active","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"kinds","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiGetAllInstrumentsResponse","fields":[{"name":"result","type":"InstrumentDisplay","kind":"struct","json_type":"InstrumentDisplay","array_depth":1,"nullable":true}]},{"name":"ApiGetAuthorizedBuildersResponse","fields":[{"name":"results","type":"ApiAuthorizedBuilder","kind":"struct","json_type":"ApiAuthorizedBuilder","array_depth":1,"nullable":true}]},{"name":"ApiGetCurrencyRequest","fields":[]},{"name":"ApiGetCurrencyResponse","fields":[{"name":"result","type":"CurrencyDetail","kind":"struct","json_type":"CurrencyDetail","array_depth":1,"nullable":true}]},{"name":"ApiGetFilteredInstrumentsRequest","fields":[{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"is_active","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"ApiGetFilteredInstrumentsResponse","fields":[{"name":"result","type":"InstrumentDisplay","kind":"struct","json_type":"InstrumentDisplay","array_depth":1,"nullable":true}]},{"name":"ApiGetInstrumentRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"}]},{"name":"ApiGetInstrumentResponse","fields":[{"name":"result","type":"InstrumentDisplay","kind":"struct","json_type":"InstrumentDisplay"}]},{"name":"ApiGetIsolatedPositionMarginLimitsRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"}]},{"name":"ApiGetIsolatedPositionMarginLimitsResponse","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"max_addable_amount","type":"string","kind":"decimal","json_type":"string"},{"name":"max_removable_amount","type":"string","kind":"decimal","json_type":"string"}]},{"name":"ApiGetMarginRulesRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"}]},{"name":"ApiGetMarginRulesResponse","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"max_position_size","type":"string","kind":"decimal","json_type":"string"},{"name":"risk_brackets","type":"RiskBracket","kind":"struct","json_type":"RiskBracket","array_depth":1,"nullable":true}]},{"name":"ApiGetOrderRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiGetOrderResponse","fields":[{"name":"result","type":"Order","kind":"struct","json_type":"Order"}]},{"name":"ApiGetSubAccountCollateralPreferenceRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiGetSubAccountCollateralPreferenceResponse","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"preferences","type":"ApiCollateralPreferenceStatus","kind":"struct","json_type":"ApiCollateralPreferenceStatus","array_depth":1,"nullable":true}]},{"name":"ApiGetSubAccountsResponse","fields":[{"name":"sub_account_ids","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"nullable":true}]},{"name":"ApiGetSupportedAssetsResponse","fields":[{"name":"funding","type":"SupportedAsset","kind":"struct","json_type":"SupportedAsset","array_depth":1,"nullable":true},{"name":"spot","type":"SupportedAsset","kind":"struct","json_type":"SupportedAsset","array_depth":1,"nullable":true},{"name":"futures","type":"FuturesWalletAssets","kind":"struct","json_type":"FuturesWalletAssets","array_depth":1,"nullable":true}]},{"name":"ApiInterestPaymentHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiInterestPaymentHistoryResponse","fields":[{"name":"result","type":"InterestPayment","kind":"struct","json_type":"InterestPayment","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiMiniTickerRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"}]},{"name":"ApiMiniTickerResponse","fields":[{"name":"result","type":"MiniTicker","kind":"struct","json_type":"MiniTicker"}]},{"name":"ApiOpenAlgoOrdersRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"type","type":"AlgoOrderType","kind":"enum","json_type":"AlgoOrderType","array_depth":1,"optional":true,"nullable":true},{"name":"trigger_filter","type":"AlgoTriggerFilter","kind":"enum","json_type":"AlgoTriggerFilter","optional":true}]},{"name":"ApiOpenAlgoOrdersResponse","fields":[{"name":"result","type":"AlgoOrder","kind":"struct","json_type":"AlgoOrder","array_depth":1,"nullable":true}]},{"name":"ApiOpenOrdersRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiOpenOrdersResponse","fields":[{"name":"result","type":"Order","kind":"struct","json_type":"Order","array_depth":1,"nullable":true}]},{"name":"ApiOrderHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiOrderHistoryResponse","fields":[{"name":"result","type":"Order","kind":"struct","json_type":"Order","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiOrderbookLevelsRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"depth","type":"uint32","kind":"primitive","json_type":"integer"}]},{"name":"ApiOrderbookLevelsResponse","fields":[{"name":"result","type":"OrderbookLevels","kind":"struct","json_type":"OrderbookLevels"}]},{"name":"ApiPositionHistory","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"open_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"status","type":"PositionCloseStatus","kind":"enum","json_type":"PositionCloseStatus"},{"name":"is_long","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"margin_type","type":"PositionMarginType","kind":"enum","json_type":"PositionMarginType"},{"name":"close_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"entry_price","type":"string","kind":"decimal","json_type":"string"},{"name":"exit_price","type":"string","kind":"decimal","json_type":"string"},{"name":"position_close_mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"realized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"cumulative_fee","type":"string","kind":"decimal","json_type":"string"},{"name":"cumulative_realized_funding_payment","type":"string","kind":"decimal","json_type":"string"},{"name":"closed_volume_base","type":"string","kind":"decimal","json_type":"string"},{"name":"closed_volume_quote","type":"string","kind":"decimal","json_type":"string"},{"name":"max_open_interest_base","type":"string","kind":"decimal","json_type":"string"},{"name":"max_open_interest_quote","type":"string","kind":"decimal","json_type":"string"},{"name":"cumulative_initial_margin","type":"string","kind":"decimal","json_type":"string"},{"name":"max_initial_margin","type":"string","kind":"decimal","json_type":"string"},{"name":"leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"unrealized_pnl","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"split_ratio_from","type":"int32","kind":"primitive","json_type":"integer","optional":true},{"name":"split_ratio_to","type":"int32","kind":"primitive","json_type":"integer","optional":true},{"name":"split_remaining_size","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"ApiPositionHistoryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"status","type":"PositionCloseStatus","kind":"enum","json_type":"PositionCloseStatus","array_depth":1,"optional":true,"nullable":true},{"name":"is_long","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"is_short","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"margin_type","type":"PositionMarginType","kind":"enum","json_type":"PositionMarginType","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiPositionHistoryResponse","fields":[{"name":"result","type":"ApiPositionHistory","kind":"struct","json_type":"ApiPositionHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiPositionsRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind","array_depth":1,"optional":true,"nullable":true},{"name":"base","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"quote","type":"string","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiPositionsResponse","fields":[{"name":"result","type":"Positions","kind":"struct","json_type":"Positions","array_depth":1,"nullable":true}]},{"name":"ApiQueryVaultManagerInvestorHistoryRequest","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"only_own_investments","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true}]},{"name":"ApiQueryVaultManagerInvestorHistoryResponse","fields":[{"name":"result","type":"ApiVaultInvestorHistory","kind":"struct","json_type":"ApiVaultInvestorHistory","array_depth":1,"nullable":true}]},{"name":"ApiSetDeriskToMaintenanceMarginRatioRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"ratio","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"ApiSetDeriskToMaintenanceMarginRatioResponse","fields":[{"name":"success","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"ApiSetInitialLeverageRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"leverage","type":"string","kind":"decimal","json_type":"string"}]},{"name":"ApiSetInitialLeverageResponse","fields":[{"name":"success","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"ApiSetSubAccountPositionMarginConfigRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"margin_type","type":"PositionMarginType","kind":"enum","json_type":"PositionMarginType"},{"name":"leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"ApiSetSubAccountPositionMarginConfigResponse","fields":[{"name":"ack","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"ApiSfpTradingScheduleResponse","fields":[{"name":"update_time","type":"int64","kind":"primitive","json_type":"string"},{"name":"equity","type":"SfpMarketSchedule","kind":"struct","json_type":"SfpMarketSchedule","optional":true},{"name":"equity_nyse","type":"SfpMarketSchedule","kind":"struct","json_type":"SfpMarketSchedule","optional":true},{"name":"equity_nasdaq","type":"SfpMarketSchedule","kind":"struct","json_type":"SfpMarketSchedule","optional":true},{"name":"commodity","type":"SfpMarketSchedule","kind":"struct","json_type":"SfpMarketSchedule","optional":true},{"name":"commodity_cme","type":"SfpMarketSchedule","kind":"struct","json_type":"SfpMarketSchedule","optional":true},{"name":"schedules","type":"SfpTradingScheduleGroup","kind":"struct","json_type":"SfpTradingScheduleGroup","array_depth":1,"nullable":true}]},{"name":"ApiSpotBorrowConfig","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"borrow_limit","type":"string","kind":"decimal","json_type":"string"},{"name":"borrow_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"collateral_limit","type":"string","kind":"decimal","json_type":"string"}]},{"name":"ApiSpotSubAccountSummaryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiSpotSubAccountSummaryResponse","fields":[{"name":"result","type":"SpotSubAccount","kind":"struct","json_type":"SpotSubAccount"}]},{"name":"ApiSubAccountSummaryRequest","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiSubAccountSummaryResponse","fields":[{"name":"result","type":"SubAccount","kind":"struct","json_type":"SubAccount"}]},{"name":"ApiTickerRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"}]},{"name":"ApiTickerResponse","fields":[{"name":"result","type":"Ticker","kind":"struct","json_type":"Ticker"}]},{"name":"ApiTradeHistoryRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiTradeHistoryResponse","fields":[{"name":"result","type":"Trade","kind":"struct","json_type":"Trade","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiTradeRequest","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer"}]},{"name":"ApiTradeResponse","fields":[{"name":"result","type":"Trade","kind":"struct","json_type":"Trade","array_depth":1,"nullable":true}]},{"name":"ApiTransferAck","fields":[{"name":"ack","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiTransferHistoryRequest","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string","optional":true},{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string","optional":true},{"name":"transfer_types","type":"TransferType","kind":"enum","json_type":"TransferType","array_depth":1,"optional":true,"nullable":true}]},{"name":"ApiTransferHistoryResponse","fields":[{"name":"result","type":"TransferHistory","kind":"struct","json_type":"TransferHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiTransferRequest","fields":[{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"to_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"},{"name":"transfer_type","type":"TransferType","kind":"enum","json_type":"TransferType"},{"name":"transfer_metadata","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType","optional":true},{"name":"to_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType","optional":true}]},{"name":"ApiTransferResponse","fields":[{"name":"result","type":"ApiTransferAck","kind":"struct","json_type":"ApiTransferAck"}]},{"name":"ApiVaultBurnTokensRequest","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"ApiVaultConversionRateRequest","fields":[{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"from_num_tokens","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"ApiVaultConversionRateResponse","fields":[{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"spot_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"fee_rate_centi_beeps","type":"uint32","kind":"primitive","json_type":"integer"},{"name":"window_seconds","type":"uint32","kind":"primitive","json_type":"integer"},{"name":"valid_until","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"from_num_tokens","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"to_num_tokens","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"ApiVaultInvestV2Request","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"},{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"from_num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"ApiVaultInvestV2Response","fields":[{"name":"ack","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"enqueued","type":"bool","kind":"primitive","json_type":"boolean","optional":true}]},{"name":"ApiVaultInvestorHistory","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"off_chain_account_id","type":"string","kind":"primitive","json_type":"string"},{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"type","type":"VaultInvestorAction","kind":"enum","json_type":"VaultInvestorAction"},{"name":"price","type":"string","kind":"decimal","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"realized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"performance_fee","type":"string","kind":"decimal","json_type":"string"},{"name":"token_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"from_num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"to_num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"conversion_fee_num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"},{"name":"request_time","type":"timestamp","kind":"timestamp","json_type":"string"}]},{"name":"ApiVaultInvestorSummaryRequest","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiVaultInvestorSummaryResponse","fields":[{"name":"vault_investor_summary","type":"VaultInvestorSummary","kind":"struct","json_type":"VaultInvestorSummary","array_depth":1,"nullable":true}]},{"name":"ApiVaultRedeemCancelRequest","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiVaultRedeemV2Request","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"ApiVaultViewRedemptionQueueRequest","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"ApiVaultViewRedemptionQueueResponse","fields":[{"name":"redemption_queue","type":"VaultRedemptionRequest","kind":"struct","json_type":"VaultRedemptionRequest","array_depth":1,"nullable":true},{"name":"pending_redemption_token_count","type":"string","kind":"decimal","json_type":"string"},{"name":"urgent_redemption_token_count","type":"string","kind":"decimal","json_type":"string"},{"name":"auto_redeemable_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"share_price","type":"string","kind":"decimal","json_type":"string"},{"name":"pre_min","type":"PreMinRedemptions","kind":"struct","json_type":"PreMinRedemptions"}]},{"name":"ApiWithdrawalFeeRequest","fields":[{"name":"token_currency","type":"uint16","kind":"primitive","json_type":"integer"}]},{"name":"ApiWithdrawalFeeResponse","fields":[{"name":"withdrawal_fee","type":"string","kind":"decimal","json_type":"string"},{"name":"token_currency","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiWithdrawalHistoryRequest","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"start_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"end_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"cursor","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiWithdrawalHistoryResponse","fields":[{"name":"result","type":"WithdrawalHistory","kind":"struct","json_type":"WithdrawalHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiWithdrawalRequest","fields":[{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_eth_address","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"BuilderFillHistory","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"off_chain_account_id","type":"string","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"is_buyer","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"is_taker","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"price","type":"string","kind":"decimal","json_type":"string"},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string"},{"name":"index_price","type":"string","kind":"decimal","json_type":"string"},{"name":"fee_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"fee","type":"int64","kind":"primitive","json_type":"string"}]},{"name":"CancelStatusFeed","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string"},{"name":"reason","type":"OrderRejectReason","kind":"enum","json_type":"OrderRejectReason"},{"name":"update_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"cancel_status","type":"CancelStatus","kind":"enum","json_type":"CancelStatus"}]},{"name":"Candlestick","fields":[{"name":"open_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"close_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"open","type":"string","kind":"decimal","json_type":"string"},{"name":"close","type":"string","kind":"decimal","json_type":"string"},{"name":"high","type":"string","kind":"decimal","json_type":"string"},{"name":"low","type":"string","kind":"decimal","json_type":"string"},{"name":"volume_b","type":"string","kind":"decimal","json_type":"string"},{"name":"volume_q","type":"string","kind":"decimal","json_type":"string"},{"name":"trades","type":"uint32","kind":"primitive","json_type":"integer"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"}]},{"name":"ChaseAlgoOrderMetadata","fields":[{"name":"chase_price_mode","type":"ChasePriceMode","kind":"enum","json_type":"ChasePriceMode"},{"name":"max_distance","type":"string","kind":"decimal","json_type":"string"},{"name":"max_distance_bps","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"ChaseOrderState","fields":[{"name":"reprice_count","type":"uint32","kind":"primitive","json_type":"integer"}]},{"name":"ClientTier","fields":[{"name":"tier","type":"uint8","kind":"primitive","json_type":"integer"},{"name":"futures_taker_fee","type":"int32","kind":"primitive","json_type":"integer"},{"name":"futures_maker_fee","type":"int32","kind":"primitive","json_type":"integer"},{"name":"options_taker_fee","type":"int32","kind":"primitive","json_type":"integer"},{"name":"options_maker_fee","type":"int32","kind":"primitive","json_type":"integer"},{"name":"spot_taker_fee","type":"int32","kind":"primitive","json_type":"integer"},{"name":"spot_maker_fee","type":"int32","kind":"primitive","json_type":"integer"},{"name":"spot_borrow_configs","type":"ApiSpotBorrowConfig","kind":"struct","json_type":"ApiSpotBorrowConfig","array_depth":1,"nullable":true}]},{"name":"CurrencyDetail","fields":[{"name":"id","type":"uint16","kind":"primitive","json_type":"integer"},{"name":"symbol","type":"string","kind":"primitive","json_type":"string"},{"name":"balance_decimals","type":"int8","kind":"primitive","json_type":"integer"},{"name":"quantity_multiplier","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"Deposit","fields":[{"name":"tx_hash","type":"uint256","kind":"primitive","json_type":"string"},{"name":"to_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"}]},{"name":"DepositHistory","fields":[{"name":"l_1_hash","type":"uint256","kind":"primitive","json_type":"string"},{"name":"l_2_hash","type":"uint256","kind":"primitive","json_type":"string"},{"name":"to_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"initiated_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"confirmed_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"from_address","type":"address","kind":"primitive","json_type":"string"}]},{"name":"EmptyRequest","fields":[]},{"name":"Error","fields":[{"name":"code","type":"uint16","kind":"primitive","json_type":"integer"},{"name":"message","type":"string","kind":"primitive","json_type":"string"}]},{"name":"Fill","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"is_buyer","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"is_taker","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"price","type":"string","kind":"decimal","json_type":"string"},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"index_price","type":"string","kind":"decimal","json_type":"string"},{"name":"interest_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"forward_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"realized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"fee","type":"string","kind":"decimal","json_type":"string"},{"name":"fee_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"trade_id","type":"string","kind":"primitive","json_type":"string"},{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string"},{"name":"venue","type":"Venue","kind":"enum","json_type":"Venue"},{"name":"is_liquidation","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"signer","type":"uint256","kind":"primitive","json_type":"string"},{"name":"broker","type":"BrokerTag","kind":"enum","json_type":"BrokerTag","optional":true},{"name":"is_rpi","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"builder","type":"address","kind":"primitive","json_type":"string"},{"name":"builder_fee_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"builder_fee","type":"string","kind":"decimal","json_type":"string"},{"name":"fee_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"repayment_scenario","type":"RepaymentScenario","kind":"enum","json_type":"RepaymentScenario"},{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"counterparty_type","type":"RfqCounterpartyType","kind":"enum","json_type":"RfqCounterpartyType","optional":true}]},{"name":"FundingAccountSummary","fields":[{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"total_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"spot_balances","type":"SpotBalance","kind":"struct","json_type":"SpotBalance","array_depth":1,"nullable":true},{"name":"vault_investments","type":"VaultInvestment","kind":"struct","json_type":"VaultInvestment","array_depth":1,"nullable":true},{"name":"total_cash_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"total_spot_asset_balance","type":"string","kind":"decimal","json_type":"string"}]},{"name":"FundingPayment","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"amount","type":"string","kind":"decimal","json_type":"string"},{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"FuturesWalletAssets","fields":[{"name":"mode","type":"SubAccountMode","kind":"enum","json_type":"SubAccountMode"},{"name":"supported_assets","type":"SupportedAsset","kind":"struct","json_type":"SupportedAsset","array_depth":1,"nullable":true}]},{"name":"InitialLeverageResult","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"min_leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"max_leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"margin_type","type":"PositionMarginType","kind":"enum","json_type":"PositionMarginType"}]},{"name":"InstrumentDisplay","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"instrument_hash","type":"uint256","kind":"primitive","json_type":"string"},{"name":"base","type":"string","kind":"primitive","json_type":"string"},{"name":"quote","type":"string","kind":"primitive","json_type":"string"},{"name":"kind","type":"Kind","kind":"enum","json_type":"Kind"},{"name":"venues","type":"Venue","kind":"enum","json_type":"Venue","array_depth":1,"nullable":true},{"name":"settlement_period","type":"InstrumentSettlementPeriod","kind":"enum","json_type":"InstrumentSettlementPeriod","optional":true},{"name":"base_decimals","type":"int8","kind":"primitive","json_type":"integer"},{"name":"quote_decimals","type":"int8","kind":"primitive","json_type":"integer"},{"name":"tick_size","type":"string","kind":"decimal","json_type":"string"},{"name":"min_size","type":"string","kind":"decimal","json_type":"string"},{"name":"create_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"max_position_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_interval_hours","type":"uint8","kind":"primitive","json_type":"integer","optional":true},{"name":"adjusted_funding_rate_cap","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"adjusted_funding_rate_floor","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"min_notional","type":"string","kind":"decimal","json_type":"string"},{"name":"asset_class","type":"AssetClass","kind":"enum","json_type":"AssetClass","optional":true},{"name":"status","type":"InstrumentStatus","kind":"enum","json_type":"InstrumentStatus","optional":true},{"name":"guaranteed_exit_band","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"spread_penalty_tolerance","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_cap_adjustment_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"funding_cap_adjustment_value","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"triple_swap_day","type":"DayOfWeek","kind":"enum","json_type":"DayOfWeek","optional":true}]},{"name":"InterestPayment","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"amount","type":"string","kind":"decimal","json_type":"string"},{"name":"charge_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"borrowed_amount","type":"string","kind":"decimal","json_type":"string"}]},{"name":"JSONRPCRequest","fields":[{"name":"jsonrpc","type":"string","kind":"primitive","json_type":"string"},{"name":"method","type":"string","kind":"primitive","json_type":"string"},{"name":"params","type":"any","kind":"any","json_type":"object"},{"name":"id","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"JSONRPCResponse","fields":[{"name":"jsonrpc","type":"string","kind":"primitive","json_type":"string"},{"name":"result","type":"any","kind":"any","json_type":"object","optional":true},{"name":"error","type":"Error","kind":"struct","json_type":"Error","optional":true},{"name":"id","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"method","type":"string","kind":"primitive","json_type":"string"}]},{"name":"MiniTicker","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"index_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"mid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_size","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"Order","fields":[{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"is_market","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"time_in_force","type":"TimeInForce","kind":"enum","json_type":"TimeInForce"},{"name":"post_only","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"reduce_only","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"legs","type":"OrderLeg","kind":"struct","json_type":"OrderLeg","array_depth":1,"nullable":true},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"},{"name":"metadata","type":"OrderMetadata","kind":"struct","json_type":"OrderMetadata"},{"name":"state","type":"OrderState","kind":"struct","json_type":"OrderState","optional":true},{"name":"builder","type":"address","kind":"primitive","json_type":"string","optional":true},{"name":"builder_fee","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"OrderLeg","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"limit_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"is_buying_asset","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"OrderMetadata","fields":[{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"create_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"trigger","type":"TriggerOrderMetadata","kind":"struct","json_type":"TriggerOrderMetadata","optional":true},{"name":"broker","type":"BrokerTag","kind":"enum","json_type":"BrokerTag","optional":true},{"name":"is_ecn","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"slippage_bps","type":"uint16","kind":"primitive","json_type":"integer","optional":true},{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"is_private","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"algo_order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true}]},{"name":"OrderState","fields":[{"name":"status","type":"OrderStatus","kind":"enum","json_type":"OrderStatus"},{"name":"reject_reason","type":"OrderRejectReason","kind":"enum","json_type":"OrderRejectReason"},{"name":"book_size","type":"string","kind":"decimal","json_type":"string","array_depth":1,"nullable":true},{"name":"traded_size","type":"string","kind":"decimal","json_type":"string","array_depth":1,"nullable":true},{"name":"update_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"avg_fill_price","type":"string","kind":"decimal","json_type":"string","array_depth":1,"nullable":true}]},{"name":"OrderStateFeed","fields":[{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string"},{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"order_state","type":"OrderState","kind":"struct","json_type":"OrderState"}]},{"name":"OrderbookLevel","fields":[{"name":"price","type":"string","kind":"decimal","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"num_orders","type":"uint32","kind":"primitive","json_type":"integer"}]},{"name":"OrderbookLevels","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"bids","type":"OrderbookLevel","kind":"struct","json_type":"OrderbookLevel","array_depth":1,"nullable":true},{"name":"asks","type":"OrderbookLevel","kind":"struct","json_type":"OrderbookLevel","array_depth":1,"nullable":true}]},{"name":"Positions","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"notional","type":"string","kind":"decimal","json_type":"string"},{"name":"entry_price","type":"string","kind":"decimal","json_type":"string"},{"name":"exit_price","type":"string","kind":"decimal","json_type":"string"},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string"},{"name":"unrealized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"realized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"total_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"roi","type":"string","kind":"decimal","json_type":"string"},{"name":"quote_index_price","type":"string","kind":"decimal","json_type":"string"},{"name":"est_liquidation_price","type":"string","kind":"decimal","json_type":"string"},{"name":"leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"cumulative_fee","type":"string","kind":"decimal","json_type":"string"},{"name":"cumulative_realized_funding_payment","type":"string","kind":"decimal","json_type":"string"},{"name":"margin_type","type":"PositionMarginType","kind":"enum","json_type":"PositionMarginType"},{"name":"isolated_balance","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"isolated_im","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"isolated_mm","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"PreMinRedemptions","fields":[{"name":"requests","type":"VaultRedemptionRequest","kind":"struct","json_type":"VaultRedemptionRequest","array_depth":1,"nullable":true},{"name":"token_count","type":"string","kind":"decimal","json_type":"string"}]},{"name":"Rfq","fields":[{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"expiry","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"side","type":"RfqSide","kind":"enum","json_type":"RfqSide","optional":true}]},{"name":"RfqQuoteFeed","fields":[{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string"},{"name":"best_bid","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"bid_levels","type":"RfqQuoteLevel","kind":"struct","json_type":"RfqQuoteLevel","array_depth":1,"nullable":true},{"name":"ask_levels","type":"RfqQuoteLevel","kind":"struct","json_type":"RfqQuoteLevel","array_depth":1,"nullable":true}]},{"name":"RfqQuoteLevel","fields":[{"name":"price","type":"string","kind":"decimal","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"maker_anon_account_id","type":"uint128","kind":"primitive","json_type":"string"},{"name":"time_in_force","type":"TimeInForce","kind":"enum","json_type":"TimeInForce"}]},{"name":"RiskBracket","fields":[{"name":"tier","type":"uint32","kind":"primitive","json_type":"integer"},{"name":"notional_floor","type":"string","kind":"decimal","json_type":"string"},{"name":"notional_cap","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"maintenance_margin_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"initial_margin_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"max_leverage","type":"uint32","kind":"primitive","json_type":"integer"},{"name":"cumulative_maintenance_amount","type":"string","kind":"decimal","json_type":"string"}]},{"name":"SfpMarketSchedule","fields":[{"name":"sessions","type":"TradingSession","kind":"struct","json_type":"TradingSession","array_depth":1,"nullable":true},{"name":"holidays","type":"TradingHolidaySchedule","kind":"struct","json_type":"TradingHolidaySchedule","array_depth":1,"nullable":true}]},{"name":"SfpTradingScheduleGroup","fields":[{"name":"name","type":"string","kind":"primitive","json_type":"string"},{"name":"asset_class","type":"AssetClass","kind":"enum","json_type":"AssetClass"},{"name":"instruments","type":"asset","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"sessions","type":"TradingSession","kind":"struct","json_type":"TradingSession","array_depth":1,"nullable":true},{"name":"holidays","type":"TradingHolidaySchedule","kind":"struct","json_type":"TradingHolidaySchedule","array_depth":1,"nullable":true}]},{"name":"Signature","fields":[{"name":"signer","type":"uint256","kind":"primitive","json_type":"string"},{"name":"r","type":"uint256","kind":"primitive","json_type":"string"},{"name":"s","type":"uint256","kind":"primitive","json_type":"string"},{"name":"v","type":"uint8","kind":"primitive","json_type":"integer"},{"name":"expiration","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"nonce","type":"uint32","kind":"primitive","json_type":"integer"},{"name":"chain_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"SpotBalance","fields":[{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"balance","type":"string","kind":"decimal","json_type":"string"},{"name":"index_price","type":"string","kind":"decimal","json_type":"string"},{"name":"entry_price","type":"string","kind":"decimal","json_type":"string"},{"name":"realized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"unrealized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"available_to_transfer","type":"string","kind":"decimal","json_type":"string"},{"name":"borrowed_amount","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"SpotSubAccount","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"total_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"spot_balances","type":"SpotBalance","kind":"struct","json_type":"SpotBalance","array_depth":1,"nullable":true}]},{"name":"StreamReference","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selectors","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true}]},{"name":"SubAccount","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"margin_type","type":"MarginType","kind":"enum","json_type":"MarginType"},{"name":"settle_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"unrealized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"total_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"initial_margin","type":"string","kind":"decimal","json_type":"string"},{"name":"maintenance_margin","type":"string","kind":"decimal","json_type":"string"},{"name":"available_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"spot_balances","type":"SpotBalance","kind":"struct","json_type":"SpotBalance","array_depth":1,"nullable":true},{"name":"positions","type":"Positions","kind":"struct","json_type":"Positions","array_depth":1,"nullable":true},{"name":"settle_index_price","type":"string","kind":"decimal","json_type":"string"},{"name":"is_vault","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"vault_im_additions","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"derisk_margin","type":"string","kind":"decimal","json_type":"string"},{"name":"derisk_to_maintenance_margin_ratio","type":"string","kind":"decimal","json_type":"string"},{"name":"total_cross_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"cross_unrealized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"sub_account_mode","type":"SubAccountMode","kind":"enum","json_type":"SubAccountMode"},{"name":"margin_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"algo_trading_enabled","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"SupportedAsset","fields":[{"name":"asset_id","type":"uint16","kind":"primitive","json_type":"integer"},{"name":"asset_code","type":"string","kind":"primitive","json_type":"string"},{"name":"balance_decimals","type":"int8","kind":"primitive","json_type":"integer"},{"name":"transfer_disabled","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"TPSLOrderMetadata","fields":[{"name":"trigger_by","type":"TriggerBy","kind":"enum","json_type":"TriggerBy"},{"name":"trigger_price","type":"string","kind":"decimal","json_type":"string"},{"name":"close_position","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"is_split_position","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"Ticker","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"index_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"mid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_8h_curr","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_8h_avg","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"interest_rate","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"forward_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"buy_volume_24h_b","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"sell_volume_24h_b","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"buy_volume_24h_q","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"sell_volume_24h_q","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"high_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"low_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"open_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"open_interest","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"long_short_ratio","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"next_funding_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"status","type":"InstrumentStatus","kind":"enum","json_type":"InstrumentStatus","optional":true},{"name":"session","type":"TradingSessionType","kind":"enum","json_type":"TradingSessionType","optional":true},{"name":"long_open_interest","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"short_open_interest","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_long_apr_pct","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_short_apr_pct","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"Trade","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"is_taker_buyer","type":"bool","kind":"primitive","json_type":"boolean"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"price","type":"string","kind":"decimal","json_type":"string"},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"index_price","type":"string","kind":"decimal","json_type":"string"},{"name":"interest_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"forward_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"trade_id","type":"string","kind":"primitive","json_type":"string"},{"name":"venue","type":"Venue","kind":"enum","json_type":"Venue"},{"name":"is_rpi","type":"bool","kind":"primitive","json_type":"boolean"}]},{"name":"TradingHolidaySchedule","fields":[{"name":"name","type":"string","kind":"primitive","json_type":"string"},{"name":"close_type","type":"TradingScheduleCloseType","kind":"enum","json_type":"TradingScheduleCloseType"},{"name":"start_time","type":"int64","kind":"primitive","json_type":"string"},{"name":"end_time","type":"int64","kind":"primitive","json_type":"string"}]},{"name":"TradingSession","fields":[{"name":"start_time","type":"int64","kind":"primitive","json_type":"string"},{"name":"end_time","type":"int64","kind":"primitive","json_type":"string"},{"name":"type","type":"TradingSessionType","kind":"enum","json_type":"TradingSessionType"}]},{"name":"TransferHistory","fields":[{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"to_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"},{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"transfer_type","type":"TransferType","kind":"enum","json_type":"TransferType"},{"name":"transfer_metadata","type":"string","kind":"primitive","json_type":"string"},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"},{"name":"to_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"}]},{"name":"TriggerOrderMetadata","fields":[{"name":"trigger_type","type":"TriggerType","kind":"enum","json_type":"TriggerType"},{"name":"tpsl","type":"TPSLOrderMetadata","kind":"struct","json_type":"TPSLOrderMetadata"}]},{"name":"VaultInvestment","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"num_lp_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"share_price","type":"string","kind":"decimal","json_type":"string"},{"name":"usd_notional_invested","type":"string","kind":"decimal","json_type":"string"},{"name":"share_balances","type":"VaultShareBalances","kind":"struct","json_type":"VaultShareBalances","optional":true}]},{"name":"VaultInvestorSummary","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"num_lp_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"avg_entry_price","type":"string","kind":"decimal","json_type":"string"},{"name":"current_price","type":"string","kind":"decimal","json_type":"string"},{"name":"total_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"all_time_realized_pnl","type":"string","kind":"decimal","json_type":"string"},{"name":"pending_redemption","type":"VaultRedemption","kind":"struct","json_type":"VaultRedemption","optional":true},{"name":"can_burn","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"num_lp_tokens_locked","type":"string","kind":"decimal","json_type":"string"},{"name":"num_lp_tokens_redeemable","type":"string","kind":"decimal","json_type":"string"},{"name":"locked_lots","type":"VaultLpLotView","kind":"struct","json_type":"VaultLpLotView","array_depth":1,"nullable":true},{"name":"share_balances","type":"VaultShareBalances","kind":"struct","json_type":"VaultShareBalances"},{"name":"trading_balances","type":"VaultShareTradingBalance","kind":"struct","json_type":"VaultShareTradingBalance","array_depth":1,"nullable":true},{"name":"investor_equity","type":"string","kind":"decimal","json_type":"string"},{"name":"unrealized_pnl","type":"string","kind":"decimal","json_type":"string"}]},{"name":"VaultLpLotView","fields":[{"name":"unlock_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"num_lp_tokens","type":"string","kind":"decimal","json_type":"string"}]},{"name":"VaultRedemption","fields":[{"name":"num_lp_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"request_valuation","type":"string","kind":"decimal","json_type":"string"},{"name":"request_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"max_redemption_period_timestamp","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"cancel_blocked","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"}]},{"name":"VaultRedemptionRequest","fields":[{"name":"request_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"num_lp_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"max_redemption_period_timestamp","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"age_category","type":"VaultRedemptionReqAgeCategory","kind":"enum","json_type":"VaultRedemptionReqAgeCategory"},{"name":"is_manager","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"eligible_for_auto_redemption_timestamp","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"}]},{"name":"VaultShareBalances","fields":[{"name":"funding_lp_token_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"trading_lp_token_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"pending_redemption_lp_token_balance","type":"string","kind":"decimal","json_type":"string"},{"name":"available_to_transfer","type":"string","kind":"decimal","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"VaultShareTradingBalance","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"num_lp_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"equity","type":"string","kind":"decimal","json_type":"string"},{"name":"available_to_transfer","type":"string","kind":"decimal","json_type":"string"},{"name":"margin_balance_usd","type":"string","kind":"decimal","json_type":"string"}]},{"name":"WSAlgoOrderFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"AlgoOrder","kind":"struct","json_type":"AlgoOrder"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSAlgoOrderFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSCancelFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"CancelStatusFeed","kind":"struct","json_type":"CancelStatusFeed"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSCancelFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSCandlestickFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Candlestick","kind":"struct","json_type":"Candlestick"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSCandlestickFeedSelectorV1","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"interval","type":"WsCandlestickInterval","kind":"enum","json_type":"WsCandlestickInterval","optional":true},{"name":"type","type":"CandlestickType","kind":"enum","json_type":"CandlestickType","optional":true}]},{"name":"WSDepositFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Deposit","kind":"struct","json_type":"Deposit"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSDepositFeedSelectorV1","fields":[{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string"}]},{"name":"WSFillFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Fill","kind":"struct","json_type":"Fill"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSFillFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSListStreamsParams","fields":[]},{"name":"WSListStreamsResult","fields":[{"name":"stream_reference","type":"StreamReference","kind":"struct","json_type":"StreamReference","array_depth":1,"nullable":true}]},{"name":"WSMiniTickerFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"MiniTicker","kind":"struct","json_type":"MiniTicker"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSMiniTickerFeedSelectorV1","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"rate","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"WSOrderFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Order","kind":"struct","json_type":"Order"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSOrderFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSOrderStateFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"OrderStateFeed","kind":"struct","json_type":"OrderStateFeed"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSOrderStateFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSOrderbookLevelsFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"OrderbookLevels","kind":"struct","json_type":"OrderbookLevels"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSOrderbookLevelsFeedSelectorV1","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"rate","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"depth","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"WSPositionsFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Positions","kind":"struct","json_type":"Positions"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSPositionsFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSRfqQuoteFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"RfqQuoteFeed","kind":"struct","json_type":"RfqQuoteFeed"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSRfqQuoteFeedSelectorV1","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSSubscribeParams","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selectors","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"use_global_sequence_number","type":"bool","kind":"primitive","json_type":"boolean","optional":true}]},{"name":"WSSubscribeRequestV1Legacy","fields":[{"name":"request_id","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"feed","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"method","type":"string","kind":"primitive","json_type":"string"},{"name":"is_full","type":"bool","kind":"primitive","json_type":"boolean","optional":true}]},{"name":"WSSubscribeResponseV1Legacy","fields":[{"name":"request_id","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"subs","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"unsubs","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"num_snapshots","type":"uint32","kind":"primitive","json_type":"integer","array_depth":1,"nullable":true},{"name":"first_sequence_number","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"latest_sequence_number","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"nullable":true}]},{"name":"WSSubscribeResult","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"subs","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"unsubs","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"num_snapshots","type":"uint32","kind":"primitive","json_type":"integer","array_depth":1,"nullable":true},{"name":"first_sequence_number","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"latest_sequence_number","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"nullable":true}]},{"name":"WSTickerFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Ticker","kind":"struct","json_type":"Ticker"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSTickerFeedSelectorV1","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"rate","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"WSTradeFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Trade","kind":"struct","json_type":"Trade"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSTradeFeedSelectorV1","fields":[{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"limit","type":"uint32","kind":"primitive","json_type":"integer","optional":true}]},{"name":"WSTransferFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"TransferHistory","kind":"struct","json_type":"TransferHistory"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSTransferFeedSelectorV1","fields":[{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"WSUnsubscribeAllParams","fields":[]},{"name":"WSUnsubscribeAllResult","fields":[{"name":"stream_reference","type":"StreamReference","kind":"struct","json_type":"StreamReference","array_depth":1,"nullable":true}]},{"name":"WSUnsubscribeParams","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selectors","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true},{"name":"use_global_sequence_number","type":"bool","kind":"primitive","json_type":"boolean","optional":true}]},{"name":"WSUnsubscribeResult","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"unsubs","type":"string","kind":"primitive","json_type":"string","array_depth":1,"nullable":true}]},{"name":"WSWithdrawalFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"Withdrawal","kind":"struct","json_type":"Withdrawal"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSWithdrawalFeedSelectorV1","fields":[{"name":"main_account_id","type":"address","kind":"primitive","json_type":"string"}]},{"name":"Withdrawal","fields":[{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_eth_address","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"}]},{"name":"WithdrawalHistory","fields":[{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_eth_address","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"Signature","kind":"struct","json_type":"Signature"},{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"l_1_hash","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"l_2_hash","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiAddIsolatedPositionMarginRequestInput","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"amount","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"ApiAlgoSubOrderHistoryResponseInput","fields":[{"name":"result","type":"OrderInput","kind":"struct","json_type":"Order","array_depth":1,"nullable":true}]},{"name":"ApiBulkOrdersRequestInput","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"orders","type":"OrderInput","kind":"struct","json_type":"Order","array_depth":1,"optional":true,"nullable":true},{"sdk_name":"order_ids","name":"order_i_ds","type":"uint128","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"sdk_name":"client_order_ids","name":"client_order_i_ds","type":"uint64","kind":"primitive","json_type":"string","array_depth":1,"optional":true,"nullable":true},{"name":"time_to_live_ms","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiBulkOrdersResponseInput","fields":[{"name":"orders","type":"OrderInput","kind":"struct","json_type":"Order","array_depth":1,"nullable":true},{"name":"cancel_acks","type":"Ack","kind":"struct","json_type":"Ack","array_depth":1,"nullable":true}]},{"name":"ApiCreateOrderRequestInput","fields":[{"name":"order","type":"OrderInput","kind":"struct","json_type":"Order"}]},{"name":"ApiCreateOrderResponseInput","fields":[{"name":"result","type":"OrderInput","kind":"struct","json_type":"Order"}]},{"name":"ApiCreateRfqRequestInput","fields":[{"name":"rfq","type":"RfqInput","kind":"struct","json_type":"Rfq"}]},{"name":"ApiCreateRfqResponseInput","fields":[{"name":"rfq","type":"RfqInput","kind":"struct","json_type":"Rfq"}]},{"name":"ApiGetOrderResponseInput","fields":[{"name":"result","type":"OrderInput","kind":"struct","json_type":"Order"}]},{"name":"ApiOpenOrdersResponseInput","fields":[{"name":"result","type":"OrderInput","kind":"struct","json_type":"Order","array_depth":1,"nullable":true}]},{"name":"ApiOrderHistoryResponseInput","fields":[{"name":"result","type":"OrderInput","kind":"struct","json_type":"Order","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string"}]},{"name":"ApiSetDeriskToMaintenanceMarginRatioRequestInput","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"ratio","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"ApiSetSubAccountPositionMarginConfigRequestInput","fields":[{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"margin_type","type":"PositionMarginType","kind":"enum","json_type":"PositionMarginType"},{"name":"leverage","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"ApiTransferHistoryResponseInput","fields":[{"name":"result","type":"TransferHistoryInput","kind":"struct","json_type":"TransferHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiTransferRequestInput","fields":[{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"to_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true},{"name":"transfer_type","type":"TransferType","kind":"enum","json_type":"TransferType"},{"name":"transfer_metadata","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType","optional":true},{"name":"to_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType","optional":true}]},{"name":"ApiVaultBurnTokensRequestInput","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"ApiVaultInvestV2RequestInput","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"},{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"from_num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"ApiVaultRedeemV2RequestInput","fields":[{"name":"vault_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"to_currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"exchange_rate","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"ApiWithdrawalHistoryResponseInput","fields":[{"name":"result","type":"WithdrawalHistoryInput","kind":"struct","json_type":"WithdrawalHistory","array_depth":1,"nullable":true},{"name":"next","type":"string","kind":"primitive","json_type":"string","optional":true}]},{"name":"ApiWithdrawalRequestInput","fields":[{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_eth_address","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true}]},{"name":"OrderInput","fields":[{"name":"order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string","optional":true},{"name":"is_market","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"time_in_force","type":"TimeInForce","kind":"enum","json_type":"TimeInForce"},{"name":"post_only","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"reduce_only","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"legs","type":"OrderLeg","kind":"struct","json_type":"OrderLeg","array_depth":1,"nullable":true},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature","optional":true},{"name":"metadata","type":"OrderMetadataInput","kind":"struct","json_type":"OrderMetadata","optional":true},{"name":"state","type":"OrderState","kind":"struct","json_type":"OrderState","optional":true},{"name":"builder","type":"address","kind":"primitive","json_type":"string","optional":true},{"name":"builder_fee","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"OrderMetadataInput","fields":[{"name":"client_order_id","type":"uint64","kind":"primitive","json_type":"string","optional":true},{"name":"create_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"trigger","type":"TriggerOrderMetadata","kind":"struct","json_type":"TriggerOrderMetadata","optional":true},{"name":"broker","type":"BrokerTag","kind":"enum","json_type":"BrokerTag","optional":true},{"name":"is_ecn","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"slippage_bps","type":"uint16","kind":"primitive","json_type":"integer","optional":true},{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"is_private","type":"bool","kind":"primitive","json_type":"boolean","optional":true},{"name":"algo_order_id","type":"uint128","kind":"primitive","json_type":"string","optional":true}]},{"name":"RfqInput","fields":[{"name":"rfq_id","type":"uint128","kind":"primitive","json_type":"string","optional":true},{"name":"sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"expiry","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string"},{"name":"size","type":"string","kind":"decimal","json_type":"string"},{"name":"side","type":"RfqSide","kind":"enum","json_type":"RfqSide","optional":true}]},{"name":"SignatureInput","fields":[{"name":"signer","type":"uint256","kind":"primitive","json_type":"string","optional":true},{"name":"r","type":"uint256","kind":"primitive","json_type":"string","optional":true},{"name":"s","type":"uint256","kind":"primitive","json_type":"string","optional":true},{"name":"v","type":"uint8","kind":"primitive","json_type":"integer","optional":true},{"name":"expiration","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"nonce","type":"uint32","kind":"primitive","json_type":"integer","optional":true},{"name":"chain_id","type":"uint64","kind":"primitive","json_type":"string","optional":true}]},{"name":"TransferHistoryInput","fields":[{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"from_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"to_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_sub_account_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature"},{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"transfer_type","type":"TransferType","kind":"enum","json_type":"TransferType"},{"name":"transfer_metadata","type":"string","kind":"primitive","json_type":"string"},{"name":"from_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"},{"name":"to_wallet_type","type":"WalletType","kind":"enum","json_type":"WalletType"}]},{"name":"WSOrderFeedDataV1Input","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"OrderInput","kind":"struct","json_type":"Order"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSTransferFeedDataV1Input","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"TransferHistoryInput","kind":"struct","json_type":"TransferHistory"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WSWithdrawalFeedDataV1Input","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"WithdrawalInput","kind":"struct","json_type":"Withdrawal"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"WithdrawalInput","fields":[{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_eth_address","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature"}]},{"name":"WithdrawalHistoryInput","fields":[{"name":"tx_id","type":"uint64","kind":"primitive","json_type":"string"},{"name":"from_account_id","type":"address","kind":"primitive","json_type":"string"},{"name":"to_eth_address","type":"address","kind":"primitive","json_type":"string"},{"name":"currency","type":"string","kind":"primitive","json_type":"string"},{"name":"num_tokens","type":"string","kind":"decimal","json_type":"string"},{"name":"signature","type":"SignatureInput","kind":"struct","json_type":"Signature"},{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string"},{"name":"l_1_hash","type":"string","kind":"primitive","json_type":"string","optional":true},{"name":"l_2_hash","type":"string","kind":"primitive","json_type":"string"}]},{"name":"EdgeWalletLoginRequestInput","fields":[{"name":"address","type":"address","kind":"primitive"},{"name":"signature","type":"SignatureInput","kind":"struct","optional":true}]},{"name":"PartialMiniTicker","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"index_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"mid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_size","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"PartialWSMiniTickerFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"PartialMiniTicker","kind":"struct","json_type":"MiniTicker"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]},{"name":"PartialTicker","fields":[{"name":"event_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"instrument","type":"asset","kind":"primitive","json_type":"string","optional":true},{"name":"mark_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"index_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"last_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"mid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_bid_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"best_ask_size","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_8h_curr","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_8h_avg","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"interest_rate","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"forward_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"buy_volume_24h_b","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"sell_volume_24h_b","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"buy_volume_24h_q","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"sell_volume_24h_q","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"high_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"low_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"open_price","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"open_interest","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"long_short_ratio","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"next_funding_time","type":"timestamp","kind":"timestamp","json_type":"string","optional":true},{"name":"status","type":"InstrumentStatus","kind":"enum","json_type":"InstrumentStatus","optional":true},{"name":"session","type":"TradingSessionType","kind":"enum","json_type":"TradingSessionType","optional":true},{"name":"long_open_interest","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"short_open_interest","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_long_apr_pct","type":"string","kind":"decimal","json_type":"string","optional":true},{"name":"funding_rate_short_apr_pct","type":"string","kind":"decimal","json_type":"string","optional":true}]},{"name":"PartialWSTickerFeedDataV1","fields":[{"name":"stream","type":"string","kind":"primitive","json_type":"string"},{"name":"selector","type":"string","kind":"primitive","json_type":"string"},{"name":"sequence_number","type":"uint64","kind":"primitive","json_type":"string"},{"name":"feed","type":"PartialTicker","kind":"struct","json_type":"Ticker"},{"name":"prev_sequence_number","type":"uint64","kind":"primitive","json_type":"string"}]}]},"signed":{"asset_key":{"description":"assetID in OrderLeg is the instrument's asset bytes read as a big-endian uint256 (left-padded to 32 bytes).","from_api":"Use instrument_hash from RPCGetInstrumentV1 / RPCGetAllInstrumentsV1 / RPCGetFilteredInstrumentsV1 (InstrumentDisplay.instrument_hash, e.g. BTC_USDT_Perp = 0x030501). Do not compute it locally unless the instrument list is unavailable.","layout":["perpetual / spot swap / stable perp: [underlying_hi?] quote underlying kind (3 bytes, 4 when the underlying id > 255)","future: underlying_hi quote underlying kind + 8-byte expiration (12 bytes)","call / put: underlying_hi quote underlying kind + 8-byte expiration + 8-byte strike (20 bytes)","spot: [underlying_hi 0] underlying kind (2 or 4 bytes)","kind and currency ids are the Kind enum value and CurrencyDetail.id"]},"domain":{"chain_id":"Per request: signature.chain_id; 0 means the environment's chain_id (environments.<env>.chain_id). The server hashes 0 as its own chain id (eip712.Hasher.ResolveChainID).","name":"GRVT Exchange","type_string":"EIP712Domain(string name,string version,uint256 chainId)","verifying_contract":"none (the domain has only name, version, chainId)","version":"0"},"main_account":{"description":"Some calls sign the session's main account (accountID), which the request does not carry: the server fills it from the session. Read it once per session from this call's response and reuse it.","field":"result.main_account_id","rpc":"account.funding_account_summary"},"precision_rule":"A scaled value with more fractional digits than its decimals is rejected by the SDK before signing. The server does not reject it (see the over_precision signing case for what it does today).","signature_object":{"description":"Signature object the request carries (type Signature). Sign keccak256(0x1901 || domainSeparator || structHash) with secp256k1; s must be in the lower half of the curve order.","fields":{"chain_id":"decimal string; must match the signed domain chainId (0 = environment default)","expiration":"int64 unix nanoseconds as a decimal string; must match the signed value","nonce":"uint32; must match the signed value","r":"0x + 64 hex chars (32 bytes)","s":"0x + 64 hex chars (32 bytes, low-s)","signer":"0x address of the signing key","v":"27 or 28"}},"transforms":[{"description":"Take the JSON value as is. Integers arrive as decimal strings (uint64/int64) or numbers; booleans as booleans.","name":"copy"},{"description":"The wire carries the enum value name (e.g. GOOD_TILL_TIME); sign its integer value from `enums`. Absent = 0.","name":"enumCode"},{"description":"0x-prefixed 20-byte hex address. Absent = zero address.","name":"address"},{"description":"Instrument name -> instrument_hash (see asset_key), signed as uint256.","name":"assetKey"},{"description":"Decimal string -> integer = value * 10^decimals, using `scale`. More fractional digits than `decimals` must be rejected before signing (see precision_rule). A leading '-' is allowed: signed (intN) fields such as AddIsolatedPositionMargin.amount take negative values.","name":"scaled"},{"description":"Currency symbol (e.g. USDT) -> CurrencyDetail.id from RPCGetCurrencyV1.","name":"currencyId"},{"description":"JSON array; map every element with nested_mapping[struct]. Paths inside are relative to the element.","name":"each"},{"description":"The session's main account address (see main_account); no request field. Fetch it once per session and reuse it.","name":"mainAccount"},{"description":"Copy signature.nonce (uint32) from the request's signature object.","name":"sig.nonce"},{"description":"Copy signature.expiration (int64 unix nanoseconds, a decimal string on the wire).","name":"sig.expiration"},{"description":"Domain chainId: signature.chain_id; 0 or absent means the environment's chain_id.","name":"sig.chainId"}],"types":[{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"subAccountID","type":"uint64"},{"name":"asset","type":"uint256"},{"name":"amount","type":"int64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"amount":{"path":"amount","scale":{"kind":"instrument_quote_decimals","lookup":"balance_decimals of the instrument's quote currency; equals instrument.quote_decimals","server_rule":"Int64ToStringQuoteDecimals"},"scale_key":"ApiAddIsolatedPositionMarginRequest_amount","transform":"scaled"},"asset":{"path":"instrument","transform":"assetKey"},"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"subAccountID":{"path":"sub_account_id","transform":"copy"}},"name":"AddIsolatedPositionMargin","type_hash":"0xb6e7c8dc8d7d9fb71fb62ec71807f9a293291545d20d0123cba70b443af79010","type_string":"AddIsolatedPositionMargin(uint64 subAccountID,uint256 asset,int64 amount,uint32 nonce,int64 expiration)","used_by":["position.add_position_margin"]},{"fields":[{"name":"sessionKey","type":"address"},{"name":"keyExpiry","type":"int64"}],"name":"AddSessionKey","type_hash":"0xa4c78587c2543e619be012b504d8d0adaad0a4044d85a9d6b2fec8e680616b72","type_string":"AddSessionKey(address sessionKey,int64 keyExpiry)","unmapped":"No API call signs this type yet; fields listed for completeness, no wire mapping or signing case.","used_by":[]},{"chain_id":{"path":"order.signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"subAccountID","type":"uint64"},{"name":"isMarket","type":"bool"},{"name":"timeInForce","type":"uint8"},{"name":"postOnly","type":"bool"},{"name":"reduceOnly","type":"bool"},{"name":"legs","type":"OrderLeg[]"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"expiration":{"path":"order.signature.expiration","transform":"sig.expiration"},"isMarket":{"default":false,"path":"order.is_market","transform":"copy"},"legs":{"path":"order.legs","struct":"OrderLeg","transform":"each"},"nonce":{"path":"order.signature.nonce","transform":"sig.nonce"},"postOnly":{"default":false,"path":"order.post_only","transform":"copy"},"reduceOnly":{"default":false,"path":"order.reduce_only","transform":"copy"},"subAccountID":{"path":"order.sub_account_id","transform":"copy"},"timeInForce":{"enum":"TimeInForce","path":"order.time_in_force","transform":"enumCode"}},"name":"Order","nested":[{"fields":[{"name":"assetID","type":"uint256"},{"name":"contractSize","type":"uint64"},{"name":"limitPrice","type":"uint64"},{"name":"isBuyingContract","type":"bool"}],"name":"OrderLeg"}],"nested_mapping":{"OrderLeg":{"assetID":{"path":"instrument","transform":"assetKey"},"contractSize":{"path":"size","scale":{"kind":"instrument_base_decimals","lookup":"balance_decimals of the instrument's base currency; equals instrument.base_decimals from RPCGetInstrumentV1 / RPCGetAllInstrumentsV1","server_rule":"Uint64ToStringUnderlyingDecimals"},"scale_key":"OrderLeg_size","transform":"scaled"},"isBuyingContract":{"default":false,"path":"is_buying_asset","transform":"copy"},"limitPrice":{"default":"0","path":"limit_price","scale":{"decimals":9,"kind":"fixed","server_rule":"Uint64ToStringPriceDecimals"},"scale_key":"OrderLeg_limitPrice","transform":"scaled"}}},"type_hash":"0xb4b857ba9641f20a7c4007c73e548a2ee5afb7207744cc41fa7849451419bbb2","type_string":"Order(uint64 subAccountID,bool isMarket,uint8 timeInForce,bool postOnly,bool reduceOnly,OrderLeg[] legs,uint32 nonce,int64 expiration)OrderLeg(uint256 assetID,uint64 contractSize,uint64 limitPrice,bool isBuyingContract)","used_by":["order.create_order","order.bulk_orders"]},{"chain_id":{"path":"order.signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"subAccountID","type":"uint64"},{"name":"isMarket","type":"bool"},{"name":"timeInForce","type":"uint8"},{"name":"postOnly","type":"bool"},{"name":"reduceOnly","type":"bool"},{"name":"legs","type":"OrderLeg[]"},{"name":"builder","type":"address"},{"name":"builderFee","type":"uint32"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"builder":{"path":"order.builder","transform":"address"},"builderFee":{"default":"0","path":"order.builder_fee","scale":{"decimals":4,"kind":"fixed","server_rule":"Int32ToStringCentibeeps"},"scale_key":"Order_builderFee","transform":"scaled"},"expiration":{"path":"order.signature.expiration","transform":"sig.expiration"},"isMarket":{"default":false,"path":"order.is_market","transform":"copy"},"legs":{"path":"order.legs","struct":"OrderLeg","transform":"each"},"nonce":{"path":"order.signature.nonce","transform":"sig.nonce"},"postOnly":{"default":false,"path":"order.post_only","transform":"copy"},"reduceOnly":{"default":false,"path":"order.reduce_only","transform":"copy"},"subAccountID":{"path":"order.sub_account_id","transform":"copy"},"timeInForce":{"enum":"TimeInForce","path":"order.time_in_force","transform":"enumCode"}},"name":"OrderWithBuilderFee","nested":[{"fields":[{"name":"assetID","type":"uint256"},{"name":"contractSize","type":"uint64"},{"name":"limitPrice","type":"uint64"},{"name":"isBuyingContract","type":"bool"}],"name":"OrderLeg"}],"nested_mapping":{"OrderLeg":{"assetID":{"path":"instrument","transform":"assetKey"},"contractSize":{"path":"size","scale":{"kind":"instrument_base_decimals","lookup":"balance_decimals of the instrument's base currency; equals instrument.base_decimals from RPCGetInstrumentV1 / RPCGetAllInstrumentsV1","server_rule":"Uint64ToStringUnderlyingDecimals"},"scale_key":"OrderLeg_size","transform":"scaled"},"isBuyingContract":{"default":false,"path":"is_buying_asset","transform":"copy"},"limitPrice":{"default":"0","path":"limit_price","scale":{"decimals":9,"kind":"fixed","server_rule":"Uint64ToStringPriceDecimals"},"scale_key":"OrderLeg_limitPrice","transform":"scaled"}}},"type_hash":"0x6a59e4932070a97495ccc9de30b7309ec82b07156f8cfcbe516d28d226d11028","type_string":"OrderWithBuilderFee(uint64 subAccountID,bool isMarket,uint8 timeInForce,bool postOnly,bool reduceOnly,OrderLeg[] legs,address builder,uint32 builderFee,uint32 nonce,int64 expiration)OrderLeg(uint256 assetID,uint64 contractSize,uint64 limitPrice,bool isBuyingContract)","used_by":["order.create_order","order.bulk_orders"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"subAccountID","type":"uint64"},{"name":"deriskToMaintenanceMarginRatio","type":"uint32"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"deriskToMaintenanceMarginRatio":{"path":"ratio","scale":{"decimals":6,"kind":"fixed","server_rule":"Uint32ToStringDeriskRatio"},"scale_key":"ApiSetDeriskToMaintenanceMarginRatioRequest_ratio","transform":"scaled"},"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"subAccountID":{"path":"sub_account_id","transform":"copy"}},"name":"SetDeriskToMaintenanceMarginRatio","type_hash":"0xacb6c1dcd395d10eb0681463bdc0d7dd0a0db302012781039cb1821ab326ed26","type_string":"SetDeriskToMaintenanceMarginRatio(uint64 subAccountID,uint32 deriskToMaintenanceMarginRatio,uint32 nonce,int64 expiration)","used_by":["derisk_mm_ratio.set_derisk_mm_ratio"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"subAccountID","type":"uint64"},{"name":"asset","type":"uint256"},{"name":"marginType","type":"uint8"},{"name":"leverage","type":"int32"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"asset":{"path":"instrument","transform":"assetKey"},"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"leverage":{"path":"leverage","scale":{"decimals":6,"kind":"fixed","server_rule":"Int32ToStringLeverage"},"scale_key":"ApiSetSubAccountPositionMarginConfigRequest_leverage","transform":"scaled"},"marginType":{"enum":"PositionMarginType","path":"margin_type","transform":"enumCode"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"subAccountID":{"path":"sub_account_id","transform":"copy"}},"name":"SetSubAccountPositionMarginConfig","type_hash":"0x75673028b3d75e3ec43589ed8a9291dbea56da6886c45d05efafc68a4ae51395","type_string":"SetSubAccountPositionMarginConfig(uint64 subAccountID,uint256 asset,uint8 marginType,int32 leverage,uint32 nonce,int64 expiration)","used_by":["position.set_position_config"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"fromAccount","type":"address"},{"name":"fromSubAccount","type":"uint64"},{"name":"toAccount","type":"address"},{"name":"toSubAccount","type":"uint64"},{"name":"tokenCurrency","type":"uint8"},{"name":"numTokens","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromAccount":{"path":"from_account_id","transform":"address"},"fromSubAccount":{"default":"0","path":"from_sub_account_id","transform":"copy"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numTokens":{"path":"num_tokens","scale":{"currency_path":"currency","kind":"currency_balance_decimals","lookup":"balance_decimals of the currency named by the request's `currency` field (RPCGetCurrencyV1 -> CurrencyDetail.balance_decimals)","server_rule":"ApiTransferRequest_numTokens"},"scale_key":"ApiTransferRequest_numTokens","transform":"scaled"},"toAccount":{"path":"to_account_id","transform":"address"},"toSubAccount":{"default":"0","path":"to_sub_account_id","transform":"copy"},"tokenCurrency":{"path":"currency","transform":"currencyId"}},"name":"Transfer","type_hash":"0xc68fcd68f79304f334c57a50cc1680546fa88e6147d97b3a1b18ac97a0c6b9f7","type_string":"Transfer(address fromAccount,uint64 fromSubAccount,address toAccount,uint64 toSubAccount,uint8 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration)","used_by":["transfer.transfer"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"fromAccount","type":"address"},{"name":"fromSubAccount","type":"uint64"},{"name":"toAccount","type":"address"},{"name":"toSubAccount","type":"uint64"},{"name":"tokenCurrency","type":"uint8"},{"name":"numTokens","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"},{"name":"fromWalletType","type":"uint8"},{"name":"toWalletType","type":"uint8"}],"mapping":{"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromAccount":{"path":"from_account_id","transform":"address"},"fromSubAccount":{"default":"0","path":"from_sub_account_id","transform":"copy"},"fromWalletType":{"enum":"WalletType","path":"from_wallet_type","transform":"enumCode"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numTokens":{"path":"num_tokens","scale":{"currency_path":"currency","kind":"currency_balance_decimals","lookup":"balance_decimals of the currency named by the request's `currency` field (RPCGetCurrencyV1 -> CurrencyDetail.balance_decimals)","server_rule":"ApiTransferRequest_numTokens"},"scale_key":"ApiTransferRequest_numTokens","transform":"scaled"},"toAccount":{"path":"to_account_id","transform":"address"},"toSubAccount":{"default":"0","path":"to_sub_account_id","transform":"copy"},"toWalletType":{"enum":"WalletType","path":"to_wallet_type","transform":"enumCode"},"tokenCurrency":{"path":"currency","transform":"currencyId"}},"name":"TransferV2","type_hash":"0x4c1e946de7758ace7db774b2ec9d3041167bf569933969a6c2aa121c6f02f5ff","type_string":"TransferV2(address fromAccount,uint64 fromSubAccount,address toAccount,uint64 toSubAccount,uint8 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration,uint8 fromWalletType,uint8 toWalletType)","used_by":["transfer.transfer"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"fromAccount","type":"address"},{"name":"fromSubAccount","type":"uint64"},{"name":"toAccount","type":"address"},{"name":"toSubAccount","type":"uint64"},{"name":"tokenCurrency","type":"uint16"},{"name":"numTokens","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"},{"name":"fromWalletType","type":"uint8"},{"name":"toWalletType","type":"uint8"}],"mapping":{"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromAccount":{"path":"from_account_id","transform":"address"},"fromSubAccount":{"default":"0","path":"from_sub_account_id","transform":"copy"},"fromWalletType":{"enum":"WalletType","path":"from_wallet_type","transform":"enumCode"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numTokens":{"path":"num_tokens","scale":{"currency_path":"currency","kind":"currency_balance_decimals","lookup":"balance_decimals of the currency named by the request's `currency` field (RPCGetCurrencyV1 -> CurrencyDetail.balance_decimals)","server_rule":"ApiTransferRequest_numTokens"},"scale_key":"ApiTransferRequest_numTokens","transform":"scaled"},"toAccount":{"path":"to_account_id","transform":"address"},"toSubAccount":{"default":"0","path":"to_sub_account_id","transform":"copy"},"toWalletType":{"enum":"WalletType","path":"to_wallet_type","transform":"enumCode"},"tokenCurrency":{"path":"currency","transform":"currencyId"}},"name":"TransferV3","type_hash":"0xe4b142f35f6fa4dda9a3c282f42523d90ccd69b40e130b4207aa644826d8a9e6","type_string":"TransferV3(address fromAccount,uint64 fromSubAccount,address toAccount,uint64 toSubAccount,uint16 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration,uint8 fromWalletType,uint8 toWalletType)","used_by":["transfer.transfer"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"vaultID","type":"uint64"},{"name":"numLpTokens","type":"uint64"},{"name":"accountID","type":"address"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"accountID":{"path":"","transform":"mainAccount"},"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numLpTokens":{"path":"num_tokens","scale":{"decimals":6,"kind":"fixed","server_rule":"Uint64ToStringLpToken6Decimals"},"scale_key":"ApiVaultBurnTokensRequest_numTokens","transform":"scaled"},"vaultID":{"path":"vault_id","transform":"copy"}},"name":"VaultBurnLpToken","type_hash":"0xbb9031c385869393ec7675231ae0f5561aafeebcb9530abf72b88b7c848ab64e","type_string":"VaultBurnLpToken(uint64 vaultID,uint64 numLpTokens,address accountID,uint32 nonce,int64 expiration)","used_by":["vault.vault_burn_tokens"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"vaultID","type":"uint64"},{"name":"accountID","type":"address"},{"name":"fromSubAccountID","type":"uint64"},{"name":"fromWalletType","type":"uint8"},{"name":"fromCurrency","type":"uint16"},{"name":"fromNumTokens","type":"uint64"},{"name":"toCurrency","type":"uint16"},{"name":"exchangeRate","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"accountID":{"path":"","transform":"mainAccount"},"exchangeRate":{"path":"exchange_rate","scale":{"decimals":9,"kind":"fixed","server_rule":"Uint64ToStringPriceDecimals"},"scale_key":"ApiVaultInvestV2Request_exchangeRate","transform":"scaled"},"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromCurrency":{"path":"from_currency","transform":"currencyId"},"fromNumTokens":{"path":"from_num_tokens","scale":{"currency_path":"from_currency","kind":"currency_balance_decimals","lookup":"balance_decimals of the currency named by the request's `from_currency` field (RPCGetCurrencyV1 -> CurrencyDetail.balance_decimals)","server_rule":"ApiVaultInvestV2Request_fromNumTokens"},"scale_key":"ApiVaultInvestV2Request_fromNumTokens","transform":"scaled"},"fromSubAccountID":{"default":"0","path":"from_sub_account_id","transform":"copy"},"fromWalletType":{"enum":"WalletType","path":"from_wallet_type","transform":"enumCode"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"toCurrency":{"path":"to_currency","transform":"currencyId"},"vaultID":{"path":"vault_id","transform":"copy"}},"name":"VaultInvestV3","type_hash":"0x9310afe005ecc1260bf9be1863d1fde16bed5d7be16ed68926ddf67cd10a736e","type_string":"VaultInvestV3(uint64 vaultID,address accountID,uint64 fromSubAccountID,uint8 fromWalletType,uint16 fromCurrency,uint64 fromNumTokens,uint16 toCurrency,uint64 exchangeRate,uint32 nonce,int64 expiration)","used_by":["vault.vault_invest"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"vaultID","type":"uint64"},{"name":"accountID","type":"address"},{"name":"numLpTokens","type":"uint64"},{"name":"fromCurrency","type":"uint16"},{"name":"toCurrency","type":"uint16"},{"name":"exchangeRate","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"accountID":{"path":"","transform":"mainAccount"},"exchangeRate":{"path":"exchange_rate","scale":{"decimals":9,"kind":"fixed","server_rule":"Uint64ToStringPriceDecimals"},"scale_key":"ApiVaultRedeemV2Request_exchangeRate","transform":"scaled"},"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromCurrency":{"path":"from_currency","transform":"currencyId"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numLpTokens":{"path":"num_tokens","scale":{"decimals":6,"kind":"fixed","server_rule":"Uint64ToStringLpToken6Decimals"},"scale_key":"ApiVaultRedeemV2Request_numTokens","transform":"scaled"},"toCurrency":{"path":"to_currency","transform":"currencyId"},"vaultID":{"path":"vault_id","transform":"copy"}},"name":"VaultRedeemV3","type_hash":"0x0041a915dd4c05c7c4a826912cfd10269e6dd51bd2d89f24a5b4b575bb118f44","type_string":"VaultRedeemV3(uint64 vaultID,address accountID,uint64 numLpTokens,uint16 fromCurrency,uint16 toCurrency,uint64 exchangeRate,uint32 nonce,int64 expiration)","used_by":["vault.vault_redeem"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"signer","type":"address"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"signer":{"path":"address","transform":"address"}},"name":"WalletLogin","type_hash":"0x4451fb6c92ff3fc4a27d19a1cb3287041a7cacdd394d0988eca8af8549ace29b","type_string":"WalletLogin(address signer,uint32 nonce,int64 expiration)","used_by":["edge.wallet_login"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"fromAccount","type":"address"},{"name":"toEthAddress","type":"address"},{"name":"tokenCurrency","type":"uint8"},{"name":"numTokens","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromAccount":{"path":"from_account_id","transform":"address"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numTokens":{"path":"num_tokens","scale":{"currency_path":"currency","kind":"currency_balance_decimals","lookup":"balance_decimals of the currency named by the request's `currency` field (RPCGetCurrencyV1 -> CurrencyDetail.balance_decimals)","server_rule":"ApiWithdrawalRequest_numTokens"},"scale_key":"ApiWithdrawalRequest_numTokens","transform":"scaled"},"toEthAddress":{"path":"to_eth_address","transform":"address"},"tokenCurrency":{"path":"currency","transform":"currencyId"}},"name":"Withdrawal","type_hash":"0x2fdc0a1d89cd65000e141c89522ab3a0aa95182aba37a08842dc72a1992a0c3f","type_string":"Withdrawal(address fromAccount,address toEthAddress,uint8 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration)","used_by":["transfer.withdrawal"]},{"chain_id":{"path":"signature.chain_id","transform":"sig.chainId"},"fields":[{"name":"fromAccount","type":"address"},{"name":"toEthAddress","type":"address"},{"name":"tokenCurrency","type":"uint16"},{"name":"numTokens","type":"uint64"},{"name":"nonce","type":"uint32"},{"name":"expiration","type":"int64"}],"mapping":{"expiration":{"path":"signature.expiration","transform":"sig.expiration"},"fromAccount":{"path":"from_account_id","transform":"address"},"nonce":{"path":"signature.nonce","transform":"sig.nonce"},"numTokens":{"path":"num_tokens","scale":{"currency_path":"currency","kind":"currency_balance_decimals","lookup":"balance_decimals of the currency named by the request's `currency` field (RPCGetCurrencyV1 -> CurrencyDetail.balance_decimals)","server_rule":"ApiWithdrawalRequest_numTokens"},"scale_key":"ApiWithdrawalRequest_numTokens","transform":"scaled"},"toEthAddress":{"path":"to_eth_address","transform":"address"},"tokenCurrency":{"path":"currency","transform":"currencyId"}},"name":"WithdrawalV2","type_hash":"0x95cee98524289377640c5062cf8544d478f523ab193a43fd63cbd38a662657fd","type_string":"WithdrawalV2(address fromAccount,address toEthAddress,uint16 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration)","used_by":["transfer.withdrawal"]}]},"streams":[{"auth_required":true,"channel":"v1.algo.order","errors":[1000,1001,1002,1008,1015,1101,1102,1103,3000,3020],"feed_type":"WSAlgoOrderFeedDataV1","gateway":"trading","id":"algo_order.algo_order","kind":"event","method_name":"algo_order","name":"StreamAlgoOrderV1","namespace":"algo_order","payload_mode":"complete","payload_type":"AlgoOrder","selector":{"example":"<sub_account_id>-BTC_USDT_Perp","grammar":"<sub_account_id>[-<instrument>]","primary":[{"name":"sub_account_id","type":"uint64"},{"name":"instrument","optional":true,"type":"asset"}],"secondary":[]},"selector_type":"WSAlgoOrderFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.candle","errors":[1002,1101,1102,1103,3000,3040,3041,3042,3043],"feed_type":"WSCandlestickFeedDataV1","gateway":"market_data","id":"candlestick.candlestick","kind":"event","method_name":"candlestick","name":"StreamCandlestickV1","namespace":"candlestick","payload_mode":"complete","payload_type":"Candlestick","selector":{"example":"BTC_USDT_Perp@CI_1_M-TRADE","grammar":"<instrument>[@<interval>-<type>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"interval","type":"WsCandlestickInterval"},{"name":"type","type":"CandlestickType"}]},"selector_type":"WSCandlestickFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.fill","errors":[1000,1001,1002,1008,1101,1102,1103,3000,3020],"feed_type":"WSFillFeedDataV1","gateway":"trading","id":"execution.fill","kind":"event","method_name":"fill","name":"StreamFillV1","namespace":"execution","payload_mode":"complete","payload_type":"Fill","selector":{"example":"<sub_account_id>-BTC_USDT_Perp","grammar":"<sub_account_id>[-<instrument>]","primary":[{"name":"sub_account_id","type":"uint64"},{"name":"instrument","optional":true,"type":"asset"}],"secondary":[]},"selector_type":"WSFillFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.position","errors":[1000,1001,1002,1008,1101,1102,1103,3000,3007,3020],"feed_type":"WSPositionsFeedDataV1","gateway":"trading","id":"execution.positions","kind":"event","method_name":"positions","name":"StreamPositionsV1","namespace":"execution","payload_mode":"complete","payload_type":"Positions","selector":{"example":"<sub_account_id>-BTC_USDT_Perp","grammar":"<sub_account_id>[-<instrument>]","primary":[{"name":"sub_account_id","type":"uint64"},{"name":"instrument","optional":true,"type":"asset"}],"secondary":[]},"selector_type":"WSPositionsFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.cancel","errors":[1000,1001,1002,1008,1101,1102,1103,3000,3020],"feed_type":"WSCancelFeedDataV1","gateway":"trading","id":"order.cancel_status","kind":"event","method_name":"cancel_status","name":"StreamCancelStatusV1","namespace":"order","payload_mode":"complete","payload_type":"CancelStatusFeed","selector":{"example":"<sub_account_id>","grammar":"<sub_account_id>","primary":[{"name":"sub_account_id","type":"uint64"}],"secondary":[]},"selector_type":"WSCancelFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.order","errors":[1000,1001,1002,1008,1101,1102,1103,3000,3020],"feed_type":"WSOrderFeedDataV1","gateway":"trading","id":"order.order","kind":"event","method_name":"order","name":"StreamOrderV1","namespace":"order","payload_mode":"complete","payload_type":"Order","selector":{"example":"<sub_account_id>-BTC_USDT_Perp","grammar":"<sub_account_id>[-<instrument>]","primary":[{"name":"sub_account_id","type":"uint64"},{"name":"instrument","optional":true,"type":"asset"}],"secondary":[]},"selector_type":"WSOrderFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.state","errors":[1000,1001,1002,1008,1101,1102,1103,3000,3020],"feed_type":"WSOrderStateFeedDataV1","gateway":"trading","id":"order.order_state","kind":"event","method_name":"order_state","name":"StreamOrderStateV1","namespace":"order","payload_mode":"complete","payload_type":"OrderStateFeed","selector":{"example":"<sub_account_id>-BTC_USDT_Perp","grammar":"<sub_account_id>[-<instrument>]","primary":[{"name":"sub_account_id","type":"uint64"},{"name":"instrument","optional":true,"type":"asset"}],"secondary":[]},"selector_type":"WSOrderStateFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.book.d","errors":[1002,1004,1101,1102,1103,3000,3030,7725],"feed_type":"WSOrderbookLevelsFeedDataV1","gateway":"market_data","id":"orderbook.orderbook_delta","kind":"delta","method_name":"orderbook_delta","name":"StreamOrderbookDeltaV1","namespace":"orderbook","payload_mode":"complete","payload_type":"OrderbookLevels","selector":{"example":"BTC_USDT_Perp@500-50","grammar":"<instrument>[@<rate>-<depth>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"rate","type":"uint32"},{"name":"depth","optional":true,"type":"uint32"}]},"selector_type":"WSOrderbookLevelsFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.book.s","errors":[1002,1004,1101,1102,1103,3000,3030,3031,7725],"feed_type":"WSOrderbookLevelsFeedDataV1","gateway":"market_data","id":"orderbook.orderbook_snap","kind":"snapshot","method_name":"orderbook_snap","name":"StreamOrderbookSnapV1","namespace":"orderbook","payload_mode":"complete","payload_type":"OrderbookLevels","selector":{"example":"BTC_USDT_Perp@500-50","grammar":"<instrument>[@<rate>-<depth>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"rate","type":"uint32"},{"name":"depth","optional":true,"type":"uint32"}]},"selector_type":"WSOrderbookLevelsFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.quote","errors":[1000,1001,1002,1101,1102,1103,3000,3020],"feed_type":"WSRfqQuoteFeedDataV1","gateway":"trading","id":"rfq.rfq_quote","kind":"event","method_name":"rfq_quote","name":"StreamRfqQuoteV1","namespace":"rfq","payload_mode":"complete","payload_type":"RfqQuoteFeed","selector":{"example":"<sub_account_id>-AAPL_USDC_SFP","grammar":"<sub_account_id>[-<instrument>]","primary":[{"name":"sub_account_id","type":"uint64"},{"name":"instrument","optional":true,"type":"asset"}],"secondary":[]},"selector_type":"WSRfqQuoteFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.mini.d","errors":[1002,1004,1101,1102,1103,3000,3030,7725],"feed_type":"WSMiniTickerFeedDataV1","gateway":"market_data","id":"ticker.mini_ticker_delta","kind":"delta","method_name":"mini_ticker_delta","name":"StreamMiniTickerDeltaV1","namespace":"ticker","payload_mode":"partial","payload_type":"MiniTicker","selector":{"example":"BTC_USDT_Perp@500","grammar":"<instrument>[@<rate>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"rate","type":"uint32"}]},"selector_type":"WSMiniTickerFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.mini.s","errors":[1002,1004,1101,1102,1103,3000,3030,7725],"feed_type":"WSMiniTickerFeedDataV1","gateway":"market_data","id":"ticker.mini_ticker_snap","kind":"snapshot","method_name":"mini_ticker_snap","name":"StreamMiniTickerSnapV1","namespace":"ticker","payload_mode":"complete","payload_type":"MiniTicker","selector":{"example":"BTC_USDT_Perp@500","grammar":"<instrument>[@<rate>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"rate","type":"uint32"}]},"selector_type":"WSMiniTickerFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.ticker.d","errors":[1002,1004,1101,1102,1103,3000,3030],"feed_type":"WSTickerFeedDataV1","gateway":"market_data","id":"ticker.ticker_delta","kind":"delta","method_name":"ticker_delta","name":"StreamTickerDeltaV1","namespace":"ticker","payload_mode":"partial","payload_type":"Ticker","selector":{"example":"BTC_USDT_Perp@500","grammar":"<instrument>[@<rate>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"rate","type":"uint32"}]},"selector_type":"WSTickerFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.ticker.s","errors":[1002,1004,1101,1102,1103,3000,3030],"feed_type":"WSTickerFeedDataV1","gateway":"market_data","id":"ticker.ticker_snap","kind":"snapshot","method_name":"ticker_snap","name":"StreamTickerSnapV1","namespace":"ticker","payload_mode":"complete","payload_type":"Ticker","selector":{"example":"BTC_USDT_Perp@500","grammar":"<instrument>[@<rate>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"rate","type":"uint32"}]},"selector_type":"WSTickerFeedSelectorV1","sequenced":true},{"auth_required":false,"channel":"v1.trade","errors":[1002,1101,1102,1103,3000,3011,3013,7725],"feed_type":"WSTradeFeedDataV1","gateway":"market_data","id":"trade.trade","kind":"event","method_name":"trade","name":"StreamTradeV1","namespace":"trade","payload_mode":"complete","payload_type":"Trade","selector":{"example":"BTC_USDT_Perp@500","grammar":"<instrument>[@<limit>]","primary":[{"name":"instrument","type":"asset"}],"secondary":[{"name":"limit","type":"uint32"}]},"selector_type":"WSTradeFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.deposit","errors":[1001,1008,1101,1102,1103],"feed_type":"WSDepositFeedDataV1","gateway":"trading","id":"transfer.deposit","kind":"event","method_name":"deposit","name":"StreamDepositV1","namespace":"transfer","payload_mode":"complete","payload_type":"Deposit","selector":{"example":"<main_account_id>","grammar":"<main_account_id>","primary":[{"name":"main_account_id","type":"address"}],"secondary":[]},"selector_type":"WSDepositFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.transfer","errors":[1001,1008,1101,1102,1103,3020],"feed_type":"WSTransferFeedDataV1","gateway":"trading","id":"transfer.transfer","kind":"event","method_name":"transfer","name":"StreamTransferV1","namespace":"transfer","payload_mode":"complete","payload_type":"TransferHistory","selector":{"example":"<main_account_id>-<sub_account_id>","grammar":"<main_account_id>[-<sub_account_id>]","primary":[{"name":"main_account_id","type":"address"},{"name":"sub_account_id","optional":true,"type":"uint64"}],"secondary":[]},"selector_type":"WSTransferFeedSelectorV1","sequenced":true},{"auth_required":true,"channel":"v1.withdrawal","errors":[1001,1008,1101,1102,1103],"feed_type":"WSWithdrawalFeedDataV1","gateway":"trading","id":"transfer.withdrawal","kind":"event","method_name":"withdrawal","name":"StreamWithdrawalV1","namespace":"transfer","payload_mode":"complete","payload_type":"Withdrawal","selector":{"example":"<main_account_id>","grammar":"<main_account_id>","primary":[{"name":"main_account_id","type":"address"}],"secondary":[]},"selector_type":"WSWithdrawalFeedSelectorV1","sequenced":true}],"transport":{"encoding":"JSON in one of two encodings with the same calls and values: full field names (http.path_template, ws.path) or short lite names (lite). An SDK uses lite for every gateway call and stream unless the client chooses full; edge stays full.","http":{"content_type":"application/json","error_body":{"description":"Any non-2xx response from a gateway RPC (gatewayerror.ErrCode.JSONMarshalAPI). request_id is omitted when 0.","example":"{\"code\":1003,\"message\":\"Request could not be processed due to malformed syntax\",\"status\":400}","fields":{"code":"uint16 error code (see errors)","message":"string","request_id":"uint32, optional","status":"HTTP status, repeated in the body"}},"headers":{"Cookie":"gravity=<session> when auth_required","X-Grvt-Account-Id":"value returned by login when auth_required"},"method":"POST","path_template":"/full/v{version}{route}","rate_limit_headers":["X-RateLimit-Limit","X-RateLimit-Remaining"],"server_time":{"method":"GET","path":"/time","response":"{\"server_time\": <unix milliseconds>} (served by both gateways)"},"success_body":"the RPC's response type, unwrapped (no JSON-RPC envelope)"},"lite":{"description":"The same API with short JSON field names: same calls, routes, WS methods, stream channels, values and enums. Every field of every type takes its types[].fields[].lite name, including the JSON-RPC envelope (ws.request_type, ws.response_type, ws.error_type) and the stream frames (streams[].feed_type). Edge routes have no lite form and always use full names.","error_example":"{\"c\":1003,\"m\":\"Request could not be processed due to malformed syntax\",\"s\":400}","http_error_body":{"code":"c","message":"m","request_id":"ri","status":"s"},"http_path_template":"/lite/v{version}{route}","notes":["Lite names are unique only within one type (\"s\" is the stream in a frame, the size in a book level and the status of an instrument): encode and decode per type, never with one global table.","The lite decoder ignores keys it does not know, so a full-name request sent to a lite path reads as empty fields instead of failing. Never mix the encodings on one connection or call.","The server may send keys the contract does not list (in both encodings); decoders must skip unknown keys.","GET /time is the same in both encodings."],"ws_path":"/ws/lite"},"notes":["RPCs are registered for clients only when their visibility allows it; admin-only routes are under /admin and are not in this contract.","Selectors: <primary fields joined by '-'>@<secondary fields joined by '-'>, see streams[].selector."],"ws":{"error_body":{"description":"Error response on WS (gatewayerror.ErrCode.JSONMarshalWS).","example":"{\"jsonrpc\":\"2.0\",\"id\":7,\"error\":{\"code\":1100,\"message\":\"Stream not supported on this gateway\"},\"method\":\"subscribe\"}","fields":{"error":"{code, message}","id":"request id","jsonrpc":"\"2.0\"","method":"the request's method"}},"error_type":"Error","feed_message":"Stream data arrives as the stream's feed_type object (no JSON-RPC envelope): {stream, selector, sequence_number, prev_sequence_number, feed}.","handshake_auth":"Send the gravity cookie and X-Grvt-Account-Id header on the WebSocket upgrade request; required before subscribing to auth_required streams or calling auth_required RPCs.","id_range":"uint32; 0 or absent means the response carries no id","other_paths":{"/ws":"legacy (pre JSON-RPC) protocol"},"path":"/ws/full","protocol":"JSON-RPC 2.0 text frames","request_type":"JSONRPCRequest","response_type":"JSONRPCResponse","rpc_method":"Every RPC is also callable over WS: method = ws_method (e.g. v1/create_order), params = the RPC request object, result = the RPC response object.","stream_methods":[{"method":"subscribe","params":"WSSubscribeParams","result":"WSSubscribeResult"},{"method":"unsubscribe","params":"WSUnsubscribeParams","result":"WSUnsubscribeResult"},{"method":"unsubscribe_all","note":"server comment: not thread-safe, unused in production"},{"method":"list","note":"server comment: not thread-safe, unused in production"}]}},"types":[{"fields":[{"description":"Gravity has acknowledged that the request has been successfully received and it will process it in the backend","example":"true","json_type":"boolean","kind":"primitive","lite":"a","name":"ack","type":"bool"}],"name":"Ack"},{"description":"Used to acknowledge a request has been received and will be processed","fields":[{"description":"The Ack Object","json_type":"Ack","kind":"struct","lite":"r","name":"result","type":"Ack"}],"is_root":true,"name":"AckResponse"},{"fields":[{"description":"The main account ID of the account to which the summary belongs","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","type":"address"},{"description":"Total equity of the main (+ sub) account, denominated in USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"te","name":"total_equity","type":"string"},{"array_depth":1,"description":"The list of spot assets owned by this main (+ sub) account, and their balances","json_type":"SpotBalance","kind":"struct","lite":"sb","name":"spot_balances","nullable":true,"type":"SpotBalance"},{"array_depth":1,"description":"The list of vault investments held by this main account","json_type":"VaultInvestment","kind":"struct","lite":"vi","name":"vault_investments","nullable":true,"type":"VaultInvestment"},{"description":"Deprecated: Use totalSubAccountEquity instead","example":"3945034.23","json_type":"string","kind":"decimal","lite":"ts","name":"total_sub_account_balance","type":"string"},{"description":"Total equity of the sub accounts, denominated in USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"ts1","name":"total_sub_account_equity","type":"string"},{"description":"Total amount of the vault investments, denominated in USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"tv","name":"total_vault_investments_balance","type":"string"},{"description":"Total available balance of the main account, denominated in USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"ts2","name":"total_sub_account_available_balance","type":"string"},{"description":"Total entry (initial investment) amount of the open investments, denominated in USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"tu","name":"total_usd_notional_invested","type":"string"}],"name":"AggregatedAccountSummary"},{"description":"An algo order is the parent order of an algorithmic execution strategy. Instead of resting on the orderbook itself, it is a set of instructions that GRVT Backend executes on your behalf by placing and managing sub-orders, until the algo order is filled, cancelled or expired.\n\nAlgo trading must be enabled (opted in) for the sub account before an algo order can be created.\n\nThe algo order is not signed by you. Sub-orders are placed by GRVT Backend and never appear on the `v1.order` and `v1.state` streams; follow the algo order itself through the `v1.algo.order` stream.\n\nThe `type` field selects the strategy. Currently only `CHASE` is supported.\n\n**CHASE**: a post-only limit order that automatically follows the market. The order is placed at the best bid (buy) or best ask (sell), and periodically re-priced to keep up with the market, until it is filled, cancelled or expired. Because it is always post-only, it only ever adds liquidity and is never executed as a taker. The chase parameters are in `metadata.chase`.<ul><li>An optional `trigger` keeps the algo order pending until the trigger condition crosses; a chase order without a trigger starts chasing immediately.</li><li>A partial fill does not stop the chase: the unfilled remainder keeps being re-priced.</li></ul>An algo order is `PENDING` while it waits for its trigger, `OPEN` while it is actively chasing (including while held at the maximum distance), and `FILLED`, `CANCELLED` or `REJECTED` once terminated.","fields":[{"default":"0","description":"Set by the server. A unique 128-bit identifier for the algo order, assigned by Trade Data","example":"0x1028403","json_type":"string","kind":"primitive","lite":"ao","name":"algo_order_id","optional":true,"type":"uint128"},{"description":"The subaccount initiating the algo order","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The type of the algo order","example":"CHASE","json_type":"AlgoOrderType","kind":"enum","lite":"t","name":"type","type":"AlgoOrderType"},{"default":"false","description":"If True, every sub-order must be a maker order. Chase orders are always post-only","example":true,"json_type":"boolean","kind":"primitive","lite":"po","name":"post_only","optional":true,"type":"bool"},{"default":"false","description":"If True, every sub-order must reduce the position size, or be cancelled","example":false,"json_type":"boolean","kind":"primitive","lite":"ro","name":"reduce_only","optional":true,"type":"bool"},{"description":"The single leg traded by this algo order","json_type":"AlgoOrderLeg","kind":"struct","lite":"l","name":"leg","type":"AlgoOrderLeg"},{"description":"Algo order metadata, including the type-specific parameters","json_type":"AlgoOrderMetadata","kind":"struct","lite":"m","name":"metadata","type":"AlgoOrderMetadata"},{"description":"Set by the server. The current state of the algo order","json_type":"AlgoOrderState","kind":"struct","lite":"s","name":"state","optional":true,"type":"AlgoOrderState"},{"description":"The main account ID of the builder","example_placeholder":"GRVT_MAIN_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"b","name":"builder","type":"address"},{"description":"Builder fee charged for every sub-order, expressed as a percentage (e.g., 0.001 means 0.001%).","example":"0.001","json_type":"string","kind":"decimal","lite":"bf","name":"builder_fee","type":"string"}],"name":"AlgoOrder"},{"fields":[{"description":"The instrument to trade","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The total number of assets to trade across all sub-orders. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"10.5","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"Specifies if the algo order is a buy or sell","example":true,"json_type":"boolean","kind":"primitive","lite":"ib","name":"is_buying_asset","type":"bool"}],"name":"AlgoOrderLeg"},{"description":"Metadata fields are used to support Backend only operations.\nType-specific parameters live in the nested struct matching the algo order type.","fields":[{"description":"A unique identifier for the active algo order within a subaccount, specified by the client\nThis field can be used for algo order cancellation","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","type":"uint64"},{"default":"0","description":"Set by the server. Time at which the algo order was received by GRVT in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ct","name":"create_time","optional":true,"type":"timestamp"},{"description":"Trigger fields. If set, the algo order stays pending until the trigger price is crossed","json_type":"TriggerOrderMetadata","kind":"struct","lite":"t","name":"trigger","optional":true,"type":"TriggerOrderMetadata"},{"description":"Specifies the broker who brokered the algo order","example":"BROKER_CODE","json_type":"BrokerTag","kind":"enum","lite":"b","name":"broker","optional":true,"type":"BrokerTag"},{"default":"0","description":"Time at which the algo order expires, expressed in unix nanoseconds. Defaults to and must be capped at 90 days","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"e","name":"expiry","optional":true,"type":"timestamp"},{"description":"Chase order parameters. Set only when the algo order type is CHASE","json_type":"ChaseAlgoOrderMetadata","kind":"struct","lite":"c","name":"chase","optional":true,"type":"ChaseAlgoOrderMetadata"}],"name":"AlgoOrderMetadata"},{"fields":[{"description":"The status of the algo order","example":"PENDING","json_type":"OrderStatus","kind":"enum","lite":"s","name":"status","type":"OrderStatus"},{"description":"The reason for rejection or cancellation","example":"CLIENT_CANCEL","json_type":"OrderRejectReason","kind":"enum","lite":"rr","name":"reject_reason","type":"OrderRejectReason"},{"description":"The total number of assets traded across all sub-orders","example":"1.5","json_type":"string","kind":"decimal","lite":"ts","name":"traded_size","type":"string"},{"description":"The average fill price across all sub-orders","example":"60000.4","json_type":"string","kind":"decimal","lite":"af","name":"avg_fill_price","type":"string"},{"default":"0","description":"Time at which the algo order was triggered in unix nanoseconds, 0 if not triggered yet","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"tt","name":"trigger_time","optional":true,"type":"timestamp"},{"description":"Time at which the algo order was updated by GRVT in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ut","name":"update_time","type":"timestamp"},{"description":"Chase order state. Set only when the algo order type is CHASE","json_type":"ChaseOrderState","kind":"struct","lite":"c","name":"chase","optional":true,"type":"ChaseOrderState"},{"description":"The latest sub-order placed for this algo order, 0 until the first sub-order is placed","example":"0x1028403","json_type":"string","kind":"primitive","lite":"ls","name":"last_sub_order_id","type":"uint128"}],"name":"AlgoOrderState"},{"description":"The request to add margin to a isolated position","fields":[{"description":"The sub account ID to add isolated margin in or remove margin from","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The instrument to add margin into, or remove margin from","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The amount of margin to add to the position, positive to add, negative to remove, in the quote asset. Decimal string, e.g. \"12.5\". Scaled to an integer only inside the signature.","example":"123456.78","json_type":"string","kind":"decimal","lite":"a","name":"amount","type":"string"},{"description":"The signature of this operation","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiAddIsolatedPositionMarginRequest"},{"description":"The response to add margin to a isolated position","fields":[{"description":"Whether the margin mode and leverage was set successfully","example":"true","json_type":"boolean","kind":"primitive","lite":"s","name":"success","type":"bool"}],"is_root":true,"name":"ApiAddIsolatedPositionMarginResponse"},{"description":"The aggregated account summary, that reports the total equity and spot balances of a funding (main) account, and its constituent trading (sub) accounts","fields":[{"description":"The aggregated account summary","json_type":"AggregatedAccountSummary","kind":"struct","lite":"r","name":"result","type":"AggregatedAccountSummary"}],"is_root":true,"name":"ApiAggregatedAccountSummaryResponse"},{"description":"Retrieves the algo order history for the account. Returns one row per terminated or filled parent algo order, not per sub-order.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The algo order type filter to apply. If nil, this defaults to all types. Otherwise, only entries matching the filter will be returned","example":["CHASE"],"json_type":"AlgoOrderType","kind":"enum","lite":"t","name":"type","nullable":true,"optional":true,"type":"AlgoOrderType"},{"default":"0","description":"The start time to apply in nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to apply in nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiAlgoOrderHistoryRequest"},{"fields":[{"array_depth":1,"description":"The algo orders matching the request filter","json_type":"AlgoOrder","kind":"struct","lite":"r","name":"result","nullable":true,"type":"AlgoOrder"},{"description":"The cursor to indicate when to start the query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","type":"string"}],"is_root":true,"name":"ApiAlgoOrderHistoryResponse"},{"description":"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.","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The `algo_order_id` whose sub-orders are retrieved","example":"0x1028403","json_type":"string","kind":"primitive","lite":"ao","name":"algo_order_id","type":"uint128"}],"is_root":true,"name":"ApiAlgoSubOrderHistoryRequest"},{"fields":[{"array_depth":1,"description":"The sub-orders of the requested algo order","json_type":"Order","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Order"}],"is_root":true,"name":"ApiAlgoSubOrderHistoryResponse"},{"fields":[{"description":"The main account ID of the builder","example_placeholder":"GRVT_MAIN_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"ba","name":"builder_account_id","type":"address"},{"description":"The maximum fee rate for the authorized builder","example":0.001,"json_type":"string","kind":"decimal","lite":"mf","name":"max_futures_fee_rate","type":"string"},{"description":"The maximum fee rate for the authorized builder","example":0.0001,"json_type":"string","kind":"decimal","lite":"ms","name":"max_spot_fee_rate","type":"string"}],"name":"ApiAuthorizedBuilder"},{"description":"The request to get the historical builder trade of a builder\nThe history is returned in reverse chronological order\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"default":"0","description":"The start time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the next query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiBuilderFillHistoryRequest"},{"fields":[{"array_depth":1,"description":"The builder fill history matching the request builder account","json_type":"BuilderFillHistory","kind":"struct","lite":"r","name":"result","nullable":true,"type":"BuilderFillHistory"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiBuilderFillHistoryResponse"},{"description":"Bulk create, cancel, or cancel-replace orders for a single subaccount.\n\nA 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.\n\n**Rules**\n- Up to 100 entries in each of `orders`, `order_i_ds`, and `client_order_i_ds`\n- All create orders must target the same instrument\n- `client_order_id`s within `orders` must be unique\n- `order_i_ds` and `client_order_i_ds` are mutually exclusive; supplying both is rejected\n- Rate limits: N creates consume N create_order tokens; any cancels consume 1 cancel_order token\n\n**BulkCreate**\n\nPopulate `orders` only; leave `order_i_ds` and `client_order_i_ds` empty. A batch may not mix multiple normal orders with trigger orders.\n\nTo mark an order as TP or SL, populate its `metadata.trigger` field; see `TriggerOrderMetadata` for details.\n\nA 'parent' order is a normal order whose linked TP/SL trigger orders become active once the parent is fully filled.\n\nSupported combinations:\n- **Normal orders (non-TPSL)**: one or many orders\n- **Standalone TP**: 1 TP order\n- **Standalone SL**: 1 SL order\n- **OCO** (2 orders: 1 TP + 1 SL): same asset, same size, same side\n- **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.\n- **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.\n\n**BulkCancel**\n\nLeave `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.\n\n**BulkCancelReplace**\n\nPopulate `orders` together with `order_i_ds` or `client_order_i_ds`. Ids below refer to entries in whichever id list you chose.\n\n*Normal orders (non-TPSL)*: the batch is processed as all cancels first, then all creates.\n\n*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.\n- **Standalone TP / Standalone SL**: cancel 1 id (the existing trigger order) + create 1 new trigger order with matching `triggerType`.\n- **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.\n- **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.\n- **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.","fields":[{"description":"The subaccount ID of the user creating the request","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"description":"Orders to create or replace, supply up to 100 orders","json_type":"Order","kind":"struct","lite":"o","name":"orders","nullable":true,"optional":true,"type":"Order"},{"array_depth":1,"description":"The 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)","json_type":"string","kind":"primitive","lite":"oi","name":"order_i_ds","nullable":true,"optional":true,"sdk_name":"order_ids","type":"uint128"},{"array_depth":1,"description":"The 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)","json_type":"string","kind":"primitive","lite":"co","name":"client_order_i_ds","nullable":true,"optional":true,"sdk_name":"client_order_ids","type":"uint64"},{"default":"0","description":"How long a cancel by `client_order_id` keeps waiting, in milliseconds, for an order that hasn't arrived yet. A cancel can overtake the create it refers to; an order with that `client_order_id` that arrives within this time is cancelled instead of placed. A cancel by `order_id` ignores this field.\n\nUnlike `cancel_order`, `bulk_orders` doesn't check this value: it isn't rounded, has no minimum and no 5000 ms limit, and `'0'` or a missing value means the cancel doesn't wait. The wait ends at the next 100 ms boundary after it runs out.","example":"500","json_type":"string","kind":"primitive","lite":"tt","name":"time_to_live_ms","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiBulkOrdersRequest"},{"fields":[{"array_depth":1,"description":"The orders in same order as requested","json_type":"Order","kind":"struct","lite":"o","name":"orders","nullable":true,"type":"Order"},{"array_depth":1,"description":"A list of acks for the cancelled orders","json_type":"Ack","kind":"struct","lite":"ca","name":"cancel_acks","nullable":true,"type":"Ack"}],"is_root":true,"name":"ApiBulkOrdersResponse"},{"description":"Cancel an algo order for this trading 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.","fields":[{"description":"The subaccount ID cancelling the algo order","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"0","description":"Cancel the algo order with this `algo_order_id`","example":"0x1028403","json_type":"string","kind":"primitive","lite":"ao","name":"algo_order_id","optional":true,"type":"uint128"},{"default":"0","description":"Cancel the algo order with this `client_order_id`","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiCancelAlgoOrderRequest","one_of":["algo_order_id","client_order_id"]},{"description":"Cancel all orders on the orderbook for this trading account. This may not match new orders in flight.","fields":[{"description":"The subaccount ID cancelling all orders","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be cancelled","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be cancelled","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be cancelled","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"}],"is_root":true,"name":"ApiCancelAllOrdersRequest"},{"description":"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.\n\n| `countdown_time` (ms) | Effect |\n|---|---|\n| omitted, or 0 to 999 | Stops the countdown (999 rounds down to 0). Nothing is cancelled. |\n| 1000 to 300999 | Rounded down to whole seconds, then (re)starts the countdown from now. |\n| 301000 or more | Rejected with error 6000 (*Countdown time is bigger than 300s supported*). |\n\nScope: 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`.","fields":[{"description":"The subaccount ID cancelling the orders for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"0","description":"Countdown in milliseconds, as a string, e.g. \"120000\" (120 s). Omitted or under 1000 stops the countdown; above 300999 is rejected (error 6000). See the table in the call description.","example":"120000","json_type":"string","kind":"primitive","lite":"ct","name":"countdown_time","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiCancelOnDisconnectRequest"},{"description":"Cancel an order on the orderbook for this trading account. Either `order_id` or `client_order_id` must be provided.","fields":[{"description":"The subaccount ID cancelling the order","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"0","description":"Cancel the order with this `order_id`","example":"0x1028403","json_type":"string","kind":"primitive","lite":"oi","name":"order_id","optional":true,"type":"uint128"},{"default":"0","description":"Cancel the order with this `client_order_id`","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","optional":true,"type":"uint64"},{"default":"100","description":"How long a cancel by `client_order_id` keeps waiting, in milliseconds, for an order that hasn't arrived yet. A cancel can overtake the create it refers to; an order with that `client_order_id` that arrives within this time is cancelled instead of placed. A cancel by `order_id` ignores this field, since an order only has an `order_id` once the exchange has it.\n\nThe value is rounded down to a multiple of 100 ms (`\"670\"` becomes `\"600\"`). `\"0\"`, a missing value, or a value below the exchange's minimum gets the minimum. More than 5000 is rejected with `2301`. If several cancels for the same order overlap in time, only the first counts.","example":"500","json_type":"string","kind":"primitive","lite":"tt","name":"time_to_live_ms","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiCancelOrderRequest","one_of":["order_id","client_order_id"]},{"description":"Cancels an open RFQ identified by its `rfq_id` before it is accepted or expires.\nOn 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`.)","fields":[{"description":"The subaccount ID cancelling the RFQ","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"Cancel the RFQ with this `rfq_id`","json_type":"string","kind":"primitive","lite":"ri","name":"rfq_id","type":"uint128"}],"is_root":true,"name":"ApiCancelRfqRequest"},{"description":"Kline/Candlestick bars for an instrument. Klines are uniquely identified by their instrument, type, interval, and open time.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The interval of each candlestick","example":"CI_1_M","json_type":"CandlestickInterval","kind":"enum","lite":"i1","name":"interval","type":"CandlestickInterval"},{"description":"The type of candlestick data to retrieve. Note: For spot instruments, only `trade` and `mid` are available","example":"TRADE","json_type":"CandlestickType","kind":"enum","lite":"t","name":"type","type":"CandlestickType"},{"default":"0","description":"Start time of kline data in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"End time of kline data in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiCandlestickRequest"},{"fields":[{"array_depth":1,"description":"The candlestick result set for given interval","json_type":"Candlestick","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Candlestick"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiCandlestickResponse"},{"description":"Platform-wide collateral configuration and usage for a single asset","fields":[{"description":"The asset","example":"ETH","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"CVR, expressed in percentage points. 0 = not usable as collateral.","example":95,"json_type":"string","kind":"decimal","lite":"cv","name":"collateral_value_ratio","type":"string"},{"description":"CDC limit, native units. 0 = untracked / unlimited.","example":"1000.0","json_type":"string","kind":"decimal","lite":"cd","name":"collateral_deposit_cap","type":"string"},{"description":"MBR - per-asset ceiling on the annual borrow rate, expressed in percentage points; the tier borrow rate never exceeds this.","example":10,"json_type":"string","kind":"decimal","lite":"mb","name":"max_borrow_rate","type":"string"},{"description":"Effective manual-repay/convert fee = max((1-CVR)/MRR, RFR), expressed in percentage points.","example":0.625,"json_type":"string","kind":"decimal","lite":"mr","name":"manual_repayment_fee_rate","type":"string"},{"description":"Collateral-deposit-cap utilization status: normal / reduceOnly / autoExchange.","json_type":"CDCStatus","kind":"enum","lite":"cs","name":"cdc_status","type":"CDCStatus"},{"description":"Show this currency only when the sub account holds a balance of it","example":false,"json_type":"boolean","kind":"primitive","lite":"so","name":"show_only_when_held","type":"bool"},{"description":"The vault whose shares this currency is; 0 for an ordinary currency.","example":"123456789","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"}],"name":"ApiCollateralAssetInfo"},{"description":"The current effective collateral state of a single currency.","fields":[{"description":"The currency whose collateral state is being reported","example":"ETH","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"Whether this currency currently counts as collateral for the sub account","example":true,"json_type":"boolean","kind":"primitive","lite":"e","name":"enabled","type":"bool"},{"description":"The sub account cannot turn this currency off as collateral","example":false,"json_type":"boolean","kind":"primitive","lite":"l","name":"locked","type":"bool"}],"name":"ApiCollateralPreferenceStatus"},{"description":"Create an algo order for this trading account. Algo trading must be enabled (opted in) for the sub account before creating an algo order. The algo order is unsigned; GRVT Backend places signed sub-orders on its behalf. Currently only `CHASE` is supported.","fields":[{"description":"The algo order to create","json_type":"AlgoOrder","kind":"struct","lite":"o","name":"order","type":"AlgoOrder"}],"is_root":true,"name":"ApiCreateAlgoOrderRequest"},{"fields":[{"description":"The created algo order","json_type":"AlgoOrder","kind":"struct","lite":"r","name":"result","type":"AlgoOrder"}],"is_root":true,"name":"ApiCreateAlgoOrderResponse"},{"description":"Create an order on the orderbook for this trading account. STABLE_PERP orders require the sub-account to be in multi-asset mode.","fields":[{"description":"The order to create","json_type":"Order","kind":"struct","lite":"o","name":"order","type":"Order"}],"is_root":true,"name":"ApiCreateOrderRequest"},{"fields":[{"description":"The created order","json_type":"Order","kind":"struct","lite":"r","name":"result","type":"Order"}],"is_root":true,"name":"ApiCreateOrderResponse"},{"description":"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.\n\nEnd-to-end flow:\n1. The taker submits an RFQ here. (In the GRVT UI, entering a size on the trade page is the RFQ.)\n2. GRVT broadcasts the RFQ to makers on the `v1.rfq` stream; makers respond with private quotes.\n3. 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.\n4. 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.\n\nThe 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.\nThe sub-account must be in multi-asset mode.","fields":[{"description":"The RFQ to create","json_type":"Rfq","kind":"struct","lite":"r","name":"rfq","type":"Rfq"}],"is_root":true,"name":"ApiCreateRfqRequest"},{"fields":[{"description":"The created RFQ","json_type":"Rfq","kind":"struct","lite":"r","name":"rfq","type":"Rfq"}],"is_root":true,"name":"ApiCreateRfqResponse"},{"description":"The request to get the historical deposits of an account\nThe history is returned in reverse chronological order\nBoth finalized and pending deposits are returned, and pending deposits are indicated by an empty `confirmedTime` field.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li><b>A single call silently truncates at `limit` and returns no error.</b> 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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"array_depth":1,"description":"The token currency to query for, if nil or empty, return all deposits. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"c","name":"currency","nullable":true,"type":"string"},{"default":"0","description":"The start time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The page size for a single response. Defaults to 500; Max 1000. This caps one page only — omitting it does NOT return everything, it applies the 500 default. To get the full result set, follow the `next` cursor until it is empty.","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the next query from","example":"","json_type":"string","kind":"primitive","lite":"c1","name":"cursor","optional":true,"type":"string"},{"description":"Main account ID being queried. By default, applies the requestor's main account ID.","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","optional":true,"type":"address"}],"is_root":true,"name":"ApiDepositHistoryRequest"},{"fields":[{"array_depth":1,"description":"The deposit history matching the request account","json_type":"DepositHistory","kind":"struct","lite":"r","name":"result","nullable":true,"type":"DepositHistory"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiDepositHistoryResponse"},{"description":"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.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"},{"default":"0","description":"The start time to apply in unix nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to apply in unix nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiFillHistoryRequest"},{"fields":[{"array_depth":1,"description":"The private trades matching the request asset","json_type":"Fill","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Fill"},{"description":"The cursor to indicate when to start the query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","type":"string"}],"is_root":true,"name":"ApiFillHistoryResponse"},{"description":"The funding account summary, that reports the total equity and spot balances of a funding (main) account","fields":[{"description":"The funding account summary","json_type":"FundingAccountSummary","kind":"struct","lite":"r","name":"result","type":"FundingAccountSummary"},{"description":"Client fee tier at the time of query","json_type":"ClientTier","kind":"struct","lite":"t","name":"tier","type":"ClientTier"}],"is_root":true,"name":"ApiFundingAccountSummaryResponse"},{"description":"Query for all historical funding payments made by a single account.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"all","description":"The perpetual instrument to filter for","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"type":"asset"},{"default":"0","description":"The start time to apply in unix nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to apply in unix nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"}],"is_root":true,"name":"ApiFundingPaymentHistoryRequest"},{"fields":[{"array_depth":1,"description":"The funding payments matching the request asset","json_type":"FundingPayment","kind":"struct","lite":"r","name":"result","nullable":true,"type":"FundingPayment"},{"description":"The cursor to indicate when to start the query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","type":"string"}],"is_root":true,"name":"ApiFundingPaymentHistoryResponse"},{"fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The funding rate of the instrument, expressed in percentage points. Absent for stable perps, which have `funding_rate_long_apr_pct` and `funding_rate_short_apr_pct` instead.","example":0.0003,"json_type":"string","kind":"decimal","lite":"fr","name":"funding_rate","optional":true,"type":"string"},{"description":"The funding timestamp of the funding rate, expressed in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ft","name":"funding_time","type":"timestamp"},{"description":"The mark price of the instrument at funding timestamp. Decimal string, e.g. \"65000.5\"; up to 9 decimals. For stable perps, the index price the charge used.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","type":"string"},{"description":"Deprecated: Refer to `funding_rate` instead. Will be removed in a future release. Absent for stable perps.","example":0.0003,"json_type":"string","kind":"decimal","lite":"fr1","name":"funding_rate_8_h_avg","optional":true,"type":"string"},{"description":"Funding interval in hours (e.g. 1/4/8/etc).","example":8,"json_type":"integer","kind":"primitive","lite":"fi","name":"funding_interval_hours","type":"uint8"},{"description":"Stable 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). Absent for other kinds.","example":"-5.5","json_type":"string","kind":"decimal","lite":"fr2","name":"funding_rate_long_apr_pct","optional":true,"type":"string"},{"description":"Stable 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). Absent for other kinds.","example":"-5","json_type":"string","kind":"decimal","lite":"fr3","name":"funding_rate_short_apr_pct","optional":true,"type":"string"},{"description":"Stable perps only: days of funding the charge covered, 3 on the triple day, else 1. Absent for other kinds.","example":1,"json_type":"integer","kind":"primitive","lite":"fm","name":"funding_multiplier","optional":true,"type":"uint8"}],"name":"ApiFundingRate"},{"description":"Lookup the historical funding rate of a perpetual future.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"default":"0","description":"Start time of funding rate in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"End time of funding rate in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"},{"default":"FUNDING_INTERVAL","description":"Aggregation method for historical funding rate observations. Defaults to using the instrument-specific funding interval.","example":"FUNDING_INTERVAL","json_type":"FundingRateAggregationType","kind":"enum","lite":"at","name":"agg_type","optional":true,"type":"FundingRateAggregationType"}],"is_root":true,"name":"ApiFundingRateRequest"},{"fields":[{"array_depth":1,"description":"The funding rate result set for given interval","json_type":"ApiFundingRate","kind":"struct","lite":"r","name":"result","nullable":true,"type":"ApiFundingRate"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiFundingRateResponse"},{"description":"Retrieve an algo order for the account. Either `algo_order_id` or `client_order_id` must be provided.","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"0","description":"Filter for `algo_order_id`","example":"0x1028403","json_type":"string","kind":"primitive","lite":"ao","name":"algo_order_id","optional":true,"type":"uint128"},{"default":"0","description":"Filter for `client_order_id`","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiGetAlgoOrderRequest","one_of":["algo_order_id","client_order_id"]},{"fields":[{"description":"The algo order for the requested filter","json_type":"AlgoOrder","kind":"struct","lite":"r","name":"result","type":"AlgoOrder"}],"is_root":true,"name":"ApiGetAlgoOrderResponse"},{"description":"Response for the collateral asset info endpoint","fields":[{"array_depth":1,"description":"Collateral configuration for every collateral-eligible asset (CVR > 0)","json_type":"ApiCollateralAssetInfo","kind":"struct","lite":"a","name":"assets","nullable":true,"type":"ApiCollateralAssetInfo"}],"is_root":true,"name":"ApiGetAllCollateralAssetInfoResponse"},{"description":"The request to get the initial leverage of a sub account","fields":[{"description":"The sub account ID to get the leverage for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"}],"is_root":true,"name":"ApiGetAllInitialLeverageRequest"},{"description":"The response to get the initial leverage of a sub account","fields":[{"array_depth":1,"description":"The initial leverage of the sub account","json_type":"InitialLeverageResult","kind":"struct","lite":"r","name":"results","nullable":true,"type":"InitialLeverageResult"}],"is_root":true,"name":"ApiGetAllInitialLeverageResponse"},{"description":"Fetch all instruments","fields":[{"default":"false","description":"Fetch only active instruments","example":true,"json_type":"boolean","kind":"primitive","lite":"ia","name":"is_active","optional":true,"type":"bool"},{"array_depth":1,"default":"['PERPETUAL']","description":"The kind filter to apply. If empty, this defaults to PERPETUAL only. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kinds","nullable":true,"optional":true,"type":"Kind"}],"is_root":true,"name":"ApiGetAllInstrumentsRequest"},{"fields":[{"array_depth":1,"description":"List of instruments","json_type":"InstrumentDisplay","kind":"struct","lite":"r","name":"result","nullable":true,"type":"InstrumentDisplay"}],"is_root":true,"name":"ApiGetAllInstrumentsResponse"},{"description":"Returns list of authorized builders and the associated fee","fields":[{"array_depth":1,"description":"The list of authorized builders","json_type":"ApiAuthorizedBuilder","kind":"struct","lite":"r","name":"results","nullable":true,"type":"ApiAuthorizedBuilder"}],"is_root":true,"name":"ApiGetAuthorizedBuildersResponse"},{"description":"Fetch all currencies","fields":null,"is_root":true,"name":"ApiGetCurrencyRequest"},{"description":"The list of currencies","fields":[{"array_depth":1,"description":"The list of currencies","json_type":"CurrencyDetail","kind":"struct","lite":"r","name":"result","nullable":true,"type":"CurrencyDetail"}],"is_root":true,"name":"ApiGetCurrencyResponse"},{"description":"Fetch a list of instruments based on the filters provided","fields":[{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"},{"default":"false","description":"Request for active instruments only","example":true,"json_type":"boolean","kind":"primitive","lite":"ia","name":"is_active","optional":true,"type":"bool"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 100000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"}],"is_root":true,"name":"ApiGetFilteredInstrumentsRequest"},{"fields":[{"array_depth":1,"description":"The instruments matching the request filter","json_type":"InstrumentDisplay","kind":"struct","lite":"r","name":"result","nullable":true,"type":"InstrumentDisplay"}],"is_root":true,"name":"ApiGetFilteredInstrumentsResponse"},{"description":"Fetch a single instrument by supplying the asset or instrument name","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"}],"is_root":true,"name":"ApiGetInstrumentRequest"},{"fields":[{"description":"The instrument matching the request asset","json_type":"InstrumentDisplay","kind":"struct","lite":"r","name":"result","type":"InstrumentDisplay"}],"is_root":true,"name":"ApiGetInstrumentResponse"},{"description":"The request to get the max addable and removable amount for an isolated position","fields":[{"description":"The sub account ID to get the margin limits for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The isolated position asset to get the margin limits for","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"}],"is_root":true,"name":"ApiGetIsolatedPositionMarginLimitsRequest"},{"description":"The response to get the max addable and removable amount for an isolated position request","fields":[{"description":"The isolated position asset","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The max addable amount that can be added to the isolated position, in the quote asset. Decimal string, e.g. \"12.5\".","example":"123456.78","json_type":"string","kind":"decimal","lite":"ma","name":"max_addable_amount","type":"string"},{"description":"The max removable amount that can be removed from the isolated position, in the quote asset. Decimal string, e.g. \"12.5\".","example":"123456.78","json_type":"string","kind":"decimal","lite":"mr","name":"max_removable_amount","type":"string"}],"is_root":true,"name":"ApiGetIsolatedPositionMarginLimitsResponse"},{"description":"API request payload to get margin rules for a particular instrument","fields":[{"description":"The instrument to query margin rules for","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"}],"is_root":true,"name":"ApiGetMarginRulesRequest"},{"description":"API response payload for margin rules of a particular instrument","fields":[{"description":"The instrument name","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The maximum position size. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"100.0","json_type":"string","kind":"decimal","lite":"mp","name":"max_position_size","type":"string"},{"array_depth":1,"description":"List of risk brackets defining margin requirements at different notional tiers","json_type":"RiskBracket","kind":"struct","lite":"rb","name":"risk_brackets","nullable":true,"type":"RiskBracket"}],"is_root":true,"name":"ApiGetMarginRulesResponse"},{"description":"Retrieve the order for the account. Either `order_id` or `client_order_id` must be provided.","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"0","description":"Filter for `order_id`","example":"0x1028403","json_type":"string","kind":"primitive","lite":"oi","name":"order_id","optional":true,"type":"uint128"},{"default":"0","description":"Filter for `client_order_id`","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiGetOrderRequest","one_of":["order_id","client_order_id"]},{"fields":[{"description":"The order object for the requested filter","json_type":"Order","kind":"struct","lite":"r","name":"result","type":"Order"}],"is_root":true,"name":"ApiGetOrderResponse"},{"description":"Fetch the per-currency collateral enable/disable state for a Multi-Asset Mode sub account.\n\nReturns one entry per collateral-eligible currency (CVR > 0), including USDT, which is always enabled and cannot be toggled off.","fields":[{"description":"The sub account ID to fetch collateral preferences for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"}],"is_root":true,"name":"ApiGetSubAccountCollateralPreferenceRequest"},{"description":"The response to get the sub account collateral preference","fields":[{"description":"The sub account ID the preferences apply to","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"description":"One entry per collateral-eligible currency (CVR configured), with its current effective state.","json_type":"ApiCollateralPreferenceStatus","kind":"struct","lite":"p","name":"preferences","nullable":true,"type":"ApiCollateralPreferenceStatus"}],"is_root":true,"name":"ApiGetSubAccountCollateralPreferenceResponse"},{"description":"Response payload containing all sub-accounts accessible within the given auth session","fields":[{"array_depth":1,"description":"List of sub-account IDs accessible to the session","example":["\"4724219064482495\"","\"2095919380\"","\"1170592370\""],"json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_ids","nullable":true,"type":"uint64"}],"is_root":true,"name":"ApiGetSubAccountsResponse"},{"description":"Response for the supported assets endpoint","fields":[{"array_depth":1,"description":"Assets supported in funding wallets","json_type":"SupportedAsset","kind":"struct","lite":"f","name":"funding","nullable":true,"type":"SupportedAsset"},{"array_depth":1,"description":"Assets supported in spot wallets","json_type":"SupportedAsset","kind":"struct","lite":"s","name":"spot","nullable":true,"type":"SupportedAsset"},{"array_depth":1,"description":"Assets supported in futures wallets, grouped by mode","json_type":"FuturesWalletAssets","kind":"struct","lite":"f1","name":"futures","nullable":true,"type":"FuturesWalletAssets"}],"is_root":true,"name":"ApiGetSupportedAssetsResponse"},{"description":"Query for all hourly interest payments (multi-asset mode) charged to a single sub account.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The currency filter to apply. If nil, this defaults to all currencies. Otherwise, only entries matching the filter will be returned","example":["USDT"],"json_type":"string","kind":"primitive","lite":"c","name":"currency","nullable":true,"optional":true,"type":"string"},{"default":"0","description":"The start time to apply in unix nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to apply in unix nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c1","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiInterestPaymentHistoryRequest"},{"fields":[{"array_depth":1,"description":"The interest payments matching the request","json_type":"InterestPayment","kind":"struct","lite":"r","name":"result","nullable":true,"type":"InterestPayment"},{"description":"The cursor to indicate when to start the query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","type":"string"}],"is_root":true,"name":"ApiInterestPaymentHistoryResponse"},{"description":"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.","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"}],"is_root":true,"name":"ApiMiniTickerRequest"},{"fields":[{"description":"The mini ticker matching the request asset","json_type":"MiniTicker","kind":"struct","lite":"r","name":"result","type":"MiniTicker"}],"is_root":true,"name":"ApiMiniTickerResponse"},{"description":"Retrieves all open algo orders for the account, including algo orders still pending on their trigger.","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The algo order type filter to apply. If nil, this defaults to all types. Otherwise, only entries matching the filter will be returned","example":["CHASE"],"json_type":"AlgoOrderType","kind":"enum","lite":"t","name":"type","nullable":true,"optional":true,"type":"AlgoOrderType"},{"default":"all","description":"The trigger filter to apply. If nil, this defaults to all algo orders. Otherwise, `WITH_TRIGGER` returns only algo orders that carry a trigger, and `WITHOUT_TRIGGER` returns only those that do not","example":"WITH_TRIGGER","json_type":"AlgoTriggerFilter","kind":"enum","lite":"tf","name":"trigger_filter","optional":true,"type":"AlgoTriggerFilter"}],"is_root":true,"name":"ApiOpenAlgoOrdersRequest"},{"fields":[{"array_depth":1,"description":"The open algo orders matching the request filter","json_type":"AlgoOrder","kind":"struct","lite":"r","name":"result","nullable":true,"type":"AlgoOrder"}],"is_root":true,"name":"ApiOpenAlgoOrdersResponse"},{"fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"}],"is_root":true,"name":"ApiOpenOrdersRequest"},{"description":"Retrieves all open orders for the account. This may not match new orders in flight.","fields":[{"array_depth":1,"description":"The Open Orders matching the request filter","json_type":"Order","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Order"}],"is_root":true,"name":"ApiOpenOrdersResponse"},{"description":"Retrieves the order history for the account.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"},{"default":"0","description":"The start time to apply in nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to apply in nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiOrderHistoryRequest"},{"fields":[{"array_depth":1,"description":"The Open Orders matching the request filter","json_type":"Order","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Order"},{"description":"The cursor to indicate when to start the query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","type":"string"}],"is_root":true,"name":"ApiOrderHistoryResponse"},{"description":"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.","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"Depth of the order book to be retrieved (10, 50, 100, 500)","example":50,"json_type":"integer","kind":"primitive","lite":"d","name":"depth","type":"uint32"}],"is_root":true,"name":"ApiOrderbookLevelsRequest"},{"fields":[{"description":"The orderbook levels objects matching the request asset","json_type":"OrderbookLevels","kind":"struct","lite":"r","name":"result","type":"OrderbookLevels"}],"is_root":true,"name":"ApiOrderbookLevelsResponse"},{"description":"A position lifecycle record.\n\nWhen 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","fields":[{"description":"Trading account ID which held this position","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"Asset this position was for","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"Timestamp of first trade that opened this lifecycle","json_type":"string","kind":"timestamp","lite":"ot","name":"open_time","type":"timestamp"},{"example":"CLOSED","json_type":"PositionCloseStatus","kind":"enum","lite":"s","name":"status","type":"PositionCloseStatus"},{"description":"True if the closed position was long","json_type":"boolean","kind":"primitive","lite":"il","name":"is_long","type":"bool"},{"example":"SIMPLE_CROSS_MARGIN","json_type":"PositionMarginType","kind":"enum","lite":"mt","name":"margin_type","type":"PositionMarginType"},{"description":"Timestamp when the position lifecycle ended. Omitted when status is `PARTIALLY_CLOSED`","json_type":"string","kind":"timestamp","lite":"ct","name":"close_time","optional":true,"type":"timestamp"},{"description":"Average entry price at 9 decimals","json_type":"string","kind":"decimal","lite":"ep","name":"entry_price","type":"string"},{"description":"Average exit price at 9 decimals","json_type":"string","kind":"decimal","lite":"ep1","name":"exit_price","type":"string"},{"description":"Mark price at close. Omitted when status is `PARTIALLY_CLOSED`","json_type":"string","kind":"decimal","lite":"pc","name":"position_close_mark_price","optional":true,"type":"string"},{"description":"Cumulative realized PnL in quote currency","json_type":"string","kind":"decimal","lite":"rp","name":"realized_pnl","type":"string"},{"description":"Cumulative fees in quote currency","json_type":"string","kind":"decimal","lite":"cf","name":"cumulative_fee","type":"string"},{"description":"Cumulative realized funding payment in quote currency","json_type":"string","kind":"decimal","lite":"cr","name":"cumulative_realized_funding_payment","type":"string"},{"description":"Sum of abs(reducingTradeSize) across all reducing trades","json_type":"string","kind":"decimal","lite":"cv","name":"closed_volume_base","type":"string"},{"description":"Sum of abs(reducingTradeSize) * tradePrice across all reducing trades","json_type":"string","kind":"decimal","lite":"cv1","name":"closed_volume_quote","type":"string"},{"description":"Max absolute position size reached during lifecycle","json_type":"string","kind":"decimal","lite":"mo","name":"max_open_interest_base","type":"string"},{"description":"Max abs(size) * entryVWAP reached during lifecycle","json_type":"string","kind":"decimal","lite":"mo1","name":"max_open_interest_quote","type":"string"},{"description":"Sum of markPrice * abs(tradeSize) / leverage for position-increasing trades","json_type":"string","kind":"decimal","lite":"ci","name":"cumulative_initial_margin","type":"string"},{"description":"High-water mark of cumulativeInitialMargin during lifecycle","json_type":"string","kind":"decimal","lite":"mi","name":"max_initial_margin","type":"string"},{"description":"Leverage at time of close. When status is `PARTIALLY_CLOSED`, this is the current leverage","json_type":"string","kind":"decimal","lite":"l","name":"leverage","type":"string"},{"description":"The unrealized PnL of the position, in the quote asset. Decimal string, e.g. \"12.5\".\n`unrealized_pnl = (mark_price - entry_price) * size` where `size` is signed (negative for short positions)\nOnly present when status is `PARTIALLY_CLOSED`","json_type":"string","kind":"decimal","lite":"up","name":"unrealized_pnl","optional":true,"type":"string"},{"description":"Stock split 'from' ratio (pre-split units); the position size scaled by to/from\nOnly present when status is `SPLIT_CLOSED`. Example: `1` for a 1:4 split","json_type":"integer","kind":"primitive","lite":"sr","name":"split_ratio_from","optional":true,"type":"int32"},{"description":"Stock split 'to' ratio (post-split units)\nOnly present when status is `SPLIT_CLOSED`. Example: `4` for a 1:4 split","json_type":"integer","kind":"primitive","lite":"sr1","name":"split_ratio_to","optional":true,"type":"int32"},{"description":"Signed position size. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals. immediately before the split\nOnly present when status is `SPLIT_CLOSED`","json_type":"string","kind":"decimal","lite":"sr2","name":"split_remaining_size","optional":true,"type":"string"}],"name":"ApiPositionHistory"},{"description":"Query for position lifecycle records for a single sub account.\n\nReturns both fully closed positions and positions that are still open but have been partially reduced (`PARTIALLY_CLOSED`).\n\nResults are ordered as follows: partially closed positions (most recently opened first), then fully closed positions (most recently closed first).\n\nPartially closed positions are included only when all of the following are true:<ul><li>`start_time` is unset (partially closed positions have no close time)</li><li>`end_time` is unset (partially closed positions have no close time)</li><li>`cursor` is unset (they are only returned on the initial page)</li><li>`status` is nil or includes `PARTIALLY_CLOSED`</li></ul>Since these positions have no close time, query-row limits, as well as time-range and cursor-based pagination, do not apply to them.\n\nPagination works as follows:<ul><li>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.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"0","description":"Start of the close-time range in unix nanoseconds. If nil, defaults to no lower bound. Only positions with close_time >= start_time are returned. Does not apply to partially closed positions (they have no close time and will be excluded when this field is set)","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"End of the close-time range in unix nanoseconds. If nil, defaults to now. Only positions with close_time <= end_time are returned. Does not apply to partially closed positions (they have no close time and will be excluded when this field is set)","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only positions matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only positions matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only positions matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000. Applies to fully closed positions only; limit excludes any matching partially-closed positions","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the next page query from. Partially closed positions are only returned on the initial page (when cursor is unset)","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The status filter to apply. If nil, this defaults to all statuses. Otherwise, only positions matching the filter will be returned","example":["CLOSED","LIQUIDATED"],"json_type":"PositionCloseStatus","kind":"enum","lite":"s","name":"status","nullable":true,"optional":true,"type":"PositionCloseStatus"},{"default":"false","description":"Set to true to filter for long positions. If both is_long and is_short are false (default), positions of both directions are returned","json_type":"boolean","kind":"primitive","lite":"il","name":"is_long","optional":true,"type":"bool"},{"default":"false","description":"Set to true to filter for short positions. If both is_long and is_short are false (default), positions of both directions are returned","json_type":"boolean","kind":"primitive","lite":"is","name":"is_short","optional":true,"type":"bool"},{"array_depth":1,"default":"all","description":"The margin type filter to apply. If nil, this defaults to all margin types. Otherwise, only positions matching the filter will be returned","example":["CROSS","ISOLATED"],"json_type":"PositionMarginType","kind":"enum","lite":"mt","name":"margin_type","nullable":true,"optional":true,"type":"PositionMarginType"}],"is_root":true,"name":"ApiPositionHistoryRequest"},{"fields":[{"array_depth":1,"description":"Position lifecycle records matching the request filters. Partially closed positions appear first (most recently opened first), followed by fully closed positions (most recently closed first)","json_type":"ApiPositionHistory","kind":"struct","lite":"r","name":"result","nullable":true,"type":"ApiPositionHistory"},{"description":"The cursor to indicate when to start the query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","type":"string"}],"is_root":true,"name":"ApiPositionHistoryResponse"},{"description":"Query the positions of a sub account","fields":[{"description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"array_depth":1,"default":"all","description":"The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned","example":["PERPETUAL"],"json_type":"Kind","kind":"enum","lite":"k","name":"kind","nullable":true,"optional":true,"type":"Kind"},{"array_depth":1,"default":"all","description":"The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned","example":["BTC","ETH"],"json_type":"string","kind":"primitive","lite":"b","name":"base","nullable":true,"optional":true,"type":"string"},{"array_depth":1,"default":"all","description":"The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"q","name":"quote","nullable":true,"optional":true,"type":"string"}],"is_root":true,"name":"ApiPositionsRequest"},{"fields":[{"array_depth":1,"description":"The positions matching the request filter","json_type":"Positions","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Positions"}],"is_root":true,"name":"ApiPositionsResponse"},{"description":"Request for the manager to retrieve the vault investor history for their vault","fields":[{"description":"The unique identifier of the vault to filter by","example":"2312134","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"},{"description":"Whether to only return investments made by the manager","example":true,"json_type":"boolean","kind":"primitive","lite":"oo","name":"only_own_investments","type":"bool"},{"default":"0","description":"Optional. Start time in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"Optional. End time in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"}],"is_root":true,"name":"ApiQueryVaultManagerInvestorHistoryRequest"},{"description":"Response to retrieve the vault summary for a given vault","fields":[{"array_depth":1,"description":"The list of vault investor history belong to the manager","json_type":"ApiVaultInvestorHistory","kind":"struct","lite":"r","name":"result","nullable":true,"type":"ApiVaultInvestorHistory"}],"is_root":true,"name":"ApiQueryVaultManagerInvestorHistoryResponse"},{"description":"The request to set the derisk margin to maintenance margin ratio of a sub account","fields":[{"description":"The sub account ID to set the leverage for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The derisk margin to maintenance margin ratio of this sub account","example":"1.5","json_type":"string","kind":"decimal","lite":"r","name":"ratio","type":"string"},{"description":"The signature of this operation","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiSetDeriskToMaintenanceMarginRatioRequest"},{"description":"The response to set the derisk margin to maintenance margin ratio of a sub account","fields":[{"description":"Whether the derisk margin to maintenance margin ratio was set successfully","example":"true","json_type":"boolean","kind":"primitive","lite":"s","name":"success","type":"bool"}],"is_root":true,"name":"ApiSetDeriskToMaintenanceMarginRatioResponse"},{"description":"The request to set the initial leverage of a sub account.\n DEPRECATED: This API is deprecated, use set_position_config API instead","fields":[{"description":"The sub account ID to set the leverage for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The instrument to set the leverage for","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The leverage to set for the sub account","example":"10","json_type":"string","kind":"decimal","lite":"l","name":"leverage","type":"string"}],"is_root":true,"name":"ApiSetInitialLeverageRequest"},{"description":"The response to set the initial leverage of a sub account.\n DEPRECATED: This API is deprecated, use set_position_config API instead","fields":[{"description":"Whether the leverage was set successfully","example":"true","json_type":"boolean","kind":"primitive","lite":"s","name":"success","type":"bool"}],"is_root":true,"name":"ApiSetInitialLeverageResponse"},{"description":"Sets the margin type and leverage configuration for a specific position (instrument) within a sub account.\n\nThis configuration is applied per-instrument, allowing different margin settings for different positions.","fields":[{"description":"The sub account ID to set the margin type and leverage for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The instrument of the position to set the margin type and leverage for","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The margin type to set for the position","json_type":"PositionMarginType","kind":"enum","lite":"mt","name":"margin_type","type":"PositionMarginType"},{"description":"The leverage to set for the position","example":"1.5","json_type":"string","kind":"decimal","lite":"l","name":"leverage","type":"string"},{"description":"The signature of this operation","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiSetSubAccountPositionMarginConfigRequest"},{"description":"The response to set the margin type and leverage for a position","fields":[{"description":"Whether the margin type and leverage was acked","example":"true","json_type":"boolean","kind":"primitive","lite":"a","name":"ack","type":"bool"}],"is_root":true,"name":"ApiSetSubAccountPositionMarginConfigResponse"},{"fields":[{"description":"Session data update timestamp in milliseconds","example":"1697788800000","json_type":"string","kind":"primitive","lite":"ut","name":"update_time","type":"int64"},{"description":"Legacy: use `schedules` instead. Schedule for the `EQUITY` asset class","json_type":"SfpMarketSchedule","kind":"struct","lite":"e","name":"equity","optional":true,"type":"SfpMarketSchedule"},{"description":"Legacy: use `schedules` instead. Schedule for the `EQUITY_NYSE` asset class","json_type":"SfpMarketSchedule","kind":"struct","lite":"en","name":"equity_nyse","optional":true,"type":"SfpMarketSchedule"},{"description":"Legacy: use `schedules` instead. Schedule for the `EQUITY_NASDAQ` asset class","json_type":"SfpMarketSchedule","kind":"struct","lite":"en1","name":"equity_nasdaq","optional":true,"type":"SfpMarketSchedule"},{"description":"Legacy: use `schedules` instead. Schedule for the `COMMODITY` asset class","json_type":"SfpMarketSchedule","kind":"struct","lite":"c","name":"commodity","optional":true,"type":"SfpMarketSchedule"},{"description":"Legacy: use `schedules` instead. Schedule for the `COMMODITY_CME` asset class","json_type":"SfpMarketSchedule","kind":"struct","lite":"cc","name":"commodity_cme","optional":true,"type":"SfpMarketSchedule"},{"array_depth":1,"description":"Trading hours as groups of stable perps sharing them: one per asset class, named after it, then one per instrument schedule, named in cluster config. Each stable perp with a schedule is in exactly one group","json_type":"SfpTradingScheduleGroup","kind":"struct","lite":"s","name":"schedules","nullable":true,"type":"SfpTradingScheduleGroup"}],"is_root":true,"name":"ApiSfpTradingScheduleResponse"},{"description":"Per-currency borrow & collateral limits resolved at this account's tier (incl. per-account overrides).","fields":[{"example":"ETH","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"BL — max borrowable amount, denominated in the asset. 0 = not borrowable.","example":"1500000.0","json_type":"string","kind":"decimal","lite":"bl","name":"borrow_limit","type":"string"},{"description":"BR — annual borrow interest rate at this tier. Never exceeds the asset's maxBorrowRate.","json_type":"string","kind":"decimal","lite":"br","name":"borrow_rate","type":"string"},{"description":"CL — max amount counted as collateral, denominated in the asset. 0 = unlimited.","example":"2000000.0","json_type":"string","kind":"decimal","lite":"cl","name":"collateral_limit","type":"string"}],"name":"ApiSpotBorrowConfig"},{"fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"}],"is_root":true,"name":"ApiSpotSubAccountSummaryRequest"},{"description":"The spot account summary, that reports the total equity and spot balances of a spot sub account","fields":[{"description":"The spot sub account summary","json_type":"SpotSubAccount","kind":"struct","lite":"r","name":"result","type":"SpotSubAccount"}],"is_root":true,"name":"ApiSpotSubAccountSummaryResponse"},{"fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"}],"is_root":true,"name":"ApiSubAccountSummaryRequest"},{"description":"Query for sub-account details, including base currency balance, all derivative positions, margin levels, and P&L.","fields":[{"description":"The sub account matching the request sub account","json_type":"SubAccount","kind":"struct","lite":"r","name":"result","type":"SubAccount"}],"is_root":true,"name":"ApiSubAccountSummaryResponse"},{"description":"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.<br><br>Rate limit:<ul><li>Perpetuals and spot swaps: the standard rate limit for this endpoint, per IP address.</li><li>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.</li></ul>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.","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"}],"is_root":true,"name":"ApiTickerRequest"},{"fields":[{"description":"The mini ticker matching the request asset","json_type":"Ticker","kind":"struct","lite":"r","name":"result","type":"Ticker"}],"is_root":true,"name":"ApiTickerResponse"},{"description":"Perform historical lookup of public trades in any given instrument.\nThis endpoint offers public trading data, use the Trading APIs instead to query for your personalized trade tape.\nOnly data from the last three months will be retained.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"default":"0","description":"The start time to apply in nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to apply in nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the query from","example":"","json_type":"string","kind":"primitive","lite":"c","name":"cursor","optional":true,"type":"string"}],"is_root":true,"name":"ApiTradeHistoryRequest"},{"fields":[{"array_depth":1,"description":"The public trades matching the request asset","json_type":"Trade","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Trade"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiTradeHistoryResponse"},{"description":"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.\nThis endpoint offers public trading data, use the Trading APIs instead to query for your personalized trade tape.","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The limit to query for. Defaults to 500; Max 1000","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","type":"uint32"}],"is_root":true,"name":"ApiTradeRequest"},{"fields":[{"array_depth":1,"description":"The public trades matching the request asset","json_type":"Trade","kind":"struct","lite":"r","name":"result","nullable":true,"type":"Trade"}],"is_root":true,"name":"ApiTradeResponse"},{"fields":[{"description":"True when the exchange has processed the transfer. If true, a `tx_id` will be returned. If false, an error will be returned.","example":"true","json_type":"boolean","kind":"primitive","lite":"a","name":"ack","type":"bool"},{"description":"The transaction ID of the transfer. This is only returned if the transfer is successful.","example":"1028403","json_type":"string","kind":"primitive","lite":"ti","name":"tx_id","type":"uint64"}],"name":"ApiTransferAck"},{"description":"The request to get the historical transfers of an account\nThe history is returned in reverse chronological order\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li><b>A single call silently truncates at `limit` and returns no error.</b> 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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"array_depth":1,"description":"The token currency to query for, if nil or empty, return all transfers. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"c","name":"currency","nullable":true,"type":"string"},{"default":"0","description":"The start time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The page size for a single response. Defaults to 500; Max 1000. This caps one page only — omitting it does NOT return everything, it applies the 500 default. To get the full result set, follow the `next` cursor until it is empty.","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the next query from","example":"","json_type":"string","kind":"primitive","lite":"c1","name":"cursor","optional":true,"type":"string"},{"default":"0","description":"The transaction ID to query for","example":"1028403","json_type":"string","kind":"primitive","lite":"ti","name":"tx_id","optional":true,"type":"uint64"},{"description":"Main account ID being queried. By default, applies the requestor's main account ID.","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","optional":true,"type":"address"},{"array_depth":1,"default":"[]","description":"The transfer type to filters for. If the list is empty, return all transfer types.","json_type":"TransferType","kind":"enum","lite":"tt","name":"transfer_types","nullable":true,"optional":true,"type":"TransferType"}],"is_root":true,"name":"ApiTransferHistoryRequest"},{"fields":[{"array_depth":1,"description":"The transfer history matching the request account","json_type":"TransferHistory","kind":"struct","lite":"r","name":"result","nullable":true,"type":"TransferHistory"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiTransferHistoryResponse"},{"description":"Transfer funds:\n- between sub-accounts of your main account\n- between your main account and its sub-accounts\n- to other main accounts you have allowlisted","fields":[{"description":"The main account to transfer from","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"fa","name":"from_account_id","type":"address"},{"description":"The subaccount to transfer from (0 if transferring from main account)","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"fs","name":"from_sub_account_id","type":"uint64"},{"description":"The main account to deposit into","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"ta","name":"to_account_id","type":"address"},{"description":"The subaccount to transfer to (0 if transferring to main account)","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"ts","name":"to_sub_account_id","type":"uint64"},{"description":"The token currency to transfer","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to transfer. Decimal string, e.g. \"1500.0\"; up to the currency's balance_decimals. Scaled to an integer only inside the signature.","example":"1500.0","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The signature of the transfer","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"},{"description":"The type of transfer","json_type":"TransferType","kind":"enum","lite":"tt","name":"transfer_type","type":"TransferType"},{"description":"The metadata of the transfer","example":"{\"provider\":\"XY\",\"direction\":\"WITHDRAWAL\",\"provider_tx_id\":\"txn123456\",\"chainid\":\"42161\",\"endpoint\":\"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0\"}","json_type":"string","kind":"primitive","lite":"tm","name":"transfer_metadata","optional":true,"type":"string"},{"description":"The wallet type of the from account or subaccount","example":"SPOT","json_type":"WalletType","kind":"enum","lite":"fw","name":"from_wallet_type","optional":true,"type":"WalletType"},{"description":"The wallet type of the to account or subaccount","example":"FUNDING","json_type":"WalletType","kind":"enum","lite":"tw","name":"to_wallet_type","optional":true,"type":"WalletType"}],"is_root":true,"name":"ApiTransferRequest"},{"description":"Used to acknowledge a transfer request outcome","fields":[{"description":"The Transfer response object","json_type":"ApiTransferAck","kind":"struct","lite":"r","name":"result","type":"ApiTransferAck"}],"is_root":true,"name":"ApiTransferResponse"},{"description":"Request payload for burning tokens in a vault.\n\nThis API allows a client to burn a specified amount of tokens in a particular vault.","fields":[{"description":"The unique identifier of the vault to burn tokens from.","example":"3477045127917224","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"},{"description":"The currency used for the burn. This should be the vault's quote currency.","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to burn.","example":1000000,"json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The digital signature from the investing account.\nThis signature must be generated by the main account ID and is used to verify the authenticity of the request.\nThe signature must comply with AccountPermExternalTransfer permission.","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiVaultBurnTokensRequest"},{"description":"Request payload for the highest exchange rate the gateway currently accepts for a vault investment or redemption that converts `fromCurrency` into `toCurrency`.","fields":[{"description":"The currency converted from.","example":"USDT","json_type":"string","kind":"primitive","lite":"fc","name":"from_currency","type":"string"},{"description":"The currency converted into.","example":"USDC","json_type":"string","kind":"primitive","lite":"tc","name":"to_currency","type":"string"},{"default":"0","description":"Optional amount of `fromCurrency`. When set, the response estimates what it converts into.","example":"1000","json_type":"string","kind":"decimal","lite":"fn","name":"from_num_tokens","optional":true,"type":"string"}],"is_root":true,"name":"ApiVaultConversionRateRequest"},{"description":"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.","fields":[{"description":"The currency converted from.","example":"USDT","json_type":"string","kind":"primitive","lite":"fc","name":"from_currency","type":"string"},{"description":"The currency converted into.","example":"USDC","json_type":"string","kind":"primitive","lite":"tc","name":"to_currency","type":"string"},{"description":"The highest rate accepted now, `toCurrency` per unit of `fromCurrency`, floored to 9 decimal places. It is 1 when both currencies are the same.","example":"0.98901","json_type":"string","kind":"decimal","lite":"er","name":"exchange_rate","type":"string"},{"description":"The current spot rate from the latest oracle prices, 9 decimal places.","example":"0.99","json_type":"string","kind":"decimal","lite":"sr","name":"spot_rate","type":"string"},{"description":"The conversion fee configured for the pair, in centibeeps (1 = 0.0001%).","example":"1000","json_type":"integer","kind":"primitive","lite":"fr","name":"fee_rate_centi_beeps","type":"uint32"},{"description":"The length of the window the rate is the highest of, in seconds.","example":"30","json_type":"integer","kind":"primitive","lite":"ws","name":"window_seconds","type":"uint32"},{"description":"When the price sample the rate comes from leaves the window, in unix nanoseconds. Show a validity no longer than this.","example":"1697788830000000000","json_type":"string","kind":"timestamp","lite":"vu","name":"valid_until","type":"timestamp"},{"description":"The time of the newest oracle price the rate uses, in unix nanoseconds.","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The amount of `fromCurrency` the request named, if any.","example":"1000","json_type":"string","kind":"decimal","lite":"fn","name":"from_num_tokens","optional":true,"type":"string"},{"description":"What `fromNumTokens` converts into at `exchangeRate`, floored to `toCurrency` decimals. Omitted without `fromNumTokens`.","example":"989.01","json_type":"string","kind":"decimal","lite":"tn","name":"to_num_tokens","optional":true,"type":"string"}],"is_root":true,"name":"ApiVaultConversionRateResponse"},{"description":"Request payload for investing in a vault from the funding account or from a trading account, converting the source currency into the vault's investment currency when they differ.\n\nThe 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.","fields":[{"description":"The unique identifier of the vault to invest in.","example":"3477045127917224","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"},{"description":"The trading account to invest from. 0 means the funding account.","example":"0","json_type":"string","kind":"primitive","lite":"fs","name":"from_sub_account_id","type":"uint64"},{"description":"FUNDING when `fromSubAccountID` is 0, otherwise SPOT or FUTURES.","example":"FUNDING","json_type":"WalletType","kind":"enum","lite":"fw","name":"from_wallet_type","type":"WalletType"},{"description":"The currency debited from the source wallet.","example":"USDT","json_type":"string","kind":"primitive","lite":"fc","name":"from_currency","type":"string"},{"description":"The amount debited from the source wallet, in `fromCurrency`.","example":"1000","json_type":"string","kind":"decimal","lite":"fn","name":"from_num_tokens","type":"string"},{"description":"The currency the vault receives. This must be the vault's investment currency.","example":"USDC","json_type":"string","kind":"primitive","lite":"tc","name":"to_currency","type":"string"},{"description":"The signed rate, `toCurrency` per unit of `fromCurrency`, up to 9 decimal places. Exactly 1 when both currencies are the same.","example":"0.999","json_type":"string","kind":"decimal","lite":"er","name":"exchange_rate","type":"string"},{"description":"The `VaultInvestV3` signature of the investing account.\nThe signer needs the vault investor permission on the main account and, for a trading account source, the transfer permission on that trading account.","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiVaultInvestV2Request"},{"description":"Response payload for a vault investment.","fields":[{"description":"Whether the investment was accepted.","example":"true","json_type":"boolean","kind":"primitive","lite":"a","name":"ack","type":"bool"},{"description":"The transaction ID of the investment once risk confirmed it. 0 when the investment was queued.","example":"1028403","json_type":"string","kind":"primitive","lite":"ti","name":"tx_id","type":"uint64"},{"description":"Cross-exchange vaults only: true when the vault was locked and the investment was queued.","example":"false","json_type":"boolean","kind":"primitive","lite":"e","name":"enqueued","optional":true,"type":"bool"}],"is_root":true,"name":"ApiVaultInvestV2Response"},{"description":"The vault investor history returned by the service to client","fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The off chain account id of the investor, only visible to the manager","example":"ACC:123456","json_type":"string","kind":"primitive","lite":"oc","name":"off_chain_account_id","type":"string"},{"description":"The unique identifier of the vault.","example":"2312134","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"},{"description":"The type of transaction that occurred. List of types: vaultInvest, vaultBurnLpToken, vaultRedeem","example":"VAULT_INVEST","json_type":"VaultInvestorAction","kind":"enum","lite":"t","name":"type","type":"VaultInvestorAction"},{"description":"The price of the vault LP tokens at the time of the event.","example":"1000000","json_type":"string","kind":"decimal","lite":"p","name":"price","type":"string"},{"description":"The amount of Vault LP tokens invested or redeemed.","example":"1000000","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The realized PnL of the vault.","example":"1000000","json_type":"string","kind":"decimal","lite":"rp","name":"realized_pnl","type":"string"},{"description":"The performance fee of the vault.","example":"1000000","json_type":"string","kind":"decimal","lite":"pf","name":"performance_fee","type":"string"},{"description":"The vault leg's currency: the vault's investment currency, which the vault received or paid. Empty on a burn, which moves no tokens.","example":"USDC","json_type":"string","kind":"primitive","lite":"tc","name":"token_currency","type":"string"},{"description":"The vault leg: the tokens of tokenCurrency the vault received on an invest or paid on a redemption. 0 on a burn, and on a vaultRedeem recorded before its results carried the amount.","example":"1000.0","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The currency that left its owner: on an invest the investor's source currency (the user leg), on a redemption tokenCurrency. A row without conversion has the vault leg's currency. Empty on a burn.","example":"USDT","json_type":"string","kind":"primitive","lite":"fc","name":"from_currency","type":"string"},{"description":"The tokens of fromCurrency that left their owner: on an invest what the investor paid (the user leg), on a redemption numTokens. 0 on a burn, and on a vaultRedeem recorded before its results carried the amount.","example":"1001.0","json_type":"string","kind":"decimal","lite":"fn","name":"from_num_tokens","type":"string"},{"description":"The currency that reached its owner: on a redemption the investor's payout currency (the user leg), on an invest tokenCurrency. A row without conversion has the vault leg's currency. Empty on a burn.","example":"USDT","json_type":"string","kind":"primitive","lite":"tc1","name":"to_currency","type":"string"},{"description":"The tokens of toCurrency that reached their owner: on a redemption what the investor received (the user leg), on an invest numTokens. 0 on a burn, and on a vaultRedeem recorded before its results carried the amount.","example":"999.0","json_type":"string","kind":"decimal","lite":"tn","name":"to_num_tokens","type":"string"},{"description":"The conversion fee in toCurrency: the difference between the two legs of a converting invest or redemption. 0 without conversion.","example":"1.0","json_type":"string","kind":"decimal","lite":"cf","name":"conversion_fee_num_tokens","type":"string"},{"description":"The trading sub-account an invest was paid from. 0 for the funding account and on other rows.","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"fs","name":"from_sub_account_id","type":"uint64"},{"description":"The wallet an invest was paid from: FUNDING for the funding account, otherwise SPOT or FUTURES. Unspecified on redemptions and burns.","example":"FUNDING","json_type":"WalletType","kind":"enum","lite":"fw","name":"from_wallet_type","type":"WalletType"},{"description":"On a redemption, when its redemption request was made, in unix nanoseconds. 0 when unknown and on other rows.","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"rt","name":"request_time","type":"timestamp"}],"name":"ApiVaultInvestorHistory"},{"description":"Request payload for fetching the summary of a vault investor.\n\nThis API allows a client to retrieve the summary of investments in a specific vault.","fields":[{"description":"The unique identifier of the vault to fetch the summary for.","example":"3477045127917224","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","optional":true,"type":"uint64"}],"is_root":true,"name":"ApiVaultInvestorSummaryRequest"},{"description":"Response payload for the summary of a vault investor.\n\nThis API provides the summary of investments in a specific vault.","fields":[{"array_depth":1,"description":"The summary of investments in the vault.","json_type":"VaultInvestorSummary","kind":"struct","lite":"vi","name":"vault_investor_summary","nullable":true,"type":"VaultInvestorSummary"}],"is_root":true,"name":"ApiVaultInvestorSummaryResponse"},{"description":"Request payload for canceling a vault redemption.\n\nThis API allows a client to cancel a previously initiated redemption from a vault.","fields":[{"description":"The unique identifier of the vault to cancel the redemption from.","example":"3477045127917224","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"}],"is_root":true,"name":"ApiVaultRedeemCancelRequest"},{"description":"Request payload for redeeming from a vault, paid in the vault's investment currency or converted into another currency.\n\nThe 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.","fields":[{"description":"The unique identifier of the vault to redeem from.","example":"3477045127917224","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"},{"description":"The currency the vault pays. This must be the vault's investment currency.","example":"USDC","json_type":"string","kind":"primitive","lite":"fc","name":"from_currency","type":"string"},{"description":"The currency paid into the funding account: the investment currency, or another currency converted at `exchangeRate`.","example":"USDT","json_type":"string","kind":"primitive","lite":"tc","name":"to_currency","type":"string"},{"description":"The number of shares to redeem.","example":"1000","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The signed rate, `toCurrency` per unit of `fromCurrency`, up to 9 decimal places. Exactly 1 when both currencies are the same.","example":"0.999","json_type":"string","kind":"decimal","lite":"er","name":"exchange_rate","type":"string"},{"description":"The `VaultRedeemV3` signature of the redeeming account.\nThe signer needs the vault investor permission on the main account.","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiVaultRedeemV2Request"},{"description":"Request payload for a vault manager to view the redemption queue for their vault.\n\nFetches the redemption queue for a vault, ordered by descending priority.\n\n<b>Urgent</b> redemption requests, defined as having been pending >90% of the manager-defined maximum redemption period, have top priority (following insertion order).\n\n<b>Non-urgent</b> redemption requests are otherwise prioritized by insertion order, <b>unless</b> they are >5x the size of the smallest redemption request.\n\nE.g., If FIFO ordering (all non-urgent) is 1k -> 50k -> 100k -> 20k -> 10k -> 25k, then priority ordering is 1k -> 10k -> 50k -> 20k -> 100k -> 25k.\n\nOnly displays redemption requests that are eligible for automated redemption, i.e., have been pending for the manager-defined minimum redemption period.","fields":[{"description":"The unique identifier of the vault to fetch the redemption queue for.","example":"3477045127917224","json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"}],"is_root":true,"name":"ApiVaultViewRedemptionQueueRequest"},{"description":"Response payload for a vault manager to view the redemption queue for their vault, ordered by descending priority.\n\nAlso includes counters for total redemption sizes pending as well as urgent (refer to API integration guide for more detail on redemption request classifications).","fields":[{"array_depth":1,"description":"Outstanding vault redemption requests, ordered by descending priority. Excludes requests that have not yet aged past the minimum redemption period.","json_type":"VaultRedemptionRequest","kind":"struct","lite":"rq","name":"redemption_queue","nullable":true,"type":"VaultRedemptionRequest"},{"description":"Number of shares eligible for automated redemption (held in queue for at least the minimum redemption period).","example":"1000000","json_type":"string","kind":"decimal","lite":"pr","name":"pending_redemption_token_count","type":"string"},{"description":"Number of shares nearing the maximum redemption period (>= 90% of maximum redemption period).","example":"0","json_type":"string","kind":"decimal","lite":"ur","name":"urgent_redemption_token_count","type":"string"},{"description":"Amount available for automated redemption request servicing (in USD).","example":"0","json_type":"string","kind":"decimal","lite":"ar","name":"auto_redeemable_balance","type":"string"},{"description":"Current share price (in USD).","example":"1.25","json_type":"string","kind":"decimal","lite":"sp","name":"share_price","type":"string"},{"description":"Dedicated section for requests yet to wait at least the minimum redemption period.","json_type":"PreMinRedemptions","kind":"struct","lite":"pm","name":"pre_min","type":"PreMinRedemptions"}],"is_root":true,"name":"ApiVaultViewRedemptionQueueResponse"},{"description":"Query the flat withdrawal fee for a native (L2 -> L1) bridge withdrawal, expressed in the requested currency","fields":[{"description":"Currency ID to express the withdrawal fee in (e.g. USDT id 3).","example":3,"json_type":"integer","kind":"primitive","lite":"tc","name":"token_currency","type":"uint16"}],"is_root":true,"name":"ApiWithdrawalFeeRequest"},{"description":"The native bridge withdrawal fee, in the requested currency","fields":[{"description":"The withdrawal fee. Decimal string, e.g. \"1500.0\"; up to the currency's balance_decimals.","example":"25.0","json_type":"string","kind":"decimal","lite":"wf","name":"withdrawal_fee","type":"string"},{"description":"The currency the withdrawal fee is expressed in.","example":"USDT","json_type":"string","kind":"primitive","lite":"tc","name":"token_currency","type":"string"}],"is_root":true,"name":"ApiWithdrawalFeeResponse"},{"description":"The request to get the historical withdrawals of an account\nThe history is returned in reverse chronological order\nBoth finalized and pending withdrawals are returned, and pending withdrawals are indicated by an empty `l1Hash` field.\n\nPagination works as follows:<ul><li>We perform a reverse chronological lookup, starting from `end_time`. If `end_time` is not set, we start from the most recent data.</li><li>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.</li><li><b>A single call silently truncates at `limit` and returns no error.</b> 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.</li><li>If a `cursor` is provided, it will be used to fetch results from that point onwards.</li><li>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.</li></ul>","fields":[{"array_depth":1,"description":"The token currency to query for, if nil or empty, return all withdrawals. Otherwise, only entries matching the filter will be returned","example":["USDT","USDC"],"json_type":"string","kind":"primitive","lite":"c","name":"currency","nullable":true,"type":"string"},{"default":"0","description":"The start time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"st","name":"start_time","optional":true,"type":"timestamp"},{"default":"now()","description":"The end time to query for in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"end_time","optional":true,"type":"timestamp"},{"default":"500","description":"The page size for a single response. Defaults to 500; Max 1000. This caps one page only — omitting it does NOT return everything, it applies the 500 default. To get the full result set, follow the `next` cursor until it is empty.","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","optional":true,"type":"uint32"},{"description":"The cursor to indicate when to start the next query from","example":"","json_type":"string","kind":"primitive","lite":"c1","name":"cursor","optional":true,"type":"string"},{"description":"Main account ID being queried. By default, applies the requestor's main account ID.","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","optional":true,"type":"address"}],"is_root":true,"name":"ApiWithdrawalHistoryRequest"},{"fields":[{"array_depth":1,"description":"The withdrawals history matching the request account","json_type":"WithdrawalHistory","kind":"struct","lite":"r","name":"result","nullable":true,"type":"WithdrawalHistory"},{"description":"The cursor to indicate when to start the next query from","example":"Qw0918=","json_type":"string","kind":"primitive","lite":"n","name":"next","optional":true,"type":"string"}],"is_root":true,"name":"ApiWithdrawalHistoryResponse"},{"description":"Leverage this API to initialize a withdrawal from GRVT's Hyperchain onto Ethereum.\nDo take note that the bridging process does take time. The GRVT UI will help you keep track of bridging progress, and notify you once its complete.\n\nIf not withdrawing the entirety of your balance, there is a minimum withdrawal amount. Currently that amount is ~25 USDT.\nWithdrawal fees also apply to cover the cost of the Ethereum transaction.\nNote that your funds will always remain in self-custody throughout the withdrawal process. At no stage does GRVT gain control over your funds.","fields":[{"description":"The main account to withdraw from","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"fa","name":"from_account_id","type":"address"},{"description":"The Ethereum wallet to withdraw into","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"te","name":"to_eth_address","type":"address"},{"description":"The token currency to withdraw","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to withdraw. Decimal string, e.g. \"1500.0\"; up to the currency's balance_decimals. Scaled to an integer only inside the signature.","example":"1500.0","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The signature of the withdrawal","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"is_root":true,"name":"ApiWithdrawalRequest"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The off chain account id","example":"ACC:123456","json_type":"string","kind":"primitive","lite":"oc","name":"off_chain_account_id","type":"string"},{"description":"The instrument being represented","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The side that the subaccount took on the trade","example":true,"json_type":"boolean","kind":"primitive","lite":"ib","name":"is_buyer","type":"bool"},{"description":"The role that the subaccount took on the trade","example":true,"json_type":"boolean","kind":"primitive","lite":"it","name":"is_taker","type":"bool"},{"description":"The number of assets being traded. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"0.30","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The traded price. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"p","name":"price","type":"string"},{"description":"The mark price of the instrument at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","type":"string"},{"description":"The index price of the instrument at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ip","name":"index_price","type":"string"},{"description":"Builder fee percentage charged for this order. referred to Order.builder builderFee","example":0.001,"json_type":"string","kind":"decimal","lite":"fr","name":"fee_rate","type":"string"},{"description":"The builder fee paid on the trade, in the quote asset. Decimal string, e.g. \"12.5\". referred to Trade.builderFee","json_type":"string","kind":"primitive","lite":"f","name":"fee","type":"int64"}],"name":"BuilderFillHistory"},{"fields":[{"description":"The subaccount ID that requested the cancellation","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"A unique identifier for the active order within a subaccount, specified by the client","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","type":"uint64"},{"description":"A unique 128-bit identifier for the order, deterministically generated within the GRVT backend","example":"10000101000203040506","json_type":"string","kind":"primitive","lite":"oi","name":"order_id","type":"uint128"},{"description":"The user-provided reason for cancelling the order","json_type":"OrderRejectReason","kind":"enum","lite":"r","name":"reason","type":"OrderRejectReason"},{"default":"0","description":"Set by the server. Time at which the cancellation status was updated by GRVT in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ut","name":"update_time","optional":true,"type":"timestamp"},{"description":"Status of the cancellation attempt","json_type":"CancelStatus","kind":"enum","lite":"cs","name":"cancel_status","type":"CancelStatus"}],"name":"CancelStatusFeed"},{"fields":[{"description":"Open time of kline bar in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ot","name":"open_time","type":"timestamp"},{"description":"Close time of kline bar in unix nanosecond","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ct","name":"close_time","type":"timestamp"},{"description":"The open price, expressed in underlying currency resolution units","example":"123456.78","json_type":"string","kind":"decimal","lite":"o","name":"open","type":"string"},{"description":"The close price, expressed in underlying currency resolution units","example":"123456.78","json_type":"string","kind":"decimal","lite":"c","name":"close","type":"string"},{"description":"The high price, expressed in underlying currency resolution units","example":"123456.78","json_type":"string","kind":"decimal","lite":"h","name":"high","type":"string"},{"description":"The low price, expressed in underlying currency resolution units","example":"123456.78","json_type":"string","kind":"decimal","lite":"l","name":"low","type":"string"},{"description":"The underlying volume transacted. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"vb","name":"volume_b","type":"string"},{"description":"The quote volume transacted, in the quote asset. Decimal string, e.g. \"12.5\".","example":"123456.78","json_type":"string","kind":"decimal","lite":"vq","name":"volume_q","type":"string"},{"description":"The number of trades transacted","example":123456,"json_type":"integer","kind":"primitive","lite":"t","name":"trades","type":"uint32"},{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"}],"name":"Candlestick"},{"description":"Contains the parameters of a chase algo order.<ul><li>`chase_price_mode` defines how the price is derived at each re-price.</li><li>`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.</li></ul>","fields":[{"description":"How the chase price is determined at each re-price tick","example":"BEST_BID_ASK","json_type":"ChasePriceMode","kind":"enum","lite":"cp","name":"chase_price_mode","type":"ChasePriceMode"},{"description":"The maximum distance the chase price can move away from the reference price, as an absolute price distance in quote currency units. Decimal string, e.g. \"65000.5\"; up to 9 decimals.\nAlways absolute: when the user picks a percentage, the client converts it and sends the result here.","example":"325.19","json_type":"string","kind":"decimal","lite":"md","name":"max_distance","type":"string"},{"default":"0","description":"The max distance as a percentage in basis points (1 bp = 0.01%, 100% = 10000), as the user entered it. `0` if the user entered an absolute distance.\nInformational only, for display and history. `maxDistance` is what is enforced.","example":5000,"json_type":"integer","kind":"primitive","lite":"md1","name":"max_distance_bps","optional":true,"type":"uint32"}],"name":"ChaseAlgoOrderMetadata"},{"description":"Contains the runtime state specific to a chase algo order","fields":[{"description":"The number of successful re-prices of this algo order's sub-orders","example":3,"json_type":"integer","kind":"primitive","lite":"rc","name":"reprice_count","type":"uint32"}],"name":"ChaseOrderState"},{"fields":[{"json_type":"integer","kind":"primitive","lite":"t","name":"tier","type":"uint8"},{"json_type":"integer","kind":"primitive","lite":"ft","name":"futures_taker_fee","type":"int32"},{"json_type":"integer","kind":"primitive","lite":"fm","name":"futures_maker_fee","type":"int32"},{"json_type":"integer","kind":"primitive","lite":"ot","name":"options_taker_fee","type":"int32"},{"json_type":"integer","kind":"primitive","lite":"om","name":"options_maker_fee","type":"int32"},{"json_type":"integer","kind":"primitive","lite":"st","name":"spot_taker_fee","type":"int32"},{"json_type":"integer","kind":"primitive","lite":"sm","name":"spot_maker_fee","type":"int32"},{"array_depth":1,"description":"Per-currency borrow & collateral limits for this tier. Populated only in the funding_account_summary response; empty in raw config contexts.","json_type":"ApiSpotBorrowConfig","kind":"struct","lite":"sb","name":"spot_borrow_configs","nullable":true,"type":"ApiSpotBorrowConfig"}],"name":"ClientTier"},{"fields":[{"description":"The integer value of the currency","example":3,"json_type":"integer","kind":"primitive","lite":"i","name":"id","type":"uint16"},{"description":"The name of the currency","example":"USDT","json_type":"string","kind":"primitive","lite":"s","name":"symbol","type":"string"},{"description":"The balance decimals of the currency","example":6,"json_type":"integer","kind":"primitive","lite":"bd","name":"balance_decimals","type":"int8"},{"description":"The quantity multiplier of the currency","example":1000000,"json_type":"string","kind":"primitive","lite":"qm","name":"quantity_multiplier","type":"uint64"}],"name":"CurrencyDetail"},{"fields":[{"description":"The hash of the bridgemint event producing the deposit","example":"0x1234567890123456789012345678901234567890123456789012345678901234","json_type":"string","kind":"primitive","lite":"th","name":"tx_hash","type":"uint256"},{"description":"The account to deposit into","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"ta","name":"to_account_id","type":"address"},{"description":"The token currency to deposit","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to deposit","example":"10.50","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"}],"name":"Deposit"},{"fields":[{"description":"The L1 txHash of the deposit","example":"0x10000101000203040506","json_type":"string","kind":"primitive","lite":"l1","name":"l_1_hash","type":"uint256"},{"description":"The L2 txHash of the deposit","example":"0x10000101000203040506","json_type":"string","kind":"primitive","lite":"l2","name":"l_2_hash","type":"uint256"},{"description":"The account to deposit into","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"ta","name":"to_account_id","type":"address"},{"description":"The token currency to deposit","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to deposit","example":"1500.0","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The timestamp when the deposit was initiated on L1 in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"it","name":"initiated_time","type":"timestamp"},{"description":"The timestamp when the deposit was confirmed on L2 in unix nanoseconds, empty if the deposit is pending.","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ct","name":"confirmed_time","type":"timestamp"},{"description":"The address of the sender","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"fa","name":"from_address","type":"address"}],"name":"DepositHistory"},{"description":"Used for requests that do not require any parameters","fields":null,"is_root":true,"name":"EmptyRequest"},{"description":"An error response","fields":[{"description":"The error code for the request","example":123,"json_type":"integer","kind":"primitive","lite":"c","name":"code","type":"uint16"},{"description":"The error message for the request","example":"An error occurred","json_type":"string","kind":"primitive","lite":"m","name":"message","type":"string"}],"is_root":true,"name":"Error"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The sub account ID that participated in the trade","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The instrument being represented","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The side that the subaccount took on the trade","example":true,"json_type":"boolean","kind":"primitive","lite":"ib","name":"is_buyer","type":"bool"},{"description":"The role that the subaccount took on the trade","example":true,"json_type":"boolean","kind":"primitive","lite":"it","name":"is_taker","type":"bool"},{"description":"The number of assets being traded. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"0.30","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The traded price. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"p","name":"price","type":"string"},{"description":"The mark price of the instrument at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","optional":true,"type":"string"},{"description":"The index price of the instrument at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ip","name":"index_price","type":"string"},{"description":"The interest rate of the underlying at point of trade, expressed in centibeeps (1/100th of a basis point)","example":"0.0003","json_type":"string","kind":"decimal","lite":"ir","name":"interest_rate","type":"string"},{"description":"[Options] The forward price of the option at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"fp","name":"forward_price","optional":true,"type":"string"},{"description":"The realized PnL of the trade, in the quote asset. Decimal string, e.g. \"12.5\". (0 if increasing position size)","example":"2400.50","json_type":"string","kind":"decimal","lite":"rp","name":"realized_pnl","type":"string"},{"description":"The fees paid on the trade, in the quote asset. Decimal string, e.g. \"12.5\". (negative if maker rebate applied)","example":"9.75","json_type":"string","kind":"decimal","lite":"f","name":"fee","type":"string"},{"description":"The fee rate paid on the trade","example":"0.0003","json_type":"string","kind":"decimal","lite":"fr","name":"fee_rate","type":"string"},{"description":"A trade identifier, globally unique, and monotonically increasing (not by `1`).\nAll trades sharing a single taker execution share the same first component (before `-`), and `event_time`.\n`trade_id` is guaranteed to be consistent across MarketData `Trade` and Trading `Fill`.","example":"209358-2","json_type":"string","kind":"primitive","lite":"ti","name":"trade_id","type":"string"},{"description":"An order identifier","example":"0x10000101000203040506","json_type":"string","kind":"primitive","lite":"oi","name":"order_id","type":"uint128"},{"description":"The venue where the trade occurred","example":"ORDERBOOK","json_type":"Venue","kind":"enum","lite":"v","name":"venue","type":"Venue"},{"description":"If the trade was a liquidation","example":false,"json_type":"boolean","kind":"primitive","lite":"il","name":"is_liquidation","type":"bool"},{"description":"A unique identifier for the active order within a subaccount, specified by the client\nThis is used to identify the order in the client's system\nThis field can be used for order amendment/cancellation, but has no bearing on the smart contract layer\nThis field will not be propagated to the smart contract, and should not be signed by the client\nThis value must be unique for all active orders in a subaccount, or amendment/cancellation will not work as expected\nGravity UI will generate a random clientOrderID for each order in the range [0, 2^63 - 1]\nTo prevent any conflicts, client machines should generate a random clientOrderID in the range [2^63, 2^64 - 1]\n\nWhen GRVT Backend receives an order with an overlapping clientOrderID, we will reject the order with rejectReason set to overlappingClientOrderId","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","type":"uint64"},{"description":"The address (public key) of the wallet signing the payload","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"s1","name":"signer","type":"uint256"},{"description":"Specifies the broker who brokered the order","json_type":"BrokerTag","kind":"enum","lite":"b","name":"broker","optional":true,"type":"BrokerTag"},{"description":"If the trade is a RPI trade","example":false,"json_type":"boolean","kind":"primitive","lite":"ir1","name":"is_rpi","type":"bool"},{"description":"The main account ID of the builder. referred to Order.builder","example_placeholder":"GRVT_MAIN_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"b1","name":"builder","type":"address"},{"description":"Builder fee percentage charged for this order. referred to Order.builder builderFee","example":"0.001","json_type":"string","kind":"decimal","lite":"bf","name":"builder_fee_rate","type":"string"},{"description":"The builder fee paid on the trade, in the quote asset. Decimal string, e.g. \"12.5\". referred to Trade.builderFee","example":"0.2","json_type":"string","kind":"decimal","lite":"bf1","name":"builder_fee","type":"string"},{"description":"The currency of the fee paid on the trade","example":"USDT","json_type":"string","kind":"primitive","lite":"fc","name":"fee_currency","type":"string"},{"description":"If this fill was a MAM repayment/exchange, the scenario (manual / auto / liquidation); unspecified for normal trades.","json_type":"RepaymentScenario","kind":"enum","lite":"rs","name":"repayment_scenario","type":"RepaymentScenario"},{"description":"The RFQ this fill was cleared against. Only set for RFQ venue fills; unset otherwise","json_type":"string","kind":"primitive","lite":"ri","name":"rfq_id","optional":true,"type":"uint128"},{"description":"The type of counterparty this fill was matched against (maker quote / resting order / forced-exit netting). Only set for RFQ venue fills; unset otherwise","json_type":"RfqCounterpartyType","kind":"enum","lite":"ct","name":"counterparty_type","optional":true,"type":"RfqCounterpartyType"}],"name":"Fill"},{"description":"The funding account summary, that reports the total equity and spot balances of a funding (main) account","fields":[{"description":"The main account ID of the account to which the summary belongs","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","type":"address"},{"description":"Total equity of the main account, denominated in USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"te","name":"total_equity","type":"string"},{"array_depth":1,"description":"The list of spot assets owned by this main account, and their balances","json_type":"SpotBalance","kind":"struct","lite":"sb","name":"spot_balances","nullable":true,"type":"SpotBalance"},{"array_depth":1,"description":"The list of vault investments held by this main account","json_type":"VaultInvestment","kind":"struct","lite":"vi","name":"vault_investments","nullable":true,"type":"VaultInvestment"},{"description":"Total balance of cash (stablecoin) currencies, denominated in USD","example":"1000000.00","json_type":"string","kind":"decimal","lite":"tc","name":"total_cash_balance","type":"string"},{"description":"Total balance of non-cash spot currencies, denominated in USD","example":"500000.00","json_type":"string","kind":"decimal","lite":"ts","name":"total_spot_asset_balance","type":"string"}],"name":"FundingAccountSummary"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The sub account ID that made the funding payment","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The instrument being funded (perpetual or stable perp)","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The currency of the funding payment","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The amount of the funding payment. Positive if paid, negative if received","example":"9.75","json_type":"string","kind":"decimal","lite":"a","name":"amount","type":"string"},{"description":"The transaction ID of the funding payment.\nFunding payments can be triggered by a trade, transfer, or liquidation.\nThe `tx_id` will match the corresponding `trade_id` or `tx_id`.","example":"209358","json_type":"string","kind":"primitive","lite":"ti","name":"tx_id","type":"uint64"}],"name":"FundingPayment"},{"description":"Supported assets for a futures wallet mode","fields":[{"description":"The sub account mode","example":"SINGLE_ASSET","json_type":"SubAccountMode","kind":"enum","lite":"m","name":"mode","type":"SubAccountMode"},{"array_depth":1,"description":"Assets supported under this futures mode","json_type":"SupportedAsset","kind":"struct","lite":"sa","name":"supported_assets","nullable":true,"type":"SupportedAsset"}],"name":"FuturesWalletAssets"},{"fields":[{"description":"The instrument to get the leverage for","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The initial leverage of this instrument","example":"10","json_type":"string","kind":"decimal","lite":"l","name":"leverage","type":"string"},{"description":"The min leverage user can set for this instrument","example":"10","json_type":"string","kind":"decimal","lite":"ml","name":"min_leverage","type":"string"},{"description":"The max leverage user can set for this instrument","example":"50","json_type":"string","kind":"decimal","lite":"ml1","name":"max_leverage","type":"string"},{"description":"The margin type of this instrument","json_type":"PositionMarginType","kind":"enum","lite":"mt","name":"margin_type","type":"PositionMarginType"}],"name":"InitialLeverageResult"},{"fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The asset ID used for instrument signing.","example":"0x030501","json_type":"string","kind":"primitive","lite":"ih","name":"instrument_hash","type":"uint256"},{"description":"The base currency","example":"BTC","json_type":"string","kind":"primitive","lite":"b","name":"base","type":"string"},{"description":"The quote currency","example":"USDT","json_type":"string","kind":"primitive","lite":"q","name":"quote","type":"string"},{"description":"The kind of instrument","example":"PERPETUAL","json_type":"Kind","kind":"enum","lite":"k","name":"kind","type":"Kind"},{"array_depth":1,"description":"Venues that this instrument can be traded at","example":["ORDERBOOK"],"json_type":"Venue","kind":"enum","lite":"v","name":"venues","nullable":true,"type":"Venue"},{"description":"The settlement period of the instrument","example":"PERPETUAL","json_type":"InstrumentSettlementPeriod","kind":"enum","lite":"sp1","name":"settlement_period","optional":true,"type":"InstrumentSettlementPeriod"},{"description":"The smallest denomination of the base asset supported by GRVT (+3 represents 0.001, -3 represents 1000, 0 represents 1)","example":3,"json_type":"integer","kind":"primitive","lite":"bd","name":"base_decimals","type":"int8"},{"description":"The smallest denomination of the quote asset supported by GRVT (+3 represents 0.001, -3 represents 1000, 0 represents 1)","example":3,"json_type":"integer","kind":"primitive","lite":"qd","name":"quote_decimals","type":"int8"},{"description":"The size of a single tick. Decimal string, e.g. \"0.1\"; up to 9 decimals.","example":"0.01","json_type":"string","kind":"decimal","lite":"ts","name":"tick_size","type":"string"},{"description":"The minimum contract size. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"0.01","json_type":"string","kind":"decimal","lite":"ms","name":"min_size","type":"string"},{"description":"Creation time in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ct","name":"create_time","type":"timestamp"},{"description":"The maximum position size. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"100.0","json_type":"string","kind":"decimal","lite":"mp","name":"max_position_size","optional":true,"type":"string"},{"description":"Defines the funding interval to be applied.","example":8,"json_type":"integer","kind":"primitive","lite":"fi","name":"funding_interval_hours","optional":true,"type":"uint8"},{"description":"Funding rate cap over the defined `intervalHours`.","example":"2.5","json_type":"string","kind":"decimal","lite":"af","name":"adjusted_funding_rate_cap","optional":true,"type":"string"},{"description":"Funding rate floor over the defined `intervalHours`.","example":"-2.5","json_type":"string","kind":"decimal","lite":"af1","name":"adjusted_funding_rate_floor","optional":true,"type":"string"},{"description":"The minimum order notional value, in the quote asset. Decimal string, e.g. \"12.5\".","example":"20.0","json_type":"string","kind":"decimal","lite":"mn","name":"min_notional","type":"string"},{"description":"The asset class of the underlying the instrument tracks","example":"EQUITY","json_type":"AssetClass","kind":"enum","lite":"ac","name":"asset_class","optional":true,"type":"AssetClass"},{"description":"The current lifecycle/trading status of the instrument","example":"ACTIVE","json_type":"InstrumentStatus","kind":"enum","lite":"s","name":"status","optional":true,"type":"InstrumentStatus"},{"description":"The guaranteed exit band, expressed in percentage points","example":"0.5","json_type":"string","kind":"decimal","lite":"ge","name":"guaranteed_exit_band","optional":true,"type":"string"},{"description":"The spread penalty tolerance, expressed in percentage points","example":"0.1","json_type":"string","kind":"decimal","lite":"sp2","name":"spread_penalty_tolerance","optional":true,"type":"string"},{"description":"Timestamp in unix nanoseconds at which the funding cap adjustment applies","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"fc","name":"funding_cap_adjustment_time","optional":true,"type":"timestamp"},{"description":"The funding cap adjustment value, expressed as a decimal daily rate","example":"0.0003","json_type":"string","kind":"decimal","lite":"fc1","name":"funding_cap_adjustment_value","optional":true,"type":"string"},{"description":"Stable perps only: the weekday whose daily funding charge covers 3 days (the weekend)","example":"FRIDAY","json_type":"DayOfWeek","kind":"enum","lite":"ts2","name":"triple_swap_day","optional":true,"type":"DayOfWeek"}],"name":"InstrumentDisplay"},{"fields":[{"description":"Time at which the interest charge was computed in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The sub-account being charged interest","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The currency the interest is charged in","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The interest charged for this hour.","example":"1.50","json_type":"string","kind":"decimal","lite":"a","name":"amount","type":"string"},{"description":"The last interest charge time accumulated to this amount (HH:05 tick).","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ct","name":"charge_time","type":"timestamp"},{"description":"The borrowed principal in this currency that the hourly interest was computed on.","example":"50000.00","json_type":"string","kind":"decimal","lite":"ba","name":"borrowed_amount","type":"string"}],"name":"InterestPayment"},{"description":"All Websocket JSON RPC Requests are housed in this wrapper. You may specify a stream, and a list of feeds to subscribe to.\nIf a `request_id` is supplied in this JSON RPC request, it will be propagated back to any relevant JSON RPC responses (including error).\nWhen subscribing to the same primary selector again, the previous secondary selector will be replaced. See `Overview` page for more details.","fields":[{"description":"The JSON RPC version to use for the request","example":"2.0","json_type":"string","kind":"primitive","lite":"j","name":"jsonrpc","type":"string"},{"description":"The method to use for the request (eg: `subscribe` / `unsubscribe` / `v1/instrument` )","example":"subscribe","json_type":"string","kind":"primitive","lite":"m","name":"method","type":"string"},{"description":"The parameters for the request","json_type":"object","kind":"any","lite":"p","name":"params","type":"any"},{"default":"0","description":"Optional Field which is used to match the response by the client.\nIf not passed, this field will not be returned","example":123,"json_type":"integer","kind":"primitive","lite":"i","name":"id","optional":true,"type":"uint32"}],"is_root":true,"name":"JSONRPCRequest"},{"description":"All Websocket JSON RPC Responses are housed in this wrapper. It returns a confirmation of the JSON RPC subscribe request.\nIf a `request_id` is supplied in the JSON RPC request, it will be propagated back in this JSON RPC response.","fields":[{"description":"The JSON RPC version to use for the request","example":"2.0","json_type":"string","kind":"primitive","lite":"j","name":"jsonrpc","type":"string"},{"default":"null","description":"The result for the request","json_type":"object","kind":"any","lite":"r","name":"result","optional":true,"type":"any"},{"default":"null","description":"The error for the request","json_type":"Error","kind":"struct","lite":"e","name":"error","optional":true,"type":"Error"},{"default":"0","description":"Optional Field which is used to match the response by the client.\nIf not passed, this field will not be returned.\nRange: 0 to 4,294,967,295 (uint32)","example":123,"json_type":"integer","kind":"primitive","lite":"i","name":"id","optional":true,"type":"uint32"},{"description":"The method used in the request for this response (eg: `subscribe` / `unsubscribe` / `v1/instrument` )","example":"subscribe","json_type":"string","kind":"primitive","lite":"m","name":"method","type":"string"}],"is_root":true,"name":"JSONRPCResponse"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","optional":true,"type":"timestamp"},{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"type":"asset"},{"description":"The mark price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","optional":true,"type":"string"},{"description":"The index price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ip","name":"index_price","optional":true,"type":"string"},{"description":"The last traded price of the instrument (also close price). Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"lp","name":"last_price","optional":true,"type":"string"},{"description":"The number of assets traded in the last trade. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"ls","name":"last_size","optional":true,"type":"string"},{"description":"The mid price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp1","name":"mid_price","optional":true,"type":"string"},{"description":"The best bid price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"bb","name":"best_bid_price","optional":true,"type":"string"},{"description":"The number of assets offered on the best bid price of the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"bb1","name":"best_bid_size","optional":true,"type":"string"},{"description":"The best ask price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ba","name":"best_ask_price","optional":true,"type":"string"},{"description":"The number of assets offered on the best ask price of the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"ba1","name":"best_ask_size","optional":true,"type":"string"}],"name":"MiniTicker"},{"description":"Order is a typed payload used throughout the GRVT platform to express all orderbook, RFQ, and liquidation orders.\nGRVT orders are capable of expressing both single-legged, and multi-legged orders by default.\nThis increases the learning curve slightly but reduces overall integration load, since the order payload is used across all GRVT trading venues.\nGiven GRVT's trustless settlement model, the Order payload also carries the signature, required to trade the order on our ZKSync Hyperchain.\n\nAll fields in the Order payload (except `id`, `metadata`, and `state`) are trustlessly enforced on our Hyperchain.\nThis minimizes the amount of trust users have to offer to GRVT","fields":[{"default":"0","description":"Set by the server. A unique 128-bit identifier for the order, deterministically generated within the GRVT backend","example":"0x1234567890abcdef","json_type":"string","kind":"primitive","lite":"oi","name":"order_id","optional":true,"type":"uint128"},{"description":"The subaccount initiating the order","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"default":"false","description":"If the order is a market order\nMarket Orders do not have a limit price, and are always executed according to the maker order price.\nMarket Orders must always be taker orders\nOn STABLE_PERP a slippage bound is mandatory: `limit_price` must carry the signed bound (reference price ± the chosen slippage), otherwise the order is rejected with stablePerpRequiresPriceBound. is_market = false with a limit price behaves identically on STABLE_PERP; the flag is intent metadata only.","example":false,"json_type":"boolean","kind":"primitive","lite":"im","name":"is_market","optional":true,"type":"bool"},{"description":"Four supported types of orders: GTT, IOC, AON, FOK:<ul>\n<li>PARTIAL EXECUTION = GTT / IOC - allows partial size execution on each leg</li>\n<li>FULL EXECUTION = AON / FOK - only allows full size execution on all legs</li>\n<li>TAKER ONLY = IOC / FOK - only allows taker orders</li>\n<li>MAKER OR TAKER = GTT / AON - allows maker or taker orders</li>\n</ul>Exchange only supports (GTT, IOC, FOK)\nRFQ Maker only supports (GTT, AON), RFQ Taker only supports (IOC, FOK)","json_type":"TimeInForce","kind":"enum","lite":"ti","name":"time_in_force","type":"TimeInForce"},{"default":"false","description":"If True, Order must be a maker order. It has to fill the orderbook instead of match it.\nIf False, Order can be either a maker or taker order. <b>In this case, order creation is currently subject to a speedbump of 25ms to ensure orders are matched against updated orderbook quotes.</b>\n\n|               | Must Fill All | Can Fill Partial |\n| -             | -             | -                |\n| Must Be Taker | FOK + False   | IOC + False      |\n| Can Be Either | AON + False   | GTC + False      |\n| Must Be Maker | AON + True    | GTC + True       |","example":false,"json_type":"boolean","kind":"primitive","lite":"po","name":"post_only","optional":true,"type":"bool"},{"default":"false","description":"If True, Order must reduce the position size, or be cancelled","example":false,"json_type":"boolean","kind":"primitive","lite":"ro","name":"reduce_only","optional":true,"type":"bool"},{"array_depth":1,"description":"The legs present in this order\nThe legs must be sorted by Asset.Instrument/Underlying/Quote/Expiration/StrikePrice","json_type":"OrderLeg","kind":"struct","lite":"l","name":"legs","nullable":true,"type":"OrderLeg"},{"description":"The signature approving this order","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"},{"description":"Order Metadata, ignored by the smart contract, and unsigned by the client","json_type":"OrderMetadata","kind":"struct","lite":"m","name":"metadata","type":"OrderMetadata"},{"description":"Set by the server. The current state of the order, ignored by the smart contract, and unsigned by the client","json_type":"OrderState","kind":"struct","lite":"s1","name":"state","optional":true,"type":"OrderState"},{"description":"The main account ID of the builder","json_type":"string","kind":"primitive","lite":"b","name":"builder","optional":true,"type":"address"},{"description":"Builder fee charged for this order, expressed as a percentage (e.g., 0.001 means 0.001%).","example":"0.001","json_type":"string","kind":"decimal","lite":"bf","name":"builder_fee","optional":true,"type":"string"}],"name":"Order"},{"fields":[{"description":"The instrument to trade in this leg","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The total number of assets to trade in this leg. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals. Scaled to an integer only inside the signature.","example":"10.5","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"default":"0","description":"The limit price of the order leg. Decimal string, e.g. \"65000.5\"; up to 9 decimals. Scaled to an integer only inside the signature.\nThis is the number of quote currency units to pay/receive for this leg.\nThis should be `null/0` if the order is a market order\nException: on STABLE_PERP market orders this carries the mandatory signed slippage bound (reference price ± the chosen slippage) rather than being left empty.","example":"65038.01","json_type":"string","kind":"decimal","lite":"lp","name":"limit_price","optional":true,"type":"string"},{"description":"Specifies if the order leg is a buy or sell","example":true,"json_type":"boolean","kind":"primitive","lite":"ib","name":"is_buying_asset","type":"bool"}],"name":"OrderLeg"},{"description":"Metadata fields are used to support Backend only operations. These operations are not trustless by nature.\nHence, fields in here are never signed, and is never transmitted to the smart contract.","fields":[{"description":"A unique identifier for the active order within a subaccount, specified by the client\nThis is used to identify the order in the client's system\nThis field can be used for order amendment/cancellation, but has no bearing on the smart contract layer\nThis field will not be propagated to the smart contract, and should not be signed by the client\nThis value must be unique for all active orders in a subaccount, or amendment/cancellation will not work as expected\nGravity UI will generate a random clientOrderID for each order in the range [0, 2^63 - 1]\nTo prevent any conflicts, client machines should generate a random clientOrderID in the range [2^63, 2^64 - 1]\n\nWhen GRVT Backend receives an order with an overlapping clientOrderID, we will reject the order with rejectReason set to overlappingClientOrderId","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","type":"uint64"},{"default":"0","description":"Set by the server. Time at which the order was received by GRVT in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ct","name":"create_time","optional":true,"type":"timestamp"},{"description":"Trigger fields are used to support any type of trigger order such as TP/SL","json_type":"TriggerOrderMetadata","kind":"struct","lite":"t","name":"trigger","optional":true,"type":"TriggerOrderMetadata"},{"description":"Specifies the broker who brokered the order","example":"BROKER_CODE","json_type":"BrokerTag","kind":"enum","lite":"b","name":"broker","optional":true,"type":"BrokerTag"},{"default":"false","description":"Specifies this order is an ECN order eligible for Market Maker Last Look. Only applicable to STABLE_PERP (SFP) instruments with qualified market makers.","example":false,"json_type":"boolean","kind":"primitive","lite":"ie","name":"is_ecn","optional":true,"type":"bool"},{"default":"0","description":"Maximum allowed slippage from mark price for an IOC limit order, expressed in basis points (800 = 8%).\nOnly valid on IOC limit orders. 0 means no slippage protection (regular limit IOC order).","example":"800","json_type":"integer","kind":"primitive","lite":"sb","name":"slippage_bps","optional":true,"type":"uint16"},{"description":"Binds this order to an RFQ (see ApiCreateRfqRequest and the `v1.rfq` / `v1.quote` streams). Optional.\n\nAs a taker acceptance: unlocks that RFQ's private quote pool, so the order matches across the private pool merged with the public book (firm resting liquidity + public quotes). The acceptance must be a single-leg order with time_in_force = IOC or FOK. Setting `rfq_id` on a non-ECN GTT order is rejected. If the referenced RFQ has expired, been cancelled, or is unknown, the order is rejected.\n\nAs a maker quote (is_ecn = true): identifies which RFQ the quote is responding to.\n\nOmit `rfq_id` to match the public book only — private RFQ liquidity requires an RFQ.","example":"0x1234567890abcdef","json_type":"string","kind":"primitive","lite":"ri","name":"rfq_id","optional":true,"type":"uint128"},{"default":"false","description":"Maker quotes only. true = a private quote delivered to a single RFQ's taker (appears only on that taker's `v1.quote` book); false = a public quote resting on the order book, visible to all. When true, `rfq_id` is required.","example":false,"json_type":"boolean","kind":"primitive","lite":"ip1","name":"is_private","optional":true,"type":"bool"},{"description":"The algo order that created this order as a sub-order.\nZero if the order is not a sub-order of an algo order.","json_type":"string","kind":"primitive","lite":"ao","name":"algo_order_id","optional":true,"type":"uint128"}],"name":"OrderMetadata"},{"fields":[{"description":"The status of the order","json_type":"OrderStatus","kind":"enum","lite":"s","name":"status","type":"OrderStatus"},{"description":"The reason for rejection or cancellation","example":"CLIENT_CANCEL","json_type":"OrderRejectReason","kind":"enum","lite":"rr","name":"reject_reason","type":"OrderRejectReason"},{"array_depth":1,"description":"The number of assets available for orderbook/RFQ matching. Sorted in same order as Order.Legs","example":["10.5"],"json_type":"string","kind":"decimal","lite":"bs","name":"book_size","nullable":true,"type":"string"},{"array_depth":1,"description":"The total number of assets traded. Sorted in same order as Order.Legs","example":["1.5"],"json_type":"string","kind":"decimal","lite":"ts","name":"traded_size","nullable":true,"type":"string"},{"description":"Time at which the order was updated by GRVT, expressed in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ut","name":"update_time","type":"timestamp"},{"array_depth":1,"description":"The average fill price of the order. Sorted in same order as Order.Legs","example":["60000.4"],"json_type":"string","kind":"decimal","lite":"af","name":"avg_fill_price","nullable":true,"type":"string"}],"name":"OrderState"},{"fields":[{"description":"A unique 128-bit identifier for the order, deterministically generated within the GRVT backend","example":"10000101000203040506","json_type":"string","kind":"primitive","lite":"oi","name":"order_id","type":"uint128"},{"description":"A unique identifier for the active order within a subaccount, specified by the client","example":"23042","json_type":"string","kind":"primitive","lite":"co","name":"client_order_id","type":"uint64"},{"description":"The order state object being created or updated","json_type":"OrderState","kind":"struct","lite":"os","name":"order_state","type":"OrderState"}],"name":"OrderStateFeed"},{"fields":[{"description":"The price of the level. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"p","name":"price","type":"string"},{"description":"The number of assets offered. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"3456.78","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The number of open orders at this level","example":"123","json_type":"integer","kind":"primitive","lite":"no","name":"num_orders","type":"uint32"}],"name":"OrderbookLevel"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"array_depth":1,"description":"The list of best bids up till query depth","json_type":"OrderbookLevel","kind":"struct","lite":"b","name":"bids","nullable":true,"type":"OrderbookLevel"},{"array_depth":1,"description":"The list of best asks up till query depth","json_type":"OrderbookLevel","kind":"struct","lite":"a","name":"asks","nullable":true,"type":"OrderbookLevel"}],"name":"OrderbookLevels"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The sub account ID that participated in the trade","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The instrument being represented","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"The size of the position. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals. Negative for short positions","example":"2635000.50","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The notional value of the position, negative for short assets, in the quote asset. Decimal string, e.g. \"12.5\".","example":"2635000.50","json_type":"string","kind":"decimal","lite":"n","name":"notional","type":"string"},{"description":"The entry price of the position. Decimal string, e.g. \"65000.5\"; up to 9 decimals.\nWhenever increasing the size of a position, the entry price is updated to the new average entry price\n`new_entry_price = (old_entry_price * old_size + trade_price * trade_size) / (old_size + trade_size)`","example":"65038.01","json_type":"string","kind":"decimal","lite":"ep","name":"entry_price","type":"string"},{"description":"The exit price of the position. Decimal string, e.g. \"65000.5\"; up to 9 decimals.\nWhenever decreasing the size of a position, the exit price is updated to the new average exit price\n`new_exit_price = (old_exit_price * old_exit_trade_size + trade_price * trade_size) / (old_exit_trade_size + trade_size)`","example":"65038.01","json_type":"string","kind":"decimal","lite":"ep1","name":"exit_price","type":"string"},{"description":"The mark price of the position. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","type":"string"},{"description":"The unrealized PnL of the position, in the quote asset. Decimal string, e.g. \"12.5\".\n`unrealized_pnl = (mark_price - entry_price) * size`","example":"135000.50","json_type":"string","kind":"decimal","lite":"up","name":"unrealized_pnl","type":"string"},{"description":"The realized PnL of the position, in the quote asset. Decimal string, e.g. \"12.5\".\n`realized_pnl = (exit_price - entry_price) * exit_trade_size`","example":"-35000.30","json_type":"string","kind":"decimal","lite":"rp","name":"realized_pnl","type":"string"},{"description":"The total PnL of the position, in the quote asset. Decimal string, e.g. \"12.5\".\n`total_pnl = realized_pnl + unrealized_pnl`","example":"100000.20","json_type":"string","kind":"decimal","lite":"tp","name":"total_pnl","type":"string"},{"description":"The ROI of the position, expressed as a percentage\n`roi = (total_pnl / (entry_price * abs(size))) * 100^`","example":"10.20","json_type":"string","kind":"decimal","lite":"r","name":"roi","type":"string"},{"description":"The index price of the quote currency. (reported in `USD`)","example":"1.0000102","json_type":"string","kind":"decimal","lite":"qi","name":"quote_index_price","type":"string"},{"description":"The estimated liquidation price","example":60000.25,"json_type":"string","kind":"decimal","lite":"el","name":"est_liquidation_price","type":"string"},{"description":"The current leverage value for this position","example":"10","json_type":"string","kind":"decimal","lite":"l","name":"leverage","type":"string"},{"description":"The cumulative fee paid on the position, in the quote asset. Decimal string, e.g. \"12.5\".","example":"100000.20","json_type":"string","kind":"decimal","lite":"cf","name":"cumulative_fee","type":"string"},{"description":"The cumulative realized funding payment of the position, in the quote asset. Decimal string, e.g. \"12.5\". Positive if paid, negative if received","example":"100000.20","json_type":"string","kind":"decimal","lite":"cr","name":"cumulative_realized_funding_payment","type":"string"},{"description":"The margin type of the position","example":"cross","json_type":"PositionMarginType","kind":"enum","lite":"mt","name":"margin_type","type":"PositionMarginType"},{"description":"[IsolatedOnly] The wallet balance reserved for this isolated margin position, in the quote asset. Decimal string, e.g. \"12.5\". If this positions is liquidated, this is the maximal balance that can be lost","example":"100000.20","json_type":"string","kind":"decimal","lite":"ib","name":"isolated_balance","optional":true,"type":"string"},{"description":"[IsolatedOnly] The initial margin of the isolated margin position, in the quote asset. Decimal string, e.g. \"12.5\". The `total_equity` required to open more size in the position","example":"100000.20","json_type":"string","kind":"decimal","lite":"ii","name":"isolated_im","optional":true,"type":"string"},{"description":"[IsolatedOnly] The maintenance margin of the isolated margin position, in the quote asset. Decimal string, e.g. \"12.5\". The `total_equity` required to avoid liquidation of the position","example":"100000.20","json_type":"string","kind":"decimal","lite":"im","name":"isolated_mm","optional":true,"type":"string"}],"name":"Positions"},{"description":"Vault redemption queue section hidden from main view. All requests here have yet to age past the vault's minimum redemption period.","fields":[{"array_depth":1,"description":"Pre-minimum-age redemption requests, ordered by age (first element is the oldest request that is pre-minimum-age).","json_type":"VaultRedemptionRequest","kind":"struct","lite":"r","name":"requests","nullable":true,"type":"VaultRedemptionRequest"},{"description":"Number of shares in the pre-minimum-age section of the vault's redemption queue.","example":"1000000","json_type":"string","kind":"decimal","lite":"tc","name":"token_count","type":"string"}],"name":"PreMinRedemptions"},{"description":"A Request for Quote (RFQ) lets a taker solicit private quotes on a single instrument from makers.\n\n<ul><li>Single instrument</li><ul><li>Each RFQ targets one instrument (kind = STABLE_PERP) for a single requested size.</li><li>The taker may disclose a direction via `rfq.side`, or omit it to request a two-way (buy and sell) quote.</li></ul><li>Maker solicitation</li><ul><li>On submission, GRVT broadcasts the RFQ to makers over the `v1.rfq` feed (see RfqFeed).</li><li>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).</li></ul><li>Anonymity</li><ul><li>Anonymity is automatic and always enforced — the taker and makers only ever see each other's derived anonymous account ids.</li><li>Real taker and maker identities are never exposed to the counterparty.</li></ul><li>Expiry</li><ul><li>The RFQ lives until `rfq.expiry`, after which GRVT expires it and auto-cancels the makers' private quotes bound to it.</li></ul></ul>","fields":[{"description":"Set by the server. A unique 128-bit identifier for the RFQ, deterministically generated within the GRVT backend","example":"0x1234567890abcdef","json_type":"string","kind":"primitive","lite":"ri","name":"rfq_id","server_filled":true,"type":"uint128"},{"description":"The subaccount initiating the RFQ","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"When the RFQ expires, in unix nanoseconds. Default 60s, cap 300s (per-instrument config)","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"e","name":"expiry","type":"timestamp"},{"description":"The instrument to trade. Must be kind = STABLE_PERP","example":"AAPL_USDC_SFP","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"Requested size (positive). Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"10.5","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"Optional — omitted = two-way request. The GRVT UI always fills it; API takers may withhold direction and accept two-way quotes","json_type":"RfqSide","kind":"enum","lite":"s1","name":"side","optional":true,"type":"RfqSide"}],"name":"Rfq"},{"fields":[{"description":"The RFQ this estimate belongs to. A feed with no levels means the RFQ ended","example":"0x1234567890abcdef","json_type":"string","kind":"primitive","lite":"ri","name":"rfq_id","type":"uint128"},{"description":"Average fill price to sell the RFQ size. Decimal string, e.g. \"65000.5\"; up to 9 decimals. Omitted when the bid side is empty","example":"65038.01","json_type":"string","kind":"decimal","lite":"bb","name":"best_bid","optional":true,"type":"string"},{"description":"Average fill price to buy the RFQ size. Decimal string, e.g. \"65000.5\"; up to 9 decimals. Omitted when the ask side is empty","example":"65040.02","json_type":"string","kind":"decimal","lite":"ba","name":"best_ask","optional":true,"type":"string"},{"array_depth":1,"description":"The sell-side estimate (at most one level), from the bids","json_type":"RfqQuoteLevel","kind":"struct","lite":"bl","name":"bid_levels","nullable":true,"type":"RfqQuoteLevel"},{"array_depth":1,"description":"The buy-side estimate (at most one level), from the asks","json_type":"RfqQuoteLevel","kind":"struct","lite":"al","name":"ask_levels","nullable":true,"type":"RfqQuoteLevel"}],"name":"RfqQuoteFeed"},{"fields":[{"description":"Average fill price for the size. Decimal string, e.g. \"65000.5\"; up to 9 decimals. Rounded against the taker: up for asks, down for bids","example":"65038.01","json_type":"string","kind":"decimal","lite":"p","name":"price","type":"string"},{"description":"Fillable size, up to the RFQ size. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"3456.78","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The maker's derived anonymous account id shown to the taker. Real maker identity is never exposed","example":"0x2f7a5c8e1b4d6039a2c5e8f1b4d70369","json_type":"string","kind":"primitive","lite":"ma","name":"maker_anon_account_id","type":"uint128"},{"description":"Distinguishes an AON level (liftable only in full — POST-MVP) from a GTT level","json_type":"TimeInForce","kind":"enum","lite":"ti","name":"time_in_force","type":"TimeInForce"}],"name":"RfqQuoteLevel"},{"fields":[{"description":"1-indexed tier number","example":1,"json_type":"integer","kind":"primitive","lite":"t","name":"tier","type":"uint32"},{"description":"Lower bound of notional value (inclusive) in quote currency","example":"0","json_type":"string","kind":"decimal","lite":"nf","name":"notional_floor","type":"string"},{"description":"Upper bound of notional value (exclusive) in quote currency, omitted for last tier","example":"600000","json_type":"string","kind":"decimal","lite":"nc","name":"notional_cap","optional":true,"type":"string"},{"description":"Maintenance margin rate as a decimal (e.g., '0.01' for 1%)","example":"0.01","json_type":"string","kind":"decimal","lite":"mm","name":"maintenance_margin_rate","type":"string"},{"description":"Initial margin rate as a decimal (e.g., '0.02' for 2%)","example":"0.02","json_type":"string","kind":"decimal","lite":"im","name":"initial_margin_rate","type":"string"},{"description":"Maximum leverage allowed at this tier (floor of 1 / initial_margin_rate)","example":50,"json_type":"integer","kind":"primitive","lite":"ml","name":"max_leverage","type":"uint32"},{"description":"Cumulative maintenance margin amount in quote currency","example":"0","json_type":"string","kind":"decimal","lite":"cm","name":"cumulative_maintenance_amount","type":"string"}],"name":"RiskBracket"},{"fields":[{"array_depth":1,"description":"Trading sessions for the current calendar week (Sunday to Saturday in the exchange's local time). The sessions are contiguous with no gaps, and any period when the market is not open, including holidays falling in this week, is returned as a `CLOSE` session","json_type":"TradingSession","kind":"struct","lite":"s","name":"sessions","nullable":true,"type":"TradingSession"},{"array_depth":1,"description":"Market holidays and early closes, past and upcoming, sorted by start time. The market is closed from the start time to the end time of each entry. Empty when there are none","json_type":"TradingHolidaySchedule","kind":"struct","lite":"h","name":"holidays","nullable":true,"type":"TradingHolidaySchedule"}],"name":"SfpMarketSchedule"},{"fields":[{"description":"The group name. For stable perps on their asset class hours, the asset class (for example `COMMODITY_CME`)","example":"CME copper","json_type":"string","kind":"primitive","lite":"n","name":"name","type":"string"},{"description":"The instruments' asset class. Its holiday calendar sets the group's holidays","example":"COMMODITY_CME","json_type":"AssetClass","kind":"enum","lite":"ac","name":"asset_class","type":"AssetClass"},{"array_depth":1,"description":"The stable perps trading these hours, sorted. Each stable perp with a schedule is in exactly one group","example":["XAU_USDT_SFP"],"json_type":"string","kind":"primitive","lite":"i","name":"instruments","nullable":true,"type":"asset"},{"array_depth":1,"description":"Trading sessions for the current calendar week (Sunday to Saturday in the exchange's local time). The sessions are contiguous with no gaps, and any period when the market is not open, including holidays falling in this week, is returned as a `CLOSE` session","json_type":"TradingSession","kind":"struct","lite":"s","name":"sessions","nullable":true,"type":"TradingSession"},{"array_depth":1,"description":"Market holidays and early closes, past and upcoming, sorted by start time. The market is closed from the start time to the end time of each entry. Empty when there are none","json_type":"TradingHolidaySchedule","kind":"struct","lite":"h","name":"holidays","nullable":true,"type":"TradingHolidaySchedule"}],"name":"SfpTradingScheduleGroup"},{"fields":[{"description":"The address (public key) of the wallet signing the payload","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"s","name":"signer","type":"uint256"},{"description":"Signature R","example":"0xb788d96fee91c7cdc35918e0441b756d4000ec1d07d900c73347d9abbc20acc8","json_type":"string","kind":"primitive","lite":"r","name":"r","type":"uint256"},{"description":"Signature S","example":"0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d","json_type":"string","kind":"primitive","lite":"s1","name":"s","type":"uint256"},{"description":"Signature V","example":"28","json_type":"integer","kind":"primitive","lite":"v","name":"v","type":"uint8"},{"description":"Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"e","name":"expiration","type":"timestamp"},{"description":"Users can randomly generate this value, used as a signature deconflicting key.\nie. You can send the same exact instruction twice with different nonces.\nWhen the same nonce is used, the same payload will generate the same signature.\nOur system will consider the payload a duplicate, and ignore it.\nRange: 0 to 4,294,967,295 (uint32)","example":"1234567890","json_type":"integer","kind":"primitive","lite":"n","name":"nonce","type":"uint32"},{"description":"Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.","example":"325","json_type":"string","kind":"primitive","lite":"ci","name":"chain_id","type":"uint64"}],"name":"Signature"},{"fields":[{"description":"The currency you hold a spot balance in","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"This currency's balance in this trading account.","example":"123456.78","json_type":"string","kind":"decimal","lite":"b","name":"balance","type":"string"},{"description":"The index price of this currency. (reported in `USD`)","example":"1.0000102","json_type":"string","kind":"decimal","lite":"ip","name":"index_price","type":"string"},{"description":"The entry price of this spot currency. (reported in `USD`)","example":"1.0","json_type":"string","kind":"decimal","lite":"ep","name":"entry_price","type":"string"},{"description":"The realized PnL of this spot currency. (reported in `USD`)","example":"0.0","json_type":"string","kind":"decimal","lite":"rp","name":"realized_pnl","type":"string"},{"description":"The unrealized PnL of this spot currency. (reported in `USD`)","example":"0.0","json_type":"string","kind":"decimal","lite":"up","name":"unrealized_pnl","type":"string"},{"description":"The available to transfer amount of this spot currency.","example":"0.0","json_type":"string","kind":"decimal","lite":"at","name":"available_to_transfer","type":"string"},{"description":"The amount borrowed in this currency, inclusive of accrued interest.\nOnly reported by `account_summary`, and only for multi-asset-mode sub accounts","example":"0.0","json_type":"string","kind":"decimal","lite":"ba","name":"borrowed_amount","optional":true,"type":"string"}],"name":"SpotBalance"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The sub account ID this entry refers to","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"Total equity of the spot sub account, denominated USD","example":"3945034.23","json_type":"string","kind":"decimal","lite":"te","name":"total_equity","type":"string"},{"array_depth":1,"description":"The list of spot assets owned by this spot sub account, and their balances","json_type":"SpotBalance","kind":"struct","lite":"sb","name":"spot_balances","nullable":true,"type":"SpotBalance"}],"name":"SpotSubAccount"},{"fields":[{"description":"The channel to subscribe to (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of selectors for the stream","example":["BTC_USDT_Perp","ETH_USDT_Perp"],"json_type":"string","kind":"primitive","lite":"s1","name":"selectors","nullable":true,"type":"string"}],"name":"StreamReference"},{"fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The sub account ID this entry refers to","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The type of margin algorithm this subaccount uses","example":"SIMPLE_CROSS_MARGIN","json_type":"MarginType","kind":"enum","lite":"mt","name":"margin_type","type":"MarginType"},{"description":"The settlement, margin, and reporting currency of this account.\nThis subaccount can only open positions quoted in this currency\n\nIn the future, when users select a Multi-Currency Margin Type, this will be USD\nAll other assets are converted to this currency for the purpose of calculating margin","example":"USDT","json_type":"string","kind":"primitive","lite":"sc","name":"settle_currency","type":"string"},{"description":"The total unrealized PnL of all positions owned by this subaccount, in the quote asset. Decimal string, e.g. \"12.5\".\n`unrealized_pnl = sum(position.unrealized_pnl * position.quote_index_price) / settle_index_price`","example":"123456.78","json_type":"string","kind":"decimal","lite":"up","name":"unrealized_pnl","type":"string"},{"description":"The notional value of your account if all positions are closed, excluding trading fees (reported in `settle_currency`).\n`total_equity = sum(spot_balance.balance * spot_balance.index_price) / settle_index_price + unrealized_pnl`","example":"123456.78","json_type":"string","kind":"decimal","lite":"te","name":"total_equity","type":"string"},{"description":"The `total_equity` required to open positions in the account (reported in `settle_currency`).\nComputation is different depending on account's `margin_type`","example":"123456.78","json_type":"string","kind":"decimal","lite":"im","name":"initial_margin","type":"string"},{"description":"The `total_equity` required to avoid liquidation of positions in the account (reported in `settle_currency`).\nComputation is different depending on account's `margin_type`","example":"123456.78","json_type":"string","kind":"decimal","lite":"mm","name":"maintenance_margin","type":"string"},{"description":"DEPRECATED: use the per-currency `availableToTransfer` of the quote-currency entry in `spotBalances` instead.\nThe notional value available to transfer out of the trading account into the funding account (reported in `settle_currency`).\n`available_balance = total_equity - initial_margin - min(unrealized_pnl, 0)`","example":"123456.78","json_type":"string","kind":"decimal","lite":"ab","name":"available_balance","type":"string"},{"array_depth":1,"description":"The list of spot assets owned by this sub account, and their balances","json_type":"SpotBalance","kind":"struct","lite":"sb","name":"spot_balances","nullable":true,"type":"SpotBalance"},{"array_depth":1,"description":"The list of positions owned by this sub account","json_type":"Positions","kind":"struct","lite":"p","name":"positions","nullable":true,"type":"Positions"},{"description":"The index price of the settle currency. (reported in `USD`)","example":"1.0000102","json_type":"string","kind":"decimal","lite":"si","name":"settle_index_price","type":"string"},{"description":"Whether this sub account is a vault","example":false,"json_type":"boolean","kind":"primitive","lite":"iv","name":"is_vault","optional":true,"type":"bool"},{"description":"Total amount of IM (reported in `settle_currency`) deducted from the vault due to redemptions nearing the end of their redemption period","example":"123456.78","json_type":"string","kind":"decimal","lite":"vi","name":"vault_im_additions","optional":true,"type":"string"},{"description":"The derisk margin of this sub account","example":"185185.77","json_type":"string","kind":"decimal","lite":"dm","name":"derisk_margin","type":"string"},{"description":"The derisk margin to maintenance margin ratio of this sub account","example":"1.5","json_type":"string","kind":"decimal","lite":"dt","name":"derisk_to_maintenance_margin_ratio","type":"string"},{"description":"The total equity of this sub account for cross margin","example":"123456.78","json_type":"string","kind":"decimal","lite":"tc","name":"total_cross_equity","type":"string"},{"description":"The unrealized PnL of this sub account for cross margin","example":"123456.78","json_type":"string","kind":"decimal","lite":"cu","name":"cross_unrealized_pnl","type":"string"},{"description":"The mode of the sub account","example":"SINGLE_ASSET_MODE","json_type":"SubAccountMode","kind":"enum","lite":"sa1","name":"sub_account_mode","type":"SubAccountMode"},{"description":"The margin balance of this sub account for cross margin","example":"123456.78","json_type":"string","kind":"decimal","lite":"mb","name":"margin_balance","type":"string"},{"description":"Whether algo trading is enabled for this sub account","example":false,"json_type":"boolean","kind":"primitive","lite":"at","name":"algo_trading_enabled","type":"bool"}],"name":"SubAccount"},{"description":"An asset supported for a given wallet type","fields":[{"description":"The currency ID of the asset","example":3,"json_type":"integer","kind":"primitive","lite":"ai","name":"asset_id","type":"uint16"},{"description":"The readable currency code of the asset","example":"USDT","json_type":"string","kind":"primitive","lite":"ac","name":"asset_code","type":"string"},{"description":"The number of decimals used for balance representation","example":6,"json_type":"integer","kind":"primitive","lite":"bd","name":"balance_decimals","type":"int8"},{"description":"The asset cannot be transferred between wallets","example":false,"json_type":"boolean","kind":"primitive","lite":"td","name":"transfer_disabled","type":"bool"}],"name":"SupportedAsset"},{"description":"Contains metadata for Take Profit (TP) and Stop Loss (SL) trigger orders.","fields":[{"description":"Defines the price type (e.g., index price) that activates a Take Profit (TP) or Stop Loss (SL) order","example":"LAST","json_type":"TriggerBy","kind":"enum","lite":"tb","name":"trigger_by","type":"TriggerBy"},{"description":"The Trigger Price of the order. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.10","json_type":"string","kind":"decimal","lite":"tp","name":"trigger_price","type":"string"},{"description":"If True, the order will close the position when the trigger price is reached","example":false,"json_type":"boolean","kind":"primitive","lite":"cp","name":"close_position","type":"bool"},{"description":"If True, the order will be treated as part of a position's split-TP/SL set, subject to aggregate size/count limits.","example":false,"json_type":"boolean","kind":"primitive","lite":"is","name":"is_split_position","type":"bool"}],"name":"TPSLOrderMetadata"},{"description":"Derived data such as the below, will not be included by default:\n  - 24 hour volume (`buyVolume + sellVolume`)\n  - 24 hour taker buy/sell ratio (`buyVolume / sellVolume`)\n  - 24 hour average trade price (`volumeQ / volumeU`)\n  - 24 hour average trade volume (`volume / trades`)\n  - 24 hour percentage change (`24hStatChange / 24hStat`)\n  - 48 hour statistics (`2 * 24hStat - 24hStatChange`)\n\nTo query for an extended ticker payload, leverage the `greeks` and the `derived` flags.\nThese flags are only supported on the `Ticker Snapshot` WS endpoint, and on the `Ticker` API endpoint.","fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","optional":true,"type":"timestamp"},{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"type":"asset"},{"description":"The mark price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","optional":true,"type":"string"},{"description":"The index price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ip","name":"index_price","optional":true,"type":"string"},{"description":"The last traded price of the instrument (also close price). Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"lp","name":"last_price","optional":true,"type":"string"},{"description":"The number of assets traded in the last trade. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"ls","name":"last_size","optional":true,"type":"string"},{"description":"The mid price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp1","name":"mid_price","optional":true,"type":"string"},{"description":"The best bid price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"bb","name":"best_bid_price","optional":true,"type":"string"},{"description":"The number of assets offered on the best bid price of the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"bb1","name":"best_bid_size","optional":true,"type":"string"},{"description":"The best ask price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ba","name":"best_ask_price","optional":true,"type":"string"},{"description":"The number of assets offered on the best ask price of the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"ba1","name":"best_ask_size","optional":true,"type":"string"},{"description":"DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).","example":0.0003,"json_type":"string","kind":"decimal","lite":"fr","name":"funding_rate_8h_curr","optional":true,"type":"string"},{"description":"DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).","example":0.0003,"json_type":"string","kind":"decimal","lite":"fr1","name":"funding_rate_8h_avg","optional":true,"type":"string"},{"description":"The interest rate of the underlying, expressed in centibeeps (1/100th of a basis point)","example":0.0003,"json_type":"string","kind":"decimal","lite":"ir","name":"interest_rate","optional":true,"type":"string"},{"description":"[Options] The forward price of the option. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"fp","name":"forward_price","optional":true,"type":"string"},{"description":"The 24 hour taker buy volume of the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"bv","name":"buy_volume_24h_b","optional":true,"type":"string"},{"description":"The 24 hour taker sell volume of the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"sv","name":"sell_volume_24h_b","optional":true,"type":"string"},{"description":"The 24 hour taker buy volume of the instrument, in the quote asset. Decimal string, e.g. \"12.5\".","example":"123456.78","json_type":"string","kind":"decimal","lite":"bv1","name":"buy_volume_24h_q","optional":true,"type":"string"},{"description":"The 24 hour taker sell volume of the instrument, in the quote asset. Decimal string, e.g. \"12.5\".","example":"123456.78","json_type":"string","kind":"decimal","lite":"sv1","name":"sell_volume_24h_q","optional":true,"type":"string"},{"description":"The 24 hour highest traded price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"hp","name":"high_price","optional":true,"type":"string"},{"description":"The 24 hour lowest traded price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"lp1","name":"low_price","optional":true,"type":"string"},{"description":"The 24 hour first traded price of the instrument. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"op","name":"open_price","optional":true,"type":"string"},{"description":"The open interest in the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"oi","name":"open_interest","optional":true,"type":"string"},{"description":"The ratio of accounts that are net long vs net short on this instrument","example":"0.5","json_type":"string","kind":"decimal","lite":"ls1","name":"long_short_ratio","optional":true,"type":"string"},{"description":"The current indicative funding rate for the active interval, expressed in centibeeps. Absent for stable perps, which have `funding_rate_long_apr_pct` and `funding_rate_short_apr_pct` instead.","example":0.0003,"json_type":"string","kind":"decimal","lite":"fr2","name":"funding_rate","optional":true,"type":"string"},{"description":"Timestamp in nanoseconds when the current funding interval ends","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"nf","name":"next_funding_time","optional":true,"type":"timestamp"},{"description":"The current status of the instrument","example":"ACTIVE","json_type":"InstrumentStatus","kind":"enum","lite":"s","name":"status","optional":true,"type":"InstrumentStatus"},{"description":"The current trading session of the instrument's underlying market","example":"REGULAR","json_type":"TradingSessionType","kind":"enum","lite":"s1","name":"session","optional":true,"type":"TradingSessionType"},{"description":"The long open interest in the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals. Excludes qualified-maker and DMM open interest.","example":"123456.78","json_type":"string","kind":"decimal","lite":"lo","name":"long_open_interest","optional":true,"type":"string"},{"description":"The short open interest in the instrument. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals. Excludes qualified-maker and DMM open interest.","example":"123456.78","json_type":"string","kind":"decimal","lite":"so","name":"short_open_interest","optional":true,"type":"string"},{"description":"Stable 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). Updated when the rates change. Absent for other kinds.","example":"-5.5","json_type":"string","kind":"decimal","lite":"fr3","name":"funding_rate_long_apr_pct","optional":true,"type":"string"},{"description":"Stable 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). Updated when the rates change. Absent for other kinds.","example":"-5","json_type":"string","kind":"decimal","lite":"fr4","name":"funding_rate_short_apr_pct","optional":true,"type":"string"}],"name":"Ticker"},{"description":"All private RFQs and Private AXEs will be filtered out from the responses","fields":[{"description":"Time at which the event was emitted in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","type":"asset"},{"description":"If taker was the buyer on the trade","example":true,"json_type":"boolean","kind":"primitive","lite":"it","name":"is_taker_buyer","type":"bool"},{"description":"The number of assets being traded. Decimal string, e.g. \"0.01\"; up to the instrument's base_decimals.","example":"123456.78","json_type":"string","kind":"decimal","lite":"s","name":"size","type":"string"},{"description":"The traded price. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"p","name":"price","type":"string"},{"description":"The mark price of the instrument at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"mp","name":"mark_price","optional":true,"type":"string"},{"description":"The index price of the instrument at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"ip","name":"index_price","type":"string"},{"description":"The interest rate of the underlying at point of trade, expressed in centibeeps (1/100th of a basis point)","example":0.0003,"json_type":"string","kind":"decimal","lite":"ir","name":"interest_rate","type":"string"},{"description":"[Options] The forward price of the option at point of trade. Decimal string, e.g. \"65000.5\"; up to 9 decimals.","example":"65038.01","json_type":"string","kind":"decimal","lite":"fp","name":"forward_price","optional":true,"type":"string"},{"description":"A trade identifier, globally unique, and monotonically increasing (not by `1`).\nAll trades sharing a single taker execution share the same first component (before `-`), and `event_time`.\n`trade_id` is guaranteed to be consistent across MarketData `Trade` and Trading `Fill`.","example":"209358-2","json_type":"string","kind":"primitive","lite":"ti","name":"trade_id","type":"string"},{"description":"The venue where the trade occurred","example":"ORDERBOOK","json_type":"Venue","kind":"enum","lite":"v","name":"venue","type":"Venue"},{"description":"If the trade is a RPI trade","example":false,"json_type":"boolean","kind":"primitive","lite":"ir1","name":"is_rpi","type":"bool"}],"name":"Trade"},{"fields":[{"description":"Holiday name","example":"Independence Day","json_type":"string","kind":"primitive","lite":"n","name":"name","type":"string"},{"description":"`FULL_DAY`: the market is closed for the whole day. `EARLY_CLOSE`: the market trades as normal until the start time, then is closed until the end time","example":"FULL_DAY","json_type":"TradingScheduleCloseType","kind":"enum","lite":"ct","name":"close_type","type":"TradingScheduleCloseType"},{"description":"When the closure begins, as a Unix timestamp in milliseconds. For `FULL_DAY` this is when the closed trading day's session would have opened (the evening before for a session that opens before midnight); for `EARLY_CLOSE` it is the moment the market closes early","example":"1783137600000","json_type":"string","kind":"primitive","lite":"st","name":"start_time","type":"int64"},{"description":"When the closed or shortened trading day's session would have closed, as a Unix timestamp in milliseconds. The closure covers the start time up to, but not including, the end time","example":"1783224000000","json_type":"string","kind":"primitive","lite":"et","name":"end_time","type":"int64"}],"name":"TradingHolidaySchedule"},{"fields":[{"description":"Trading session start time timestamp in milliseconds","example":"1697788800000","json_type":"string","kind":"primitive","lite":"st","name":"start_time","type":"int64"},{"description":"Trading session end time timestamp in milliseconds","example":"1697812200000","json_type":"string","kind":"primitive","lite":"et","name":"end_time","type":"int64"},{"description":"Trading session type","example":"REGULAR","json_type":"TradingSessionType","kind":"enum","lite":"t","name":"type","type":"TradingSessionType"}],"name":"TradingSession"},{"fields":[{"description":"The transaction ID of the transfer","example":"1028403","json_type":"string","kind":"primitive","lite":"ti","name":"tx_id","type":"uint64"},{"description":"The account to transfer from","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"fa","name":"from_account_id","type":"address"},{"description":"The subaccount to transfer from (0 if transferring from main account)","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"fs","name":"from_sub_account_id","type":"uint64"},{"description":"The account to deposit into","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"ta","name":"to_account_id","type":"address"},{"description":"The subaccount to transfer to (0 if transferring to main account)","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"ts","name":"to_sub_account_id","type":"uint64"},{"description":"The token currency to transfer","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to transfer","example":"1500.0","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The signature of the transfer","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"},{"description":"The timestamp of the transfer in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The type of transfer","example":"STANDARD","json_type":"TransferType","kind":"enum","lite":"tt","name":"transfer_type","type":"TransferType"},{"description":"The metadata of the transfer","json_type":"string","kind":"primitive","lite":"tm","name":"transfer_metadata","type":"string"},{"description":"The wallet type of the from account or subaccount","example":"SPOT","json_type":"WalletType","kind":"enum","lite":"fw","name":"from_wallet_type","type":"WalletType"},{"description":"The wallet type of the to account or subaccount","example":"FUNDING","json_type":"WalletType","kind":"enum","lite":"tw","name":"to_wallet_type","type":"WalletType"}],"name":"TransferHistory"},{"description":"Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).\n\nTrigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.","fields":[{"description":"Type of the trigger order. eg: Take Profit, Stop Loss, etc","example":"TAKE_PROFIT","json_type":"TriggerType","kind":"enum","lite":"tt","name":"trigger_type","type":"TriggerType"},{"description":"Contains metadata for Take Profit (TP) and Stop Loss (SL) trigger orders.","json_type":"TPSLOrderMetadata","kind":"struct","lite":"t","name":"tpsl","type":"TPSLOrderMetadata"}],"name":"TriggerOrderMetadata"},{"description":"Summarizes a vault investment held by a funding account","fields":[{"description":"The trading account ID of the vault invested in.","example":123456789,"json_type":"string","kind":"primitive","lite":"vi","name":"vault_id","type":"uint64"},{"description":"The number of shares held by the investor.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl","name":"num_lp_tokens","type":"string"},{"description":"The current share price (in USD) of this vault investment.","example":1000000,"json_type":"string","kind":"decimal","lite":"sp","name":"share_price","type":"string"},{"description":"The USD notional invested in this vault investment.","example":1000000,"json_type":"string","kind":"decimal","lite":"un","name":"usd_notional_invested","type":"string"},{"description":"The owner's Funding, trading and reserved vault shares. Absent on older snapshots.","json_type":"VaultShareBalances","kind":"struct","lite":"sb","name":"share_balances","optional":true,"type":"VaultShareBalances"}],"name":"VaultInvestment"},{"description":"Vault investor summary information.\n\nThis struct contains the summary of investments in a vault.","fields":[{"description":"The unique identifier of the vault sub account.","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The number of vault LP tokens the investor holds: those in the funding account plus those in every trading account.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl","name":"num_lp_tokens","type":"string"},{"description":"The average entry price (in USD) of the investor's vault LP tokens: the investor's invested notional divided by numLPTokens.","example":1000000,"json_type":"string","kind":"decimal","lite":"ae","name":"avg_entry_price","type":"string"},{"description":"The current price (in USD) of the vault LP tokens.","example":1000000,"json_type":"string","kind":"decimal","lite":"cp","name":"current_price","type":"string"},{"description":"The vault's total equity (in USD). The investor's holding is investorEquity.","example":1000000,"json_type":"string","kind":"decimal","lite":"te","name":"total_equity","type":"string"},{"description":"The all-time realized PnL (in USD) that the investor has received from the vault.","example":1000000,"json_type":"string","kind":"decimal","lite":"at","name":"all_time_realized_pnl","type":"string"},{"description":"The singleton pending redemption (omitted if none).","json_type":"VaultRedemption","kind":"struct","lite":"pr","name":"pending_redemption","optional":true,"type":"VaultRedemption"},{"default":"true","description":"True if the requesting account is authorized to burn tokens on this vault, omitted otherwise.","json_type":"boolean","kind":"primitive","lite":"cb","name":"can_burn","optional":true,"type":"bool"},{"description":"The number of the investor's vault LP tokens still within the vault's minimum investment period.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl1","name":"num_lp_tokens_locked","type":"string"},{"description":"The number of vault LP tokens the investor can request to redeem now: those past the minimum investment period, less any pending redemption.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl2","name":"num_lp_tokens_redeemable","type":"string"},{"array_depth":1,"description":"The investor's vault LP tokens within the minimum investment period, by the time they unlock (earliest first).","json_type":"VaultLpLotView","kind":"struct","lite":"ll","name":"locked_lots","nullable":true,"type":"VaultLpLotView"},{"description":"Where the investor's vault LP tokens sit: the funding account and the trading accounts.","json_type":"VaultShareBalances","kind":"struct","lite":"sb","name":"share_balances","type":"VaultShareBalances"},{"array_depth":1,"description":"One entry per trading account holding the vault's LP tokens. Empty when no trading account holds any.","json_type":"VaultShareTradingBalance","kind":"struct","lite":"tb","name":"trading_balances","nullable":true,"type":"VaultShareTradingBalance"},{"description":"The current valuation (in USD) of all the investor's vault LP tokens: numLPTokens times currentPrice.","example":1000000,"json_type":"string","kind":"decimal","lite":"ie","name":"investor_equity","type":"string"},{"description":"The investor's unrealized PnL (in USD): investorEquity less the investor's invested notional.","example":1000000,"json_type":"string","kind":"decimal","lite":"up","name":"unrealized_pnl","type":"string"}],"name":"VaultInvestorSummary"},{"description":"Vault LP tokens minted together that unlock at the same time.","fields":[{"description":"Time in unix nanoseconds from which these LP tokens can be redeemed.","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"ut","name":"unlock_time","type":"timestamp"},{"description":"The number of LP tokens in the lot.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl","name":"num_lp_tokens","type":"string"}],"name":"VaultLpLotView"},{"description":"Vault redemption information.\n\nThis struct contains information about a pending redemption from a vault.","fields":[{"description":"The number of LP Tokens requested for redemption.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl","name":"num_lp_tokens","type":"string"},{"description":"The valuation (in USD) of the redemption request.","example":1000000,"json_type":"string","kind":"decimal","lite":"rv","name":"request_valuation","type":"string"},{"description":"Set by the server. Time at which the redemption request was received by GRVT in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"rt","name":"request_time","type":"timestamp"},{"description":"Set by the server. Time in unix nanoseconds, beyond which the request will be force-redeemed.","example":1727788800000000000,"json_type":"string","kind":"timestamp","lite":"mr","name":"max_redemption_period_timestamp","type":"timestamp"},{"default":"true","description":"Omitted for redemption requests to non-cross exchange vaults. True if cancellation is blocked within the CEV allocation allowance for the user's current tier (e.g. because the user has already transferred out the spot balance underlying the redemption request).","example":false,"json_type":"boolean","kind":"primitive","lite":"cb","name":"cancel_blocked","optional":true,"type":"bool"},{"description":"The currency the request pays into the investor's funding account: the vault's investment currency, unless the request converts.","example":"USDT","json_type":"string","kind":"primitive","lite":"tc","name":"to_currency","type":"string"},{"description":"The signed rate the request is paid at, `to_currency` per unit of the vault's investment currency. 1 when the request does not convert.","example":"0.999","json_type":"string","kind":"decimal","lite":"er","name":"exchange_rate","type":"string"}],"name":"VaultRedemption"},{"description":"Representation of a pending redemption request for a given vault.","fields":[{"description":"Set by the server. Time at which the redemption request was received by GRVT in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"rt","name":"request_time","type":"timestamp"},{"description":"The number of shares to redeem","example":"1000000","json_type":"string","kind":"decimal","lite":"nl","name":"num_lp_tokens","type":"string"},{"description":"Set by the server. Time in unix nanoseconds, beyond which the request will be force-redeemed.","example":"1727788800000000000","json_type":"string","kind":"timestamp","lite":"mr","name":"max_redemption_period_timestamp","type":"timestamp"},{"description":"Age category of this redemption request.","example":"NORMAL","json_type":"VaultRedemptionReqAgeCategory","kind":"enum","lite":"ac","name":"age_category","type":"VaultRedemptionReqAgeCategory"},{"description":"`true` if this request belongs to the vault manager, omitted otherwise.","example":true,"json_type":"boolean","kind":"primitive","lite":"im","name":"is_manager","optional":true,"type":"bool"},{"description":"Set by the server. Time in unix nanoseconds, beyond which the request will be eligible for automated redemption.","example":"1727788800000000000","json_type":"string","kind":"timestamp","lite":"ef","name":"eligible_for_auto_redemption_timestamp","type":"timestamp"},{"description":"The currency the vault pays: the vault's investment currency.","example":"USDC","json_type":"string","kind":"primitive","lite":"fc","name":"from_currency","type":"string"},{"description":"The currency paid into the investor's funding account. Equal to `from_currency` when the request does not convert.","example":"USDT","json_type":"string","kind":"primitive","lite":"tc","name":"to_currency","type":"string"},{"description":"The signed rate the request is paid at, `to_currency` per unit of `from_currency`. 1 when the request does not convert.","example":"0.999","json_type":"string","kind":"decimal","lite":"er","name":"exchange_rate","type":"string"}],"name":"VaultRedemptionRequest"},{"description":"Where an investor's vault LP tokens sit.","fields":[{"description":"The vault LP tokens in the funding account, including those a pending redemption reserves.","example":1000000,"json_type":"string","kind":"decimal","lite":"fl","name":"funding_lp_token_balance","type":"string"},{"description":"The vault LP tokens across all trading accounts: the sum of tradingBalances.","example":1000000,"json_type":"string","kind":"decimal","lite":"tl","name":"trading_lp_token_balance","type":"string"},{"description":"The funding account's vault LP tokens a pending redemption reserves.","example":1000000,"json_type":"string","kind":"decimal","lite":"pr","name":"pending_redemption_lp_token_balance","type":"string"},{"description":"The funding account's vault LP tokens that can move to a trading account now: fundingLpTokenBalance less pendingRedemptionLpTokenBalance. The minimum investment period does not block transfers. The destination's own checks still apply.","example":1000000,"json_type":"string","kind":"decimal","lite":"at","name":"available_to_transfer","type":"string"},{"description":"The vault's share currency, used to transfer its LP tokens. Omitted when the vault has none.","example":"GHYLD","json_type":"string","kind":"primitive","lite":"c","name":"currency","optional":true,"type":"string"}],"name":"VaultShareBalances"},{"description":"A trading account's holding of a vault's LP tokens.","fields":[{"description":"The trading account.","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","type":"uint64"},{"description":"The vault LP tokens in the trading account.","example":1000000,"json_type":"string","kind":"decimal","lite":"nl","name":"num_lp_tokens","type":"string"},{"description":"The current valuation (in USD) of the trading account's vault LP tokens.","example":1000000,"json_type":"string","kind":"decimal","lite":"e","name":"equity","type":"string"},{"description":"An estimate of the vault LP tokens that can move back to the funding account without failing the trading account's withdrawal checks.","example":1000000,"json_type":"string","kind":"decimal","lite":"at","name":"available_to_transfer","type":"string"},{"description":"What the vault LP tokens add to the trading account's margin (in USD): equity times the collateral value ratio. 0 when they don't count as collateral.","example":1000000,"json_type":"string","kind":"decimal","lite":"mb","name":"margin_balance_usd","type":"string"}],"name":"VaultShareTradingBalance"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.algo.order`.","example":"v1.algo.order","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The algo order object being created or updated","json_type":"AlgoOrder","kind":"struct","lite":"f","name":"feed","type":"AlgoOrder"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSAlgoOrderFeedDataV1"},{"description":"Subscribes to a feed of algo order updates pertaining to algo orders made by your account.\nEach 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.\nTo subscribe to all algo orders, specify an empty `instrument` (eg. `2345123`).\nOtherwise, specify the `instrument` to only receive algo orders for that instrument (eg. `2345123-BTC_USDT_Perp`).","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"},{"default":"all","description":"The instrument filter to apply.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"selector":"primary","type":"asset"}],"is_root":true,"name":"WSAlgoOrderFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.cancel`.","example":"v1.cancel","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"Data relating to the status of the cancellation attempt","json_type":"CancelStatusFeed","kind":"struct","lite":"f","name":"feed","type":"CancelStatusFeed"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSCancelFeedDataV1"},{"description":"Subscribes to a feed of time-to-live expiry events for order cancellations requested by a given subaccount.\n**This stream presently only provides expiry updates for cancel-order requests set with a valid TTL value**.\nSuccessful order cancellations will reflect as updates published to the [order-state stream](https://api-docs.grvt.io/trading_streams/#order-state).\n_A future release will expand the functionality of this stream to provide more general status updates on order cancellation requests._\nEach Order can be uniquely identified by its `client_order_id`.","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"}],"is_root":true,"name":"WSCancelFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.candle`.","example":"v1.candle","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"A candlestick entry matching the request filters","json_type":"Candlestick","kind":"struct","lite":"f","name":"feed","type":"Candlestick"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSCandlestickFeedDataV1"},{"description":"Subscribes to a stream of Kline/Candlestick updates for an instrument. A Kline is uniquely identified by its open time.\nA new Kline is published every interval (if it exists). Upon subscription, the server will send the 5 most recent Kline for the requested interval.","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","selector":"primary","type":"asset"},{"description":"The interval of each candlestick","example":"CI_1_M","json_type":"WsCandlestickInterval","kind":"enum","lite":"i1","name":"interval","selector":"secondary","type":"WsCandlestickInterval"},{"description":"The type of candlestick data to retrieve","example":"TRADE","json_type":"CandlestickType","kind":"enum","lite":"t","name":"type","selector":"secondary","type":"CandlestickType"}],"is_root":true,"name":"WSCandlestickFeedSelectorV1"},{"description":"Subscribes to a feed of deposit updates.","fields":[{"description":"The stream this frame belongs to, e.g. `v1.deposit`.","example":"v1.deposit","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The Deposit object","json_type":"Deposit","kind":"struct","lite":"f","name":"feed","type":"Deposit"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSDepositFeedDataV1"},{"description":"Subscribes to a feed of deposits. This will execute when there is any deposit to selected account.\nTo subscribe to a main account, specify the account ID (eg. `0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a`).","fields":[{"description":"The main account ID to request for","example_placeholder":"GRVT_MAIN_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","selector":"primary","type":"address"}],"is_root":true,"name":"WSDepositFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.fill`.","example":"v1.fill","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"A private trade matching the request filter","json_type":"Fill","kind":"struct","lite":"f","name":"feed","type":"Fill"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSFillFeedDataV1"},{"description":"Subscribes to a feed of private trade updates. This happens when a trade is executed.\nTo subscribe to all private trades, specify an empty `instrument` (eg. `2345123`).\nOtherwise, specify the `instrument` to only receive private trades for that instrument (eg. `2345123-BTC_USDT_Perp`).","fields":[{"description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"},{"default":"all","description":"The instrument filter to apply.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"selector":"primary","type":"asset"}],"is_root":true,"name":"WSFillFeedSelectorV1"},{"description":"List down all the streams this connection has connected to.","fields":null,"is_root":true,"name":"WSListStreamsParams"},{"description":"Returns a list of all rooms the client has subscribed to.","fields":[{"array_depth":1,"description":"The list of stream references  the connection is connected to","json_type":"StreamReference","kind":"struct","lite":"sr","name":"stream_reference","nullable":true,"type":"StreamReference"}],"is_root":true,"name":"WSListStreamsResult"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.mini.s`.","example":"v1.mini.s","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"A mini ticker matching the request filter","json_type":"MiniTicker","kind":"struct","lite":"f","name":"feed","type":"MiniTicker"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSMiniTickerFeedDataV1"},{"description":"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.\nUnlike the `mini.d` channel which publishes an initial snapshot, then only streams deltas after, the `mini.s` channel publishes full snapshots at each feed.\n\nThe Delta feed will work as follows:<ul><li>On subscription, the server will send a full snapshot of the mini ticker.</li><li>After the snapshot, the server will only send deltas of the mini ticker.</li><li>The server will send a delta if any of the fields in the mini ticker have changed.</li></ul>\n\nField Semantics:<ul><li>[DeltaOnly] If a field is not updated, {}</li><li>If a field is updated, {field: '123'}</li><li>If a field is set to zero, {field: '0'}</li><li>If a field is set to null, {field: ''}</li></ul>","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","selector":"primary","type":"asset"},{"description":"The minimal rate at which we publish feeds (in milliseconds)\nDelta (0 - `raw`, 50, 100, 200, 500, 1000, 5000)\nSnapshot (200, 500, 1000, 5000)","example":500,"json_type":"integer","kind":"primitive","lite":"r","name":"rate","selector":"secondary","type":"uint32"}],"is_root":true,"name":"WSMiniTickerFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.order`.","example":"v1.order","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The order object being created or updated","json_type":"Order","kind":"struct","lite":"f","name":"feed","type":"Order"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSOrderFeedDataV1"},{"description":"Subscribes to a feed of order updates pertaining to orders made by your account.\nEach Order can be uniquely identified by its `order_id` or `client_order_id`.\nTo subscribe to all orders, specify an empty `instrument` (eg. `2345123`).\nOtherwise, specify the `instrument` to only receive orders for that instrument (eg. `2345123-BTC_USDT_Perp`).","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"},{"default":"all","description":"The instrument filter to apply.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"selector":"primary","type":"asset"}],"is_root":true,"name":"WSOrderFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.state`.","example":"v1.state","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The Order State Feed","json_type":"OrderStateFeed","kind":"struct","lite":"f","name":"feed","type":"OrderStateFeed"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSOrderStateFeedDataV1"},{"description":"Subscribes to a feed of order updates pertaining to orders made by your account.\nUnlike the Order Stream, this only streams state updates, drastically improving throughput, and latency.\nEach Order can be uniquely identified by its `order_id` or `client_order_id`.\nTo subscribe to all orders, specify an empty `instrument` (eg. `2345123`).\nOtherwise, specify the `instrument` to only receive orders for that instrument (eg. `2345123-BTC_USDT_Perp`).","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"},{"default":"all","description":"The instrument filter to apply.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"selector":"primary","type":"asset"}],"is_root":true,"name":"WSOrderStateFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.book.s`.","example":"v1.book.s","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"An orderbook levels object matching the request filter","json_type":"OrderbookLevels","kind":"struct","lite":"f","name":"feed","type":"OrderbookLevels"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSOrderbookLevelsFeedDataV1"},{"description":"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.\nUnlike the `book.d` channel which publishes an initial snapshot, then only streams deltas after, the `book.s` channel publishes full snapshots at each feed.\n\nThe Delta feed will work as follows:<ul><li>On subscription, the server will send a full snapshot of all levels of the Orderbook.</li><li>After the snapshot, the server will only send levels that have changed in value.</li></ul>\n\nSubscription Pattern:<ul><li>Delta - `instrument@rate`</li><li>Snapshot - `instrument@rate-depth`</li></ul>\n\nField Semantics:<ul><li>[DeltaOnly] If a level is not updated, level not published</li><li>If a level is updated, {size: '123'}</li><li>If a level is set to zero, {size: '0'}</li><li>Incoming levels will be published as soon as price moves</li><li>Outgoing levels will be published with `size = 0`</li></ul>","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","selector":"primary","type":"asset"},{"description":"The minimal rate at which we publish feeds (in milliseconds)\nDelta (50, 100, 500, 1000)\nSnapshot (500, 1000)","example":500,"json_type":"integer","kind":"primitive","lite":"r","name":"rate","selector":"secondary","type":"uint32"},{"default":"0","description":"Depth of the order book to be retrieved\nDelta(0 - `unlimited`)\nSnapshot(10, 50, 100, 500)","example":50,"json_type":"integer","kind":"primitive","lite":"d","name":"depth","optional":true,"selector":"secondary","type":"uint32"}],"is_root":true,"name":"WSOrderbookLevelsFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.position`.","example":"v1.position","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"A Position being created or updated matching the request filter","json_type":"Positions","kind":"struct","lite":"f","name":"feed","type":"Positions"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSPositionsFeedDataV1"},{"description":"Subscribes to a feed of position updates.\nUpdates get published when a trade is executed, and when leverage configurations are changed for instruments with ongoing positions.\nTo subscribe to all positions, specify an empty `instrument` (eg. `2345123`).\nOtherwise, specify the `instrument` to only receive positions for that instrument (eg. `2345123-BTC_USDT_Perp`).","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"},{"default":"all","description":"The instrument filter to apply.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"selector":"primary","type":"asset"}],"is_root":true,"name":"WSPositionsFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.quote`.","example":"v1.quote","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"AAPL_USDC_SFP","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The taker's private quote book for their open RFQ on this instrument","json_type":"RfqQuoteFeed","kind":"struct","lite":"f","name":"feed","type":"RfqQuoteFeed"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSRfqQuoteFeedDataV1"},{"description":"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.\n\nThese 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.\n\nEach 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.","fields":[{"description":"The subaccount ID to filter by","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","selector":"primary","type":"uint64"},{"default":"all","description":"The instrument filter to apply.","example":"AAPL_USDC_SFP","json_type":"string","kind":"primitive","lite":"i","name":"instrument","optional":true,"selector":"primary","type":"asset"}],"is_root":true,"name":"WSRfqQuoteFeedSelectorV1"},{"description":"All V1 Websocket Subscription Requests are housed in this wrapper. You may specify a stream and a list of feeds to subscribe to.\nWhen subscribing to the same primary selector again, the previous secondary selector will be replaced. See `Overview` page for more details.\nSequence numbers can be either gateway-specific or global:\n- **Gateway Unique Sequence Number**: Increments by one per stream, resets to 0 on gateway restart.\n- **Global Unique Sequence Number**: A cluster-wide unique number assigned to each cluster payload, does not reset on gateway restarts, and can be used to track and identify message order across streams using `sequence_number` and `prev_sequence_number` in the feed response.\nSet `useGlobalSequenceNumber = true` if you need a persistent, unique identifier across all streams or ordering across multiple feeds.","fields":[{"description":"The channel to subscribe to (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of feeds to subscribe to","example":["BTC_USDT_Perp@500","ETH_USDT_Perp@500"],"json_type":"string","kind":"primitive","lite":"s1","name":"selectors","nullable":true,"type":"string"},{"default":"false","description":"Whether to use the global sequence number for the stream","example":true,"json_type":"boolean","kind":"primitive","lite":"ug","name":"use_global_sequence_number","optional":true,"type":"bool"}],"is_root":true,"name":"WSSubscribeParams"},{"description":"All V1 Websocket Requests are housed in this wrapper. You may specify a stream, and a list of feeds to subscribe to.\nIf a `request_id` is supplied in this JSON RPC request, it will be propagated back to any relevant JSON RPC responses (including error).\nWhen subscribing to the same primary selector again, the previous secondary selector will be replaced. See `Overview` page for more details.","fields":[{"default":"0","description":"Optional Field which is used to match the response by the client.\nIf not passed, this field will not be returned.\nRange: 0 to 4,294,967,295 (uint32)","example":123,"json_type":"integer","kind":"primitive","lite":"ri","name":"request_id","optional":true,"type":"uint32"},{"description":"The channel to subscribe to (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of feeds to subscribe to","example":["BTC_USDT_Perp","ETH_USDT_Perp"],"json_type":"string","kind":"primitive","lite":"f","name":"feed","nullable":true,"type":"string"},{"description":"The method to use for the request (eg: subscribe / unsubscribe)","example":"subscribe","json_type":"string","kind":"primitive","lite":"m","name":"method","type":"string"},{"default":"false","description":"Whether the request is for full data or lite data","example":true,"json_type":"boolean","kind":"primitive","lite":"if","name":"is_full","optional":true,"type":"bool"}],"is_root":true,"name":"WSSubscribeRequestV1Legacy"},{"description":"All V1 Websocket Responses are housed in this wrapper. It returns a confirmation of the JSON RPC subscribe request.\nIf a `request_id` is supplied in the JSON RPC request, it will be propagated back in this JSON RPC response.\nTo ensure you always know if you have missed any payloads, GRVT servers apply the following heuristics to sequence numbers:<ul><li>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</li><li>Num snapshots returned in Response (per stream): You can ensure that you received the right number of snapshots</li><li>First sequence number returned in Response (per stream): You can ensure that you received the first stream, without gaps from snapshots</li><li>Sequence numbers should always monotonically increase by `1`. If it decreases, or increases by more than `1`. Please reconnect</li><li>Duplicate sequence numbers are possible due to network retries. If you receive a duplicate, please ignore it, or idempotently re-update it.</li></ul>\nWhen subscribing to the same primary selector again, the previous secondary selector will be replaced. See `Overview` page for more details.","fields":[{"default":"0","description":"Optional Field which is used to match the response by the client.\nIf not passed, this field will not be returned","example":123,"json_type":"integer","kind":"primitive","lite":"ri","name":"request_id","optional":true,"type":"uint32"},{"description":"The channel to subscribe to (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of feeds subscribed to","example":["BTC_USDT_Perp@500","ETH_USDT_Perp@500"],"json_type":"string","kind":"primitive","lite":"s1","name":"subs","nullable":true,"type":"string"},{"array_depth":1,"description":"The list of feeds unsubscribed from","example":["BTC_USDT_Perp@500","ETH_USDT_Perp@500"],"json_type":"string","kind":"primitive","lite":"u","name":"unsubs","nullable":true,"type":"string"},{"array_depth":1,"description":"The number of snapshot payloads to expect for each subscribed feed. Returned in same order as `subs`","example":10,"json_type":"integer","kind":"primitive","lite":"ns","name":"num_snapshots","nullable":true,"type":"uint32"},{"array_depth":1,"description":"The first sequence number to expect for each subscribed feed. Returned in same order as `subs`","example":872634876,"json_type":"string","kind":"primitive","lite":"fs","name":"first_sequence_number","nullable":true,"type":"uint64"},{"array_depth":1,"description":"The sequence number of the most recent message in the stream. Next received sequence number must be larger than this one. Returned in same order as `subs`","example":872634875,"json_type":"string","kind":"primitive","lite":"ls","name":"latest_sequence_number","nullable":true,"type":"uint64"}],"is_root":true,"name":"WSSubscribeResponseV1Legacy"},{"description":"To ensure you always know if you have missed any payloads, GRVT servers apply the following heuristics to sequence numbers:<ul><li>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</li><li>Num snapshots returned in Response (per stream): You can ensure that you received the right number of snapshots</li><li>First sequence number returned in Response (per stream): You can ensure that you received the first stream, without gaps from snapshots</li><li>Sequence numbers should always monotonically increase by `1`. If it decreases, or increases by more than `1`. Please reconnect</li><li>Duplicate sequence numbers are possible due to network retries. If you receive a duplicate, please ignore it, or idempotently re-update it.</li></ul>\nWhen subscribing to the same primary selector again, the previous secondary selector will be replaced. See `Overview` page for more details.","fields":[{"description":"The channel to subscribe to (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of feeds subscribed to","example":["BTC_USDT_Perp@500","ETH_USDT_Perp@500"],"json_type":"string","kind":"primitive","lite":"s1","name":"subs","nullable":true,"type":"string"},{"array_depth":1,"description":"The list of feeds unsubscribed from","example":["BTC_USDT_Perp@500","ETH_USDT_Perp@500"],"json_type":"string","kind":"primitive","lite":"u","name":"unsubs","nullable":true,"type":"string"},{"array_depth":1,"description":"The number of snapshot payloads to expect for each subscribed feed. Returned in same order as `subs`","example":10,"json_type":"integer","kind":"primitive","lite":"ns","name":"num_snapshots","nullable":true,"type":"uint32"},{"array_depth":1,"description":"The first sequence number to expect for each subscribed feed. Returned in same order as `subs`","example":872634876,"json_type":"string","kind":"primitive","lite":"fs","name":"first_sequence_number","nullable":true,"type":"uint64"},{"array_depth":1,"description":"The sequence number of the most recent message in the stream. Next received sequence number must be larger than this one. Returned in same order as `subs`","example":872634875,"json_type":"string","kind":"primitive","lite":"ls","name":"latest_sequence_number","nullable":true,"type":"uint64"}],"is_root":true,"name":"WSSubscribeResult"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.ticker.s`.","example":"v1.ticker.s","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"A ticker matching the request filter","json_type":"Ticker","kind":"struct","lite":"f","name":"feed","type":"Ticker"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSTickerFeedDataV1"},{"description":"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.\nUnlike the `ticker.d` channel which publishes an initial snapshot, then only streams deltas after, the `ticker.s` channel publishes full snapshots at each feed.\n\nThe Delta feed will work as follows:<ul><li>On subscription, the server will send a full snapshot of the ticker.</li><li>After the snapshot, the server will only send deltas of the ticker.</li><li>The server will send a delta if any of the fields in the ticker have changed.</li></ul>\n\nField Semantics:<ul><li>[DeltaOnly] If a field is not updated, {}</li><li>If a field is updated, {field: '123'}</li><li>If a field is set to zero, {field: '0'}</li><li>If a field is set to null, {field: ''}</li></ul>","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","selector":"primary","type":"asset"},{"description":"The minimal rate at which we publish feeds (in milliseconds)\nDelta (100, 200, 500, 1000, 5000)\nSnapshot (500, 1000, 5000)","example":500,"json_type":"integer","kind":"primitive","lite":"r","name":"rate","selector":"secondary","type":"uint32"}],"is_root":true,"name":"WSTickerFeedSelectorV1"},{"fields":[{"description":"The stream this frame belongs to, e.g. `v1.trade`.","example":"v1.trade","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"A public trade matching the request filter","json_type":"Trade","kind":"struct","lite":"f","name":"feed","type":"Trade"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSTradeFeedDataV1"},{"description":"Subscribes to a stream of Public Trades for an instrument.","fields":[{"description":"The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"i","name":"instrument","selector":"primary","type":"asset"},{"description":"The limit to query for. Valid values are (50, 200, 500, 1000). Default is 50","example":500,"json_type":"integer","kind":"primitive","lite":"l","name":"limit","selector":"secondary","type":"uint32"}],"is_root":true,"name":"WSTradeFeedSelectorV1"},{"description":"Subscribes to a feed of transfer updates.","fields":[{"description":"The stream this frame belongs to, e.g. `v1.transfer`.","example":"v1.transfer","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The transfer history matching the requested filters","json_type":"TransferHistory","kind":"struct","lite":"f","name":"feed","type":"TransferHistory"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSTransferFeedDataV1"},{"description":"Subscribes to a feed of transfers. This will execute when there is any transfer to or from the selected account.\nTo subscribe to a main account, specify the account ID (eg. `0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a`).\nTo subscribe to a sub account, specify the main account and the sub account dash separated (eg. `0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a-1920109784202388`).","fields":[{"description":"The main account ID to request for","example_placeholder":"GRVT_MAIN_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","selector":"primary","type":"address"},{"default":"0","description":"The sub account ID to request for","example_placeholder":"GRVT_SUB_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"sa","name":"sub_account_id","optional":true,"selector":"primary","type":"uint64"}],"is_root":true,"name":"WSTransferFeedSelectorV1"},{"description":"All V1 Websocket Unsubscription Request to unsubscribe from all active websocket streams.","fields":null,"is_root":true,"name":"WSUnsubscribeAllParams"},{"description":"Returns a list of all rooms the client has unsubscribed from.","fields":[{"array_depth":1,"description":"The list of stream references unsubscribed from","json_type":"StreamReference","kind":"struct","lite":"sr","name":"stream_reference","nullable":true,"type":"StreamReference"}],"is_root":true,"name":"WSUnsubscribeAllResult"},{"description":"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.","fields":[{"description":"The channel to unsubscribe from (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of feeds to unsubscribe from","example":["BTC_USDT_Perp","ETH_USDT_Perp"],"json_type":"string","kind":"primitive","lite":"s1","name":"selectors","nullable":true,"type":"string"},{"default":"false","description":"Whether to use the global sequence number for the stream","example":true,"json_type":"boolean","kind":"primitive","lite":"ug","name":"use_global_sequence_number","optional":true,"type":"bool"}],"is_root":true,"name":"WSUnsubscribeParams"},{"description":"Returns a confirmation of all unsubscribes","fields":[{"description":"The channel to subscribe to (eg: ticker.s / ticker.d)","example":"v1.ticker.d","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"array_depth":1,"description":"The list of feeds unsubscribed from","example":["BTC_USDT_Perp@500","ETH_USDT_Perp@500"],"json_type":"string","kind":"primitive","lite":"u","name":"unsubs","nullable":true,"type":"string"}],"is_root":true,"name":"WSUnsubscribeResult"},{"description":"Subscribes to a feed of withdrawal updates.","fields":[{"description":"The stream this frame belongs to, e.g. `v1.withdrawal`.","example":"v1.withdrawal","json_type":"string","kind":"primitive","lite":"s","name":"stream","type":"string"},{"description":"The selector this frame is for, as you subscribed with it.","example":"BTC_USDT_Perp","json_type":"string","kind":"primitive","lite":"s1","name":"selector","type":"string"},{"description":"This frame's number, an unsigned 64-bit integer sent as a decimal string: compare it as an integer. `\"0\"` on the snapshot sent right after subscribing.\n- With `use_global_sequence_number: true` (recommended), the number is unique across the exchange. One exchange event can produce several frames, so the number is `event number × 10^5 + a counter` that tells them apart.\n- With `false`, it counts up by one per frame of this stream and starts again when the server you are connected to restarts.","example":"872634876","json_type":"string","kind":"primitive","lite":"sn","name":"sequence_number","type":"uint64"},{"description":"The Withdrawal object","json_type":"Withdrawal","kind":"struct","lite":"f","name":"feed","type":"Withdrawal"},{"description":"The `sequence_number` of the frame before this one on this selector. If it doesn't match the last frame you accepted, you missed frames.","example":"872634875","json_type":"string","kind":"primitive","lite":"ps","name":"prev_sequence_number","type":"uint64"}],"is_root":true,"name":"WSWithdrawalFeedDataV1"},{"description":"Subscribes to a feed of withdrawals. This will execute when there is any withdrawal from the selected account.\nTo subscribe to a main account, specify the account ID (eg. `0x9fe3758b67ce7a2875ee4b452f01a5282d84ed8a`).","fields":[{"description":"The main account ID to request for","example_placeholder":"GRVT_MAIN_ACCOUNT_ID","json_type":"string","kind":"primitive","lite":"ma","name":"main_account_id","selector":"primary","type":"address"}],"is_root":true,"name":"WSWithdrawalFeedSelectorV1"},{"fields":[{"description":"The subaccount to withdraw from","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"fa","name":"from_account_id","type":"address"},{"description":"The ethereum address to withdraw to","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"te","name":"to_eth_address","type":"address"},{"description":"The token currency to withdraw","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to withdraw","example":"10.50","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The signature of the withdrawal","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"}],"name":"Withdrawal"},{"fields":[{"description":"The transaction ID of the withdrawal","example":"1028403","json_type":"string","kind":"primitive","lite":"ti","name":"tx_id","type":"uint64"},{"description":"The subaccount to withdraw from","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"fa","name":"from_account_id","type":"address"},{"description":"The ethereum address to withdraw to","example":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0","json_type":"string","kind":"primitive","lite":"te","name":"to_eth_address","type":"address"},{"description":"The token currency to withdraw","example":"USDT","json_type":"string","kind":"primitive","lite":"c","name":"currency","type":"string"},{"description":"The number of tokens to withdraw","example":"1500.0","json_type":"string","kind":"decimal","lite":"nt","name":"num_tokens","type":"string"},{"description":"The signature of the withdrawal","json_type":"Signature","kind":"struct","lite":"s","name":"signature","type":"Signature"},{"description":"The timestamp of the withdrawal in unix nanoseconds","example":"1697788800000000000","json_type":"string","kind":"timestamp","lite":"et","name":"event_time","type":"timestamp"},{"description":"The finalized withdrawal transaction hash on L1, empty if the withdrawal is 'pending'.","example":"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","json_type":"string","kind":"primitive","lite":"l1","name":"l_1_hash","optional":true,"type":"string"},{"description":"The transaction hash on L2","example":"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890","json_type":"string","kind":"primitive","lite":"l2","name":"l_2_hash","type":"string"}],"name":"WithdrawalHistory"}]}