This commit is contained in:
vn.py 2018-02-16 21:12:15 +08:00
parent 9c242ed73f
commit 940c0b51e7
2 changed files with 4 additions and 2 deletions

View File

@ -37,6 +37,8 @@ vn.py是基于Python的开源量化交易程序开发框架起源于国内私
- OANDAoanda
- 福汇fxcm
- OKCOINokcoin
- 火币huobi

View File

@ -1053,9 +1053,9 @@ class PositionDetail(object):
if ydAvailable > 0:
reqClose = copy(req)
if self.exchange is EXCHANGE_SHFE:
req.offset = OFFSET_CLOSEYESTERDAY
reqClose.offset = OFFSET_CLOSEYESTERDAY
else:
req.offset = OFFSET_CLOSE
reqClose.offset = OFFSET_CLOSE
reqClose.volume = ydAvailable
l.append(reqClose)