证券类
获取市场状态
对应的请求类:TigerRequest(QuoteApiService.MARKET_STATE)
说明
获取市场状态
参数
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
market | Market | Yes | 常用市场枚举值:US 美股,HK港股,CN A股,ALL 所有,枚举值详见: 市场枚举 |
lang | Language | No | 语言枚举值:zh_CN,zh_TW,en_US,默认:en_US,枚举值详见:语言枚举 |
返回
TigerOpenAPI.Quote.Response.MarketStateResponse
source
其结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class MarketStateResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<MarketState> Data { get; set; }
public MarketStateResponse()
{
}
}
}
返回数据可用response.Data
属性访问,返回为MarketState
对象列表,其中 TigerOpenAPI.Quote.Response.MarketState
属性如下:
字段 | 类型 | 说明 |
---|---|---|
market | string | 市场代码(US:美股,CN:沪深,HK:港股) |
marketStatus | string | 市场状态描述,非固定值,包括节假日信息等,如:"Not Yet Opened","Closed","Trading","Closed Independence Day",通过lang参数区分中英文文案,该字段可以用来做市场状态的提醒展示。 |
status | string | 市场状态,包括:NOT_YET_OPEN:未开盘,PRE_HOUR_TRADING:盘前交易,TRADING:交易中,MIDDLE_CLOSE:午间休市,POST_HOUR_TRADING:盘后交易,CLOSING:已收盘,EARLY_CLOSED:提前休市,MARKET_CLOSED:休市 |
openTime | string | 最近开盘、交易时间 MM-dd HH:mm:ss ,例如:当market=US时,openTime="07-04 09:30:00 EDT",其中EDT为美东时区。当market为CN,HK时,openTime="01-13 09:30:00",openTime不会返回时区。当market为其他市场时,会返回对应市场的时区。 |
MarketState
的具体字段可通过对象的属性,如response.Data[0].Market
,进行访问,或通过JsonConvert.SerializeObject()
方法转换为字符串的形式
示例
static async Task<MarketStateResponse?> GetMarketStateAsync(QuoteClient quoteClient)
{
TigerRequest<MarketStateResponse> request = new TigerRequest<MarketStateResponse>()
{
ApiMethodName = QuoteApiService.MARKET_STATE,
ModelValue = new QuoteMarketModel() { Market = Market.HK }
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"market":"HK",
"marketStatus":"Closed",
"status":"CLOSING",
"openTime":"03-06 09:30:00"
}
],
"code":0,
"message":"success",
"timestamp":1677833217955,
"sign":"Y9da7t9sJBAJ6yyawjLtsDw2Om7dn3NYANXzhSKBpzZfyjCGlVk50GDKYUnQfmODnMlDfb+0kxn2/ePUsLNDFn3N7mRJ/VPBTrKUrEcrAxBUDZZMltYsJQJoTGTnYLiaQHH1j63Jza4jFsZenH2mR+qllQp5kMf6afnZmtJecNI="
}
获取市场交易日历
对应的请求类:TigerRequest(QuoteApiService.TRADING_CALENDAR)
说明
获取市场交易日历. 通过去除周末和该市场节假日得出,未去除临时休市的日期
参数
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
market | string | Yes | US 美股,HK港股,CN A股 |
begin_date | string | No | 日历起始日期(包含)。yyyy-MM-dd 格式,如 '2022-06-01' |
end_date | string | No | 日历截至日期(不包含)。yyyy-MM-dd 格式 |
begin_time 和 end_time 传参处理如下:
begin_time是否传递 | end_time是否传递 | 说明 |
---|---|---|
yes | yes | begin_time和end_time分别为所传值 |
yes | no | end_time为begin_time往后365天 |
no | yes | begin_time为end_time往前365天 |
no | no | begin_time为当前日期,end_time为begin_time往后30天 |
返回
TigerOpenAPI.Quote.Response.TradeCalendarResponse
source
其结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class TradeCalendarResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<TradeCalendar> Data { get; set; }
public TradeCalendarResponse()
{
}
}
}
返回数据可用TradeCalendarResponse.Data
属性访问,返回为TradeCalendar
对象列表,其中 TigerOpenAPI.Quote.Response.TradeCalendar
属性如下:
字段 | 类型 | 说明 |
---|---|---|
date | string | 交易日日期 |
type | string | 交易日类型. TRADING为正常交易日,全天交易; EARLY_CLOSE为提前休市 |
示例
static async Task<TigerListResponse?> GetTradingCalendarAsync(QuoteClient quoteClient)
{
TigerRequest<TigerListResponse> request = new TigerRequest<TigerListResponse>()
{
ApiMethodName = QuoteApiService.TRADING_CALENDAR,
ModelValue = new TradeCalendarModel() {
Market = Market.HK,
BeginDate = "2023-03-01",
EndDate = "2023-03-15"
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"date":"2023-03-01",
"type":"TRADING"
},
{
"date":"2023-03-02",
"type":"TRADING"
},
{
"date":"2023-03-03",
"type":"TRADING"
},
{
"date":"2023-03-06",
"type":"TRADING"
},
{
"date":"2023-03-07",
"type":"TRADING"
},
{
"date":"2023-03-08",
"type":"TRADING"
},
{
"date":"2023-03-09",
"type":"TRADING"
},
{
"date":"2023-03-10",
"type":"TRADING"
},
{
"date":"2023-03-13",
"type":"TRADING"
},
{
"date":"2023-03-14",
"type":"TRADING"
}
],
"code":0,
"message":"success",
"timestamp":1677835312347,
"sign":"trVsnYxqe9Ygp+vaFjQHb8oTgzYbOh6uou8fvgWM+58DUH8lnEDxd0xC6gqsjMMqVOKTiGS/j/+hkKYZ0Cyf7QEiV0ZULYYdAgMub1GWlLQLoNf3ML17Sy1OtNne/QC0tLOH+BfLltOCeNOfnwPECYJ5akmrjrtMy7a1ti6EXCE="
}
获取股票代码列表
对应的请求类:TigerRequest(QuoteApiService.ALL_SYMBOLS)
说明
获取股票代码列表
参数
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
market | string | Yes | US 美股,HK港股,CN A股 |
include_otc | boolean | No | 是否包含OTC标的,默认:false |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Model.TigerListStringResponse
source
具体结构如下
namespace TigerOpenAPI.Model
{
public class TigerListStringResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<string> Data { get; set; }
public TigerListStringResponse()
{
}
}
}
返回数据可以通过TigerListStringResponse.Data
属性调用,结果为包含返回股票代码数据的List
示例
static async Task<TigerListStringResponse?> GetAllSymbolsAsync(QuoteClient quoteClient)
{
TigerRequest<TigerListStringResponse> request = new TigerRequest<TigerListStringResponse>()
{
ApiMethodName = QuoteApiService.ALL_SYMBOLS,
ModelValue = new QuoteMarketModel() { Market = Market.US, IncludeOTC = false }
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"code": 0,
"message": "success",
"timestamp": 1525938835697,
"data": ["A", "A.W", "AA", "AA-B", "AAAP", "AABA", "AAC", "AADR", "AAIT", "AAL", "AALCP", "AAMC", "AAME"]
}
获取股票代码列表和名称
对应的请求类:TigerRequest(QuoteApiService.ALL_SYMBOL_NAMES)
说明
获取股票代码列表和名称
参数
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
market | string | Yes | US 美股,HK港股,CN A股 |
include_otc | boolean | No | 是否包含OTC标的,默认:false |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Quote.Response.SymbolNameResponse
source
具体结构如下
namespace TigerOpenAPI.Quote.Response
{
public class SymbolNameResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<SymbolNameItem> Data { get; set; }
public SymbolNameResponse()
{
}
}
}
返回数据可通过SymbolNameResponse.Data
方法访问,返回为包含SymbolNameItem
对象的List,其中TigerOpenAPI.Quote.Response.SymbolNameItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
name | string | 股票名称 |
symbol | string | 股票代码 |
SymbolNameItem
的具体字段可通过对象的属性,如response.Data[0].Name
进行访问,或通过JsonConvert.SerializeObject()
方法转换为字符串的形式
示例
static async Task<SymbolNameResponse?> GetAllSymbolNamesAsync(QuoteClient quoteClient)
{
TigerRequest<SymbolNameResponse> request = new TigerRequest<SymbolNameResponse>()
{
ApiMethodName = QuoteApiService.ALL_SYMBOL_NAMES,
ModelValue = new QuoteMarketModel() { Market = Market.US, Lang = Language.zh_CN, IncludeOTC = false }
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"code":0,
"message":"success",
"timestamp":1677837230720,
"data":[
{
"symbol":".DJI",
"name":"道琼斯"
},
{
"symbol":".IXIC",
"name":"纳斯达克"
},
{
"symbol":".SPX",
"name":"标普500"
},
{
"symbol":".XSP",
"name":"迷你标准普尔500"
},
{
"symbol":"A",
"name":"安捷伦科技"
}
]
}
获取股票延迟行情
对应的请求类:TigerRequest(QuoteApiService.QUOTE_DELAY)
说明
获取延迟行情,此行情接口不需要购买行情权限即可调用,目前免费提供给用户
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码(单次请求上限50),目前仅支持获取美股延迟行情。 如 ['AAPL', 'MSFT'] |
示例
static async Task<TigerListResponse?> GetDelayQuoteAsync(QuoteClient quoteClient)
{
TigerRequest<TigerListResponse> request = new TigerRequest<TigerListResponse>()
{
ApiMethodName = QuoteApiService.QUOTE_DELAY,
ModelValue = new QuoteSymbolModel() { Symbols = new List<string> { "AAPL" } }
};
return await quoteClient.ExecuteAsync(request);
}
返回
TigerOpenAPI.Quote.Response.QuoteDelayResponse
source
具体结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class QuoteDelayResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<QuoteDelayItem> Data { get; set; }
}
}
返回数据可通过QuoteDelayResponse.Data
属性访问,返回为包含QuoteDelayItem
对象的List,其中TigerOpenAPI.Quote.Response.QuoteDelayItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
close | double | 收盘价 |
high | double | 最高价 |
low | double | 最低价 |
open | double | 开盘价 |
preClose | double | 昨日收盘价 |
time | long | 时间 |
volume | long | 成交量 |
QuoteDelayItem
的具体字段可通过对象属性,如response.Data[0].Close
进行访问
返回示例
{
"data":[
{
"symbol":"AAPL",
"open":144.38,
"high":146.71,
"low":143.9,
"close":145.91,
"preClose":145.31,
"halted":0,
"volume":52279761,
"time":1677790800000
}
],
"code":0,
"message":"success",
"timestamp":1677848610005,
"sign":"dvJVX8cPx8M4l+D5IGAxsQui4lZ0SqfTv735wa+k6sMy288Cl1vLjJKieoggAliI5ac2qDkPGnY4jPjSig2+fNErHfZneLAS6bVE0esVvfn9qcB3OS8OBGzlQwnwBc0zcm7x3npKmMsc6TIpojkqw4prstzlKZO6eRNEsN60ME4="
}
获取分时数据
对应的请求类:TigerRequest(QuoteApiService.TIMELINE)
说明
获取分时数据
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表 |
period | string | Yes | 分时周期,包含:day 和 day5 |
trade_session | String | No | TradeSession枚举对象值,盘前:PreMarket, 盘中:Regular, 盘后:AfterHours。默认为盘中 |
begin_time | long | No | 开始时间(毫秒时间戳),默认返回当天数据 |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Quote.Response.QuoteTimelineResponse
source
具体结构如下:
返回数据可通过QuoteTimelineResponse.Data
属性访问,返回为包含TimelineItem
对象的List,其中TigerOpenAPI.Quote.Response.TimelineItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
period | string | 周期 day or 5day |
preClose | double | 昨日收盘价 |
intraday | object | 盘中分时数组,字段参考下面说明 |
preMarket | object | (仅美股) 盘前分时数组和起始结束时间,字段参考下面说明 |
afterHours | object | (仅美股) 盘后分时数组和起始结束时间,字段参考下面说明 |
TimelineItem
的具体字段可通过对象的属性,如TimelineItem.Symbol
,进行访问
分时数据intraday字段:
分时字段 | 说明 |
---|---|
volume | 成交量 |
avgPrice | 平均成交价格 |
price | 最新价格 |
time | 当前分时时间 |
示例
static async Task<QuoteTimelineResponse?> GetTimelineAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteTimelineResponse> request = new TigerRequest<QuoteTimelineResponse>()
{
ApiMethodName = QuoteApiService.TIMELINE,
ModelValue = new QuoteTimelineModel()
{
Symbols = new List<string> { "AAPL" },
Period = TimeLineType.day,
TradeSession = TradeSession.Regular.ToString(),
BeginTime = DateUtil.ConvertTimestamp("2023-03-03 03:00:00", CustomTimeZone.NY_ZONE)
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"AAPL",
"period":"day",
"preClose":145.91000366210938,
"intraday":{
"items":[
{
"price":147.6432,
"avgPrice":147.89961,
"volume":1233166,
"time":1677853800000
},
{
"price":147.64,
"avgPrice":147.87505,
"volume":346545,
"time":1677853860000
},
{
"price":147.9377,
"avgPrice":147.8773,
"volume":406248,
"time":1677853920000
},
{
"price":148.1899,
"avgPrice":147.89348,
"volume":279532,
"time":1677853980000
}
],
"beginTime":1677830400000,
"endTime":1677877140000
},
"preMarket":null,
"afterHours":null
}
],
"code":0,
"message":"success",
"timestamp":1678020675510,
"sign":"BwyUekDkekIaBCYIFaUPt0x4V7okT2Sb4UbahUgHQNk/NabZksBPdWarGmBIefDczJct8q+6Ym8If2zYe3fkWlMv/12aih6fm233BlP7tsjc+Zx93J7ozurK2Cgtpl8HWTUUwRRhao+NdIB/2UoCv0C3WmpGXtRYZ4mIJmFy54k="
}
获取历史分时数据
对应的请求类:TigerRequest(QuoteApiService.HISTORY_TIMELINE)
说明
获取历史1分钟的分时数据
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表 |
date | string | Yes | 年月日yyyyMMdd,例如20220420 |
right | RightOption | No | 前复权:br, 不复权:nr;默认:nr |
返回
TigerOpenAPI.Quote.Response.QuoteHistoryTimelineResponse
source
具体结构如下:
返回数据可通过QuoteHistoryTimelineResponse.Data
属性访问,返回为包含HistoryTimelineItem
对象的List,其中TigerOpenAPI.Quote.Response.HistoryTimelineItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
items | TimelinePoint | 盘中分时数组,字段参考下面说明 |
TimelineItem
的具体字段可通过对象的属性,如TimelineItem.Symbol
,进行访问
分时数据items字段TimelinePoint:
分时字段 | 说明 |
---|---|
volume | 成交量 |
avgPrice | 平均成交价格 |
price | 最新价格 |
time | 当前分时时间 |
示例
static async Task<QuoteHistoryTimelineResponse?> GetHistoryTimelineAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteHistoryTimelineResponse> request = new TigerRequest<QuoteHistoryTimelineResponse>()
{
ApiMethodName = QuoteApiService.HISTORY_TIMELINE,
ModelValue = new QuoteHistoryTimelineModel()
{
Symbols = new List<string> { "AAPL" },
Date = "2023-03-03",
Rigth = RightOption.br
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"AAPL",
"items":[
{
"price":147.63,
"avgPrice":147.59154,
"volume":379709,
"time":1677853800000
},
{
"price":147.64,
"avgPrice":147.62659,
"volume":185673,
"time":1677853860000
},
// ......
{
"price":151.03,
"avgPrice":149.61783,
"volume":310667,
"time":1677877080000
},
{
"price":151.03,
"avgPrice":149.62384,
"volume":9627407,
"time":1677877140000
}
]
}
],
"code":0,
"message":"success",
"timestamp":1678022489149,
"sign":"ic+gOTQqv51pYiqbHril8WLXySNMmTKDRhVjhGTSogYrxB94IF+4ETUM/wmm7nO+4/6fSSa++Ayyn8xdFyfxWhtVLNsor439y40bvC4Nsm0m6V8kk65c3DUhZQZS++1oEldVzrXSrIKEi6wiMiX4cqwJOvwd5fTQ+7TgpbGSIvI="
}
获取实时行情
对应的请求类:TigerRequest(QuoteApiService.QUOTE_REAL_TIME)
说明
获取实时行情,需要购买行情权限才可以开通
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表(单次上限50) |
includeHourTrading | Boolean | No | 是否包含美股盘前盘后数据,默认: false |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Quote.Response.QuoteRealTimeQuoteResponse
source
返回数据可通过QuoteRealTimeQuoteResponse.Data
属性访问,返回RealTimeQuoteItem
对象,其中TigerOpenAPI.Quote.Response.RealTimeQuoteItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
open | double | 开盘价 |
high | double | 最高价 |
low | double | 最低价 |
close | double | 收盘价 |
preClose | double | 前一交易日收盘价 |
latestPrice | double | 最新价 |
latestTime | long | 最新成交时间 |
askPrice | double | 卖盘价 |
askSize | long | 卖盘数量 |
bidPrice | double | 买盘价 |
bidSize | long | 买盘数量 |
volume | long | 成交量 |
status | string | 交易状态 |
hourTrading | object | 美股盘前盘后数据(includeHourTrading参数为true,且盘前盘后时间段才有数据) |
其中hourTrading
对象包含的字段:
字段 | 类型 | 说明 |
---|---|---|
tag | string | 盘前("Pre-Mkt")、盘后("Post-Mkt")标识 |
latestPrice | double | 最新价 |
preClose | double | 昨收价 |
latestTime | string | 最新成交时间(美东时间) |
volume | long | 成交量 |
timestamp | long | 最新成交时间 |
具体字段可通过对象的属性,如RealTimeQuoteItem.Symbol
,进行访问
示例
static async Task<QuoteRealTimeQuoteResponse?> GetRealTimeQuoteAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteRealTimeQuoteResponse> request = new TigerRequest<QuoteRealTimeQuoteResponse>()
{
ApiMethodName = QuoteApiService.QUOTE_REAL_TIME,
ModelValue = new QuoteSymbolModel()
{
Symbols = new List<string> { "AAPL" },
IncludeHourTrading = true
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"AAPL",
"open":148.045,
"high":151.11,
"low":147.33,
"close":151.03,
"preClose":145.91,
"latestPrice":151.03,
"askPrice":0,
"askSize":0,
"bidPrice":0,
"bidSize":0,
"volume":69933182,
"latestTime":1677877200000,
"status":"NORMAL",
"hourTrading":{
"tag":"Post-Mkt",
"latestPrice":151.42,
"preClose":151.03,
"latestTime":"19:59 EST",
"volume":3774373,
"timestamp":1677891598858
}
}
],
"code":0,
"message":"success",
"timestamp":1678025982737,
"sign":"TrET7dNWCsGjc08Sq0U4DMxiozQnZEx8FHboLSx92Gwqhf3yXHw6rCPiYd2lehYTs/gIHcGiGOjwZB5upZ52rzwAPBgPrFguCbHr3icKJm+bObQZvzQ+CBRkkCQvsO/DIyBRJDXjAmuGc9WNSbO164JBmS/R4hA3wa6l5Qck20A="
}
获取K线数据
对应的请求类:TigerRequest(QuoteApiService.KLINE)
说明
获取指定股票的K线数据,可指定不同的时间粒度。目前此接口支持获取以日、周、月、年、分钟、3分钟、5分钟、15分钟、30分钟、60分钟、2小时、4小时为单位的K线数据。考虑到接口性能和稳定性,此接口请求最高限制为1200条。对于需要更多历史数据进行分析或回测的用户,可以自行实现循环或者使用pageToken,通过多次请求的方式获取更长时间范围的历史的数据。需要注意的是,可以请求的K线时间长度可能会存在限制,具体请见历史行情限制
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表,上限:50,其中A股上限:10 |
period | string | Yes | K线类型,取值范围(day:日K,week:周K,month:月K,year:年K,1min:1分钟,3min:3分钟,5min:5分钟,15min:15分钟,30min:30分钟,60min:60分钟,120min:2小时,240min:4小时) |
right | string | No | 复权选项 ,br: 前复权(默认),nr: 不复权 |
begin_time | long | No | 开始时间,默认:-1,单位:毫秒(ms),前闭后开区间,即查询结果会包含起始时间数据,如查询周/月/年K线,会返回包含当前周期的数据(如:起始时间为周三,会返回从这周一的K线) |
end_time | long | No | 结束时间,默认:-1,单位:毫秒(ms) |
limit | integer | No | 单次请求返回K线数量,不传默认是300,limit不能超过1200,如果limit设置大于1200,只会返回1200条数据 |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
pageToken | string | No | 分页查询token(只支持单个symbol,指定begin_time的查询),使用pageToken分页拉取数据时其他查询条件不能改变 |
返回
TigerOpenAPI.Quote.Response.QuoteKlineResponse
source
返回数据可通过QuoteKlineResponse.Data
属性访问,返回KlineItem
对象,其中TigerOpenAPI.Quote.Response.QuoteKlineItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
period | string | K线周期 |
nextPageToken | string | 查询下一页的token(只支持单个symbol,begin_time不为-1时才有效),如果没有更多数据返回null |
items | array | K线数组,字段参考下面说明 |
其中K线数据items属性如下:
K线字段 | 类型 | 说明 |
---|---|---|
close | double | 收盘价 |
high | double | 最高价 |
low | double | 最低价 |
open | double | 开盘价 |
time | long | 时间 |
volume | long | 成交量 |
amount | double | 成交额 |
具体字段可通过对象的属性,如QuoteKlineItem.Symbol
,进行访问
示例
static async Task<QuoteKlineResponse?> GetKLineAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteKlineResponse> request = new TigerRequest<QuoteKlineResponse>()
{
ApiMethodName = QuoteApiService.KLINE,
ModelValue = new QuoteKlineModel()
{
Symbols = new List<string> { "AAPL" },
Period = KLineType.day.Value,
BeginTime = DateUtil.ConvertTimestamp("2023-03-01", CustomTimeZone.NY_ZONE),
EndTime = DateUtil.CurrentTimeMillis(),
Rigth = RightOption.br
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"AAPL",
"period":"day",
"nextPageToken":null,
"items":[
{
"open":146.83,
"high":147.2285,
"low":145.01,
"close":145.31,
"volume":55478991,
"amount":7978231154.30112,
"time":1677646800000
},
{
"open":144.38,
"high":146.71,
"low":143.9,
"close":145.91,
"volume":52279761,
"amount":7562022394.142693,
"time":1677733200000
},
{
"open":148.045,
"high":151.11,
"low":147.33,
"close":151.03,
"volume":69935182,
"amount":10492713141.015995,
"time":1677819600000
}
]
}
],
"code":0,
"message":"success",
"timestamp":1678027621172,
"sign":"c+ArPr2a7AQt5c/gR12AoLqMS+sjDMQuqV9pfez9foyhtxRew8KxQ/YhRUHbwgbkrmfV17/3WQlcB/8hHYSWEJ4i/erQCxpfXS+jngegzO1A0BOJB+7HyEQ7alFNOBtm/0zpPfcEBQyvKLDPsM/ChaBg5wzAOMbwUNYuNsDXBYo="
}
获取深度行情数据
对应的请求类:TigerRequest(QuoteApiService.QUOTE_DEPTH)
说明
获取输入证券代码的买卖N档挂单数据,包括委托价格,数量及订单数,单次请求上限为50只
CAUTION
港股交易日收市竞价时间为16:00-16:10(于16:08与16:10之间随机收市),当天最后一条深度排盘数据一般在16:10之后的一两分钟后更新
请求频率 频率限制请参考:请求频率限制
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表(单次上限50) |
market | string | Yes | US 美股,HK港股,CN A股,ALL 所有(参考Market枚举类) |
返回
TigerOpenAPI.Quote.Response.QuoteDepthResponse
source
具体结构如下
namespace TigerOpenAPI.Quote.Response
{
public class QuoteDepthResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<QuoteDepthItem> Data { get; set; }
}
}
返回数据可通过QuoteDepthResponse.Data
属性访问,返回为包含QuoteDepthItem
对象的List,其中TigerOpenAPI.Quote.Response.QuoteDepthItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
asks | list | 卖盘分档 |
bids | list | 买盘分档 |
其中买卖盘详细字段如下:
字段 | 类型 | 说明 |
---|---|---|
price | double | 委托价 |
volume | long | 委托量 |
count | int | 委托订单数(只有港股市场有,美股市场没有值) |
示例
static async Task<QuoteDepthResponse?> GetDepthQuoteAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteDepthResponse> request = new TigerRequest<QuoteDepthResponse>()
{
ApiMethodName = QuoteApiService.QUOTE_DEPTH,
ModelValue = new QuoteDepthModel()
{
Symbols = new List<string> { "AAPL" },
Market = Market.US
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"AAPL",
"asks":[
{
"price":151.5,
"volume":50,
"count":0
},
{
"price":151.5,
"volume":30,
"count":0
},
{
"price":151.75,
"volume":50,
"count":0
},
{
"price":152,
"volume":100,
"count":0
},
{
"price":152,
"volume":1,
"count":0
},
{
"price":152,
"volume":50,
"count":0
},
{
"price":152,
"volume":6,
"count":0
},
{
"price":152,
"volume":110,
"count":0
},
{
"price":152.02,
"volume":10,
"count":0
},
{
"price":152.12,
"volume":3,
"count":0
},
{
"price":152.2,
"volume":1,
"count":0
},
{
"price":152.25,
"volume":50,
"count":0
},
{
"price":152.25,
"volume":2,
"count":0
},
{
"price":152.48,
"volume":7,
"count":0
},
{
"price":152.48,
"volume":65,
"count":0
},
{
"price":152.5,
"volume":20,
"count":0
},
{
"price":152.5,
"volume":300,
"count":0
},
{
"price":152.5,
"volume":50,
"count":0
},
{
"price":152.52,
"volume":70,
"count":0
},
{
"price":152.56,
"volume":10,
"count":0
},
{
"price":152.79,
"volume":30,
"count":0
},
{
"price":153,
"volume":3000,
"count":0
},
{
"price":153,
"volume":200,
"count":0
},
{
"price":153,
"volume":34,
"count":0
},
{
"price":153.2,
"volume":20,
"count":0
},
{
"price":153.25,
"volume":5,
"count":0
},
{
"price":153.7,
"volume":3000,
"count":0
},
{
"price":153.89,
"volume":5,
"count":0
},
{
"price":154.61,
"volume":14000,
"count":0
},
{
"price":154.75,
"volume":50,
"count":0
},
{
"price":154.97,
"volume":3,
"count":0
},
{
"price":155,
"volume":1500,
"count":0
},
{
"price":155,
"volume":2161,
"count":0
},
{
"price":155,
"volume":1,
"count":0
},
{
"price":155,
"volume":5,
"count":0
},
{
"price":155,
"volume":20,
"count":0
},
{
"price":155,
"volume":9,
"count":0
},
{
"price":155.02,
"volume":250,
"count":0
},
{
"price":155.87,
"volume":250,
"count":0
},
{
"price":156,
"volume":1415,
"count":0
}
],
"bids":[
{
"price":151.18,
"volume":10,
"count":0
},
{
"price":151.03,
"volume":3,
"count":0
},
{
"price":151.03,
"volume":1,
"count":0
},
{
"price":151,
"volume":50,
"count":0
},
{
"price":150.97,
"volume":5,
"count":0
},
{
"price":150.88,
"volume":1000,
"count":0
},
{
"price":150.86,
"volume":1000,
"count":0
},
{
"price":150.83,
"volume":10,
"count":0
},
{
"price":150.82,
"volume":20,
"count":0
},
{
"price":150.8,
"volume":1,
"count":0
},
{
"price":150.79,
"volume":200,
"count":0
},
{
"price":150.75,
"volume":50,
"count":0
},
{
"price":150.6,
"volume":32,
"count":0
},
{
"price":150.54,
"volume":6,
"count":0
},
{
"price":150.25,
"volume":100,
"count":0
},
{
"price":150.05,
"volume":500,
"count":0
},
{
"price":150,
"volume":155,
"count":0
},
{
"price":150,
"volume":1100,
"count":0
},
{
"price":150,
"volume":2,
"count":0
},
{
"price":150,
"volume":100,
"count":0
},
{
"price":150,
"volume":20,
"count":0
},
{
"price":149.95,
"volume":100,
"count":0
},
{
"price":149.8,
"volume":40,
"count":0
},
{
"price":149.27,
"volume":300,
"count":0
},
{
"price":149.25,
"volume":50,
"count":0
},
{
"price":149.22,
"volume":15,
"count":0
},
{
"price":149,
"volume":50,
"count":0
},
{
"price":149,
"volume":20,
"count":0
},
{
"price":149,
"volume":500,
"count":0
},
{
"price":148.75,
"volume":50,
"count":0
},
{
"price":148.5,
"volume":50,
"count":0
},
{
"price":148.25,
"volume":50,
"count":0
},
{
"price":148,
"volume":50,
"count":0
},
{
"price":148,
"volume":18,
"count":0
},
{
"price":147.85,
"volume":250,
"count":0
},
{
"price":147.75,
"volume":50,
"count":0
},
{
"price":147.7,
"volume":1,
"count":0
},
{
"price":147.6,
"volume":200,
"count":0
},
{
"price":147.5,
"volume":50,
"count":0
},
{
"price":147,
"volume":2,
"count":0
}
]
}
],
"code":0,
"message":"success",
"timestamp":1678072446460,
"sign":"jDZcf0XeaZs/KC3N8zGghObWTo8ww9PzV4ynLJR2R/nZDDcMi+N0lJuuZI/YZu3fHCbd6EGhCr0oxs6TyjxyYCvrqNRG+NRifdL/55nOi6fUQfTwjY6Bqlidys151F5LeXAW8hy4blmag+dirZ85MjfYCd0z/eAk/kKHmPDXO+k="
}
获取逐笔成交
对应的请求类:TigerRequest(QuoteApiService.TRADE_TICK)
说明
获取逐笔成交数据,该接口可以支持在收盘后查询当前交易日的全量逐笔记录,也可以支持查询盘中最新的实时逐笔记录。
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表,支持陆股通股、港股、美股 |
trade_session | String | No | TradeSession枚举对象,盘前:PreMarket, 盘中:Regular, 盘后:AfterHours。默认为盘中 |
beginIndex | long | yes | 起始索引,当日索引值从0开始,如果beginIndex和endIndex设置为-1,会返回最新的逐笔数据,后续查询时,可以把上次查询返回的endIndex值当做beginIndex,从而进行连续查询,返回数据为前闭后开集合,比如:beginIndex=1,endIndex=100,会返回从1到99的记录,下次查询时,设置beginIndex=100,endIndex=200。 |
endIndex | long | yes | 结束索引,结束索引和起始索引的差值不能大于2000,大于2000时默认返回从起始索引开始的200条记录。当limit参数小于起始和结束索引的差值时,只会返回从起始索引开始的limit条逐笔数据。 |
limit | integer | No | 单次请求返回的逐笔数量,如果起始和结束索引的间隔没有超过2000,会按照实际条数返回,否则会默认为200。 |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
beginIndex 和 endIndex参数使用说明
查询方式 | beginIndex | endIndex | 描述 |
---|---|---|---|
查询最新逐笔记录 | -1 | -1 | 默认返回limit条最新的逐笔记录。limit 默认为200 |
根据区间查询当日逐笔 | 具体数值 | 具体数值 | 举例:beginIndex=10, endIndex=100 ,会返回包含10到99的 90条记录。如果limit设置为20,则会返回10到29的20条记录。 |
返回
TigerOpenAPI.Quote.Response.QuoteTradeTickResponse
source
结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class QuoteTradeTickResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<TradeTickItem> Data { get; set; }
}
}
返回数据可通过QuoteTradeTickResponse.Data
属性访问,返回TradeTickItem
对象,其中TigerOpenAPI.Quote.Response.TradeTickItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
beginIndex | long | 返回数据的实际开始索引 |
endIndex | long | 返回数据的实际结束索引 |
symbol | string | 请求的股票代码 |
items | List<TickPoint> | 包含逐笔成交数据的List,单条逐笔成交数据保存在TickPoint对象中 |
其中TickPoint
对象字段如下:
字段 | 类型 | 说明 |
---|---|---|
time | long | 交易时间戳 |
price | double | 成交价 |
volume | long | 成交量 |
type | string | "+"表示主动买入,"-"表示主动卖出,"*"表示中性 |
具体字段可通过对象的属性,如TickPoint.Time
进行访问, 或通过对象的JsonConvert.SerializeObject()
方法转换为字符串
示例
static async Task<QuoteTradeTickResponse?> GetTradeTickAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteTradeTickResponse> request = new TigerRequest<QuoteTradeTickResponse>()
{
ApiMethodName = QuoteApiService.TRADE_TICK,
ModelValue = new QuoteTradeTickModel()
{
Symbols = new List<string> { "00700" },
BeginIndex = 0,
EndIndex = 10
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"00700",
"beginIndex":0,
"endIndex":10,
"items":[
{
"price":366.6,
"time":1678064400047,
"volume":4,
"type":"*"
},
{
"price":373.37,
"time":1678064533066,
"volume":1,
"type":"*"
},
{
"price":374.8,
"time":1678064533066,
"volume":941,
"type":"*"
},
{
"price":374.8,
"time":1678064533120,
"volume":1081,
"type":"*"
},
{
"price":365.732,
"time":1678064704553,
"volume":500,
"type":"*"
},
{
"price":366.163,
"time":1678064704770,
"volume":200,
"type":"*"
},
{
"price":364,
"time":1678065634761,
"volume":200,
"type":"*"
},
{
"price":364,
"time":1678065634761,
"volume":600,
"type":"*"
},
{
"price":364,
"time":1678065634761,
"volume":100,
"type":"*"
},
{
"price":364,
"time":1678065634761,
"volume":200,
"type":"*"
}
]
}
],
"code":0,
"message":"success",
"timestamp":1678073932004,
"sign":"Yb90+yYB5IhAv2Sz3hbKSvdB4IsGD+C9+qgkS3lWpgrZq/EQNi3/qcXe2xJiBkSMtBsLFhuPJYu83rUdJJPtv5PiteOPFWHKRub9Z7zmtSDCfhSHPUOlCnBexW4xFWJBYUqQ8l34zhf1eeLHQhXrkcWv2zY392u+DxaiFyIIxpU="
}
获取股票交易信息
对应的请求类:TigerRequest(QuoteApiService.QUOTE_STOCK_TRADE)
说明
获取股票交易所需的信息,包括每手股数,报价精度及股价最小变动单位
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbols | array | Yes | 股票代码列表,上限为:50 |
返回
TigerOpenAPI.Quote.Response.QuoteStockTradeResponse
source
结构如下:
namespace TigerOpenAPI.Quote.Response
{
public class QuoteStockTradeResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<QuoteStockTradeItem> Data { get; set; }
}
}
返回数据可通过QuoteStockTradeResponse.Data
属性访问,返回QuoteStockTradeItem
对象,其中TigerOpenAPI.Quote.Response.QuoteStockTradeItem
属性如下:
名称 | 类型 | 说明 |
---|---|---|
symbol | String | 股票代码 |
lotSize | Integer | 每手股数 |
spreadScale | Integer | 报价精度 |
minTick | Double | 股价最小变动单位 |
具体字段可通过对象的属性,如QuoteStockTradeItem.Symbol
进行访问, 或通过对象的JsonConvert.SerializeObject()
方法转换为字符串
示例
static async Task<QuoteStockTradeResponse?> GetStockTradeInfoAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteStockTradeResponse> request = new TigerRequest<QuoteStockTradeResponse>()
{
ApiMethodName = QuoteApiService.QUOTE_STOCK_TRADE,
ModelValue = new QuoteStockTradeModel()
{
Symbols = new List<string> { "AAPL", "TSLA" }
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":[
{
"symbol":"AAPL",
"lotSize":1,
"spreadScale":1,
"minTick":0.01
},
{
"symbol":"TSLA",
"lotSize":1,
"spreadScale":1,
"minTick":0.01
}
],
"code":0,
"message":"success",
"timestamp":1678085243684,
"sign":"fBAjMdmHGwtnMy0Uc8Zmo4Rp6E/jUCrsrc9gFRNEQYkGyrnYfiKk7n+4/ABg9rSt/MFcyfwjwCXU3n5pCNfQjMWhB0LUgiPFDkHATyNcxA/glFlzJEXgYDb2Eauy8A94zx72NlUdr53li/fTLdl31/gW6O0ltmesWaF2je20l6s="
}
获取股票资金流数据
对应的请求类:TigerRequest(QuoteApiService.CAPITAL_FLOW)
说明
获取股票资金净流入数据,包括最近一个交易日的实时分钟数据,和不同周期的净流入数据。对不同的时间粒度,支持获取以日、周、月、季、半年、年为单位的数据,最高限制为1200条,默认为200条。
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbol | string | Yes | 股票代码 |
period | string | Yes | 数据类型,取值范围(intraday:实时,day:日,week:周,month:月,year:年,quarter:季度,6month:半年) |
market | string | Yes | US 美股,HK港股,CN A股(实时资金流向不支持A股) |
begin_time | long | No | 开始时间,默认:-1,单位:毫秒(ms),前闭后开区间,即查询结果会包含起始时间数据,如查询周/月/年K线,会返回包含当前周期的数据(如:起始时间为周三,会返回从这周一的数据) |
end_time | long | No | 结束时间,默认:-1,单位:毫秒(ms) |
limit | integer | No | 单次请求返回数量,不传默认是200,limit不能超过1200,如果limit设置大于1200,只会返回1200条数据 |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Quote.Response.QuoteCapitalFlowResponse
source
返回数据可通过QuoteCapitalFlowResponse.Data
方法访问,返回CapitalFlowItem
对象,其中TigerOpenAPI.Quote.Response.CapitalFlowItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
period | string | 周期 |
items | array | 资金净流入数组,字段参考下面说明 |
其中具体时间点的数据items属性如下:
字段 | 类型 | 说明 |
---|---|---|
netInflow | double | 净流入金额,负数表示流出 |
time | string | 标的所在市场时区的时间字符串,实时数据时为"11-25 12:48:00 EST"格式,非实时数据为"2022-11-22"格式 |
timestamp | long | 时间 |
示例
static async Task<QuoteCapitalFlowResponse?> GetStockCaptialFlowAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteCapitalFlowResponse> request = new TigerRequest<QuoteCapitalFlowResponse>()
{
ApiMethodName = QuoteApiService.CAPITAL_FLOW,
ModelValue = new QuoteCapitalFlowModel()
{
Symbol = "AAPL",
Market = Market.US,
Period = CapitalPeriod.day.Value,
BeginTime = DateUtil.ConvertTimestamp("2023-02-25", CustomTimeZone.NY_ZONE),
EndTime = DateUtil.ConvertTimestamp("2023-03-06", CustomTimeZone.NY_ZONE)
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":{
"symbol":"AAPL",
"period":"day",
"items":[
{
"time":"2023-02-27",
"timestamp":1677474000000,
"netInflow":-288999272.76
},
{
"time":"2023-02-28",
"timestamp":1677560400000,
"netInflow":-346622305.07
},
{
"time":"2023-03-01",
"timestamp":1677646800000,
"netInflow":-174423081.65
},
{
"time":"2023-03-02",
"timestamp":1677733200000,
"netInflow":-41739535.19
},
{
"time":"2023-03-03",
"timestamp":1677819600000,
"netInflow":-41875734.65
}
]
},
"code":0,
"message":"success",
"timestamp":1678086433167,
"sign":"gP8aYcWjmajCC4ns1gc/zPpDURIZT/1zbfsAFXWi0PxhGqtwNvFvi7bPKH/fa7llQKml5ZPyspKjJTynFkyICFOBLTU0zAqBcg3vsH4CiUD1R3tugzz+ov89nuj75vUEli8IiEvTZ96KNCGel482jqnakE8JBblnibI7DRztGC4="
}
获取股票资金分布
对应的请求类:TigerRequest(QuoteApiService.CAPITAL_DISTRIBUTION)
说明
获取股票资金分布。
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbol | string | Yes | 股票代码 |
market | string | Yes | US 美股,HK港股,CN A股 |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Quote.Response.QuoteCapitalDistributionResponse
source
返回数据可通过QuoteCapitalDistributionResponse.Data
属性访问,返回CapitalDistributionItem
对象,其中TigerOpenAPI.Quote.Response.CapitalDistributionItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
netInflow | double | 净流入金额(资金总流入 - 资金总流出),负数表示流出 |
inAll | double | 资金流入总额(大单+中单+小单) |
inBig | double | 大单流入 |
inMid | double | 中单流入 |
inSmall | double | 小单流入 |
outAll | double | 资金流出总额(大单+中单+小单) |
outBig | double | 大单流出 |
outMid | double | 中单流出 |
outSmall | double | 小单流出 |
示例
static async Task<QuoteCapitalDistributionResponse?> GetStockCaptialDistributionAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteCapitalDistributionResponse> request = new TigerRequest<QuoteCapitalDistributionResponse>()
{
ApiMethodName = QuoteApiService.CAPITAL_DISTRIBUTION,
ModelValue = new QuoteCapitalModel()
{
Symbol = "AAPL",
Market = Market.US
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":{
"symbol":"AAPL",
"netInflow":-41875734.65,
"inAll":3520585989.78,
"inBig":518600830.5749997,
"inMid":319845745.91350037,
"inSmall":2682139413.2889147,
"outAll":3562461724.42,
"outBig":393653507.9933999,
"outMid":303140576.80540013,
"outSmall":2865667639.6250362
},
"code":0,
"message":"success",
"timestamp":1678090250440,
"sign":"rdlz75GgCaz/yTNgnZE38lR7k8/J5ONbemBM1j5H0r6WQqpGOmCxTsjXVtktJOXMCDltnSesljHryq8cEmBabnPlXJPRHMDj1CoNLz36oFYT1rfzBPFUp8PDXpWvT5trdGz5CV2ILEBwS3IkG3viS7oRg5/qiqXf19d9PGMQBPU="
}
获取港股经纪商买卖席位
对应的请求类:TigerRequest(QuoteApiService.STOCK_BROKER)
说明
获取港股经纪商买卖席位。
参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
symbol | string | Yes | 股票代码 |
limit | integer | No | 单次请求返回买方/卖方席位数量,不传默认是40,limit不能超过60,如果limit设置大于60,只会返回60条数据 |
lang | string | No | 语言支持: zh_CN,zh_TW,en_US, 默认: en_US |
返回
TigerOpenAPI.Quote.Response.QuoteStockBrokerResponse
source
返回数据可通过QuoteStockBrokerResponse.Data
属性访问,返回StockBrokerItem
对象,其中TigerOpenAPI.Quote.Response.StockBrokerItem
属性如下:
字段 | 类型 | 说明 |
---|---|---|
symbol | string | 股票代码 |
bidBroker | array | 买方不同价格档位数组,字段参考LevelBroker说明 |
askBroker | array | 卖方不同价格档位数组,字段参考LevelBroker说明 |
其中LevelBroker属性如下:
字段 | 类型 | 说明 |
---|---|---|
level | integer | 价格档位 |
price | double | 价格 |
brokerCount | integer | 席位数量 |
broker | array | 经纪商买卖席位列表 |
示例
static async Task<QuoteStockBrokerResponse?> GetStockBrokerAsync(QuoteClient quoteClient)
{
TigerRequest<QuoteStockBrokerResponse> request = new TigerRequest<QuoteStockBrokerResponse>()
{
ApiMethodName = QuoteApiService.STOCK_BROKER,
ModelValue = new QuoteStockBrokerModel()
{
Symbol = "00700",// only support HK market's symbol
Limit = 10
}
};
return await quoteClient.ExecuteAsync(request);
}
返回示例
{
"data":{
"symbol":"00700",
"bidBroker":[
{
"level":1,
"price":363,
"brokerCount":1,
"broker":[
{
"id":"3537",
"name":"Citadel"
}
]
},
{
"level":2,
"price":362.8,
"brokerCount":9,
"broker":[
{
"id":"8302",
"name":"FUTU Securities"
},
{
"id":"9055",
"name":"UBS"
},
{
"id":"6996",
"name":"China Investment"
},
{
"id":"6997",
"name":"China Investment"
},
{
"id":"6999",
"name":"China Investment"
},
{
"id":"8949",
"name":"BOCI"
},
{
"id":"5369",
"name":"DBS Vickers"
},
{
"id":"7385",
"name":"Citigroup"
},
{
"id":"9063",
"name":"UBS"
}
]
}
],
"askBroker":[
{
"level":1,
"price":363.2,
"brokerCount":3,
"broker":[
{
"id":"6997",
"name":"China Investment"
},
{
"id":"4456",
"name":"Barclays Asia"
},
{
"id":"4456",
"name":"Barclays Asia"
}
]
},
{
"level":2,
"price":363.4,
"brokerCount":2,
"broker":[
{
"id":"7386",
"name":"Citigroup"
},
{
"id":"5338",
"name":"J.P. Morgan"
}
]
},
{
"level":3,
"price":363.6,
"brokerCount":3,
"broker":[
{
"id":"6387",
"name":"Morgan Stanley"
},
{
"id":"2398",
"name":"KGI Asia"
},
{
"id":"8597",
"name":"KGI Asia"
}
]
},
{
"level":4,
"price":363.8,
"brokerCount":2,
"broker":[
{
"id":"8463",
"name":"FUTU Securities"
},
{
"id":"3436",
"name":"Goldman Sachs"
}
]
}
]
},
"code":0,
"message":"success",
"timestamp":1678091160144,
"sign":"FcjmxHoOE0livAqO6OPU9mOkq+08GvT6ZLJdmWT3N58QngR6qovqtcvSjmTvdKuW2STAeTqWmLdVvqgvb2pM4+/b/hv/jn0J+XyWXR5XgKOnISU/I9eXLmTdmlZ9bAFNNKL6aWJbX4Diyb6RTa0ToH+r2qBXoMEc7ZYAX3/3GGY="
}