get_trading_funds
Retrieve the native balance a managed GDEX wallet can trade on a specific chain, plus its managed wallet address, to confirm available funds before trading.
Instructions
Native balance the managed GDEX wallet can trade with on one chain (/v1/user), plus the managed wallet address per chain family. The value is approximate (backend float). Cross-chain USDC: usdc_get_balances.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>"
},
"name": "get_trading_funds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Encrypted session data, instead of sessionPrivateKey + apiKey | |
| chain | Yes | Chain identifier | |
| apiKey | No | GDEX API key (with sessionPrivateKey) | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| walletAddress | No | Control wallet address (the GDEX userId), not the managed trading wallet | |
| sessionPrivateKey | No | Session private key from sign-in (with apiKey) |