set_trading_limits
Configure per-token trading caps (TradingLimit) on the caller's agent wallet.
limits: a list of {token_address, max_position_size?, max_single_trade?,
daily_volume_limit?} objects, USD amounts (> 0, up to 6 decimals). Upserts
by token_address; only the cap keys you include are written -- an omitted
key keeps its stored value, an explicit null clears it (uncapped). Returns
the full updated set read back from the server, plus enforcement
(which rails read each column today). Pure Django write: unlike
set_wallet_policy there is no Turnkey enclave re-push.
On a Lane 2 wallet, raising or clearing an existing cap is refused (POLICY_VIOLATION) -- the owner loosens it from their authenticated session. Tightening always applies.
Permission mode: a configuration write -- allowed in every permission_mode, observe included (same class as set_wallet_policy).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limits | Yes | ||
| caller_id | No | ||
| wallet_address | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||