Skip to main content
POST
/
api
/
v2
/
perp
/
order
POST /api/v2/perp/order — Place a perpetual order
curl --request POST \
  --url https://api.shuriken.trade/api/v2/perp/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "coin": "<string>",
  "isBuy": true,
  "walletId": "<string>",
  "cloid": "<string>",
  "grouping": "<string>",
  "limitPx": "<string>",
  "orderType": "<string>",
  "reduceOnly": true,
  "sizeUsd": "<string>",
  "sl": {
    "triggerPx": "<string>",
    "isMarket": true,
    "limitPx": "<string>"
  },
  "sz": "<string>",
  "tp": {
    "triggerPx": "<string>",
    "isMarket": true,
    "limitPx": "<string>"
  }
}
'
{
  "data": {
    "results": [
      {
        "status": "<string>",
        "cloid": "<string>",
        "error": "<string>",
        "oid": 1
      }
    ]
  },
  "requestId": "<string>",
  "pagination": {
    "hasMore": true,
    "limit": 1,
    "page": 1,
    "total": 1
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <jwt> for user auth or Authorization: Bearer sk_{keyId}_{secret} for API key auth.

Body

application/json
coin
string
required
isBuy
boolean
required
walletId
string
required
cloid
string | null
grouping
string
limitPx
string | null
orderType
string
reduceOnly
boolean
sizeUsd
string | null
sl
object
sz
string | null
tp
object

Response

Order result

V2 success response envelope

data
object
required
requestId
string
required
pagination
object

Page-based pagination info (per RFC)