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.

CodeMeaning
200Success
400Bad Request
401Unauthorized
404Not Found
500Internal 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

FieldTypeDescription
total_market_capNumberTotal market cap of all tokens in USD
trading_volume_24hNumberTrading volume of all tokens in USD
total_tokensNumberTotal number of tokens
market_dominanceNumberMarket dominance of all tokens in USD
last_updatedStringLast time the market metrics were updated