aboutsummaryrefslogtreecommitdiffstats
path: root/python/bbg_index_quotes.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/bbg_index_quotes.py')
-rw-r--r--python/bbg_index_quotes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/bbg_index_quotes.py b/python/bbg_index_quotes.py
index e16bc22a..52db019a 100644
--- a/python/bbg_index_quotes.py
+++ b/python/bbg_index_quotes.py
@@ -11,7 +11,7 @@ for series in range(9, 30):
sql_str = (f"INSERT INTO bbg_index_quotes VALUES({','.join(['%s'] * 8)}) "
"ON CONFLICT DO NOTHING")
-start_date = datetime.date.today() - 7 ## one weeek of overlap
+start_date = datetime.date.today() - datetime.timedelta(days=7) ## one weeek of overlap
conn = dbconn('serenitasdb')
with init_bbg_session(BBG_IP) as session:
d = retrieve_data(session, securities.keys(), fields=["TICKER", "VERSION"])