aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.py b/main.py
index 8e7afdb..2a4ddff 100644
--- a/main.py
+++ b/main.py
@@ -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()