PositionShort¶
- class czsc.objects.PositionShort(symbol: str, hold_short_a: float = 0.5, hold_short_b: float = 0.8, hold_short_c: float = 1.0, short_min_interval: Optional[int] = None, cost: float = 0.003, T0: bool = False)[source]¶
Bases:
objectAttributes Summary
返回状态对应的仓位
Methods Summary
评估操作表现
operates_to_pair(operates)返回买卖交易对
update(dt, op, price, bid[, op_desc])更新空头持仓状态
Attributes Documentation
- pos¶
返回状态对应的仓位
Methods Documentation