排行
包含漲跌幅、漲跌、高低價差、成交量及成交金額排行。Scanners
利用ScannerType
去取得不同類型的排行。
支援的排行類別
排名預設為由大到小排序,ascending
預設值為true
。
若要由小到大排序請將ascending
設為false
。count
為排行數量。
ChangePercentRank: 依價格漲跌幅排序
ChangePriceRank: 依價格漲跌排序
DayRangeRank: 依高低價差排序
VolumeRank: 依成交量排序
AmountRank: 依成交金額排序
範例¶
依成交金額排序
var scanners_amount = _api.Scanners(
scannerType:ScannerType.AmountRank,
ascending:true,
date:"2022-05-25",
count:2);
Console.WriteLine(scanners_amount);
Out
[
{
date=2022-05-25,
code=2330,
name=台積電,
ts=1653489000000000000,
open=522,
high=529,
low=520,
close=524,
price_range=9,
tick_type=2,
change_price=4,
change_type=2,
average_price=524.6,
volume=41,
total_volume=22176,
amount=21484000,
total_amount=11633535900,
yesterday_volume=17802,
volume_ratio=1.25,
buy_price=524,
buy_volume=691,
sell_price=525,
sell_volume=126,
bid_orders=3363,
bid_volumes=216046,
ask_orders=1935,
ask_volumes=436783,
},
{
date=2022-05-25,
code=2603,
name=長榮,
ts=1653489000000000000,
open=144.5,
high=146,
low=141.5,
close=143,
price_range=4.5,
tick_type=2,
change_price=1,
change_type=2,
average_price=143.23,
volume=375,
total_volume=68912,
amount=53625000,
total_amount=9870037033,
yesterday_volume=93318,
volume_ratio=0.74,
buy_price=143,
buy_volume=20,
sell_price=143.5,
sell_volume=1949,
bid_orders=5585,
bid_volumes=536602,
ask_orders=4791,
ask_volumes=254559,
}
]
屬性¶
scanners
date (string): 交易日
code (string): 股票代號
name (string): 股票名稱
ts (long): 時間戳記
open (double): 開盤價
high (double): 最高價
low (double): 最低價
close (double): 收盤價
price_range (double): 價格區間(最高價-最低價)
tick_type (long): 內外盤別 {1: 內盤, 2: 外盤, 0: 無法判定}
change_price (double): 價格漲跌
change_type (long): 漲跌
{LimitUp, Up, Unchanged, Dowm, LimitDown}
average_price (double): 均價
volume (long): 成交量
total_volume (long): 總成交量
amount (long): 成交金額
total_amount (long): 總成交金額
yesterday_volume (long): 昨日總成交量
volume_ratio (double): 總成交量/昨日總成交量
buy_price (double): 委買價
buy_volume (long): 委買量
sell_price (double): 委賣價
sell_volume (long): 委賣量
bid_orders (long): 內盤總成交單量
bid_volumes (long): 內盤總成交量
ask_orders (long): 外盤總成交單量
ask_volumes (long): 外盤總成交量