API是什麼?
API是一個簡單而又強大的開發工具,旨在幫助用戶快速、高效地將CoinEx交易功能整合到自己的應用當中。
API有什麼用?
開發者在CoinEx網站創建帳號後,可以根據自身需求建立不同使用權限的API,並利用API進行自動交易或者提現。通過API和交易所連接,實現按照設計的程式自動進行數位貨幣買賣或實現其他功能。程式化與量化不完全相同,你也可以實現一些協助工具,如獲取行情、獲取買賣深度資訊、定時買入,設定價格買賣等等。
API使用要求
詳情請參考API文檔:https://github.com/coinexcom/coinex_exchange_api/wiki
如何查看API 金鑰?
登錄後,在帳戶下拉式功能表點擊【個人中心】—【API金鑰】,點擊【新建金鑰】,在“Secret Key”下點擊【查看】即可查看“Access ID”和“Secret Key”。API金鑰對相當於帳號/密碼對,請務必妥善保管。
不小心刪除了API怎麼辦?
API金鑰刪除後無法恢復,請務必妥善保管。
API報錯怎麼辦?
HTTP API錯誤代碼如下
Code error |
Description |
0 |
Success |
1 |
Error |
2 |
Parameter error |
25 |
Signature error |
107 |
Insufficient balance |
600 |
Order number does not exist |
601 |
Other user's order |
602 |
Below min. buy/sell limit |
606 |
Order price and the latest price deviation is too large |
651 |
Merge depth error |
Request to return status code description
Code error |
Description |
200 |
Success |
404 |
Page does not exist |
WebSocket API錯誤代碼如下
Code error |
Description |
1 |
Parameter error |
2 |
Internal error |
3 |
Service unavailable |
4 |
Method unavailable |
5 |
Service timeout |
6 |
Permission denied |
評論
0 條評論
文章評論已關閉。