preview_trade
Simulate a token trade to estimate output before executing on Basis protocol.
Instructions
Preview a buy or sell without executing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token name or address | |
| amount_usdb | No | USDB amount (for buys) | |
| amount_token | No | Token amount (for sells) | |
| direction | Yes | 'buy' or 'sell' |