API - Global Impact Market
Authentication
All requests to the API must be authenticated with a valid token. You can get your token by signing up on the.
curl -H 'Authentication: Bearer [your-token]'
Status Code
The API uses conventional HTTP response codes to indicate the success or failure of an API request.
Code | Meaning |
---|---|
200 | Success |
400 | Bad Request |
401 | Unauthorized |
404 | Not Found |
500 | Internal Server Error |
Error Messages
When an API request fails, the response body will contain a JSON object with a message field that describes the error.
{
"status": 401,
"message": "Invalid token",
"code": "InvalidTokenError"
}
GET /api/simple/market
Returns a JSON object with the market metrics.
Response
{
"total_market_cap": 123456789.01,
"trading_volume_24h": 123456789.01,
"total_tokens": 82,
"market_dominance": 0.0186,
"last_updated": "2021-09-01T00:00:00.000Z"
}
Description
Field | Type | Description |
---|---|---|
total_market_cap | Number | Total market cap of all tokens in USD |
trading_volume_24h | Number | Trading volume of all tokens in USD |
total_tokens | Number | Total number of tokens |
market_dominance | Number | Market dominance of all tokens in USD |
last_updated | String | Last time the market metrics were updated |