get_quote
Obtain swap quotes for token trading on Casper Network, showing amounts, price impact, and routing paths before executing trades.
Instructions
Get a swap quote for trading between two tokens. Returns amounts, price impact, and routing path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_in | Yes | Input token: symbol (e.g., "CSPR"), name, or contract hash | |
| token_out | Yes | Output token: symbol (e.g., "USDT"), name, or contract hash | |
| amount | Yes | Human-readable amount (e.g., "100" for 100 CSPR) | |
| type | Yes | "exact_in" = specify input amount, "exact_out" = specify desired output amount |