Skip to main content
POST
/
placeOrder
Place Order
curl --request POST \
  --url https://api.hypereth.io/v2/hyperliquid/placeOrder \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "symbol": "<string>",
  "side": "buy",
  "type": "limit",
  "amount": "<string>",
  "price": "<string>",
  "clientOrderId": "<string>",
  "reduceOnly": true,
  "timeInForce": "GTC",
  "stopPrice": "<string>",
  "positionSide": "LONG",
  "orderExpiry": 123
}'
{
  "id": "1234567890",
  "clientOrderId": "0x1234567890abcdef1234567890abcdef",
  "symbol": "BTC",
  "side": "sell",
  "type": "limit",
  "status": "open",
  "price": "65000.0",
  "amount": "0.01",
  "filled": "0",
  "remaining": "0.01",
  "average": null,
  "reduceOnly": true,
  "positionSide": "SHORT",
  "createdAt": 1710000000000
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
symbol
string
required

Unified market symbol

side
enum<string>
required
Available options:
buy,
sell
type
enum<string>
required
Available options:
limit,
market,
stop,
stop_market,
take_profit,
take_profit_market,
trailing_stop_market
amount
string
required

Order quantity

price
string

Required for limit orders

clientOrderId
string

Custom client ID. In Hyperliquid, it is an optional 128 bit hex string. In Aster, it can only be string following the rule ^[\.A-Z\:/a-z0-9_-]{1,36}$. In LighterDex, it must fit within i64.

reduceOnly
boolean
timeInForce
enum<string>
  • GTC: Good Till Canceled
  • IOC: Immediate or Cancel
  • FOK: Fill or Kill (Aster only)
  • GTX: Good Till Crossing (Post-only)
  • GTT: Good Till Time (requires orderExpiry)
Available options:
GTC,
IOC,
FOK,
GTX,
GTT
stopPrice
string

Required for stop/TP orders

positionSide
enum<string>
Available options:
LONG,
SHORT,
BOTH
orderExpiry
integer

Order expiry timestamp (milliseconds). Required for GTT orders

Response

200 - application/json

Order placed successfully

id
string

Exchange order ID

clientOrderId
string

Client order ID (if provided)

symbol
string

Trading symbol

side
enum<string>
Available options:
buy,
sell
type
enum<string>
Available options:
limit,
market,
stop,
stop_market,
take_profit,
take_profit_market,
trailing_stop_market
status
enum<string>
Available options:
open,
partial,
closed,
canceled,
expired,
rejected
price
string

Order price

amount
string

Order quantity

filled
string

Filled quantity

remaining
string

Remaining quantity

average
string | null

Average fill price

reduceOnly
boolean

Reduce-only flag

positionSide
enum<string>

Position side (hedge mode)

Available options:
LONG,
SHORT,
BOTH
timeInForce
enum<string>
  • GTC: Good Till Canceled
  • IOC: Immediate or Cancel
  • FOK: Fill or Kill (Aster only)
  • GTX: Good Till Crossing (Post-only)
  • GTT: Good Till Time (requires orderExpiry)
Available options:
GTC,
IOC,
FOK,
GTX,
GTT
stopPrice
string | null

Stop price for stop/TP orders

createdAt
integer

Creation timestamp

updatedAt
integer

Last update timestamp