证券

以下操作均通过 QuoteClient.ExecuteAsync 调用。

STOCK_DETAIL 与 QUOTE_OVERNIGHT 需额外行情权限,未开通时服务端返回权限错误码。

获取股票行情快照

操作名

QuoteApiService.BRIEF = brief。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<QuoteRealTimeQuoteResponse>

ModelValue: QuoteSymbolModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—

返回

响应数据结构:List<RealTimeQuoteItem>。

字段C# 类型说明
Symbolstring证券代码
Opendouble开盘价
Highdouble最高价
Lowdouble最低价
Closedouble收盘价
PreClosedouble昨收价
LatestPricedouble最新价
AskPricedouble卖一价
BidPricedouble买一价
Amountdouble成交额
AskSizelong卖一量
BidSizelong买一量
Volumelong成交量
LatestTimelong最新成交时间戳
StatusStockStatus证券交易状态
HourTradingHourTrading盘前或盘后行情数据

HourTrading:HourTrading

字段C# 类型说明
Tagstring盘前盘后时段标识
LatestTimestring最新成交时间
LatestPricedouble最新价
PreClosedouble昨收价
Volumelong成交量
Timestamplong行情时间戳

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—
BeginTimeInt64begin_timeCLR 默认值;序列化时省略OptionalTimestamp or date format; maintain chronological order
PeriodTimeLineTypeperiodCLR 默认值;序列化时省略Optional—

返回

响应数据结构:List<TimelineItem>。

字段C# 类型说明
Symbolstring证券代码
Periodstring分时周期
PreClosedouble昨收价
IntradayTimelineRange常规时段数据
PreMarketTimelineRange盘前时段数据
AfterHoursTimelineRange盘后时段数据

时段数据:TimelineRange

字段C# 类型说明
BeginTimelong时段开始时间戳
EndTimelong时段结束时间戳
ItemsList<TimelinePoint>分时数据点列表

Items 项:TimelinePoint

字段C# 类型说明
Timelong分时点时间戳
Volumelong整数成交量
Pricedouble最新价
AvgPricedouble均价
VolumeDecimaldouble?小数成交量

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—
BeginTimeInt64begin_timeCLR 默认值;序列化时省略OptionalTimestamp or date format; maintain chronological order
PeriodTimeLineTypeperiodCLR 默认值;序列化时省略Optional—
SecTypeSecType?sec_typenull;序列化时省略Optional数字货币当日分时设为 SecType.CC

返回

响应数据结构:List<TimelineItem>。

字段C# 类型说明
Symbolstring证券代码
Periodstring分时周期
PreClosedouble昨收价
IntradayTimelineRange常规时段数据
PreMarketTimelineRange盘前时段数据
AfterHoursTimelineRange盘后时段数据

时段数据:TimelineRange

字段C# 类型说明
BeginTimelong时段开始时间戳
EndTimelong时段结束时间戳
ItemsList<TimelinePoint>分时数据点列表

Items 项:TimelinePoint

字段C# 类型说明
Timelong分时点时间戳
Volumelong整数成交量
Pricedouble最新价
AvgPricedouble均价
VolumeDecimaldouble?小数成交量

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—
DatestringdatenullOptional—
RightRightOptionrightCLR 默认值;序列化时省略Optional—
RigthRightOption不序列化Right 的别名Optional已弃用的公开拼写错误属性;设置后会写入 Right,新代码请使用 Right

返回

响应数据结构:List<HistoryTimelineItem>。

字段C# 类型说明
Symbolstring证券代码
ItemsList<TimelinePoint>历史分时数据点列表

Items 项:TimelinePoint

字段C# 类型说明
Timelong分时点时间戳
Volumelong整数成交量
Pricedouble最新价
AvgPricedouble均价
VolumeDecimaldouble?小数成交量

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—
PeriodstringperiodKLineType.day.ValueOptional—
RightRightOptionrightRightOption.brOptional—
RigthRightOption不序列化Right 的别名Optional已弃用的公开拼写错误属性;设置后会写入 Right,新代码请使用 Right
BeginTimeInt64begin_timeCLR 默认值;序列化时省略OptionalTimestamp or date format; maintain chronological order
EndTimeInt64end_timeCLR 默认值;序列化时省略OptionalTimestamp or date format; maintain chronological order
LimitInt32limit300OptionalPositive integer
PageTokenstringpage_tokennullOptional—
SecTypeSecType?sec_typenull;序列化时省略Optional数字货币 K 线设为 SecType.CC

返回

响应数据结构:List<KlineItem>。

字段C# 类型说明
Symbolstring证券代码
PeriodstringK 线周期
NextPageTokenstring下一页标记
ItemsList<KlinePoint>K 线数据点列表

Items 项:KlinePoint

字段C# 类型说明
Timelong时间戳
Volumelong整数成交量
Opendouble开盘价
Highdouble最高价
Lowdouble最低价
Closedouble收盘价
Amountdouble成交额
VolumeDecimaldouble?小数成交量

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—
BeginIndexInt64begin_indexCLR 默认值;序列化时省略Optional—
EndIndexInt64end_indexCLR 默认值;序列化时省略Optional—
LimitInt32limit200OptionalPositive integer

返回

响应数据结构:List<TradeTickItem>。

字段C# 类型说明
Symbolstring证券代码
BeginIndexlong本次数据起始索引
EndIndexlong本次数据结束索引
ItemsList<TickPoint>逐笔成交列表

Items 项:TickPoint

