[Fix]Close #738
This commit is contained in:
parent
9c242ed73f
commit
940c0b51e7
@ -37,6 +37,8 @@ vn.py是基于Python的开源量化交易程序开发框架,起源于国内私
|
|||||||
|
|
||||||
- OANDA(oanda)
|
- OANDA(oanda)
|
||||||
|
|
||||||
|
- 福汇(fxcm)
|
||||||
|
|
||||||
- OKCOIN(okcoin)
|
- OKCOIN(okcoin)
|
||||||
|
|
||||||
- 火币(huobi)
|
- 火币(huobi)
|
||||||
|
@ -1053,9 +1053,9 @@ class PositionDetail(object):
|
|||||||
if ydAvailable > 0:
|
if ydAvailable > 0:
|
||||||
reqClose = copy(req)
|
reqClose = copy(req)
|
||||||
if self.exchange is EXCHANGE_SHFE:
|
if self.exchange is EXCHANGE_SHFE:
|
||||||
req.offset = OFFSET_CLOSEYESTERDAY
|
reqClose.offset = OFFSET_CLOSEYESTERDAY
|
||||||
else:
|
else:
|
||||||
req.offset = OFFSET_CLOSE
|
reqClose.offset = OFFSET_CLOSE
|
||||||
reqClose.volume = ydAvailable
|
reqClose.volume = ydAvailable
|
||||||
|
|
||||||
l.append(reqClose)
|
l.append(reqClose)
|
||||||
|
Loading…
Reference in New Issue
Block a user