Skip to main content

Module ret_code

Module ret_code 

Source
Expand description

Frequent Bybit retCode values, as found in Error::Api.

See https://bybit-exchange.github.io/docs/v5/error for the full list.

Constants§

AUTHENTICATION_FAILED
User authentication failed.
INSUFFICIENT_AVAILABLE_BALANCE
The available balance is insufficient (derivatives).
INSUFFICIENT_WALLET_BALANCE
The wallet balance is insufficient (derivatives).
INVALID_API_KEY
The API key is invalid or belongs to another environment (mainnet, testnet, demo).
INVALID_SIGNATURE
The signature does not match.
IP_NOT_ALLOWED
The request IP is not bound to the API key.
IP_RATE_LIMITED
Too many requests: the per-IP rate limit was exceeded.
LEVERAGE_NOT_MODIFIED
The leverage is already the requested one.
ORDER_NOT_FOUND
The order does not exist (derivatives).
PARAMS_ERROR
Invalid request parameters.
PERMISSION_DENIED
The API key lacks the permission for this endpoint.
POSITION_MODE_NOT_MODIFIED
The position mode is already the requested one.
RATE_LIMITED
Too many requests: the per-UID rate limit was exceeded.
ROUTE_NOT_FOUND
Route not found.
SERVER_ERROR
Internal server error or service restarting.
SPOT_INSUFFICIENT_BALANCE
The balance is insufficient (spot).
SPOT_ORDER_NOT_FOUND
The order does not exist (spot).
SYMBOL_NOT_ALLOWED
The symbol is not in the API key’s symbol whitelist.
TIMESTAMP_OUT_OF_WINDOW
The request timestamp is outside recv_window (see http::Client::sync_time).
TRADING_BANNED
Trading is banned for the account.