General statistics
curl --request GET \
--url https://api.saucerswap.finance/stats \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/stats"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"circulatingSauce": "526531284317600",
"swapTotal": "1600796",
"tvl": "55577479377624950",
"tvlUsd": 26773811.729033,
"volumeTotal": "372768795310667371",
"volumeTotalUsd": 220524200.282553
}Stats
REST API: General statistics
Retrieve protocol-wide SaucerSwap statistics in one call: circulating SAUCE supply, total swap count, TVL in tinybar and USD, and all-time volume.
GET
/
stats
General statistics
curl --request GET \
--url https://api.saucerswap.finance/stats \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/stats"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"circulatingSauce": "526531284317600",
"swapTotal": "1600796",
"tvl": "55577479377624950",
"tvlUsd": 26773811.729033,
"volumeTotal": "372768795310667371",
"volumeTotalUsd": 220524200.282553
}Authorizations
API key provisioned by the SaucerSwap team. Request one from [email protected] and send it in the x-api-key header with every request.
Headers
API key for authentication. Request a key from [email protected].
Example:
"YOUR_API_KEY"
Response
200 - application/json
Successful response
Total sauce in circulation in its smallest unit
Example:
"526531284317600"
Total swaps across all pools since inception
Example:
"1600796"
Total value locked priced in Tinybar
Example:
"55577479377624950"
Total value locked in USD
Example:
26773811.729033
Total trading volume since inception priced in Tinybar
Example:
"372768795310667371"
Total volume in USD
Example:
220524200.282553
Was this page helpful?