GUM Trading CLI & MCP
v0.3.1Trade spot tokens, tokenized stocks, and up to 50x perps across chains on GUM by Jupiter.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami
The wallet this server trades with: its address, Solana or EVM, the profile and its USD limit. Call this first; the other tools default to this wallet.
get_balances
USD cash and token holdings. Defaults to this server's wallet.
| Parameter | Type | Description |
|---|---|---|
address | string | Your account: a Solana address, an EVM 0x address, or a GUM address. |
list_chains
Supported chains, each with its dollar token and whether USD can be withdrawn to it (usdWithdrawable).
get_deposit_addresses
Where to send funds to top up the account: one deposit address per chain, with its dollar token and minimum.
| Parameter | Type | Description |
|---|---|---|
address | string | Your account: a Solana address, an EVM 0x address, or a GUM address. |
get_history
Deposits, swaps and withdrawals, newest first. Pass nextCursor back as cursor for the next page.
| Parameter | Type | Description |
|---|---|---|
address | string | Your account: a Solana address, an EVM 0x address, or a GUM address. |
chainId | integer | Only one market: the token's chain (GET /chains). Pass it with `token`. |
cursor | string | `nextCursor` from the previous page. |
limit | integer | |
mint | string | Only one market, by its GUM mint. Use instead of `chainId` and `token`. |
token | string | Only one market: a symbol (SOL) or the token's address. Found on its chain unless you pass --chain. |
type | string |
get_perps_account
GUM Perps sub-accounts, balances, margin, configured market leverage, open positions and resting orders. Defaults to this server's wallet.
| Parameter | Type | Description |
|---|---|---|
address | string | Your account: a Solana address, an EVM 0x address, or a GUM address. |
subaccountId | integer | Filter to one sub-account (0–4). |
perps_deposit
Move USD from GUM spot balance into a GUM Perps sub-account (free). Set dryRun to check without moving funds. Needs a USD limit.
| Parameter | Type | Description |
|---|---|---|
amount * | string | USD amount as a decimal string. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
subaccountId | integer | Perps sub-account index (0–4, default 0). |
perps_set_leverage
Set target leverage for a GUM Perps market (cross or isolated). Set dryRun to check without submitting.
| Parameter | Type | Description |
|---|---|---|
leverage * | integer | Target leverage multiplier (1–100). |
symbol * | string | Perps market symbol, e.g. SOL, BTC, SPCX. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
marginMode | string | Defaults to "cross". |
subaccountId | integer |
list_perps_markets
List active GUM Perps markets with mark/index prices, hourly and annualized funding rates, open interest, maker/taker fees and margin tiers.
get_perps_funding_history
Historical hourly funding rates and average annualized rate for a GUM Perps market.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Perps market symbol, e.g. SOL, BTC, ETH, SPCX, HYPE. |
limit | integer | Hourly entries to return (1–720, default 168 = 7 days). |
get_perps_orderbook
Current L2 orderbook bids and asks for a GUM Perps market.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Perps market symbol, e.g. SOL, BTC, ETH, SPCX, HYPE. |
depth | integer | Levels per side (1–50, default 20). |
perps_cancel_order
Cancel one open GUM Perps order (orderId or clientOrderId) or all open orders in a market (cancelAll: true). Set dryRun to check without cancelling.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | |
cancelAll | boolean | Set true to cancel every open order in this market. |
clientOrderId | string | |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
marginMode | string | |
orderId | string | |
subaccountId | integer |
quote_perps_order
Preview a GUM Perps market, limit or post-only order without submitting. Returns quantity, price and estimated USD notional.
| Parameter | Type | Description |
|---|---|---|
side * | string | buy opens/adds long; sell opens/adds short. |
size * | string | Order size as a decimal string: base units by default, or USD when sizeCurrency is "USD". |
symbol * | string | Perps market symbol, e.g. SOL, BTC, SPCX. |
clientOrderId | string | Optional unsigned 64-bit integer client order id. |
marginMode | string | Defaults to "cross". |
orderType | string | Defaults to "market". |
price | string | Limit price as a decimal string. Required for limit and postOnly orders. |
reduceOnly | boolean | |
sizeCurrency | string | Defaults to "base". |
slippageBps | integer | Market order slippage cap in bps (default 100 = 1%, max 400 = 4%). |
subaccountId | integer | |
timeInForce | string |
perps_place_order
Place a GUM Perps market, limit or postOnly order with this wallet. side is buy (long) or sell (short); size is in base units (or USD when sizeCurrency is USD). Set dryRun to verify without submitting. Needs a USD limit.
| Parameter | Type | Description |
|---|---|---|
side * | string | buy opens/adds long; sell opens/adds short. |
size * | string | Order size as a decimal string: base units by default, or USD when sizeCurrency is "USD". |
symbol * | string | Perps market symbol, e.g. SOL, BTC, SPCX. |
clientOrderId | string | Optional unsigned 64-bit integer client order id. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
marginMode | string | Defaults to "cross". |
orderType | string | Defaults to "market". |
price | string | Limit price as a decimal string. Required for limit and postOnly orders. |
reduceOnly | boolean | |
sizeCurrency | string | Defaults to "base". |
slippageBps | integer | Market order slippage cap in bps (default 100 = 1%, max 400 = 4%). |
subaccountId | integer | |
timeInForce | string |
perps_withdraw
Move free USD from a GUM Perps sub-account back to your GUM spot balance (free). Set dryRun to check without moving funds. Needs a USD limit.
| Parameter | Type | Description |
|---|---|---|
amount * | string | USD amount as a decimal string. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
subaccountId | integer | Perps sub-account index (0–4, default 0). |
quote
Price a buy or a sell without trading. Buys take amount in USD; sells take it in tokens. Returns pay, receive (with its minimum), fee, usdValue and expiresAt.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Decimal string. Buy: USD to spend. Sell: tokens to sell. |
side * | string | |
token * | string | A symbol (SOL) or the token's address. A symbol on several chains needs --chain. |
chainId | integer | The token's chain, e.g. 900 Solana or 8453 Base. Found from the token when left out. |
slippageBps | integer | Optional. Defaults to 100 (1%), 200 on Ethereum and Robinhood. Max 1000. |
trade
Buy or sell with this wallet's GUM balance: quotes, signs, submits and waits up to a minute. Buys spend amount USD; sells sell amount tokens. Set dryRun to check everything without trading. Refused unless the server runs with a USD limit (GUM_MAX_TRADE_USD or the profile's). If the result isn't final yet, call get_swap with its id.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Decimal string. Buy: USD to spend. Sell: tokens to sell. |
side * | string | |
token * | string | A symbol (SOL) or the token's address. A symbol on several chains needs --chain. |
chainId | integer | The token's chain, e.g. 900 Solana or 8453 Base. Found from the token when left out. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
slippageBps | integer | Optional. Defaults to 100 (1%), 200 on Ethereum and Robinhood. Max 1000. |
get_swap
A swap's status by id. Done once final is true; while pending, step says what's happening.
| Parameter | Type | Description |
|---|---|---|
id * | string | The `id` returned when you submitted. |
search_tokens
Find tradable tokens and stocks by symbol, name or address. Returns address, chainId, decimals, priceUsd, verified and riskLevel.
| Parameter | Type | Description |
|---|---|---|
chainId | integer | Only this chain. With an address `query`, that token is looked up on this chain directly; if the lookup can't reach its source, the answer is a 502 to retry. |
limit | integer | |
query | string | Symbol, name or address. Empty returns popular tokens. |
quote_withdrawal
Price a withdrawal without sending it: amount, fee, usdValue and warnings about the destination.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Decimal string. |
chainId * | integer | Destination chain. |
destination * | string | Address on chainId that receives the funds. |
token * | string | "USD" (paid out as the chain's dollar token), or the symbol or address of a token you hold on that chain. |
withdraw
Send funds to an address on another chain. token is "USD" (paid out as that chain's dollar token) or a token you hold. Returns once submitted; follow it with get_withdrawal. Set dryRun to check without sending. Refused unless the server runs with a USD limit (GUM_MAX_TRADE_USD or the profile's).
| Parameter | Type | Description |
|---|---|---|
amount * | string | Decimal string. |
chainId * | integer | Destination chain. |
destination * | string | Address on chainId that receives the funds. |
token * | string | "USD" (paid out as the chain's dollar token), or the symbol or address of a token you hold on that chain. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
get_withdrawal
A withdrawal's status by id. Done once final is true.
| Parameter | Type | Description |
|---|---|---|
id * | string | The `id` returned when you submitted. |
perps_close_position
Close all or part of an open GUM Perps position with a reduce-only market order. Omit size to close the full position; specify marginMode and/or subaccountId if multiple positions exist for the same market. Set dryRun to verify without executing. Needs a USD limit.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Market symbol to close, e.g. SOL. |
dryRun | boolean | Quote and sign, then have the API check the signature without submitting. Nothing moves. |
marginMode | string | Margin mode to disambiguate when both cross and isolated positions exist. |
size | string | Optional base-unit size to close. Omit to close the full open position. |
slippageBps | integer | Maximum slippage in basis points for the market close (0–400). |
subaccountId | integer | Sub-account index (0–4) when positions span multiple sub-accounts. |
search_api
Search the API for an endpoint in plain words (e.g. "price history"). Returns each match's operationId and parameters, ready for call_api, including endpoints newer than this server.
| Parameter | Type | Description |
|---|---|---|
query * | string | What you want to do. |
call_api
Call an endpoint by operationId (find it with search_api). params fill path and query parameters; an address parameter defaults to this server's wallet. body is the JSON body. Submitting trades and withdrawals isn't allowed here: use trade and withdraw, which sign.
| Parameter | Type | Description |
|---|---|---|
operationId * | string | From search_api. |
body | object | The JSON body, for POST operations. |
params | object | Path and query parameters by name. |