Skip to content

Commit d1cd6ca

Browse files
Merge pull request pst-group#1480 from bug-or-feature/fx_init
fix FX init script to work correctly with data source abstraction
2 parents 0484cd7 + f5a0be8 commit d1cd6ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sysinit/futures/repocsv_spotfx_prices.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
WARNING WILL OVERWRITE EXISTING!
55
"""
66
from sysdata.csv.csv_spot_fx import csvFxPricesData
7-
from sysproduction.data.currency_data import fxPricesData
7+
from sysproduction.data.currency_data import dataCurrency
88

9-
db_fx_price_data = fxPricesData()
109

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

1414
csv_fx_prices = csvFxPricesData()
15+
db_fx_price_data = dataCurrency.db_fx_prices_data
1516

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

0 commit comments

Comments
 (0)