diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,14 +1,16 @@ import requests import json +import datetime print("hello") """ First pull data from yahoo api """ -params = {'period1' : '1753487940', - 'period2' : '1753725600', - 'interval' : '1m', +params = { #'period1' : '1753487940', + #'period2' : '1753725600', + 'interval' : '1d', + 'range' : '1y', 'events' : 'div|split|earn', 'includePrePost' : 'false' } headers = {'User-agent' : 'fin-backtesting-proj'} @@ -38,5 +40,5 @@ timestamps_file.close() close_prices_file = open('close_prices.json', 'w') close_prices_file.truncate(0) close_prices_file.write(close_prices_encoded) -timestamps_file.close() +close_prices_file.close() |