Skip to content

Commit

Permalink
fix FX init script to work correctly with data source abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
bug-or-feature committed Jan 13, 2025
1 parent 0484cd7 commit f5a0be8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sysinit/futures/repocsv_spotfx_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
WARNING WILL OVERWRITE EXISTING!
"""
from sysdata.csv.csv_spot_fx import csvFxPricesData
from sysproduction.data.currency_data import fxPricesData
from sysproduction.data.currency_data import dataCurrency

db_fx_price_data = fxPricesData()

if __name__ == "__main__":
input("Will overwrite existing prices are you sure?! CTL-C to abort")
dataCurrency = dataCurrency()

csv_fx_prices = csvFxPricesData()
db_fx_price_data = dataCurrency.db_fx_prices_data

currency_code = input("Currency code? <return for ALL currencies> ")
if currency_code == "":
Expand Down

0 comments on commit f5a0be8

Please sign in to comment.