GMX V2 GM / GLV deposit · withdraw · cancel
GET/v1/actions/vaults/gmx
Build calldata for GMX V2 GM-market / GLV liquidity actions (Arbitrum 42161, Avalanche 43114). These are async: each call returns a single ExchangeRouter (GM) / GlvRouter (GLV) multicall transaction (plus any ERC-20 approval to the GMX Router), and a keeper executes the request a few seconds later. The deposit/withdraw tx must carry a native executionFee (the keeper's gas reimbursement) — GMX reverts if it's underpaid.
Actions
deposit(default) — add liquidity. NeedslongToken+shortToken(the market legs),payAsset(the token paid in),amount,executionFee.withdraw— remove liquidity (burn GM/GLV tokens). Needsamount(GM/GLV tokens),executionFee.cancel— cancel a still-pending deposit/withdrawal ticket. Needsrequest=deposit|withdrawaland the 32-bytekey(from /v1/data/vaults/gmx).
GM vs GLV (kind)
gm(default) — a single GM market;marketdefaults tovault.glv— an auto-rebalancing GLV vault; you must name the GMmarketwithin the GLV.
Request
Responses
- 200
- 400
A single ExchangeRouter/GlvRouter multicall transaction (plus any Router approval). A keeper executes the request shortly after.
Validation error