Skip to main content
POST
Limit, TWAP or snipe (unavailable)

Authorizations

Authorization
string
header
required

An OceanX API key, created in the app under Settings → Developer API. Send it as Authorization: Bearer ox_live_…. Required scopes are operation-specific: market reads use md.read, tracker uses tracker.read, copy reads use copy.read, alert operations use alerts.read or alerts.write, and owned wallet/funding reads require explicit account.read. New scopes require explicit selection and grant no trading authority. Existing perps operations retain their documented scopes.

Body

application/json
chain
string
required
wallet
string
required
Maximum string length: 44
token
string
required
Maximum string length: 44
quoteToken
string
required
Maximum string length: 44
side
enum<string>
required
Available options:
buy,
sell
amount
string
required
Maximum string length: 78
Pattern: ^[1-9]\d*$
slippageBps
integer
required
Required range: 1 <= x <= 1000
clientOrderId
string
required
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9_-]+$
orderType
string
required
Allowed value: "limit"
limitPriceUsd
string
required
Maximum string length: 48
Pattern: ^(0|[1-9]\d{0,19})(\.\d{1,18})?$
expiresAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

Response

Query parameters or unreadable/body over 8 KiB; after future signature verification, invalid JSON/UTF-8, unknown fields, chain/address/amount, expiry or schedule.

error
object
required
requestId
string

Request identifier on new token endpoints.