The WraithSwap API is a set of endpoints used by market aggregators (e.g. coinmarketcap.com etc.) and developers to easily surface WraithSwap liquidity and volume information. All information is fetched from the underlying subgraphs we provide for WraithSwap
Example GET Requests Query for SYF and WRA Price Data:
All WraithSwap pairs consist of two different tokens. FTM is not a native currency in WraithSwap, and is represented only by WFTM in the pairs.
The canonical WFTM address used by the WraithSwap interface is 0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83.
Results are cached for 5 minutes (or 300 seconds).
Returns the tokens in the top ~1000 pairs on WraithSwap, sorted by reserves.
Request
GET https://api.wraithswap.finance/api/tokens
Response
{
"updated_at": 1234567, // UNIX timestamp
"data": {
"0x...": { // the address of the ERC20 token
"name": "...", // not necessarily included for ERC20 tokens
"symbol": "...", // not necessarily included for ERC20 tokens
"price": "...", // price denominated in USD
"price_FTM": "...", // price denominated in FTM
},
// ...
}
}