Skip to main content
PATCH
/
api
/
v2
/
perp
/
order
PATCH /api/v2/perp/order — Modify a perpetual order
curl --request PATCH \
  --url https://api.shuriken.trade/api/v2/perp/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "coin": "<string>",
  "isBuy": true,
  "limitPx": "<string>",
  "sz": "<string>",
  "walletId": "<string>",
  "cloid": "<string>",
  "newCloid": "<string>",
  "oid": 1,
  "orderType": "<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
limitPx
string
required
sz
string
required
walletId
string
required
cloid
string | null
newCloid
string | null
oid
integer<int64> | null
Required range: x >= 0
orderType
string

Response

Modify result

V2 success response envelope

data
object
required
requestId
string
required
pagination
object

Page-based pagination info (per RFC)