熱門主題
WEEX API 常見錯誤代碼及解決方案說明
By: WEEX2_Lydia
|
2025/11/04 02:59:53
0
📌為便於開發者在呼叫 WEEX API 時快速定位問題,以下表格匯總了常見錯誤代碼及對應的解決方案說明。
請根據提示進行排查和修復,以確保介面請求正常運作。
| 問題 | 解決方案 |
| 錯誤代碼40001:The request header "ACCESS_KEY" cannot be empty | Access Key 不可為空 |
| 錯誤代碼40002:The request header "ACCESS_SIGN" cannot be empty | Signature 不可為空 |
| 錯誤代碼40003:The request header "ACCESS_TIMESTAMP" cannot be empty | Timestamp 不可為空 |
| 錯誤代碼40005:Invalid ACCESS_TIMESTAMP | 使用接口 https://contract-openapi.weex.com/api/spot/v1/public/time(data 即為你的 timestamp),確保為13位 |
| 錯誤代碼40006:Invalid ACCESS_KEY | access key = API key(例如 weex_f2df5c29c274be465d3f49be3e73d6c1),確保必須以 WEEX 開頭。 |
| 錯誤代碼40007:Invalid Content_Type, please use the "application/json" format | 在請求頭中加入 "Content-Type": "application/json" |
| 錯誤代碼40008:Request timestamp has expired | 請求的有效期為30秒 |
| 錯誤代碼40009:API validation failed | 請重新建立一個 apikey |
| 錯誤代碼429:Requesting too frequently | 請求頻率超出限制 |
| 錯誤代碼40011:The request header "ACCESS_PASSPHRASE" cannot be empty | passphrase 不可為空 |
| 錯誤代碼40012:Incorrect API key/passphrase | api key 或 passphrase 錯誤 |
| 錯誤代碼40013:User account is frozen | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼40014:Insufficient permissions | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼40015:System error | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼40016:Users must bind a mobile phone or Google Authenticator | 使用 Google Authenticator 綁定帳號 |
| 錯誤代碼40018:Illegal IP request | 可以嘗試建立一個未綁定 IP 地址的 apikey |
| 錯誤代碼40912:Single cancellation cannot exceed 50 | 撤單數量不能超過50 |
| 錯誤代碼40913:Either orderId or clientId must be provided | 請提供 orderID 或 clientID |
| 錯誤代碼40102:Trading pair configuration does not exist | 可參考 https://contract-openapi.weex.com/api/spot/v1/public/products |
| 錯誤代碼40200:Server upgrade in progress, please try again later | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼40305:The client_uid length should not exceed 40 characters and cannot contain special characters | Client ID 不可包含特殊字元且長度需小於 40 |
| 錯誤代碼40409:Format error | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼40704:Only query data for the last three months | 只能查詢最近三個月的資料 |
| 錯誤代碼40707:Start time is earlier than end time | start time 必須早於 end time |
| 錯誤代碼40724:Parameter is empty | 參數不可為空 |
| 錯誤代碼40725:Service returned an error | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼43001:Order does not exist | 訂單不存在 |
| 錯誤代碼43002:Order placement failed | 下單失敗 |
| 錯誤代碼43004:There are no open orders to cancel | 沒有可撤銷的掛單 |
| 錯誤代碼43005:Exceeds maximum order size | 超出最大下單數量限制 |
| 錯誤代碼43006:Order quantity is less than the minimum trading amount | 可參考 https://contract-openapi.weex.com/api/spot/v1/public/products 的 minTradeAmount |
| 錯誤代碼43007:Order quantity exceeds the maximum trading amount | 可參考 https://contract-openapi.weex.com/api/spot/v1/public/products 的 maxTradeAmount |
| 錯誤代碼43008:Current order price cannot be less than 0 | 當前訂單價格不能小於0 |
| 錯誤代碼43009:Current order price exceeds the limit of 0 | 當前訂單價格超過限制0 |
| 錯誤代碼43010:Trade amount cannot be less than 0 | 成交額不能小於0 |
| 錯誤代碼43011:Current order price cannot be less than 0 | 當前訂單價格不能小於0 |
| 錯誤代碼41101:Parameter check failed | 聯繫 @whitexixi_yc 填寫工單反饋 |
| 錯誤代碼42002:BALANCE NOT ENOUGH | 餘額不足 |
相關文章
分享