证券
以下操作均通过 QuoteClient.ExecuteAsync 调用。
STOCK_DETAIL 与 QUOTE_OVERNIGHT 需额外行情权限,未开通时服务端返回权限错误码。
获取股票行情快照
操作名
QuoteApiService.BRIEF = brief。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteRealTimeQuoteResponse>ModelValue: QuoteSymbolModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
返回
响应数据结构:List<RealTimeQuoteItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Open | double | 开盘价 |
High | double | 最高价 |
Low | double | 最低价 |
Close | double | 收盘价 |
PreClose | double | 昨收价 |
LatestPrice | double | 最新价 |
AskPrice | double | 卖一价 |
BidPrice | double | 买一价 |
Amount | double | 成交额 |
AskSize | long | 卖一量 |
BidSize | long | 买一量 |
Volume | long | 成交量 |
LatestTime | long | 最新成交时间戳 |
Status | StockStatus | 证券交易状态 |
HourTrading | HourTrading | 盘前或盘后行情数据 |
HourTrading:HourTrading
| 字段 | C# 类型 | 说明 |
|---|---|---|
Tag | string | 盘前盘后时段标识 |
LatestTime | string | 最新成交时间 |
LatestPrice | double | 最新价 |
PreClose | double | 昨收价 |
Volume | long | 成交量 |
Timestamp | long | 行情时间戳 |
示例
TigerRequest<QuoteRealTimeQuoteResponse> request = new()
{
ApiMethodName = QuoteApiService.BRIEF,
ModelValue = new QuoteSymbolModel { Symbols = new List<string> { "AAPL" } }
};
QuoteRealTimeQuoteResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<RealTimeQuoteItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"open": 304.81,
"high": 310.69,
"low": 300.0,
"close": 308.91,
"preClose": 333.43,
"latestPrice": 308.91,
"latestTime": 1785528000000,
"askPrice": 310.97,
"askSize": 400,
"bidPrice": 310.89,
"bidSize": 80,
"volume": 176739024,
"status": "NORMAL"
}
]
}频率限制
基础额度:每分钟 60 次。
获取盘前盘后分时
操作名
QuoteApiService.HOUR_TRADING_TIMELINE = hour_trading_timeline。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteTimelineResponse>ModelValue: QuoteTimelineModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
BeginTime | Int64 | begin_time | CLR 默认值;序列化时省略 | Optional | Timestamp or date format; maintain chronological order |
Period | TimeLineType | period | CLR 默认值;序列化时省略 | Optional | — |
返回
响应数据结构:List<TimelineItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Period | string | 分时周期 |
PreClose | double | 昨收价 |
Intraday | TimelineRange | 常规时段数据 |
PreMarket | TimelineRange | 盘前时段数据 |
AfterHours | TimelineRange | 盘后时段数据 |
时段数据:TimelineRange
| 字段 | C# 类型 | 说明 |
|---|---|---|
BeginTime | long | 时段开始时间戳 |
EndTime | long | 时段结束时间戳 |
Items | List<TimelinePoint> | 分时数据点列表 |
Items 项:TimelinePoint
| 字段 | C# 类型 | 说明 |
|---|---|---|
Time | long | 分时点时间戳 |
Volume | long | 整数成交量 |
Price | double | 最新价 |
AvgPrice | double | 均价 |
VolumeDecimal | double? | 小数成交量 |
示例
TigerRequest<QuoteTimelineResponse> request = new()
{
ApiMethodName = QuoteApiService.HOUR_TRADING_TIMELINE,
ModelValue = new QuoteTimelineModel { Symbols = new List<string> { "AAPL" }, BeginTime = 1780272000000L }
};
QuoteTimelineResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<TimelineItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"period": "day",
"preClose": 333.43,
"preMarket": {
"beginTime": 1785420000000,
"items": [
{"time": 1785420000000, "price": 302.50, "avgPrice": 302.50, "volume": 85200}
]
},
"intraday": {
"items": [
{"time": 1785441000000, "price": 304.81, "avgPrice": 304.81, "volume": 1523400}
]
}
}
]
}频率限制
基础额度:每分钟 120 次。
获取分时数据
操作名
QuoteApiService.TIMELINE = timeline。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteTimelineResponse>ModelValue: QuoteTimelineModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
BeginTime | Int64 | begin_time | CLR 默认值;序列化时省略 | Optional | Timestamp or date format; maintain chronological order |
Period | TimeLineType | period | CLR 默认值;序列化时省略 | Optional | — |
SecType | SecType? | sec_type | null;序列化时省略 | Optional | 数字货币当日分时设为 SecType.CC |
返回
响应数据结构:List<TimelineItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Period | string | 分时周期 |
PreClose | double | 昨收价 |
Intraday | TimelineRange | 常规时段数据 |
PreMarket | TimelineRange | 盘前时段数据 |
AfterHours | TimelineRange | 盘后时段数据 |
时段数据:TimelineRange
| 字段 | C# 类型 | 说明 |
|---|---|---|
BeginTime | long | 时段开始时间戳 |
EndTime | long | 时段结束时间戳 |
Items | List<TimelinePoint> | 分时数据点列表 |
Items 项:TimelinePoint
| 字段 | C# 类型 | 说明 |
|---|---|---|
Time | long | 分时点时间戳 |
Volume | long | 整数成交量 |
Price | double | 最新价 |
AvgPrice | double | 均价 |
VolumeDecimal | double? | 小数成交量 |
示例
TigerRequest<QuoteTimelineResponse> request = new()
{
ApiMethodName = QuoteApiService.TIMELINE,
ModelValue = new QuoteTimelineModel { Symbols = new List<string> { "AAPL" }, BeginTime = 1780272000000L }
};
QuoteTimelineResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<TimelineItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"period": "day",
"preClose": 333.43,
"intraday": {
"items": [
{"time": 1785441000000, "price": 304.81, "avgPrice": 304.81, "volume": 1523400},
{"time": 1785441060000, "price": 305.12, "avgPrice": 304.96, "volume": 892100}
]
}
}
]
}频率限制
基础额度:每分钟 120 次。
获取历史分时数据
操作名
QuoteApiService.HISTORY_TIMELINE = history_timeline。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteHistoryTimelineResponse>ModelValue: QuoteHistoryTimelineModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
Date | string | date | null | Optional | — |
Right | RightOption | right | CLR 默认值;序列化时省略 | Optional | — |
Rigth | RightOption | 不序列化 | Right 的别名 | Optional | 已弃用的公开拼写错误属性;设置后会写入 Right,新代码请使用 Right |
返回
响应数据结构:List<HistoryTimelineItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Items | List<TimelinePoint> | 历史分时数据点列表 |
Items 项:TimelinePoint
| 字段 | C# 类型 | 说明 |
|---|---|---|
Time | long | 分时点时间戳 |
Volume | long | 整数成交量 |
Price | double | 最新价 |
AvgPrice | double | 均价 |
VolumeDecimal | double? | 小数成交量 |
示例
TigerRequest<QuoteHistoryTimelineResponse> request = new()
{
ApiMethodName = QuoteApiService.HISTORY_TIMELINE,
ModelValue = new QuoteHistoryTimelineModel { Symbols = new List<string> { "AAPL" } }
};
QuoteHistoryTimelineResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<HistoryTimelineItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"items": [
{"time": 1785355800000, "price": 310.50, "avgPrice": 310.50, "volume": 1245600},
{"time": 1785355860000, "price": 310.80, "avgPrice": 310.65, "volume": 534200}
]
}
]
}频率限制
基础额度:每分钟 60 次。
获取 K 线数据
操作名
QuoteApiService.KLINE = kline。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteKlineResponse>ModelValue: QuoteKlineModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
Period | string | period | KLineType.day.Value | Optional | — |
Right | RightOption | right | RightOption.br | Optional | — |
Rigth | RightOption | 不序列化 | Right 的别名 | Optional | 已弃用的公开拼写错误属性;设置后会写入 Right,新代码请使用 Right |
BeginTime | Int64 | begin_time | CLR 默认值;序列化时省略 | Optional | Timestamp or date format; maintain chronological order |
EndTime | Int64 | end_time | CLR 默认值;序列化时省略 | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 300 | Optional | Positive integer |
PageToken | string | page_token | null | Optional | — |
SecType | SecType? | sec_type | null;序列化时省略 | Optional | 数字货币 K 线设为 SecType.CC |
返回
响应数据结构:List<KlineItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Period | string | K 线周期 |
NextPageToken | string | 下一页标记 |
Items | List<KlinePoint> | K 线数据点列表 |
Items 项:KlinePoint
| 字段 | C# 类型 | 说明 |
|---|---|---|
Time | long | 时间戳 |
Volume | long | 整数成交量 |
Open | double | 开盘价 |
High | double | 最高价 |
Low | double | 最低价 |
Close | double | 收盘价 |
Amount | double | 成交额 |
VolumeDecimal | double? | 小数成交量 |
示例
TigerRequest<QuoteKlineResponse> request = new()
{
ApiMethodName = QuoteApiService.KLINE,
ModelValue = new QuoteKlineModel { Symbols = new List<string> { "AAPL" }, Period = "day", BeginTime = 1780272000000L, EndTime = 1782864000000L }
};
QuoteKlineResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<KlineItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"period": "day",
"nextPageToken": null,
"items": [
{"time": 1785355200000, "open": 310.50, "high": 315.20, "low": 308.00, "close": 312.45, "volume": 58234100, "amount": 18156789012.50},
{"time": 1785441600000, "open": 312.00, "high": 314.80, "low": 300.00, "close": 308.91, "volume": 176739024, "amount": 53821456789.00}
]
}
]
}频率限制
基础额度:每分钟 60 次。
获取逐笔成交
操作名
QuoteApiService.TRADE_TICK = trade_tick。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteTradeTickResponse>ModelValue: QuoteTradeTickModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
BeginIndex | Int64 | begin_index | CLR 默认值;序列化时省略 | Optional | — |
EndIndex | Int64 | end_index | CLR 默认值;序列化时省略 | Optional | — |
Limit | Int32 | limit | 200 | Optional | Positive integer |
返回
响应数据结构:List<TradeTickItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
BeginIndex | long | 本次数据起始索引 |
EndIndex | long | 本次数据结束索引 |
Items | List<TickPoint> | 逐笔成交列表 |
Items 项:TickPoint
| 字段 | C# 类型 | 说明 |
|---|---|---|
Time | long | 成交时间戳 |
Volume | long | 成交量 |
Price | double | 成交价 |
Type | string | 价格变动方向 |
Cond | string | 成交条件 |
PartCode | string | 参与者代码 |
PartName | string | 参与者名称 |
示例
TigerRequest<QuoteTradeTickResponse> request = new()
{
ApiMethodName = QuoteApiService.TRADE_TICK,
ModelValue = new QuoteTradeTickModel { Symbols = new List<string> { "AAPL" }, Limit = 20 }
};
QuoteTradeTickResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<TradeTickItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"beginIndex": 523400,
"endIndex": 523402,
"items": [
{"time": 1785527980000, "price": 308.90, "volume": 150, "type": "+"},
{"time": 1785527980005, "price": 308.91, "volume": 200, "type": "-"}
]
}
]
}频率限制
基础额度:每分钟 120 次。
获取实时行情
操作名
QuoteApiService.QUOTE_REAL_TIME = quote_real_time。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteRealTimeQuoteResponse>ModelValue: QuoteSymbolModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
返回
响应数据结构:List<RealTimeQuoteItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Open | double | 开盘价 |
High | double | 最高价 |
Low | double | 最低价 |
Close | double | 收盘价 |
PreClose | double | 昨收价 |
LatestPrice | double | 最新价 |
AskPrice | double | 卖一价 |
BidPrice | double | 买一价 |
Amount | double | 成交额 |
AskSize | long | 卖一量 |
BidSize | long | 买一量 |
Volume | long | 成交量 |
LatestTime | long | 最新成交时间戳 |
Status | StockStatus | 证券交易状态 |
HourTrading | HourTrading | 盘前或盘后行情数据 |
HourTrading:HourTrading
| 字段 | C# 类型 | 说明 |
|---|---|---|
Tag | string | 盘前盘后时段标识 |
LatestTime | string | 最新成交时间 |
LatestPrice | double | 最新价 |
PreClose | double | 昨收价 |
Volume | long | 成交量 |
Timestamp | long | 行情时间戳 |
示例
TigerRequest<QuoteRealTimeQuoteResponse> request = new()
{
ApiMethodName = QuoteApiService.QUOTE_REAL_TIME,
ModelValue = new QuoteSymbolModel { Symbols = new List<string> { "AAPL" } }
};
QuoteRealTimeQuoteResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<RealTimeQuoteItem>? data = response?.Data; // response 或 data 缺失时为 null频率限制
基础额度:每分钟 120 次。
获取可卖空股票
操作名
QuoteApiService.QUOTE_SHORTABLE_STOCKS = quote_shortable_stocks。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<SymbolNameResponse>ModelValue: QuoteMarketModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Market | Market | market | CLR 默认值;序列化时省略 | Optional | Enum value |
PackageName | PackageName | package_name | CLR 默认值;序列化时省略 | Optional | — |
IncludeOTC | Boolean | include_otc | CLR 默认值;序列化时省略 | Optional | — |
返回
响应数据类型:List<SymbolNameItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Name | string | 名称 |
示例
TigerRequest<SymbolNameResponse> request = new()
{
ApiMethodName = QuoteApiService.QUOTE_SHORTABLE_STOCKS,
ModelValue = new QuoteMarketModel { Market = Market.US }
};
SymbolNameResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<SymbolNameItem>? data = response?.Data; // response 或 data 缺失时为 null频率限制
基础额度:每分钟 60 次。
获取股票交易信息
操作名
QuoteApiService.QUOTE_STOCK_TRADE = quote_stock_trade。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteStockTradeResponse>ModelValue: QuoteStockTradeModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
返回
响应数据类型:List<QuoteStockTradeItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
LotSize | int | 每手数量 |
SpreadScale | int | 价差小数位数 |
MinTick | double | 最小变动价位 |
示例
TigerRequest<QuoteStockTradeResponse> request = new()
{
ApiMethodName = QuoteApiService.QUOTE_STOCK_TRADE,
ModelValue = new QuoteStockTradeModel { Symbols = new List<string> { "AAPL" } }
};
QuoteStockTradeResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<QuoteStockTradeItem>? data = response?.Data; // response 或 data 缺失时为 null频率限制
基础额度:每分钟 60 次。
获取深度行情
操作名
QuoteApiService.QUOTE_DEPTH = quote_depth。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteDepthResponse>ModelValue: QuoteDepthModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
Market | Market | market | CLR 默认值;序列化时省略 | Optional | Enum value |
返回
响应数据结构:List<QuoteDepthItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Asks | List<DepthEntry> | 卖盘深度列表 |
Bids | List<DepthEntry> | 买盘深度列表 |
Asks / Bids 项:DepthEntry
| 字段 | C# 类型 | 说明 |
|---|---|---|
Price | double | 委托价 |
Volume | long | 对应价位数量 |
Count | int | 对应价位委托笔数 |
示例
TigerRequest<QuoteDepthResponse> request = new()
{
ApiMethodName = QuoteApiService.QUOTE_DEPTH,
ModelValue = new QuoteDepthModel { Symbols = new List<string> { "AAPL" }, Market = Market.US }
};
QuoteDepthResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<QuoteDepthItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"asks": [
{"price": 310.97, "volume": 400, "count": 0},
{"price": 310.98, "volume": 200, "count": 0}
],
"bids": [
{"price": 310.89, "volume": 80, "count": 0},
{"price": 310.88, "volume": 300, "count": 0}
]
}
]
}频率限制
基础额度:每分钟 60 次。
获取延迟行情
操作名
QuoteApiService.QUOTE_DELAY = quote_delay。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteDelayResponse>ModelValue: QuoteSymbolModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | CLR 默认值;序列化时省略 | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
返回
响应数据类型:List<QuoteDelayItem>。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Open | double | 开盘价 |
High | double | 最高价 |
Low | double | 最低价 |
Close | double | 收盘价 |
PreClose | double | 昨收价 |
Halted | double | 停牌标识值 |
Volume | long | 成交量 |
Time | long | 行情时间戳 |
Delay | int | 延时秒数 |
示例
TigerRequest<QuoteDelayResponse> request = new()
{
ApiMethodName = QuoteApiService.QUOTE_DELAY,
ModelValue = new QuoteSymbolModel { Symbols = new List<string> { "AAPL" } }
};
QuoteDelayResponse? response = await quoteClient.ExecuteAsync(request);响应类型
List<QuoteDelayItem>? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": [
{
"symbol": "AAPL",
"open": 304.81,
"high": 310.69,
"low": 300.0,
"close": 308.91,
"preClose": 333.43,
"volume": 176739024,
"time": 1785528000000
}
]
}频率限制
基础额度:每分钟 10 次。
获取经纪商席位
操作名
QuoteApiService.STOCK_BROKER = stock_broker。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteStockBrokerResponse>ModelValue: QuoteStockBrokerModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbol | string | symbol | null | Required | — |
Limit | Int32 | limit | CLR 默认值;序列化时省略 | Optional | Positive integer |
返回
响应数据结构:StockBrokerItem。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
BidBroker | List<LevelBroker> | 买盘经纪商档位列表 |
AskBroker | List<LevelBroker> | 卖盘经纪商档位列表 |
BidBroker / AskBroker 项:LevelBroker
| 字段 | C# 类型 | 说明 |
|---|---|---|
Level | int | 盘口档位 |
BrokerCount | int | 该档经纪商数量 |
Price | double | 档位价格 |
Broker | List<Broker> | 经纪商列表 |
Broker 项:Broker
| 字段 | C# 类型 | 说明 |
|---|---|---|
Id | string | 经纪商标识 |
Name | string | 名称 |
示例
TigerRequest<QuoteStockBrokerResponse> request = new()
{
ApiMethodName = QuoteApiService.STOCK_BROKER,
ModelValue = new QuoteStockBrokerModel { Symbol = "AAPL", Limit = 20 }
};
QuoteStockBrokerResponse? response = await quoteClient.ExecuteAsync(request);响应类型
StockBrokerItem? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"symbol": "00700",
"bidBroker": [
{"id": "8137", "name": "法巴证券", "position": [{"price": 388.60, "volume": 500}]}
],
"askBroker": [
{"id": "4374", "name": "汇丰证券", "position": [{"price": 389.00, "volume": 200}]}
]
}
}频率限制
基础额度:每分钟 60 次。
获取资金分布
操作名
QuoteApiService.CAPITAL_DISTRIBUTION = capital_distribution。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteCapitalDistributionResponse>ModelValue: QuoteCapitalModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbol | string | symbol | null | Required | — |
Market | Market | market | CLR 默认值;序列化时省略 | Optional | Enum value |
返回
响应数据类型:CapitalDistributionItem。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
NetInflow | double | 净流入金额 |
InAll | double | 总流入金额 |
InBig | double | 大单流入金额 |
InMid | double | 中单流入金额 |
InSmall | double | 小单流入金额 |
OutAll | double | 总流出金额 |
OutBig | double | 大单流出金额 |
OutMid | double | 中单流出金额 |
OutSmall | double | 小单流出金额 |
示例
TigerRequest<QuoteCapitalDistributionResponse> request = new()
{
ApiMethodName = QuoteApiService.CAPITAL_DISTRIBUTION,
ModelValue = new QuoteCapitalModel { Symbol = "AAPL", Market = Market.US }
};
QuoteCapitalDistributionResponse? response = await quoteClient.ExecuteAsync(request);响应类型
CapitalDistributionItem? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"symbol": "AAPL",
"netInflow": -125000000.0,
"superIn": 850000000.0,
"superOut": 920000000.0,
"bigIn": 320000000.0,
"bigOut": 280000000.0,
"midIn": 150000000.0,
"midOut": 145000000.0,
"smallIn": 80000000.0,
"smallOut": 80000000.0
}
}频率限制
基础额度:每分钟 60 次。
获取资金流向
操作名
QuoteApiService.CAPITAL_FLOW = capital_flow。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteCapitalFlowResponse>ModelValue: QuoteCapitalFlowModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Symbol | string | symbol | null | Required | — |
Market | Market | market | CLR 默认值;序列化时省略 | Optional | Enum value |
Period | string | period | CapitalPeriod.day.Value | Optional | — |
BeginTime | Int64 | begin_time | CLR 默认值;序列化时省略 | Optional | Timestamp or date format; maintain chronological order |
EndTime | Int64 | end_time | CLR 默认值;序列化时省略 | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 200 | Optional | Positive integer |
返回
响应数据结构:CapitalFlowItem。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Symbol | string | 证券代码 |
Period | string | 资金流周期 |
Items | List<CapitalFlowPoint> | 资金流数据点列表 |
Items 项:CapitalFlowPoint
| 字段 | C# 类型 | 说明 |
|---|---|---|
Time | string | 时间文本 |
Timestamp | long | 时间戳 |
NetInflow | double | 净流入金额 |
示例
TigerRequest<QuoteCapitalFlowResponse> request = new()
{
ApiMethodName = QuoteApiService.CAPITAL_FLOW,
ModelValue = new QuoteCapitalFlowModel { Symbol = "AAPL", Market = Market.US, Period = "day", BeginTime = 1780272000000L }
};
QuoteCapitalFlowResponse? response = await quoteClient.ExecuteAsync(request);响应类型
CapitalFlowItem? data = response?.Data; // response 或 data 缺失时为 null返回示例
{
"code": 0,
"message": "success",
"timestamp": 1785528000000,
"data": {
"symbol": "AAPL",
"items": [
{"time": 1785441600000, "netInflow": -125000000.0, "superIn": 850000000.0, "superOut": 920000000.0}
]
}
}频率限制
基础额度:每分钟 60 次。
获取经纪商持仓
操作名
QuoteApiService.BROKER_HOLD = broker_hold。该常量用于设置 TigerRequest.ApiMethodName。
请求
TigerRequest<QuoteBrokerHoldResponse>ModelValue: QuoteBrokerHoldModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | CLR 默认值;序列化时省略 | no | — |
Account | string (nullable) | account | null | Not applicable | Account 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略 |
Market | Market | market | CLR 默认值;序列化时省略 | Optional | Enum value |
Limit | Int32 | limit | CLR 默认值;序列化时省略 | Optional | Positive integer |
Page | Int32 | page | CLR 默认值;序列化时省略 | Optional | Positive integer |
OrderBy | string | order_by | null | Optional | — |
Direction | string | direction | null | Optional | — |
返回
响应数据结构:BrokerHoldPageItem。
| 字段 | C# 类型 | 说明 |
|---|---|---|
Page | int | 当前页码 |
TotalPage | int | 总页数 |
TotalCount | int | 总记录数 |
Items | List<BrokerHoldItem> | 经纪商持仓列表 |
Items 项:BrokerHoldItem
| 字段 | C# 类型 | 说明 |
|---|---|---|
OrgId | string | 机构标识 |
OrgName | string | 机构名称 |
Date | string | 日期 |
Market | string | 市场 |
SharesHold | long | 持股数量 |
MarketValue | double | 持仓市值 |
BuyAmount | double | 当日买入金额 |
BuyAmount5 | double | 5 日买入金额 |
BuyAmount20 | double | 20 日买入金额 |
BuyAmount60 | double | 60 日买入金额 |
示例
TigerRequest<QuoteBrokerHoldResponse> request = new()
{
ApiMethodName = QuoteApiService.BROKER_HOLD,
ModelValue = new QuoteBrokerHoldModel { Market = Market.US, Limit = 20, Page = 1 }
};
QuoteBrokerHoldResponse? response = await quoteClient.ExecuteAsync(request);响应类型
BrokerHoldPageItem? data = response?.Data; // response 或 data 缺失时为 null频率限制
基础额度:每分钟 10 次。
Updated about 1 month ago
