TypeError: Cannot use 'in' operator to search for 'isDustTrade' in < at binance.parseTrade
See original GitHub issueWhen trying to use the fetchMyTrades method I get this error back. Any way of dealing with this?
TypeError: Cannot use ‘in’ operator to search for ‘isDustTrade’ in < at binance.parseTrade (C:\Users\thehe\Documents\workspace\work\crypto-trade-api\node_modules\ccxt\js\binance.js:2225:27)
` if (market) {
const tempTrades = await this.exchange.fetchMyTrades(symbol, fromDate, 10)
if (tempTrades) {
trades = [...trades, ...tempTrades]
}
}`
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
TypeError: cannot use 'in' operator to search for 'x' in 'y'
The in operator can only be used to check if a property is in an object. You can't search in strings, or in...
Read more >Uncaught TypeError: Cannot use 'in' operator to search for '' in ...
You need to parse the string in your populateValue variable to an object: prePopulate: $.parseJSON(populateValue). Or alternatively, in plain JS:
Read more >JavaScript TypeError - Cannot use 'in' operator to search for 'X ...
This JavaScript exception Cannot use 'in' operator to search for 'X' in 'Y' occurs if in operator is used to search in strings,...
Read more >TypeError: cannot use 'in' operator to search for 'x' in 'y'
The in operator can only be used to check if a property is in an object. You can't search in strings, or in...
Read more >Uncaught TypeError: Cannot use 'in' operator to ... - GitHub
Uncaught TypeError: Cannot use 'in' operator to search for 'value' in at propertyDefaultsForClass (element-mixin.html:206) #4968.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You are right. I missed the .valueOf() which I even had before but there I was messing up something else lol. All good now, thanks a bunch mate.
@csidi90 your fromDate is wrong, the
since
argument must be an integer in milliseconds throughout CCXT.Check your value of
fromDate
: