[bug fix]获取策略持仓
This commit is contained in:
parent
ec75d5ffc5
commit
7f4c33719f
@ -124,6 +124,7 @@ class CtaTemplate(ABC):
|
|||||||
"direction": "short",
|
"direction": "short",
|
||||||
"volume": abs(self.pos)
|
"volume": abs(self.pos)
|
||||||
})
|
})
|
||||||
|
return pos_list
|
||||||
|
|
||||||
@virtual
|
@virtual
|
||||||
def on_timer(self):
|
def on_timer(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user