Common enums used across Rocky's Perpetual Contracts API.
Order side
| Value | Meaning |
|---|
BUY | Buy / long. |
SELL | Sell / short. |
Order type
| Value | Status |
|---|
LIMIT | Implemented. |
MARKET | Not yet implemented — taker bots cross the book with aggressive LIMITs in the meantime. |
STOP, STOP_MARKET, TAKE_PROFIT, TAKE_PROFIT_MARKET, TRAILING_STOP_MARKET | Not yet implemented. |
Order status
| Value | Meaning |
|---|
NEW | Placed, no fills yet. |
PARTIALLY_FILLED | Fills present, still has remaining qty. |
CANCELED | Returned 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
| Value | Meaning |
|---|
cross | Cross-margin. The only mode Rocky supports today. |
isolated | Not yet implemented. |
Position side
| Value | Meaning |
|---|
BOTH | Net position (one-way mode). The only mode Rocky supports today. |
LONG, SHORT | Hedge mode — not yet implemented. |
Symbols
| Symbol | standard form | Internal form |
|---|
| BTC perpetual | BTCUSDT | BTC-PERP |
| ETH perpetual | ETHUSDT | ETH-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.