jonmest / breakoutfinder

A Python script for finding breakouts in historical data from stocks traded on the Nasdaq and NYSE.
22 stars 7 forks source link

Breakout Scanner issue #1

Open sunny262 opened 2 years ago

sunny262 commented 2 years ago

Hello Jon,

I am new to learning python and trying to get historical breakouts for studying. I downloaded your code but get the following errors.

Traceback (most recent call last): File "c:\Users\Sunny\Desktop\breakoutfinder-main__main.py", line 84, in main() File "c:\Users\Sunny\Desktop\breakoutfinder-main\main__.py", line 56, in main download_data(config['exchanges']) File "c:\Users\Sunny\Desktop\breakoutfinder-main\src\build_dataset.py", line 15, in download_data res = asyncio.run(get_data(ticker, index)) File "C:\Users\Sunny\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Sunny\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete return future.result() File "c:\Users\Sunny\Desktop\breakoutfinder-main\src\build_dataset.py", line 24, in get_data d.to_csv('{}/{}.csv'.format(index, ticker)) File "C:\Users\Sunny\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\generic.py", line 3563, in to_csv return DataFrameRenderer(formatter).to_csv( File "C:\Users\Sunny\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\formats\format.py", line 1180, in to_csv csv_formatter.save() File "C:\Users\Sunny\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\formats\csvs.py", line 241, in save with get_handle( File "C:\Users\Sunny\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\io\common.py", line 789, in get_handle handle = open( FileNotFoundError: [Errno 2] No such file or directory: 'nasdaq/PRN.csv'

Could you please help me out fixing this? If the list for stocks can be downloaded from Alpaca API, that will be really helpful as from that API one can download the tickers which are currently active.

Regards