Skip to main content
POST
Buy or sell (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_-]+$

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.