Skip to content

Commit

Permalink
committed incomplete code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Mar 20, 2024
1 parent ebe8342 commit b9ab515
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sysdata/csv/csv_spread_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_commissions_as_series(self) -> pd.Series:

try:
spread_cost_data.index = spread_cost_data[INSTRUMENT_COLUMN_NAME]
spread_cost_series = spread_cost_data[]
spread_cost_series = spread_cost_data[SPREAD_COST_COLUMN_NAME]

except BaseException:
raise Exception("Badly configured file %s" % (self._config_file))
Expand Down
7 changes: 0 additions & 7 deletions sysproduction/data/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,6 @@ def broker_futures_contract_commission(self) -> brokerFuturesContractCommissionD
def diag_controls(self) -> diagControlProcess:
return self._diag_controls

def get_commission_for_contract_in_base(self, contract: futuresContract) -> float:
currency_data = dataCurrency(self.data)
ccy_value = self.broker_futures_contract_commission.get_commission_for_contract(contract)
base_value = currency_data.currency_value_in_base(ccy_value)

return base_value

## Methods
def get_commission_for_contract(self, contract: futuresContract) -> currencyValue:

Expand Down
2 changes: 1 addition & 1 deletion sysproduction/reporting/data/commissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def df_of_configure_and_broker_block_cost_with_ratio_sorted(data: dataBlob) -> pd.DataFrame:
df = df_of_configure_and_broker_block_cost(data)
ratio = df[BROKER_COLUMN] / df[CONFIGURED_COLUMN]
diff = df[BROKER_COLUMN] - df[CONFIGURED_COLUMN]
df[RATIO_COLUMN] = ratio

df.sort_values(by=RATIO_COLUMN)
Expand Down

0 comments on commit b9ab515

Please sign in to comment.