aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorloit <michael.foiani@gmail.com>2025-07-28 18:00:08 -0400
committerloit <michael.foiani@gmail.com>2025-07-28 18:00:08 -0400
commit8907c286e857b622af171c2d8ac9040b05970549 (patch)
treec288bd62aa4e82f926c3666d61e00e3cb10d3b9b /main.py
parent8062d3a9cc10ccfec3dab7f859fa0d1d4c118d38 (diff)
add intersection interpolation code for graphing EMAs visually
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()