Skip to content

Commit 3e8f4a3

Browse files
committed
stock broker;capital flow
1 parent 584eae7 commit 3e8f4a3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tigeropen/quote/quote_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,19 @@ def get_stock_broker(self, symbol, limit=40, lang=None):
14621462
:param symbol:
14631463
:param limit: The maximum number of items returned. Default value is 40.
14641464
:param lang: tigeropen.common.consts.Language
1465+
return: tigeropen.quote.domain.stock_broker.StockBroker
1466+
example:
1467+
StockBroker({'symbol': '01810',
1468+
'bid_broker': [
1469+
LevelBroker({'level': 1, 'price': 11.46, 'broker_count': 5,
1470+
'broker': [Broker({'id': '5999', 'name': '中国创盈'}), Broker({'id': '4374', 'name': '巴克莱亚洲'}),
1471+
Broker({'id': '1438', 'name': 'Susquehanna'}), Broker({'id': '4821', 'name': '华盛'}),
1472+
Broker({'id': '6998', 'name': '中国投资'})]})],
1473+
'ask_broker': [
1474+
LevelBroker({'level': 1, 'price': 11.48, 'broker_count': 5,
1475+
'broker': [Broker({'id': '4374', 'name': '巴克莱亚洲'}), Broker({'id': '9056', 'name': '瑞银'}),
1476+
Broker({'id': '2027', 'name': '东亚'}), Broker({'id': '4821', 'name': '华盛'}),
1477+
Broker({'id': '4374', 'name': '巴克莱亚洲'})]})]})
14651478
"""
14661479
params = StockBrokerParams()
14671480
params.symbol = symbol
@@ -1487,6 +1500,11 @@ def get_capital_flow(self, symbol, market, period, begin_time=-1, end_time=-1, l
14871500
:param end_time: 结束时间. 格式同 begin_time
14881501
:param limit: 数量限制
14891502
:param lang: 语言支持: zh_CN,zh_TW,en_US
1503+
:return pandas.DataFrame, example:
1504+
time timestamp net_inflow symbol period
1505+
0 2022-02-24 1645678800000 -5.889058e+08 AAPL day
1506+
1 2022-02-25 1645765200000 -1.229127e+08 AAPL day
1507+
2 2022-02-28 1646024400000 1.763644e+08 AAPL day
14901508
"""
14911509
params = CapitalParams()
14921510
params.symbol = symbol
@@ -1511,6 +1529,7 @@ def get_capital_distribution(self, symbol, market, lang=None):
15111529
:param symbol: 股票代号
15121530
:param market: tigeropen.common.consts.Market
15131531
:param lang: 语言支持: zh_CN,zh_TW,en_US
1532+
return: tigeropen.quote.domain.capital_distribution.CapitalDistribution
15141533
"""
15151534
params = CapitalParams()
15161535
params.symbol = symbol

0 commit comments

Comments
 (0)