diff options
author | loit <michael.foiani@gmail.com> | 2025-07-28 18:00:08 -0400 |
---|---|---|
committer | loit <michael.foiani@gmail.com> | 2025-07-28 18:00:08 -0400 |
commit | 8907c286e857b622af171c2d8ac9040b05970549 (patch) | |
tree | c288bd62aa4e82f926c3666d61e00e3cb10d3b9b /main.py | |
parent | 8062d3a9cc10ccfec3dab7f859fa0d1d4c118d38 (diff) |
add intersection interpolation code for graphing EMAs visually
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() |