Skip to main content

Errors

Btcturk API uses the following error codes:

Error CodeMeaning
Error CodeMeaning
400Bad Request -- Your request is invalid.
401Unauthorized -- Your Public/Private API key is wrong.
404Not Found -- No such object
405Wrong Method - You are using wrong http method for the API.
429Too Many Requests -- You exceeded request rate limit.
5xxInternal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We're temporarily offline for maintenance. Please try again later.

Expected Errors for Submit Order​

The expected errors when creating an order with the submit order endpoint are listed below. Review the meaning of the error you received.

FAILED_ORDER_PARAMETEROne of the giving parameters is not correct. For the accuracy of parameters, you can check our Submit an Order page.
BALANCE_NOT_ENOUGHThe balance amount is not enough for this operation. Check your balance amount using the /api/v1/users/balances endpoint.
FAILED_MIN_TOTAL_AMOUNTThe order quantity is less than the minimum required. You can view the minimum order amount from the /api/v2/server/exchangeinfo endpoint. You can avoid the FAILED_MIN_TOTAL_AMOUNT error with the minExchangeValue object.
STOP_PRICE_GREATER_THAN_MARKETStop buy price must be above current price. You can check the current price information from the /api/v2/ticker endpoint with the last object.
STOP_PRICE_LESS_THAN_MARKETStop sell price must be bellow current price. You can check the current price information from the /api/v2/ticker endpoint with the last object.
PRICE_MUST_BE_LESS_THAN_MAXPRICEBuy or sell price must be less than max. You can view the maximum Price information from the /api/v2/server/exchangeinfo endpoint with the maximumLimitOrderPrice object.
FAILED_MIN_TOTAL_AMOUNTQuantity*price must be greater than min amount. You can view the Min total amount information from the /api/v2/server/exchangeinfo endpoint with the minAmount object.
FAILED_ORDER_WITH_OPEN_ORDERSOrder submission failed due to open orders. Your free balance is not enough for this transaction. You can view your available balance with the free object from the /api/v1/users/balance endpoint. You may have an open order or a request to withdraw.
FAILED_MARKET_ORDERMarket order is not open for the pair. You can view the orderMethods values from the /api/v2/server/exchangeinfo endpoint.
ORDER_MIN_PRICE_EXCEEDEDLess than 1/10 of the current price has been set. You can view the current limits using the maximumLimitOrder Price and minimumLimitOrderPrice objects from the /api/v2/server/exchange info endpoint.
ORDER_MAX_PRICE_EXCEEDEDMore than *10 of the current price has been set. You can view the current limits using the maximumLimitOrder Price and minimumLimitOrderPrice objects from the /api/v2/server/exchange info endpoint.

Expected Errors for Cancel Order​

Error MessageDescription
NO_ORDER_MATCHES_YOUR_REQUESTorderId not found. Check your orderId information.
ORDER_COULD_NOT_BE_CANCELEDClosed order cannot be cancelled. This error is received if the orderId belongs to the market order or order status is not partial or untouched or the operation fails.
ORDER_CANCEL_BLOCKEDMaintenance work is in progress for the trading pair. Visit our status page for more detailed information. https://status.btcturk.com/