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.

FAILED_ORDER_PARAMETER

One of the giving parameters is not correct. For the accuracy of parameters, you can check our Submit an Order page.

BALANCE_NOT_ENOUGH

The balance amount is not enough for this operation. Check your balance amount using the /api/v1/users/balances endpoint.

FAILED_MIN_TOTAL_AMOUNT

The 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_MARKET

Stop 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_MARKET

Stop 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_MAXPRICE

Buy 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_AMOUNT

Quantity*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_ORDERS

Order 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_ORDER

Market order is not open for the pair. You can view the orderMethods values from the /api/v2/server/exchangeinfo endpoint.

ORDER_MIN_PRICE_EXCEEDED

Less 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_EXCEEDED

More 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_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/

Last updated