Skip to main content

Common Enums

Common enums used across Rocky's Perpetual Contracts API.

Order side​

ValueMeaning
BUYBuy / long.
SELLSell / short.

Order type​

ValueStatus
LIMITImplemented.
MARKETNot yet implemented — rejected with -1100; taker bots cross the book with aggressive LIMITs in the meantime.
STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKETNot yet implemented — rejected with -1100.

Order status​

ValueMeaning
NEWPlaced, no fills yet.
PARTIALLY_FILLEDFills present, still has remaining qty.
CANCELEDReturned by DELETE /fapi/v1/order on success.

FILLED, EXPIRED, REJECTED are not currently returned — orders removed from ledger.orders_open are not retained on the live read path. Query Trade History to see fills.

Margin type​

ValueMeaning
crossCross-margin. The only mode Rocky supports today.
isolatedNot yet implemented.

Position side​

ValueMeaning
BOTHNet position (one-way mode). The only mode Rocky supports today.
LONG, SHORTHedge mode — not yet implemented.

Symbols​

Symbolstandard formInternal form
BTC perpetualBTCUSDTBTC-PERP
ETH perpetualETHUSDTETH-PERP
CC perpetualCCUSDTCC-PERP

The FAPI surface uses the standard form (BTCUSDT); the Web v1 surface uses the internal form (BTC-PERP). The two are interchangeable at the FAPI boundary via symbol_map.rs; any other symbol on a FAPI endpoint is rejected with -1100.