OX.FUN
TradeSupport
  • 🏠OX.FUN
  • OX.FUN DOCS
    • 📈Perps
    • 📊Strategies
    • 🐂OX Coin
    • 🍂Seasons
    • 📩Referral
  • Page
  • API
    • ⚙️OX FUN API
    • 🔑API Key Management
    • ☁️Websocket API
      • Authentication
      • Session Keep Alive
      • Order Commands
        • Place Limit Order
        • Place Market Order
        • Place Stop Limit Order
        • Place Stop Market Order
        • Place Batch Market Order
        • Cancel Order
        • Cancel Batch Order
        • Modify Order
        • Modify Batch Orders
      • Subscriptions - Private
        • Balance Channel
        • Position Channel
        • Order Channel
          • Order Opened
          • Order Closed
          • Order Closed Failure
          • Order Modified
          • Order Modified Failure
          • Order Matched
      • Subscriptions - Public
        • Fixed Size Order Book
        • Full Order Book
        • Incremental Order Book
        • Best Bid/Ask
        • Trade
        • Ticker
        • Candles
        • Liquidation RFQ
        • Market
      • Other Responses
      • Error Codes
        • Curl Error Codes
    • 🔌REST API V3
      • Account & Wallet - Private
      • Deposits & Withdrawals - Private
      • Market Data - Public
      • Orders - Private
      • Trades - Private
  • 🔗External
    • 💧Aerodrome Pool
    • 🔵Trade on Uniswap (Base)
    • Trade on Solana
    • 🦎CoinGecko
    • API Code Examples
  • 🔗SOCIALS
    • 🐂OX.FUN
    • Discord
    • Twitter
Powered by GitBook
On this page
  1. API
  2. Websocket API

Error Codes

Both subscription and order command requests sent via websocket can be rejected and the failure response will return an error code and a corresponding error message explaining the reason for the rejection.

Code
Error Message

05001

Your operation authority is invalid

20000

Signature is invalid

20001

Operation failed, please contact system administrator

20002

Unexpected error, please check if your request data complies with the specification.

20003

Unrecognized operation

20005

Already logged in

20006

Quantity must be greater than zero

20007

You are accessing server too rapidly

20008

clientOrderId must be greater than zero if provided

20009

JSON data format is invalid

20010

Either clientOrderId or orderId is required

20011

marketCode is required

20012

side is required

20013

orderType is required

20014

clientOrderId is not long type

20015

marketCode is invalid

20016

side is invalid

20017

orderType is invalid

20018

timeInForce is invalid

20019

orderId is invalid

20020

stopPrice or limitPrice is invalid

20021

price is invalid

20022

price is required for LIMIT order

20023

timestamp is required

20024

timestamp exceeds the threshold

20025

API key is invalid

20026

Token is invalid or expired

20027

The length of the message exceeds the maximum length

20028

price or stopPrice or limitPrice must be greater than zero

20029

stopPrice must be less than limitPrice for Buy Stop Order

20030

limitPrice must be less than stopPrice for Sell Stop Order

20031

The marketCode is closed for trading temporarily

20032

Failed to submit due to timeout in server side

20033

triggerType is invalid

20034

The size of tag must be less than 32

20034

The size of tag must be less than 32

20050

selfTradePreventionMode is invalid

300001

Invalid account status xxx, please contact administration if any questions

300011

Repo market orders are not allowed during the auction window

300012

Repo bids above 0 and offers below 0 are not allowed during the auction window

100005

Open order not found

100006

Open order is not owned by the user

100008

Quantity cannot be less than the quantity increment xxx

100015

recvWindow xxx has expired

200050

The market is not active

710001

System failure, exception thrown -> xxx

710002

The price is lower than the minimum

710003

The price is higher than the maximum

710004

Position quantity exceeds the limit

710005

Insufficient margin

710006

Insufficient balance

710007

Insufficient position

000101

Internal server is unavailable temporary, try again later

000201

Trade service is busy, try again later

PreviousOther ResponsesNextCurl Error Codes

Last updated 6 months ago

☁️