ezyquant_execution.context.ExecuteContext#
- class ezyquant_execution.context.ExecuteContext(settrade_user: Investor | MarketRep, account_no: str, pin: str | None = None)#
Execute context.
- Parameters:
settrade_user (Union[Investor, MarketRep]) – Settrade user
account_no (str) – Account number
pin (Optional[str], optional) – PIN. Only for investor.
ExecuteContext.Symbol
(symbol)Cancel all buy orders.
ExecuteContext.cancel_orders
([condition])Cancel orders.
Cancel all orders with price.
Cancel all sell orders.
Get account info.
ExecuteContext.get_orders
([condition])Get orders.
ExecuteContext.get_portfolio
(symbol)Get portfolio of the symbol.
Get portfolios.
ExecuteContext.get_quote_symbol
(symbol)Get quote symbol.
ExecuteContext.get_trades
([condition])Get trades.
ExecuteContext.place_order
(symbol, side, volume)Place order.
Line Available.
Cash Balance.
Line Available.
Sum of all pending order value.
Total portfolio value.
Sum of all stock cost value in portfolio.
Sum of all stock market value in portfolio.
Current timestamp.