Skip to main content
POST
/
api
/
v1
/
simpleOrders
/
createMarketOrder
Market order by token ID
curl --request POST \
  --url https://api.vatic.trading/api/v1/simpleOrders/createMarketOrder \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tokenId": "<string>",
  "side": "BUY",
  "amount": 123,
  "negRisk": true,
  "orderType": "FOK"
}
'

Authorizations

x-api-key
string
header
required

Required for order endpoints. Obtain your API key from the Vatic dashboard.

Body

application/json
walletId
string<uuid>
required
tokenId
string
required
side
enum<string>
required
Available options:
BUY,
SELL
amount
number
required

USDC (BUY) or shares (SELL).

negRisk
boolean

Optional — auto-detected if omitted.

orderType
enum<string>
default:FOK
Available options:
FOK,
FAK

Response

Order result