Products
Overview
Products are the financial instruments available for trading within the exchange. Each product represents a distinct market with specific trading rules and risk parameters. At launch, Ethereal will offer only perpetual futures contracts, which serve as the foundation for all trading activity on the platform.
Product Configuration
Perpetual futures are derivative contracts that track underlying asset prices without expiration dates. Key specifications include contract size, minimum tick size, maximum leverage ratios, and funding rate mechanisms that align contract prices with spot markets. Each contract defines margin requirements, position limits, and liquidation parameters for risk management.
Product configuration is mostly smart contract driven. All smart contract product and product related configuration updates emit an event, an offchain indexer consumes this event and propagates changes downstream.
You can query for product details directly in the smart contracts or through the API.
curl -X 'GET' \
'https://api.etherealtest.net/v1/product?order=asc&orderBy=createdAt' \
-H 'accept: application/json'
{
"hasNext": true,
"nextCursor": "eyJpZCI6M30=",
"data": [
{
"id": "e8513e20-6661-4324-bd05-814120f0d5df",
"ticker": "BTCUSD",
"displayTicker": "BTC-USD",
"baseTokenAddress": "0x0000000000000000000000000000000000000000",
"quoteTokenAddress": "0x7e3203241340C579d6f5061419E9d352Eff1d9F2",
"baseTokenName": "BTC",
"quoteTokenName": "USD",
"engineType": 0,
"onchainId": 1,
"blockNumber": "4272",
"createdAt": 1750401257026,
"fundingUpdatedAt": 1750417200015,
"minQuantity": "0.0001",
"lotSize": "0.0001",
"tickSize": "1",
"makerFee": "0.00005",
"takerFee": "0.00025",
"maxQuantity": "10",
"minPrice": "0",
"maxPrice": "10110000",
"volume24h": "0",
"maxLeverage": 50,
"pythFeedId": 1,
"fundingRate1h": "0.000014408",
"openInterest": "0",
"maxOpenInterestUsd": "50000000",
"maxPositionNotionalUsd": "5000000"
},
{
"id": "7bb61295-0391-4589-91ca-9085455f938f",
"ticker": "ETHUSD",
"displayTicker": "ETH-USD",
"baseTokenAddress": "0x0000000000000000000000000000000000000000",
"quoteTokenAddress": "0x7e3203241340C579d6f5061419E9d352Eff1d9F2",
"baseTokenName": "ETH",
"quoteTokenName": "USD",
"engineType": 0,
"onchainId": 2,
"blockNumber": "4274",
"createdAt": 1750401259954,
"fundingUpdatedAt": 1750417200015,
"minQuantity": "0.01",
"lotSize": "0.01",
"tickSize": "0.1",
"makerFee": "0.00005",
"takerFee": "0.00025",
"maxQuantity": "100",
"minPrice": "0",
"maxPrice": "1002800",
"volume24h": "0",
"maxLeverage": 20,
"pythFeedId": 2,
"fundingRate1h": "0.000010071",
"openInterest": "0",
"maxOpenInterestUsd": "20000000",
"maxPositionNotionalUsd": "5000000"
},
{
"id": "67bfae36-4479-4e9c-82e5-6c3da0f80cd2",
"ticker": "SOLUSD",
"displayTicker": "SOL-USD",
"baseTokenAddress": "0x0000000000000000000000000000000000000000",
"quoteTokenAddress": "0x7e3203241340C579d6f5061419E9d352Eff1d9F2",
"baseTokenName": "SOL",
"quoteTokenName": "USD",
"engineType": 0,
"onchainId": 3,
"blockNumber": "4275",
"createdAt": 1750401260238,
"fundingUpdatedAt": 1750417200015,
"minQuantity": "0.1",
"lotSize": "0.1",
"tickSize": "0.01",
"makerFee": "0.00005",
"takerFee": "0.00025",
"maxQuantity": "10000",
"minPrice": "0",
"maxPrice": "100170",
"volume24h": "0",
"maxLeverage": 10,
"pythFeedId": 6,
"fundingRate1h": "-0.000038837",
"openInterest": "0",
"maxOpenInterestUsd": "20000000",
"maxPositionNotionalUsd": "5000000"
}
]
}
Market Prices
Ethereal exclusively utilizes Pyth Lazer as our oracle provider to provide markets with mark prices. Pyth Lazer delivers high-quality, low-latency price feeds that power critical functions across our trading infrastructure. You can learn more about Pyth Lazer by visiting their site or reading their docs.
Oracle prices from Pyth Lazer serve two primary functions within Ethereal.
Retrieving Relevant Market Prices
Ethereal trading API provides access to last mark (oracle), best bid, and best ask prices either through the HTTP API or websockets.
curl -X 'GET' \
'https://api.etherealtest.net/v1/product/market-price?productIds=d32ea32d-1313-4c64-9ef2-aed82e592a3c' \
-H 'accept: application/json'
{
"data": [
{
"productId": "d32ea32d-1313-4c64-9ef2-aed82e592a3c",
"bestBidPrice": "1807.200000000",
"bestAskPrice": "1807.700000000",
"oraclePrice": "1807.36431582",
"price24hAgo": "1816.47086747"
}
]
}
Please refer to Websocket Subscriptions section for details on how you can receive price updates via websockets.
Last updated