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.
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) |