Skip to main content
POST
/
v1
/
orders
/
spot
Place spot order
curl --request POST \
  --url https://api.trydocent.com/v1/orders/spot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "symbol": "PURR",
  "amountUsd": 100,
  "limitPrice": 123,
  "maxSlippagePercent": 123
}
'
{
  "success": true,
  "actionId": "<string>",
  "workflowId": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trydocent.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key in the format dk_live_.... Pass as Authorization: Bearer dk_live_...

Body

application/json
symbol
string
required

Spot trading pair symbol (for example PURR or HFUN)

Example:

"PURR"

side
enum<string>
required
Available options:
BUY,
SELL
amountUsd
number
required

Amount in USD

Example:

100

orderType
enum<string>
required
Available options:
market,
limit
limitPrice
number

Limit price (required for limit orders)

maxSlippagePercent
number

Optional maximum slippage percentage

Response

Order accepted for asynchronous execution

success
boolean
required
Example:

true

actionId
string
required

Action ID for polling status via /v1/actions

workflowId
string
required

Internal workflow ID