Skip to main content
Every Perpetuals error carries error.slug and error.code next to its human-readable text; the Error Reference describes the shape per transport and the codes 0001–0014 shared by every route. The codes below belong to one route each: 1xxx createOrder, 2xxx cancelOrder, 3xxx modifyOrder, 6xxx rejectOrder, 7xxx updateLeverage, 8xxx updateMargin, 9xxx updateMarginMode.

createOrder

cancelOrder

modifyOrder

rejectOrder

Pushed after an order was accepted, on the Order Creation Stream.

updateLeverage

updateMargin

updateMarginMode