Skip to content

Commit 5b63800

Browse files
committed
mod broker hold response
1 parent 89196e3 commit 5b63800

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.3.5 (2025-04-11)
2+
### New
3+
- `QuoteClient.get_broker_hold` 经纪商市值
4+
15
## 3.3.4 (2025-04-09)
26
### New
37
- `TradeClient.get_aggregate_assets`

tigeropen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
@author: gaoan
66
"""
7-
__VERSION__ = '3.3.4'
7+
__VERSION__ = '3.3.5'

tigeropen/quote/response/broker_hold_response.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pandas as pd
12
from tigeropen.common.response import TigerResponse
23
from tigeropen.common.util import string_utils
34

@@ -12,6 +13,11 @@ def parse_response_content(self, response_content):
1213
if 'is_success' in response:
1314
self._is_success = response['is_success']
1415
if self.data:
15-
self.result = string_utils.camel_to_underline_obj(self.data)
16-
return response
16+
formated_data = string_utils.camel_to_underline_obj(self.data)
17+
items = formated_data.get('items')
18+
result = pd.DataFrame(data=items)
19+
result['page'] = formated_data.get('page')
20+
result['total_page'] = formated_data.get('total_page')
21+
result['total_count'] = formated_data.get('total_count')
22+
self.result = result
1723

0 commit comments

Comments
 (0)