ezyquant.backtesting.account.SETAccount#

class ezyquant.backtesting.account.SETAccount(cash: float, pct_commission: float = 0.0, position_dict: Dict[str, ezyquant.backtesting.position.SETPosition] = <factory>, trade_list: List[ezyquant.backtesting.trade.SETTrade] = <factory>)#

SETAccount.match_order(matched_at, symbol, ...)

SETAccount.match_order_if_possible(...)

Buy/Sell with enough cash/position.

SETAccount.set_position_close_price(...)

Set position close price.

SETAccount.pct_commission

SETAccount.port_value

SETAccount.position_df

SETAccount.total_cost_value

SETAccount.total_market_value

SETAccount.cash

SETAccount.position_dict

SETAccount.trade_list

SETAccount.close_price_dict