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, ...)Buy/Sell with enough cash/position.
Set position close price.