Skip to main content

Whole Block Markets

Public endpoints for whole block market data. No authentication required.

GET /v1/p/wholeblock/markets

Get active all whole block market details.

curl -X GET "$ETHGAS_API_URL/v1/p/wholeblock/markets"

Request

No parameters required.

Response Body

NameTypeDescription
marketsobject[]List of Whole Block Market objects
└ marketIdintegerWhole block market ID
└ slotintegerSlot number of the block
└ instrumentIdstringWhole block market instrument ID (e.g. ETH-WB-295209)
└ namestringMarket name
└ priceStepstringMinimum price increment
└ minPricestringMinimum price
└ maxPricestringMaximum price
└ availablePreconfintegerAvailable preconf quantity for trading
└ directionbooleanLast trading direction (true = buy, false = sell)
└ pricestringLatest traded market price
└ statusintegerMarket status (see Market Status Codes)
└ maturityTimeintegerWhen market will be closed (UNIX ms)
└ blockTimeintegerWhen block starts (UNIX ms)
└ finalityTimeintegerWhen block is finalized (UNIX ms)

GET /v1/p/wholeblock/positions

Get whole block positions.

curl -X GET "$ETHGAS_API_URL/v1/p/wholeblock/positions?instrumentId=ETH-WB-9884031&limit=10"

Request

ParameterRequiredTypeDescription
instrumentIdNOstringInstrument ID
limitNOintegerMax positions to return (default: 10)

GET /v1/p/wholeblock/orders

Get whole block orders.

curl -X GET "$ETHGAS_API_URL/v1/p/wholeblock/orders?instrumentId=ETH-WB-9884031&onbook=false&done=false&limit=10"

Request

ParameterRequiredTypeDescription
instrumentIdYESstringWhole block market instrument ID
onbookNObooleanPending orders only (default: false)
doneNObooleanDone orders only (default: false)
startIdNOintegerOrder start ID (default: 0)
ascNObooleanSort ascending (default: false)
limitNOintegerMax orders to return (default: 10)

GET /v1/p/wholeblock/trades

Get whole block trades.

curl -X GET "$ETHGAS_API_URL/v1/p/wholeblock/trades?instrumentId=ETH-WB-9884031&limit=10"

Request

ParameterRequiredTypeDescription
instrumentIdYESstringWhole block market instrument ID
limitNOintegerMax trades to return (default: 10)