Get CoinGecko Events
Endpoint
Section titled “Endpoint”GET /api/coingecko/eventsTry it
Section titled “Try it”Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
fromBlock | query | integer | ✅ | start block |
toBlock | query | integer | ✅ | end block |
Responses
Section titled “Responses”200 — Events retrieved successfully
Section titled “200 — Events retrieved successfully”Media: application/json
Schema
{ "type": "object", "required": [ "events" ], "properties": { "events": { "type": "array", "items": { "type": "object", "required": [ "block", "eventType", "txnId", "txnIndex", "eventIndex", "maker", "pairId", "priceNative", "reserves" ], "properties": { "asset0In": { "type": "string", "nullable": true }, "asset0Out": { "type": "string", "nullable": true }, "asset1In": { "type": "string", "nullable": true }, "asset1Out": { "type": "string", "nullable": true }, "block": { "type": "object", "required": [ "blockNumber", "blockTimestamp" ], "properties": { "blockNumber": { "type": "integer", "format": "int32" }, "blockTimestamp": { "type": "integer", "format": "int64" } } }, "eventIndex": { "type": "integer", "format": "int32" }, "eventType": { "type": "string" }, "maker": { "type": "string" }, "pairId": { "type": "string" }, "priceNative": { "type": "string" }, "reserves": { "type": "object", "required": [ "asset0", "asset1" ], "properties": { "asset0": { "type": "string" }, "asset1": { "type": "string" } } }, "txnId": { "type": "string" }, "txnIndex": { "type": "integer", "format": "int32" } } } } }}Examples
{ "Result": { "value": "{}" }}400 — Bad request
Section titled “400 — Bad request”404 — Events not found
Section titled “404 — Events not found”500 — Internal server error
Section titled “500 — Internal server error”Authentication
Section titled “Authentication”All Taostats API requests require an Authorization header containing your API key. See Getting Started.