The Trade API provides endpoints for integrating token price data and swap functionality into your application. It is powered by Voltage Finance, the primary DEX on Fuse Network. The API is split into two versions: V1 provides historical price and price-change data, while V2 provides real-time indicative prices, firm swap quotes, and liquidity source discovery for executing token swaps.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
Authentication
All requests require a public API key passed as a query parameter:V1 Endpoints
GET /api/v0/trade/price/
Returns the latest price for a token.Your public API key.
Token contract address to get the price for.
Example
GET /api/v0/trade/pricechange/
Returns the price change for a token over the last 24 hours.Your public API key.
Token contract address.
Example
POST /api/v0/trade/pricechange/
Returns the price change over a custom time duration specified in the request body.Your public API key.
Token contract address.
Duration object specifying the timeframe for the price change calculation.
Example
GET /api/v0/trade/pricechange/interval//
Returns the price change for a token over a standard interval.Your public API key.
Interval for the price change. Allowed values:
ALL, MONTH, WEEK, DAY, HOUR.Token contract address.
Example
GET /api/v0/trade/stats/
Returns historical price statistics for a token.Your public API key.
Token contract address.
Number of historical data points to return.
Example
V2 Endpoints
GET /api/v1/trade/price
Returns an indicative price for a token swap. This is a non-binding quote suitable for displaying estimated prices to users before they commit to a transaction.Your public API key.
The ERC20 token contract address of the token you want to sell.
The ERC20 token contract address of the token you want to receive.
The amount of
sellToken to sell, in base units (before decimals). Either sellAmount or buyAmount must be provided.The amount of
buyToken to receive, in base units. Either sellAmount or buyAmount must be provided.Maximum acceptable slippage as a decimal fraction (e.g.,
0.01 for 1%).Target gas price for the swap transaction in wei.
The address that will fill the quote. Used for validation.
Comma-separated list of liquidity sources to exclude.
Comma-separated list of liquidity sources to include.
When
true, skips on-chain validation of the quote. Default: false.Address that should receive affiliate fees.
Percentage of the
buyAmount attributed as an affiliate fee (e.g., 0.01 for 1%).Enable slippage protection. Default:
true.Maximum acceptable price impact as a decimal fraction.
Address that receives any trade surplus fee.
Example
GET /api/v1/trade/quote
Returns a firm quote for buying or selling an ERC20 token. Unlike/price, a quote includes the calldata needed to submit the swap transaction on-chain.
Accepts all the same parameters as GET /api/v1/trade/price, plus:
Your public API key.
Token contract address of the token to sell.
Token contract address of the token to receive.
Sell amount in base units. Provide either
sellAmount or buyAmount.Buy amount in base units.
The address that will submit the swap transaction. Required for on-chain validation.
When
true, sells the entire available sellToken balance of the takerAddress.Example
GET /api/v1/trade/sources
Returns the list of liquidity sources enabled for Fuse Network. Use the source names inexcludedSources or includedSources parameters of the price and quote endpoints.
Your public API key.
Example
Error responses
| Status | Meaning |
|---|---|
| 400 | Bad Request — invalid or missing parameters |
| 401 | Unauthorized — missing or invalid API key |