API Errors

API Errors

GitHub: https://github.com/P2B-team/p2b-api-docs/blob/master/errors.md

 

Errors:

Category Error code Status Code Response message Description
auth 1001 401 Key not provided. X-TXC-APIKEY header is missing in the request or empty.
auth 1002 401 Payload not provided. X-TXC-PAYLOAD header is missing in the request or empty.
auth 1003 401 Signature not provided. X-TXC-SIGNATURE header is missing in the request or empty.
auth 1004 401 Nonce and url not provided. Request body is empty. Missing required parameters "request", "nonce".
auth 1005 401 Invalid body data. Invalid request body
auth 1006 401 Nonce not provided. Request body missing required parameter "nonce".
auth 1007 401 Request not provided. Request body missing required parameter "request".
auth 1008 401 Invalid request in body. The passed request parameter does not match the URL of this request.
auth 1009 401 Invalid payload. The transmitted payload value (X-TXC-PAYLOAD header) does not match the request body.
auth 1010 401 This action is unauthorized. - API key passed in the X-TXC-APIKEY header does not exist. - Access to API is not activated. Go to profile and activate access.
auth 1011 401 This action is unauthorized. Please, enable two-factor authentication. Two-factor authentication is not activated for the user.
auth 1012 401 Invalid nonce. Parameter "nonce" is not a number.
auth 1013 429 Too many requests. - A request came with a repeated value of nonce. - Received more than the limited value of requests (10) within one second.
auth 1014 401 Unauthorized request. Signature value passed (in the X-TXC-SIGNATURE header) does not match the request body.
auth 1015 423 Temporary block. Temporary blocking. There is a cancellation of orders.
auth 1016 401 Not unique nonce. The request was sent with a repeated parameter "nonce" within 10 seconds.
Category Error code Status Code Response message Description
data 2010 400 Currency not found. Currency not found.
data 2021 400 Unknown market. Unknown market.
data 2022 400 Market is not available. Unknown market.
data 2030 400 Order not found. Order not found.
data 2040 400 Balance not enough. Insufficient balance.
data 2050 400 Amount less than the permitted minimum. Amount less than the permitted minimum.
data 2051 400 Amount is greater than the maximum allowed. Amount exceeds the allowed maximum.
data 2052 400 Amount step size error. Amount step size error.
data 2060 400 Price less than the permitted minimum. Price is less than the permitted minimum.
data 2061 400 Price is greater than the maximum allowed. Price exceeds the allowed maximum.
data 2062 400 Price pick size error. Price pick size error.
data 2070 400 Total less than the permitted minimum. Total less than the permitted minimum.
Category Error code Status Code Response message Description
validation 3001 422 Validation exception. The given data was invalid.  
validation 3020 422 Invalid currency value. Incorrect parameter, check your request.
validation 3030 422 Invalid market value. Incorrect "market" parameter, check your request.
validation 3040 422 Invalid amount value. Incorrect "amount" parameter, check your request.
validation 3050 422 Invalid price value. Incorrect "price" parameter, check your request.
validation 3060 422 Invalid limit value. Incorrect "limit" parameter, check your request.
validation 3070 422 Invalid offset value. Incorrect "offset" parameter, check your request.
validation 3080 422 Invalid orderId value. Incorrect "orderId" parameter, check your request.
validation 3090 422 Invalid lastId value. Incorrect "lastId" parameter, check your request.
validation 3100 422 Invalid side value. Incorrect "side" parameter, check your request.
validation 3110 422 Invalid interval value. Incorrect "interval" parameter, check your request.
Category Error code Status Code Response message Description
service 4001 500 Service temporary unavailable. An unexpected system error has occurred. Try again after a while. If the error persists, please contact support.
Category Error code Status Code Response message Description
exchange 6010 400 Balance not enough. Insufficient balance.

    • Related Articles

    • API Documentation

      GitHub: https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md Rest API for P2B API Information Base URL for requests is https://api.p2pb2b.com API Endpoints Possible errors when executing queries: Possible error Public Public folder ...
    • How to enable API?

      Note: API can be enabled with enabled 2FA in the account. 1. Go to your [Account] page. 2. Choose [API Management]. 3. Click the [Generate New Key] button. 4. You will see generated key and secret, to enable them, click the button. Now you can use ...
    • Details of API Response

      GitHub: https://github.com/P2B-team/p2b-api-docs/blob/master/resources.md Resources Balances "{{currency}}": { "available": "Currency amount available for trading.", "freeze": "Amount frozen during operations." } {{currency}} - currency token on ...
    • WebSocket API Documentation

      GitHub: https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md General information The base endpoint is: wss://apiws.p2pb2b.com/ Connection will be closed by server in cause of inactivity after 100 seconds. JSON Structure of ...
    • How to set Google Authenticator (2FA)?

      1. Go to your [Account] page. 2. Click on [Google Authenticator] 3. Download Google Authenticator on Play Store or App Store. (if downloaded, skip this part) Play Store: ...