TypeError: ticks is not iterable
See original GitHub issueIt looks like #162 but I’m using depthcache and all my scripts started crashing with this and I’m not sure what is I’m passing that’s causing it yet, It happens after a while, can be a couple minutes or hours or running. I did not try useServerTime: true.
Thanks, I really appreciate the library!
.../node-binance-api/node-binance-api.js:391
for ( let tick of ticks ) {
^
TypeError: ticks is not iterable
Im not calling getPricesWS more than once.
const getPricesWS = () => {
try {
binance.websockets.depthCache(['ETHUSDT'], (symbol, depth) => {
const bids = binance.sortBids(depth.bids);
const asks = binance.sortAsks(depth.asks);
bestAsk = parseFloat(binance.first(asks));
bestBid = parseFloat(binance.first(bids));
});
} catch(err) {
errorLogs.push(err);
}
};
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
for item in data: TypeError: 'float' object is not iterable
throws an error cuz you are trying to iterate through a float value. from what i came up with, this line Clock.schedule_once(self.update, 1)...
Read more >TypeError: 'x' is not iterable - JavaScript - MDN Web Docs
The JavaScript exception "is not iterable" occurs when the value which is given as the right-hand side of for...of , as argument of...
Read more >Subsetting Rows from Conditions File Is Not Working - Builder
Ok so for method 1: ““for n in selection: TypeError: 'NoneType' object is not iterable”” means that you are not getting a list...
Read more >typeerror: boolean false is not iterable (cannot read property ...
TypeError : undefined is not iterable (cannot read property Symbol(Symbol.iterator)) ... tick=418 Error at new Map () at new QuorumProposals ...
Read more >argument of type 'NoneType' is not iterable - Can't find out why ...
TypeError : argument of type 'NoneType' is not iterable - Can't ... apparently the three back ticks to enter back into markdown didn't...
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 FreeTop 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
Top GitHub Comments
I also have the same error when i have an unstable internet connection. So i fixed it but i don’t know if i’m doing it right so i won’t make a PR before your agreement.
I implemented this method and simply check if ticks is iterable :
and i added this condition line 999 :
if(klineQueue[symbol][interval] !== undefined && kline !== null)
@mathlet0x Thank you very much for sharing!