说明 / 示例
用法: ContextInfo.get_longhubang(stock_list, startTime, endTime)
释义: 获取龙虎榜数据
参数:
stock_list:股票列表,list,如 [‘600000.SH’, ‘600036.SH’]
startTime:起始时间,如 ‘20170101’
endTime:结束时间,如 ‘20180101’
返回: Dataframe,字段:
reason:上榜原因
close:收盘价
spreadRate:涨跌幅
TurnoverVolune:成交量
Turnover_Amount:成交金额
buyTraderBooth:买方席位,datframe
sellTraderBooth:卖方席位,datframe
buyTraderBooth 或 sellTraderBooth 包含字段:
traderName:交易营业部名称
buyAmount:买入金额
buyPercent:买入金额占总成交占比
sellAmount:卖出金额
sellPercent:卖出金额占总成交占比
totalAmount:该席位总成交金额
rank:席位排行
direction:买卖方向
示例:
```py
def handlebar(ContextInfo):
print(ContextInfo.get_longhubang(['000002.SZ'],'20100101','20180101'))
```