bitflow_get_quote
Fetch a Bitflow DEX swap quote to see the expected output amount and best route for swapping two tokens before executing a trade.
Instructions
Get a swap quote from Bitflow DEX.
Returns the expected output amount and best route for swapping tokens. No API key required — uses public endpoints (500 req/min).
Note: Bitflow is only available on mainnet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenX | Yes | Input token ID (e.g. 'token-stx', 'token-sbtc') | |
| tokenY | Yes | Output token ID (e.g. 'token-sbtc', 'token-aeusdc') | |
| amountIn | Yes | Amount of input token. Default interpretation is human units (e.g. '100' = 100 LEO). | |
| amountUnit | Yes | Required. Amount units: 'human' (frontend-style decimal, e.g. '2' for 2 STX) or 'base' (smallest integer units, e.g. '2000000' for 2 STX). |