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 |
FAILED_MIN_TOTAL_AMOUNT | The order quantity is less than the minimum required. You can view the minimum order amount from the |
STOP_PRICE_GREATER_THAN_MARKET | Stop buy price must be above current price. You can check the current price information from the |
STOP_PRICE_LESS_THAN_MARKET | Stop sell price must be bellow current price. You can check the current price information from the |
PRICE_MUST_BE_LESS_THAN_MAXPRICE | Buy or sell price must be less than max. You can view the maximum Price information from the |
FAILED_MIN_TOTAL_AMOUNT | Quantity*price must be greater than min amount. You can view the Min total amount information from the |
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 |
FAILED_MARKET_ORDER | Market order is not open for the pair. You can view the |
ORDER_MIN_PRICE_EXCEEDED | Less than 1/10 of the current price has been set. You can view the current limits using the |
ORDER_MAX_PRICE_EXCEEDED | More than *10 of the current price has been set. You can view the current limits using the |
Expected Errors for Cancel Order
Error Message | Description |
---|---|
NO_ORDER_MATCHES_YOUR_REQUEST |
|
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