Click here to Skip to main content
15,358,946 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to make my "Binance CCXT" Code Run's Fast?

bars = ex.fetch_ohlcv('ZIL/USDT', timeframe=timeframeEMA, limit=500) data = pd.DataFrame(bars[:-1], columns=['timestamp', 'open', 'high', 'low', 'close', 'volume']) data['timestamp'] = pd.to_datetime(data['timestamp'], unit='ms')

I Want to make my code run fast Iam having multiple lines like this i have to take the data of multiple coins it is taking 3Minutes to run But i want this in 10 or 5seconds Can anybody HelpMe!


What I have tried:

<pre>How to make my "Binance CCXT" Code Run's Fast?

bars = ex.fetch_ohlcv('ZIL/USDT', timeframe=timeframeEMA, limit=500) data = pd.DataFrame(bars[:-1], columns=['timestamp', 'open', 'high', 'low', 'close', 'volume']) data['timestamp'] = pd.to_datetime(data['timestamp'], unit='ms')

I Want to make my code run fast Iam having multiple lines like this i have to take the data of multiple coins it is taking 3Minutes to run But i want this in 10 or 5seconds Can anybody HelpMe!
Posted
Comments
Patrice T 16-May-22 12:55pm
   
Need more context;
Richard Deeming 17-May-22 4:26am
   
Profile your code. Find the biggest bottlenecks. Fix the bottlenecks. Rinse. Repeat.

We can't do that for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900