Skip to main content

Inclusion Preconf Trading

Authenticated endpoints for inclusion preconf order placement and management.

POST /v1/inclusion-preconf/order

Create new inclusion preconf order.

curl -H "Authorization: Bearer {{access_token}}" -X POST "$ETHGAS_API_URL/v1/inclusion-preconf/order" \
-H "Content-Type: application/json" \
-d '{"instrumentId":"ETH-PC-9884031","accountId":128,"side":true,"orderType":2,"quantity":"10000","clientOrderId":"05d61624","passive":false,"price":"0.01"}'

Request Body

ParameterRequiredTypeDescription
instrumentIdYESstringInstrument ID
accountIdYESintegerAccount ID
sideYESbooleanOrder side (true = buy, false = sell)
orderTypeYESintegerMarket = 1, Limit = 2, FOK = 3
quantityYESintegerQuantity to buy or sell
clientOrderIdYESstringClient-generated order ID (max 32 chars)
passiveNObooleanPost-only (maker only) (default: false)
priceNOdoubleOrder price. Required for limit/FOK order

POST /v1/inclusion-preconf/cancel-all-orders

Cancel all inclusion preconf orders for an account and instrument.

curl -H "Authorization: Bearer {{access_token}}" -X POST "$ETHGAS_API_URL/v1/inclusion-preconf/cancel-all-orders?accountId=128&instrumentId=ETH-PC-1012051"

Request

ParameterRequiredTypeDescription
accountIdYESintegerAccount ID
instrumentIdYESstringInstrument ID

POST /v1/inclusion-preconf/cancel-batch-orders

Cancel specific inclusion preconf orders.

curl -H "Authorization: Bearer {{access_token}}" -X POST "$ETHGAS_API_URL/v1/inclusion-preconf/cancel-batch-orders?accountId=128&instrumentId=ETH-PC-1012051&orderIds=b25ab402,5e885ddd"

Request

ParameterRequiredTypeDescription
accountIdYESintegerAccount ID
instrumentIdYESstringInstrument ID
orderIdsYESstringComma-separated order IDs

POST /v1/inclusion-preconf/cancel-order

Cancel a single inclusion preconf order.

curl -H "Authorization: Bearer {{access_token}}" -X POST "$ETHGAS_API_URL/v1/inclusion-preconf/cancel-order" \
-H "Content-Type: application/json" \
-d '{"accountId":128,"instrumentId":"ETH-PC-1012051","orderId":"b25ab402"}'

Request

ParameterRequiredTypeDescription
accountIdYESintegerAccount ID
instrumentIdYESstringInstrument ID
orderIdYES*integerOrder ID (use orderId or clientOrderId)
clientOrderIdYES*stringClient order ID (use orderId or clientOrderId)

GET /v1/user/inclusion-preconf/orders

Get user inclusion preconf orders for an account and instrument.

curl -H "Authorization: Bearer {{access_token}}" -X GET "$ETHGAS_API_URL/v1/user/inclusion-preconf/orders?accountId=128&instrumentId=ETH-PC-9884031"

Request

ParameterRequiredTypeDescription
accountIdYESintegerAccount ID
instrumentIdNOstringInstrument ID
onBookNObooleanPending orders only
doneNObooleanDone orders only
startIdNOintegerStart of order ID for pagination
limitNOintegerMax orders to return

GET /v1/user/inclusion-preconf/all-orders

Get all user inclusion preconf orders.

curl -H "Authorization: Bearer {{access_token}}" -X GET "$ETHGAS_API_URL/v1/user/inclusion-preconf/all-orders?limit=10"

GET /v1/user/inclusion-preconf/positions

Get user inclusion preconf positions.

curl -H "Authorization: Bearer {{access_token}}" -X GET "$ETHGAS_API_URL/v1/user/inclusion-preconf/positions?instrumentId=ETH-PC-9884031&limit=10"

GET /v1/user/inclusion-preconf/txs

Get user transactions for inclusion preconf market.

curl -H "Authorization: Bearer {{access_token}}" -X GET "$ETHGAS_API_URL/v1/user/inclusion-preconf/txs?instrumentId=ETH-PC-9884031&limit=100"

POST /v1/user/inclusion-preconf/market/update

Block owner reserve inclusion preconf.

curl -H "Authorization: Bearer {{access_token}}" -X POST "$ETHGAS_API_URL/v1/user/inclusion-preconf/market/update?instrumentId=ETH-PC-475423&reservedQty=1000"

Request

ParameterRequiredTypeDescription
instrumentIdYESstringInstrument ID
reservedQtyYESintegerReserved quantity