question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

binance fetchDeposits for BTC is empty

See original GitHub issue

Am I doing something wrong or is there a bug, when I call fetchDeposits and i pass ‘BTC’ as the currency, I get an empty array, no error. I’m passing a “since” like that, and my deposit is late 2020 (i tried passing a limit of 20 as well):

I get EUR deposits fine. What I want to achieve is to see the transfer of BTC from a wallet/coinbase into Binance.

  • OS: Windows 10, latest updates
  • Programming Language version: TypeScript 4.3.5 with NestJS 8
  • CCXT version: 1.68.84 latest
let since = this.binanceClient.parse8601('2019-01-01T00:00:00Z');

const deposits: void | Transaction[] = await client.fetchTransactions('BTC', since).catch(e => {
            console.log("API ERROR: " + e);
        }); 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kroitorcommented, Jan 21, 2022

Should I basically loop the deposits into 30 day windows to get more deposits?

Yes, you should paginate over your deposits: https://docs.ccxt.com/en/latest/manual.html#pagination

However, most of the exchanges will not let you query history far in the past, they will limit your history to the most recent N months, binance limits that to 3 months afaik. Hope that answers your question, let us know if not.

0reactions
iBobbcommented, Jan 20, 2022

Btw to conclude the topic, is it possible to extend that window? Thru the Binance website I can see larger periods together, but maybe they also do that: Should I basically loop the deposits into 30 day windows to get more deposits?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Hasn't My Deposit Been Credited
An asset withdrawal marked as “completed” or “success” in the platform you're withdrawing your crypto from means that the transaction was ...
Read more >
How to Retrieve the Deposit that Hasn't Arrived with Self- ...
If your deposited funds haven't arrived in your Binance account, you can apply for self-service recovery to retrieve the funds.
Read more >
Why Hasn't My Withdrawal Arrived
Alice decides to withdraw 2 BTC from Binance to her personal wallet. After she confirms the request, she needs to wait until Binance...
Read more >
How to buy Empty Set Dollar (ESD) Guide
1. There are several crypto wallets to choose from within the Ethereum network and Metamask appears to be the most integrated. If you...
Read more >
Frequently Asked Questions on Unsuccessful Withdrawals
For example, here is a Bitcoin address: ... If you get a "network busy" message, this means that the network is currently congested....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found