Skip to content

Commit

Permalink
added position data to backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Nov 20, 2023
1 parent 8918298 commit 6ec9e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysdata/parquet/parquet_historic_contract_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_list_of_contracts(self) -> listOfFuturesContracts:
return listOfFuturesContracts(list_of_futures_contract)

def from_contract_to_key(contract: futuresContract) -> str:
return contract.instrument_code+"#"+contract.contract_date
return str(contract.instrument_code)+"#"+str(contract.contract_date)

def from_key_to_contract(key: str) -> futuresContract:
[instrument_code, contract_date] = key.split("#")
Expand Down

0 comments on commit 6ec9e1f

Please sign in to comment.