Skip to main content

CoinGecko integration API

Public, unauthenticated JSON endpoints for USDT-margined perpetual markets on Eterna. Use these for exchange listing integrations (CoinGecko derivatives, Section B).

Base URL​

EnvironmentBase URL
Productionhttps://api.eterna.exchange
Staginghttps://api.staging.eterna.exchange

All paths below are relative to the base URL. No API key is required.

Endpoints​

MethodPathCache (API)Description
GET/integrations/coingecko/contracts~5 sSnapshot of all listed perpetual contracts
GET/integrations/coingecko/orderbook~2 sLevel-2 order book for one pair

Contracts​

GET /integrations/coingecko/contracts

Returns a JSON array. Each object describes one perpetual contract.

Key fields (listing):

FieldDescription
ticker_idPair id with underscore, e.g. BTC_USDT
last_priceLast price in quote currency
base_volume24h volume in base asset (Eterna executions)
target_volume24h volume in quote (USDT)
open_interestOpen interest size (base units, Eterna book)
open_interest_usdOpen interest notional (USD / USDT)
bid / askBest bid and ask
high / low24h high and low
index_priceIndex / mark reference
funding_rateCurrent funding rate
next_funding_rateNext funding rate (falls back to current when unknown)
product_typePerpetual
contract_typeVanilla

Prices and top-of-book come from the market data feed. Volume and open interest reflect trading activity on Eterna (aggregated from platform executions and open positions), not global market-wide statistics.

Live example: Production contracts

Sample response (one contract, truncated):

{
"ticker_id": "BTC_USDT",
"base_currency": "BTC",
"target_currency": "USDT",
"last_price": 78418.5,
"base_volume": 0.12,
"target_volume": 9400.5,
"bid": 78418.5,
"ask": 78418.6,
"high": 78546.5,
"low": 75673.2,
"product_type": "Perpetual",
"open_interest": 0.14,
"open_interest_usd": 10979.78,
"index_price": 78453.92,
"index_currency": "USDT",
"funding_rate": 0.0001,
"next_funding_rate": 0.0001,
"next_funding_rate_timestamp": 1793808000000,
"contract_type": "Vanilla",
"contract_price_currency": "USDT",
"contract_price": 78418.5
}

Order book​

GET /integrations/coingecko/orderbook?ticker_id=BTC_USDT&depth=100
QueryRequiredDefaultNotes
ticker_idYes-Same format as ticker_id in contracts
depthNo100Total levels across both sides; 0 returns up to 500 per side

Response:

{
"ticker_id": "BTC_USDT",
"timestamp": 1685177482652,
"bids": [["78418.50", "0.54321"]],
"asks": [["78418.60", "0.12345"]]
}

bids and asks are arrays of [price, quantity] string pairs, best price first.

Unknown or delisted pairs return HTTP 400 with a short error message.

Symbol format​

  • API / CoinGecko: BASE_QUOTE (underscore), e.g. ETH_USDT
  • Internal routing uses concatenated symbols (e.g. ETHUSDT) only inside the platform; integrators should use ticker_id as returned by /contracts.