All calls
Every call and stream on one page, by server and category: what it does, its HTTP path and whether it needs a session.
On this page
Agent prompt
Help me with: All calls. Every call and stream on one page, by server and category: what it does, its HTTP path and whether it needs a session.
Target environment: {environment} (chain ID {chainId}). Recorded signing cases keep their original environment.
{executionGuidance}
Read this first: {origin}/bundle/reference/index.md (~28 KB, plain Markdown: this page plus the AGENTS.md rules, Environments).
Fetch other pages from the index at {origin}/llms.txt only as you need them. {origin}/downloads/contract.json is a machine-readable contract for tools, not for reading.
Rules: follow AGENTS.md; do not send requests without the user asking you to; read credentials from environment variables; never retry writes automatically; show me the code and how to run it. Generated from contract.json. SDK names are flat, client.<method> (streams end in _stream), and the groups below are only for browsing; HTTP is always POST with a JSON body. Signed calls are listed on Signed messages.
Trading Gateway (TDG)
Authentication
login_api_key: Log in with an API key and get a session for the trading gateway.POST edge/auth/api_key/loginlogin_wallet: Log in with a wallet signature (EIP-712WalletLogin) instead of an API key.POST edge/auth/wallet/login
Orders & execution
create_order: Place an order.trades /full/v1/create_order· needs a sessionbulk_orders: Create, cancel or cancel-replace several orders of one sub-account in one call.trades /full/v2/bulk_orders· needs a sessionget_order: Get one order, open or not, byorder_idorclient_order_id.trades /full/v1/order· needs a sessionopen_orders: List a sub-account's open orders.trades /full/v1/open_orders· needs a sessioncancel_order: Cancel one open order, byorder_idorclient_order_id.trades /full/v1/cancel_order· needs a sessioncancel_all_orders: Cancel all open orders of a sub-account, optionally only those of one kind, base or quote currency.trades /full/v1/cancel_all_orders· needs a sessioncancel_on_disconnect: Arm, refresh or stop a countdown that cancels all of a sub-account's open orders when you stop calling.trades /full/v1/cancel_on_disconnect· needs a sessionorder_history: List a sub-account's order history, newest first.trades /full/v1/order_history· needs a sessionfill_history: List a sub-account's past fills (your own trades), newest first.trades /full/v1/fill_history· needs a sessionorder_stream(stream): Stream your orders in full, one frame each time one is created or changes. Channelv1.order, selector<sub_account_id>[-<instrument>]· needs a sessionorder_state_stream(stream): Stream only the state of your orders (status, filled size, average price), lighter than the order stream. Channelv1.state, selector<sub_account_id>[-<instrument>]· needs a sessionfill_stream(stream): Stream your own fills (private trades), one frame per fill. Channelv1.fill, selector<sub_account_id>[-<instrument>]· needs a sessioncancel_status_stream(stream): Stream the outcome of your cancel requests. Channelv1.cancel, selector<sub_account_id>· needs a session
Algo orders
create_algo_order: Place an algo order, a parent order the exchange works for you by placing sub-orders.trades /full/v1/create_algo_order· needs a sessionget_algo_order: Get one algo order byalgo_order_idorclient_order_id.trades /full/v1/get_algo_order· needs a sessionopen_algo_orders: List a sub-account's open algo orders, including ones still waiting for their trigger.trades /full/v1/open_algo_orders· needs a sessioncancel_algo_order: Cancel an algo order and the sub-order it has resting on the book.trades /full/v1/cancel_algo_order· needs a sessionalgo_order_history: List a sub-account's finished algo orders, one row per algo order, newest first.trades /full/v1/algo_order_history· needs a sessionalgo_sub_order_history: List the finished sub-orders of one algo order.trades /full/v1/algo_sub_order_history· needs a sessionalgo_order_stream(stream): Stream your algo orders, one frame each time one is created or updated. Channelv1.algo.order, selector<sub_account_id>[-<instrument>]· needs a session
RFQ
create_rfq: Ask makers for private quotes on a stable funding perp (an RFQ), giving a size and optionally a side.trades /full/v1/create_rfq· needs a sessioncancel_rfq: Cancel your open RFQ before it is accepted or expires.trades /full/v1/cancel_rfq· needs a sessionrfq_quote_stream(stream): Stream the average fill price for your open RFQ's size on each side of the book, as the taker. Channelv1.quote, selector<sub_account_id>[-<instrument>]· needs a session
Positions, margin & collateral
positions: List a sub-account's open positions.trades /full/v1/positions· needs a sessionposition_history: List a sub-account's closed and partly closed positions.trades /full/v1/position_history· needs a sessionget_collateral_preference: Get which currencies count as collateral for a multi-asset-mode sub-account.trades /full/v1/get_collateral_preference· needs a sessionset_position_config: Set the margin type (cross or isolated) and leverage of one position.trades /full/v1/set_position_config· needs a sessionget_all_initial_leverage: Get a sub-account's initial leverage for every instrument.trades /full/v1/get_all_initial_leverage· needs a sessionget_position_margin_limits: Get how much margin you can add to or remove from an isolated position.trades /full/v1/get_position_margin_limits· needs a sessionadd_position_margin: Add margin to an isolated position, or remove some with a negative amount.trades /full/v1/add_position_margin· needs a sessionset_derisk_mm_ratio: Set a sub-account's derisk margin to maintenance margin ratio.trades /full/v1/set_derisk_mm_ratio· needs a sessionset_initial_leverage: Set a sub-account's initial leverage for one instrument (deprecated; use set_position_config).trades /full/v1/set_initial_leverage· needs a sessionpositions_stream(stream): Stream your positions, one frame each time a position is opened or changes. Channelv1.position, selector<sub_account_id>[-<instrument>]· needs a session
Accounts & balances
get_sub_accounts: List the ids of the sub-accounts this session can use.trades /full/v1/get_sub_accounts· needs a sessionaggregated_account_summary: Get the total equity and balances of your main account and all its sub-accounts together.trades /full/v1/aggregated_account_summary· needs a sessionfunding_account_summary: Get the total equity and balances of your main (funding) account.trades /full/v1/funding_account_summary· needs a sessionsub_account_summary: Get one sub-account's balances, positions, margin and P&L.trades /full/v1/account_summary· needs a sessionspot_account_summary: Get the total equity and spot balances of one spot sub-account.trades /full/v1/spot_account_summary· needs a sessionfunding_payment_history: List the funding payments a sub-account paid or received, newest first.trades /full/v1/funding_payment_history· needs a sessioninterest_payment_history: List the hourly interest charged to a multi-asset-mode sub-account, newest first.trades /full/v1/interest_payment_history· needs a session
Transfers, deposits & withdrawals
deposit_history: List past deposits into your main account, newest first; pending ones have noconfirmed_timeyet.trades /full/v1/deposit_history· needs a sessiontransfer: Move funds between your main account and its sub-accounts, or to an allowlisted main account.trades /full/v1/transfer· needs a sessiontransfer_history: List past transfers, newest first, optionally by currency, transfer type or time.trades /full/v1/transfer_history· needs a sessionget_withdrawal_fee: Get the flat fee for withdrawing to Ethereum, in the currency you ask for.trades /full/v1/withdrawal_fee· needs a sessionwithdrawal: Withdraw funds from Grvt to an Ethereum address.trades /full/v1/withdrawal· needs a sessionwithdrawal_history: List past withdrawals from your main account, newest first; pending ones have nol_1_hashyet.trades /full/v1/withdrawal_history· needs a sessiondeposit_stream(stream): Stream deposits into your main account. Channelv1.deposit, selector<main_account_id>· needs a sessiontransfer_stream(stream): Stream transfers into or out of your main account, or of one of its sub-accounts. Channelv1.transfer, selector<main_account_id>[-<sub_account_id>]· needs a sessionwithdrawal_stream(stream): Stream withdrawals from your main account. Channelv1.withdrawal, selector<main_account_id>· needs a session
Strategies
vault_investor_summary: Get your investment summary for one vault.trades /full/v1/vault_investor_summary· needs a sessionvault_conversion_rate: Get the best exchange rate the gateway accepts now for a vault investment or redemption that converts currency.trades /full/v1/vault_conversion_rate· needs a sessionvault_invest: Invest in a vault from your main account or a sub-account, converting currency if needed.trades /full/v2/vault_invest· needs a sessionvault_redeem: Redeem vault shares, paid in the vault's currency or converted into another one.trades /full/v2/vault_redeem· needs a sessionvault_redeem_cancel: Cancel your pending redemption from a vault.trades /full/v1/vault_redeem_cancel· needs a sessionvault_manager_investment_history: List the investor history of a vault you manage.trades /full/v1/vault_manager_investor_history· needs a session · only for vault managersvault_redemption_queue: View the redemption queue of a vault you manage, highest priority first.trades /full/v1/vault_view_redemption_queue· needs a session · only for vault managersvault_burn_tokens: Burn a number of a vault's tokens.trades /full/v1/vault_burn_tokens· needs a session · only for vault managers
Builders
get_authorized_builders: List the builders you have authorized and the highest fee rate each may charge.trades /full/v1/get_authorized_builders· needs a sessionbuilder_fill_history: List the fills you earned builder fees on, as a builder, newest first.trades /full/v1/builder_fill_history· needs a session · only for builders
Market Data Gateway (MDG)
Instruments & wallet currencies
get_all_instruments: List all instruments, optionally only active ones or only some kinds.market-data /full/v1/all_instrumentsget_filtered_instruments: List instruments filtered by kind, base or quote currency.market-data /full/v1/instrumentsget_instrument: Get one instrument's details (tick size, minimum size, decimals, instrument hash) by name.market-data /full/v1/instrumentget_currency: List every currency with its id and decimals.market-data /full/v1/currencyget_supported_assets: List the currencies each wallet type (funding, spot, futures) supports.market-data /full/v1/supported_assets
Prices & tickers
mini_ticker: Get a mini ticker for one instrument (mark, index, last and mid price, best bid and ask).market-data /full/v1/miniticker: Get a full ticker for one instrument (prices, 24-hour statistics, funding, open interest).market-data /full/v1/tickermini_ticker_snap_stream(stream): Stream full mini tickers for one instrument at a fixed rate; every frame has every field. Channelv1.mini.s, selector<instrument>[@<rate>]mini_ticker_delta_stream(stream): Stream mini ticker changes for one instrument; a full mini ticker first, then only changed fields. Channelv1.mini.d, selector<instrument>[@<rate>]ticker_snap_stream(stream): Stream full tickers for one instrument at a fixed rate; every frame has every field. Channelv1.ticker.s, selector<instrument>[@<rate>]ticker_delta_stream(stream): Stream ticker changes for one instrument; a full ticker first, then only the fields that changed. Channelv1.ticker.d, selector<instrument>[@<rate>]
Order books
orderbook_levels: Get one instrument's order book, up to 10 price levels a side.market-data /full/v1/bookorderbook_snap_stream(stream): Stream full order book snapshots for one instrument at a fixed depth (10 to 500 levels a side). Channelv1.book.s, selector<instrument>[@<rate>-<depth>]orderbook_delta_stream(stream): Stream order book changes for one instrument; a full book first, then only the levels that changed. Channelv1.book.d, selector<instrument>[@<rate>-<depth>]
Public trades
trade: Get the most recent public trades of one instrument (up to 1000).market-data /full/v1/tradetrade_history: List an instrument's public trades over a time range (last three months), newest first.market-data /full/v1/trade_historytrade_stream(stream): Stream every public trade of one instrument as it happens. Channelv1.trade, selector<instrument>[@<limit>]
Candles
candlestick: List candles (klines) for one instrument and interval, newest first.market-data /full/v1/klinecandlestick_stream(stream): Stream candles for one instrument and interval as they update. Channelv1.candle, selector<instrument>[@<interval>-<type>]
Funding rates
funding_rate: List a perpetual's past funding rates, newest first.market-data /full/v1/funding
Trading hours
get_sfp_trading_schedule: Get the trading hours of stable funding perps (_SFPinstruments).market-data /full/v1/sfp_trading_schedule
Margin & collateral reference
get_margin_rules: Get one instrument's margin rules (maximum position size and risk brackets).market-data /full/v1/margin_rulesget_all_collateral_asset_info: List the collateral settings of every currency that can be used as collateral.market-data /full/v1/get_all_collateral_asset_info