证券

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

STOCK_DETAILQUOTE_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

返回

QuoteRealTimeQuoteResponse inherits TigerResponse; its data property is 列表,元素为 RealTimeQuoteItem. Key SDK fields: Symbol: string, Open: Double, High: Double, Low: Double, Close: Double, PreClose: Double, LatestPrice: Double, AskPrice: Double.

示例

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

返回

QuoteTimelineResponse inherits TigerResponse; its data property is 列表,元素为 TimelineItem. Key SDK fields: Symbol: string, Period: string, PreClose: Double, Intraday: TimelineRange, PreMarket: TimelineRange, AfterHours: TimelineRange.

示例

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

返回

QuoteTimelineResponse inherits TigerResponse; its data property is 列表,元素为 TimelineItem. Key SDK fields: Symbol: string, Period: string, PreClose: Double, Intraday: TimelineRange, PreMarket: TimelineRange, AfterHours: TimelineRange.

示例

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

返回

QuoteHistoryTimelineResponse inherits TigerResponse; its data property is 列表,元素为 HistoryTimelineItem. Key SDK fields: Symbol: string, Items: list of TimelinePoint.

示例

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

返回

QuoteKlineResponse inherits TigerResponse; its data property is 列表,元素为 KlineItem. Key SDK fields: Symbol: string, Period: string, NextPageToken: string, Items: list of KlinePoint.

示例

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

返回

QuoteTradeTickResponse inherits TigerResponse; its data property is 列表,元素为 TradeTickItem. Key SDK fields: Symbol: string, BeginIndex: long, EndIndex: long, Items: list of TickPoint.

示例

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

返回

QuoteRealTimeQuoteResponse inherits TigerResponse; its data property is 列表,元素为 RealTimeQuoteItem. Key SDK fields: Symbol: string, Open: Double, High: Double, Low: Double, Close: Double, PreClose: Double, LatestPrice: Double, AskPrice: Double.

示例

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

返回

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

返回

QuoteStockTradeResponse inherits TigerResponse; its data property is 列表,元素为 QuoteStockTradeItem. Key SDK fields: Symbol: string, LotSize: Int32, SpreadScale: Int32, 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 propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no
Accountstring (nullable)accountnullNot applicableAccount 是继承字段;QuoteClient 不会从 TigerConfig.DefaultAccount 注入,null 时序列化省略
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
MarketMarketmarketCLR 默认值;序列化时省略OptionalEnum value

返回

QuoteDepthResponse inherits TigerResponse; its data property is 列表,元素为 QuoteDepthItem. Key SDK fields: Symbol: string, Asks: list of DepthEntry, Bids: list of DepthEntry.

示例

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

返回

QuoteDelayResponse inherits TigerResponse; its data property is 列表,元素为 QuoteDelayItem. Key SDK fields: Symbol: string, Open: Double, High: Double, Low: Double, Close: Double, PreClose: Double, Halted: Double, Volume: long.

示例

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

返回

QuoteStockBrokerResponse inherits TigerResponse; its data property is StockBrokerItem. Key SDK fields: Symbol: string, BidBroker: list of LevelBroker, AskBroker: list of LevelBroker.

示例

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

返回

QuoteCapitalDistributionResponse inherits TigerResponse; its data property is CapitalDistributionItem. Key SDK fields: Symbol: string, NetInflow: Double, InAll: Double, InBig: Double, InMid: Double, InSmall: Double, OutAll: Double, OutBig: 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 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

返回

QuoteCapitalFlowResponse inherits TigerResponse; its data property is CapitalFlowItem. Key SDK fields: Symbol: string, Period: string, Items: list of CapitalFlowPoint.

示例

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

返回

QuoteBrokerHoldResponse inherits TigerResponse; its data property is BrokerHoldPageItem. Key SDK fields: Page: int, TotalPage: int, TotalCount: int, Items: list of BrokerHoldItem.

示例

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?