Quote a buy or a sell on the Desk
quote_tradeWhat a buy or a sell of a Robinhood Chain token would give right now through The Desk's router: expected amount, price impact, the Desk fee and the token's Risk Level. Nothing is prepared or sent. Buys spend the pool's quote asset (ETH for most tokens, USDG for some); sells give it back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| unit | No | buy: "quote" (ETH/USDG, default) or "usd"; sell: "token" (default), "usd" or "percent" (needs wallet) | |
| token | Yes | ||
| amount | Yes | a plain number, e.g. "0.05" | |
| wallet | No | the wallet that would trade (needed for percent) |