refactoring progress: VECM, fixes
This commit is contained in:
@@ -64,8 +64,9 @@ class PtResearchStrategy:
|
||||
idx = 0
|
||||
while self.pt_mkt_data_.has_next():
|
||||
market_data_series = self.pt_mkt_data_.get_next()
|
||||
new_row = pd.DataFrame([market_data_series])
|
||||
market_data_df = pd.concat(
|
||||
[market_data_df, market_data_series.to_frame().T], ignore_index=True
|
||||
[market_data_df, new_row], ignore_index=True
|
||||
)
|
||||
if idx >= training_minutes:
|
||||
break
|
||||
@@ -76,7 +77,7 @@ class PtResearchStrategy:
|
||||
while self.pt_mkt_data_.has_next():
|
||||
|
||||
market_data_series = self.pt_mkt_data_.get_next()
|
||||
new_row = market_data_series.to_frame().T
|
||||
new_row = pd.DataFrame([market_data_series])
|
||||
market_data_df = pd.concat([market_data_df, new_row], ignore_index=True)
|
||||
|
||||
prediction = self.trading_pair_.run(
|
||||
|
||||
Reference in New Issue
Block a user