Order Entry
Order entry operations
Create a new order (IOC, GTC, SL, TP)
1747927089946Trading symbol (e.g., BTCRUSDPERP, ETHRUSD)
BTCRUSDPERPPattern: ^[A-Za-z0-9]+$1747927089946Whether this is a buy order
true43000.00Pattern: ^-?\d+(\.\d+)?$1.0Pattern: ^\d+(\.\d+)?$Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)
LIMITPossible values: Order time in force, exclusively used for LIMIT orders
GTCPossible values: Trigger price, only for TP/SL orders
43000.00Pattern: ^-?\d+(\.\d+)?$Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.
falseSee signatures and nonces section for more details on how to generate.
0x1234...Order nonce, see signatures and nonces section for more details.
12345678900x6c51275fd01d5dbd2da194e92f920f8598306df2Pattern: ^0x[a-fA-F0-9]{40}$Expiration timestamp (exclusively for IOC orders). The order will only be filled before this timestamp.
1747927089946Order creation response
Bad request
Internal server error
POST /v2/createOrder HTTP/1.1
Host: api.reya.xyz
Content-Type: application/json
Accept: */*
Content-Length: 376
{
"exchangeId": 1747927089946,
"symbol": "BTCRUSDPERP",
"accountId": 1747927089946,
"isBuy": true,
"limitPx": "43000.00",
"qty": "1.0",
"orderType": "LIMIT",
"timeInForce": "GTC",
"triggerPx": "43000.00",
"reduceOnly": false,
"signature": "0x1234...",
"nonce": "1234567890",
"signerWallet": "0x6c51275fd01d5dbd2da194e92f920f8598306df2",
"expiresAfter": 1747927089946,
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"status": "OPEN",
"orderId": "123456789-123123123",
"ANY_ADDITIONAL_PROPERTY": "anything"
}Cancel an existing order
Order ID to cancel
123456789-123123123See signatures section for more details on how to generate.
0x5678...Order cancellation response
Bad request
Internal server error
POST /v2/cancelOrder HTTP/1.1
Host: api.reya.xyz
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"orderId": "123456789-123123123",
"signature": "0x5678...",
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"status": "OPEN",
"orderId": "123456789-123123123",
"ANY_ADDITIONAL_PROPERTY": "anything"
}