CyberPunkMetalHead / binance-trading-bot-new-coins

This Binance trading bot detects new coins as soon as they are listed on the Binance exchange and automatically places sell and buy orders. It comes with trailing stop loss and other features. If you like this project please consider donating via Brave.
MIT License
1.46k stars 269 forks source link

Making the get_new_coins method a bit faster #14

Closed stevenhgs closed 2 years ago

stevenhgs commented 2 years ago

This makes the time complexity of the get_new_coins method go from O(N^2) to O(N).

CyberPunkMetalHead commented 2 years ago

Can confirm this brings the iteration time down from 0.34 to 0.22s. Nicely done mate. I'll merge this.