Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API - fetchDeposits / fetchTransactions / fetchWithdraws #28

Open
sign-in opened this issue May 27, 2022 · 10 comments
Open

API - fetchDeposits / fetchTransactions / fetchWithdraws #28

sign-in opened this issue May 27, 2022 · 10 comments

Comments

@sign-in
Copy link

sign-in commented May 27, 2022

目前用的是 /user/wallet_history API,但是昨天晚上突然 API 就一直返回失敗:

BadRequest: btse {"code":400,"msg":"BADREQUEST: Error in search wallet history, please check your parameter and try again.","time":1653621886632,"data":null,"success":false}
    at btse.throwExactlyMatchedException (/Users/*/Workspace/github/ccxt/js/base/Exchange.js:648:19)
    at btse.handleErrors (/Users/*/Workspace/github/ccxt/js/btse.js:1692:18)
    at /Users/*/Workspace/github/ccxt/js/base/Exchange.js:725:51
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async timeout (/Users/*/Workspace/github/ccxt/js/base/functions/time.js:203:20)
    at async btse._fetchTransactions (/Users/*/Workspace/github/ccxt/js/btse.js:1586:26)
    at async btse.fetchDeposits (/Users/*/Workspace/github/ccxt/js/btse.js:1603:16)
    at async /Users/*/Workspace/github/ccxt/btse.js:8:15 {
  constructor: [class BadRequest extends ExchangeError]
}

參數沒有錯誤。就連不傳任何參數的情況下,還是返回這個錯誤。是不是測試環境出問題了?

@yuanchenho
Copy link

@sign-in 請問這邊查詢的是 spot 還是 futures 呢?

@sign-in
Copy link
Author

sign-in commented May 27, 2022

目前是 spot,futures 還沒開始開發。

@yuanchenho
Copy link

@sign-in 這個我們內部還在確認中
稍晚點回覆

@yuanchenho
Copy link

@sign-in
看交易紀錄 tiancaidev 這個帳號有筆 111 USD 的 deposit 資料內容好像有誤
請問這筆交易是打 api 建立的嗎?

@sign-in
Copy link
Author

sign-in commented May 27, 2022

@sign-in 看交易紀錄 tiancaidev 這個帳號有筆 111 USD 的 deposit 資料內容好像有誤 請問這筆交易是打 api 建立的嗎?

我應該沒有建立過,不確定有沒有其他同事有做過這個操作。現在看起來的確是 API 出問題了是吧?

@yuanchenho
Copy link

@sign-in 是資料面的問題
我們先修整了資料讓 api 能夠通過
api 本身是沒有問題的
請再試試

@sign-in
Copy link
Author

sign-in commented May 27, 2022

status 為 open 是什麼情況?我看文檔裡面沒有這個 status。ccxt 裡面支持這幾種,應該映射哪一種:

'pending',  'ok', 'failed', 'canceled'

@yuanchenho
Copy link

@sign-in 這邊整理一下應該要的映射方式
之後我們也會調整 api 文檔上面的
這邊只列出需要對應到 ok failedcancelled 的 btse 狀態
剩下的就都預設對應到 pending 謝謝

btse status ccxt status
Completed (10) ok
Expired (14) failed
User Cancelled (16) cancelled
Cancelled (18) cancelled
Check Failed (31) failed

@sign-in
Copy link
Author

sign-in commented May 30, 2022

所以 Open 对应 pending 是吧?

@yuanchenho
Copy link

@sign-in
謝謝

Repository owner deleted a comment Feb 2, 2024
Repository owner deleted a comment from mepcovenkat97 Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@yuanchenho @sign-in and others