Skip to content

Commit

Permalink
Merge pull request #1480 from bug-or-feature/fx_init
Browse files Browse the repository at this point in the history
fix FX init script to work correctly with data source abstraction
  • Loading branch information
bug-or-feature authored Jan 13, 2025
2 parents 0484cd7 + f5a0be8 commit d1cd6ca
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 d1cd6ca

Please sign in to comment.