Developers

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

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/login
  • login_wallet: Log in with a wallet signature (EIP-712 WalletLogin) instead of an API key. POST edge/auth/wallet/login

Orders & execution

  • create_order: Place an order. trades /full/v1/create_order · needs a session
  • bulk_orders: Create, cancel or cancel-replace several orders of one sub-account in one call. trades /full/v2/bulk_orders · needs a session
  • get_order: Get one order, open or not, by order_id or client_order_id. trades /full/v1/order · needs a session
  • open_orders: List a sub-account's open orders. trades /full/v1/open_orders · needs a session
  • cancel_order: Cancel one open order, by order_id or client_order_id. trades /full/v1/cancel_order · needs a session
  • cancel_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 session
  • cancel_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 session
  • order_history: List a sub-account's order history, newest first. trades /full/v1/order_history · needs a session
  • fill_history: List a sub-account's past fills (your own trades), newest first. trades /full/v1/fill_history · needs a session
  • order_stream (stream): Stream your orders in full, one frame each time one is created or changes. Channel v1.order, selector <sub_account_id>[-<instrument>] · needs a session
  • order_state_stream (stream): Stream only the state of your orders (status, filled size, average price), lighter than the order stream. Channel v1.state, selector <sub_account_id>[-<instrument>] · needs a session
  • fill_stream (stream): Stream your own fills (private trades), one frame per fill. Channel v1.fill, selector <sub_account_id>[-<instrument>] · needs a session
  • cancel_status_stream (stream): Stream the outcome of your cancel requests. Channel v1.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 session
  • get_algo_order: Get one algo order by algo_order_id or client_order_id. trades /full/v1/get_algo_order · needs a session
  • open_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 session
  • cancel_algo_order: Cancel an algo order and the sub-order it has resting on the book. trades /full/v1/cancel_algo_order · needs a session
  • algo_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 session
  • algo_sub_order_history: List the finished sub-orders of one algo order. trades /full/v1/algo_sub_order_history · needs a session
  • algo_order_stream (stream): Stream your algo orders, one frame each time one is created or updated. Channel v1.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 session
  • cancel_rfq: Cancel your open RFQ before it is accepted or expires. trades /full/v1/cancel_rfq · needs a session
  • rfq_quote_stream (stream): Stream the average fill price for your open RFQ's size on each side of the book, as the taker. Channel v1.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 session
  • position_history: List a sub-account's closed and partly closed positions. trades /full/v1/position_history · needs a session
  • get_collateral_preference: Get which currencies count as collateral for a multi-asset-mode sub-account. trades /full/v1/get_collateral_preference · needs a session
  • set_position_config: Set the margin type (cross or isolated) and leverage of one position. trades /full/v1/set_position_config · needs a session
  • get_all_initial_leverage: Get a sub-account's initial leverage for every instrument. trades /full/v1/get_all_initial_leverage · needs a session
  • get_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 session
  • add_position_margin: Add margin to an isolated position, or remove some with a negative amount. trades /full/v1/add_position_margin · needs a session
  • set_derisk_mm_ratio: Set a sub-account's derisk margin to maintenance margin ratio. trades /full/v1/set_derisk_mm_ratio · needs a session
  • set_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 session
  • positions_stream (stream): Stream your positions, one frame each time a position is opened or changes. Channel v1.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 session
  • aggregated_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 session
  • funding_account_summary: Get the total equity and balances of your main (funding) account. trades /full/v1/funding_account_summary · needs a session
  • sub_account_summary: Get one sub-account's balances, positions, margin and P&L. trades /full/v1/account_summary · needs a session
  • spot_account_summary: Get the total equity and spot balances of one spot sub-account. trades /full/v1/spot_account_summary · needs a session
  • funding_payment_history: List the funding payments a sub-account paid or received, newest first. trades /full/v1/funding_payment_history · needs a session
  • interest_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 no confirmed_time yet. trades /full/v1/deposit_history · needs a session
  • transfer: Move funds between your main account and its sub-accounts, or to an allowlisted main account. trades /full/v1/transfer · needs a session
  • transfer_history: List past transfers, newest first, optionally by currency, transfer type or time. trades /full/v1/transfer_history · needs a session
  • get_withdrawal_fee: Get the flat fee for withdrawing to Ethereum, in the currency you ask for. trades /full/v1/withdrawal_fee · needs a session
  • withdrawal: Withdraw funds from Grvt to an Ethereum address. trades /full/v1/withdrawal · needs a session
  • withdrawal_history: List past withdrawals from your main account, newest first; pending ones have no l_1_hash yet. trades /full/v1/withdrawal_history · needs a session
  • deposit_stream (stream): Stream deposits into your main account. Channel v1.deposit, selector <main_account_id> · needs a session
  • transfer_stream (stream): Stream transfers into or out of your main account, or of one of its sub-accounts. Channel v1.transfer, selector <main_account_id>[-<sub_account_id>] · needs a session
  • withdrawal_stream (stream): Stream withdrawals from your main account. Channel v1.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 session
  • vault_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 session
  • vault_invest: Invest in a vault from your main account or a sub-account, converting currency if needed. trades /full/v2/vault_invest · needs a session
  • vault_redeem: Redeem vault shares, paid in the vault's currency or converted into another one. trades /full/v2/vault_redeem · needs a session
  • vault_redeem_cancel: Cancel your pending redemption from a vault. trades /full/v1/vault_redeem_cancel · needs a session
  • vault_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 managers
  • vault_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 managers
  • vault_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 session
  • builder_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_instruments
  • get_filtered_instruments: List instruments filtered by kind, base or quote currency. market-data /full/v1/instruments
  • get_instrument: Get one instrument's details (tick size, minimum size, decimals, instrument hash) by name. market-data /full/v1/instrument
  • get_currency: List every currency with its id and decimals. market-data /full/v1/currency
  • get_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/mini
  • ticker: Get a full ticker for one instrument (prices, 24-hour statistics, funding, open interest). market-data /full/v1/ticker
  • mini_ticker_snap_stream (stream): Stream full mini tickers for one instrument at a fixed rate; every frame has every field. Channel v1.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. Channel v1.mini.d, selector <instrument>[@<rate>]
  • ticker_snap_stream (stream): Stream full tickers for one instrument at a fixed rate; every frame has every field. Channel v1.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. Channel v1.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/book
  • orderbook_snap_stream (stream): Stream full order book snapshots for one instrument at a fixed depth (10 to 500 levels a side). Channel v1.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. Channel v1.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/trade
  • trade_history: List an instrument's public trades over a time range (last three months), newest first. market-data /full/v1/trade_history
  • trade_stream (stream): Stream every public trade of one instrument as it happens. Channel v1.trade, selector <instrument>[@<limit>]

Candles

  • candlestick: List candles (klines) for one instrument and interval, newest first. market-data /full/v1/kline
  • candlestick_stream (stream): Stream candles for one instrument and interval as they update. Channel v1.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 (_SFP instruments). 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_rules
  • get_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
esc

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

Keyboard shortcuts

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