Skip to main content

Error Codes

This page lists all error codes that may be returned by the BigONE OpenAPI.

Error Response Format

All errors follow this format:

{
"code": 40004,
"message": "Unauthorized"
}

The code field contains the error code, and message provides a human-readable description.

Authentication Errors

These errors occur during the authentication process.

CodeHTTPMessageDescription
40004401UnauthorizedMissing or invalid authentication credentials
40106401Invalid tokenJWT token is malformed, has an invalid signature, or has expired
40107400Unexpected request headerAuthorization header format is incorrect
10403403Permission deniedAPI key lacks required scopes or IP not in whitelist
10429429Too many requestsRate limit exceeded

General Errors

Common errors that can occur across all endpoints.

CodeHTTPMessageDescription
10005500Internal errorServer encountered an unexpected error
10007400Parameter errorRequest parameters are invalid or missing
10013404Resource not foundThe requested resource does not exist
10014400Insufficient fundsAccount balance is insufficient for the operation

Order Errors

Errors specific to order creation and management.

CodeHTTPMessageDescription
40303403Forbid cancel market orderMarket orders cannot be cancelled after submission
40304403Creating order is forbiddenOrder creation is temporarily disabled
40305403Account restrictedYour account has trading restrictions
50047400Liquidity taken too muchOrder would consume too much liquidity
54041400Duplicate orderAn order with the same client_order_id already exists
54043400Unknown opening orderThe order to cancel was not found
60100403Asset pair is suspendedTrading is suspended for this asset pair

Convert Errors

Errors specific to the Convert (flash swap) API.

CodeHTTPMessageDescription
54046400Convert asset not supportedThe specified asset cannot be converted
54047400Convert price expiredThe quote has expired, please request a new one
54048400Convert parameter inconsistentRequest parameters don't match the original quote
54050400Convert amount too smallThe amount is below the minimum conversion limit
54053403Convert system busySystem is temporarily overloaded, please retry later

Handling Errors

Best Practices

  1. Always check the code field — Don't rely solely on HTTP status codes
  2. Log error details — Include error code and message for debugging
  3. Implement retry logic — For transient errors (10005, 54053), retry with exponential backoff
  4. Handle rate limits — For 10429, wait before retrying (recommended: 10 seconds)

Example Error Handling (Python)

import requests
import time

def make_api_request(url, headers):
response = requests.get(url, headers=headers)
data = response.json()

if data.get("code") != 0:
error_code = data.get("code")
error_message = data.get("message")

if error_code == 10429:
# Rate limited - wait and retry
time.sleep(10)
return make_api_request(url, headers)
elif error_code == 40004:
# Authentication error - refresh token
raise AuthenticationError("Token expired")
elif error_code == 10014:
# Insufficient funds
raise InsufficientFundsError(error_message)
elif error_code in [10005, 54053]:
# Transient error - retry with backoff
time.sleep(1)
return make_api_request(url, headers)
else:
raise APIError(f"Error {error_code}: {error_message}")

return data

Example Error Handling (Go)

type APIError struct {
Code int `json:"code"`
Message string `json:"message"`
}

func handleAPIError(resp *http.Response) error {
var apiErr APIError
if err := json.NewDecoder(resp.Body).Decode(&apiErr); err != nil {
return err
}

switch apiErr.Code {
case 10429:
// Rate limited
time.Sleep(10 * time.Second)
return ErrRateLimited
case 40004, 40106:
// Authentication error
return ErrUnauthorized
case 10014:
// Insufficient funds
return ErrInsufficientFunds
default:
return fmt.Errorf("API error %d: %s", apiErr.Code, apiErr.Message)
}
}

Getting Help

If you encounter an error not listed here:

  1. Check the specific API endpoint documentation for additional error codes
  2. Join @bigapi on Telegram for real-time community support
  3. Contact BigONE Customer Service with:
    • Error code and message
    • Request endpoint and parameters
    • Timestamp of the error (UTC)