Skip to content

Commit 46d12bb

Browse files
committed
Support fund strategy for Guorn
1 parent 4a2b3fe commit 46d12bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shipane_sdk/guorn/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def query_portfolio(self):
7171

7272
portfolio = Portfolio(total_value=1.0)
7373
for index, row in df.iterrows():
74-
security = row[u'股票代码']
74+
security = row.get(u'股票代码') or row.get(u'基金代码')
7575
value = row[u'目标仓位']
7676
price = row[u'参考价']
7777
amount = value / price

0 commit comments

Comments
 (0)