Errors
Btcturk API uses the following error codes:
Error Code
Meaning
400
Bad Request -- Your request is invalid.
401
Unauthorized -- Your Public/Private API key is wrong.
404
Not Found -- No such object
405
Wrong Method - You are using wrong http method for the API.
429
Too Many Requests -- You exceeded request rate limit.
5xx
Internal Server Error -- We had a problem with our server. Try again later.
503
Service 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.
PARAMETERS_ERROR
One of the giving parameters is not correct
BALANCE_NOT_ENOUGH_WITHOUT_OPEN_ORDERS
You do not have enough funds for this operation
BALANCE_NOT_ENOUGH
The available funds is not enough for this operation
MIN_TOTAL
The order quantity is less than the minimum required
STOP_PRICE_GREATER_THAN_MARKET
Stop buy price must be above current price
STOP_PRICE_LESS_THAN_MARKET
Stop sell price must be bellow current price
PRICE_MUST_BE_LESS_THAN_MAXPRICE
Buy or sell price must be less than max
FAILED_MIN_TOTAL_AMOUNT
Quantity*price must be greater than min amount
FAILED_ORDER_WITH_OPEN_ORDERS
Order submission failed due to open orders
FAILED_MARKET_ORDER
Market order is not open for the pair
ORDER_MIN_PRICE_EXCEEDED
Less than 1/10 of the current price has been set
ORDER_MAX_PRICE_EXCEEDED
More than *10 of the current price has been set

Expected Errors for Cancel Order

Error Message
Description
NO_ORDER_MATCHES_YOUR_REQUEST
orderId not found. Check your orderId information.
ORDER_COULD_NOT_BE_CANCELED
Closed 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_BLOCKED
Maintenance work is in progress for the trading pair. Visit our status page for more detailed information. https://status.btcturk.com/