字段C# 类型说明
Timelong成交时间戳
Volumelong成交量
Pricedouble成交价
Typestring价格变动方向
Condstring成交条件
PartCodestring参与者代码
PartNamestring参与者名称

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—

返回

响应数据结构:List<RealTimeQuoteItem>。

字段C# 类型说明
Symbolstring证券代码
Opendouble开盘价
Highdouble最高价
Lowdouble最低价
Closedouble收盘价
PreClosedouble昨收价
LatestPricedouble最新价
AskPricedouble卖一价
BidPricedouble买一价
Amountdouble成交额
AskSizelong卖一量
BidSizelong买一量
Volumelong成交量
LatestTimelong最新成交时间戳
StatusStockStatus证券交易状态
HourTradingHourTrading盘前或盘后行情数据

HourTrading:HourTrading

字段C# 类型说明
Tagstring盘前盘后时段标识
LatestTimestring最新成交时间
LatestPricedouble最新价
PreClosedouble昨收价
Volumelong成交量
Timestamplong行情时间戳

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
MarketMarketmarketCLR 默认值;序列化时省略OptionalEnum value
PackageNamePackageNamepackage_nameCLR 默认值;序列化时省略Optional—
IncludeOTCBooleaninclude_otcCLR 默认值;序列化时省略Optional—

返回

响应数据类型:List<SymbolNameItem>。

字段C# 类型说明
Symbolstring证券代码
Namestring名称

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list

返回

响应数据类型:List<QuoteStockTradeItem>。

字段C# 类型说明
Symbolstring证券代码
LotSizeint每手数量
SpreadScaleint价差小数位数
MinTickdouble最小变动价位

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
MarketMarketmarketCLR 默认值;序列化时省略OptionalEnum value

返回

响应数据结构:List<QuoteDepthItem>。

字段C# 类型说明
Symbolstring证券代码
AsksList<DepthEntry>卖盘深度列表
BidsList<DepthEntry>买盘深度列表

Asks / Bids 项:DepthEntry

字段C# 类型说明
Pricedouble委托价
Volumelong对应价位数量
Countint对应价位委托笔数

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingCLR 默认值;序列化时省略Optional—
TradeSessionstringtrade_sessionnullOptional—

返回

响应数据类型:List<QuoteDelayItem>。

字段C# 类型说明
Symbolstring证券代码
Opendouble开盘价
Highdouble最高价
Lowdouble最低价
Closedouble收盘价
PreClosedouble昨收价
Halteddouble停牌标识值
Volumelong成交量
Timelong行情时间戳
Delayint延时秒数

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
SymbolstringsymbolnullRequired—
LimitInt32limitCLR 默认值;序列化时省略OptionalPositive integer

返回

响应数据结构:StockBrokerItem。

字段C# 类型说明
Symbolstring证券代码
BidBrokerList<LevelBroker>买盘经纪商档位列表
AskBrokerList<LevelBroker>卖盘经纪商档位列表

BidBroker / AskBroker 项:LevelBroker

字段C# 类型说明
Levelint盘口档位
BrokerCountint该档经纪商数量
Pricedouble档位价格
BrokerList<Broker>经纪商列表

Broker 项:Broker

字段C# 类型说明
Idstring经纪商标识
Namestring名称

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
SymbolstringsymbolnullRequired—
MarketMarketmarketCLR 默认值;序列化时省略OptionalEnum value

返回

响应数据类型:CapitalDistributionItem。

字段C# 类型说明
Symbolstring证券代码
NetInflowdouble净流入金额
InAlldouble总流入金额
InBigdouble大单流入金额
InMiddouble中单流入金额
InSmalldouble小单流入金额
OutAlldouble总流出金额
OutBigdouble大单流出金额
OutMiddouble中单流出金额
OutSmalldouble小单流出金额

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
SymbolstringsymbolnullRequired—
MarketMarketmarketCLR 默认值;序列化时省略OptionalEnum value
PeriodstringperiodCapitalPeriod.day.ValueOptional—
BeginTimeInt64begin_timeCLR 默认值;序列化时省略OptionalTimestamp or date format; maintain chronological order
EndTimeInt64end_timeCLR 默认值;序列化时省略OptionalTimestamp or date format; maintain chronological order
LimitInt32limit200OptionalPositive integer

返回

响应数据结构:CapitalFlowItem。

字段C# 类型说明
Symbolstring证券代码
Periodstring资金流周期
ItemsList<CapitalFlowPoint>资金流数据点列表

Items 项:CapitalFlowPoint

字段C# 类型说明
Timestring时间文本
Timestamplong时间戳
NetInflowdouble净流入金额

示例

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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
MarketMarketmarketCLR 默认值;序列化时省略OptionalEnum value
LimitInt32limitCLR 默认值;序列化时省略OptionalPositive integer
PageInt32pageCLR 默认值;序列化时省略OptionalPositive integer
OrderBystringorder_bynullOptional—
DirectionstringdirectionnullOptional—

返回

响应数据结构:BrokerHoldPageItem。

字段C# 类型说明
Pageint当前页码
TotalPageint总页数
TotalCountint总记录数
ItemsList<BrokerHoldItem>经纪商持仓列表

Items 项:BrokerHoldItem

字段C# 类型说明
OrgIdstring机构标识
OrgNamestring机构名称
Datestring日期
Marketstring市场
SharesHoldlong持股数量
MarketValuedouble持仓市值
BuyAmountdouble当日买入金额
BuyAmount5double5 日买入金额
BuyAmount20double20 日买入金额
BuyAmount60double60 日买入金额

示例

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 次。


Did this page help you?