The Trade API gives you programmatic access to decentralized exchange (DEX) functionality on the Fuse network, powered by Voltage Finance. It is split into two versions: V1 provides price feeds and historical statistics, while V2 adds real-time indicative prices, swap quotes with slippage controls, and liquidity source discovery. Both versions are available under the same base URL and use a shared API key.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fuseio/fuse-docs/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
- V1 endpoints:
/api/v0/trade/... - V2 endpoints:
/api/v1/trade/...
Authentication
Pass your public API key as a query parameter on every request:V1 endpoints — price feeds and statistics
GET /api/v0/trade/price/
Returns the latest USD price for a token.Request parameters
The ERC-20 token contract address to price.
Your public API key.
Example
GET /api/v0/trade/pricechange/
Returns the price change percentage for a token over the last 24 hours.Request parameters
The token contract address.
Your public API key.
POST /api/v0/trade/pricechange/
Returns the price change for a token over a custom time duration specified in the request body.Request parameters
The token contract address.
Your public API key.
Request body
A duration object specifying the time window. For example:
{ "days": 7 }.GET /api/v0/trade/pricechange/interval//
Returns price change data for a token over a standard interval.Request parameters
Interval for price change. One of:
ALL, MONTH, WEEK, DAY, HOUR.The token contract address.
Your public API key.
GET /api/v0/trade/stats/
Returns historical OHLCV statistics for a token.Request parameters
The token contract address.
Your public API key.
Number of historical data points to return.
V2 endpoints — swap quotes and liquidity
GET /api/v1/trade/price
Returns an indicative (non-binding) price for a potential swap. Use this to show users an estimated price before committing to a transaction.Request parameters
Your public API key.
The contract address of the token to sell.
The contract address of the token to buy.
Amount to sell in the token’s base unit (wei). Provide either
sellAmount or buyAmount, not both.Amount to buy in the token’s base unit (wei). Provide either
buyAmount or sellAmount, not both.Maximum acceptable slippage as a decimal fraction (e.g.,
"0.01" for 1%).The address that will execute the trade. Used for validation.
Comma-separated list of liquidity source names to exclude.
Gas price in wei. Defaults to a safe estimate if omitted.
Example
GET /api/v1/trade/quote
Returns a firm quote for buying or selling any ERC-20 token. The response includes calldata that can be submitted directly to the network to execute the swap.Request parameters
Your public API key.
The contract address of the token to sell.
The contract address of the token to buy.
Amount to sell in base units. Provide either
sellAmount or buyAmount.Amount to buy in base units. Provide either
buyAmount or sellAmount.Maximum slippage tolerance as a decimal (e.g.,
"0.005" for 0.5%).The address executing the trade. Required for on-chain validation.
Address to receive protocol fees, if applicable.
Percentage of the buy token amount to send to
feeRecipient as a decimal (e.g., "0.01" for 1%).When
true, the quote uses the taker’s entire balance of the sell token.Example
GET /api/v1/trade/sources
Lists all liquidity sources (AMMs and routing pools) currently enabled on the Fuse DEX.Request parameters
Your public API key.
Example
Error responses
| Status | Description |
|---|---|
400 | Bad request — check required parameters like sellToken, buyToken, and amount fields |
401 | Unauthorized — invalid API key |
403 | Forbidden — missing API key |