We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf3789c commit f4bfa3cCopy full SHA for f4bfa3c
shipane_sdk/guorn/client.py
@@ -53,8 +53,13 @@ def query_portfolio(self):
53
}, timeout=self._timeout)
54
instruction = response.json()
55
56
+ status = instruction['status']
57
data = instruction['data']
- position = data['position']
58
+ if status == 'failed':
59
+ if isinstance(data, str):
60
+ raise Exception(data)
61
+ raise Exception("获取调仓指令数据失败")
62
+
63
df = pd.DataFrame()
64
sheet_data = instruction['data']['sheet_data']
65
for row in sheet_data['row']:
0 commit comments