证券

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

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

获取实时行情快照

操作名

QuoteApiService.BRIEF = brief. 使用服务端方法 brief。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteRealTimeQuoteResponse>

ModelValue: QuoteSymbolModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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"
    }
  ]
}

获取盘前盘后分时

操作名

QuoteApiService.HOUR_TRADING_TIMELINE = hour_trading_timeline. 使用服务端方法 hour_trading_timeline。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteTimelineResponse>

ModelValue: QuoteTimelineModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)Optional
TradeSessionstringtrade_sessionnullOptional
BeginTimeInt64begin_timeNone (omitted if not set)OptionalTimestamp or date format; maintain chronological order
PeriodTimeLineTypeperiodNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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}
        ]
      }
    }
  ]
}

获取分时数据

操作名

QuoteApiService.TIMELINE = timeline. 使用服务端方法 timeline。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteTimelineResponse>

ModelValue: QuoteTimelineModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)Optional
TradeSessionstringtrade_sessionnullOptional
BeginTimeInt64begin_timeNone (omitted if not set)OptionalTimestamp or date format; maintain chronological order
PeriodTimeLineTypeperiodNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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}
        ]
      }
    }
  ]
}

获取历史分时数据

操作名

QuoteApiService.HISTORY_TIMELINE = history_timeline. 使用服务端方法 history_timeline。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteHistoryTimelineResponse>

ModelValue: QuoteHistoryTimelineModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)Optional
TradeSessionstringtrade_sessionnullOptional
DatestringdatenullOptional
RightRightOptionrightNone (omitted if not set)Optional

返回

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 { Account = tradeClient.GetDefaultAccount, 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}
      ]
    }
  ]
}

获取 K 线数据

操作名

QuoteApiService.KLINE = kline. 使用服务端方法 kline。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteKlineResponse>

ModelValue: QuoteKlineModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)Optional
TradeSessionstringtrade_sessionnullOptional
PeriodstringperiodKLineType.day.ValueOptional
RightRightOptionrightRightOption.brOptional
BeginTimeInt64begin_timeNone (omitted if not set)OptionalTimestamp or date format; maintain chronological order
EndTimeInt64end_timeNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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}
      ]
    }
  ]
}

获取逐笔成交

操作名

QuoteApiService.TRADE_TICK = trade_tick. 使用服务端方法 trade_tick。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteTradeTickResponse>

ModelValue: QuoteTradeTickModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)Optional
TradeSessionstringtrade_sessionnullOptional
BeginIndexInt64begin_indexNone (omitted if not set)Optional
EndIndexInt64end_indexNone (omitted if not set)Optional
LimitInt32limit200OptionalPositive integer
TradeSessionstringtrade_sessionnullOptional

返回

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 { Account = tradeClient.GetDefaultAccount, 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": "-"}
      ]
    }
  ]
}

获取实时行情

操作名

QuoteApiService.QUOTE_REAL_TIME = quote_real_time. 使用服务端方法 quote_real_time。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteRealTimeQuoteResponse>

ModelValue: QuoteSymbolModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, Symbols = new List<string> { "AAPL" } }
};
QuoteRealTimeQuoteResponse? response = await quoteClient.ExecuteAsync(request);

响应类型

List<RealTimeQuoteItem>? data = response?.Data; // response 或 data 缺失时为 null

获取可卖空股票

操作名

QuoteApiService.QUOTE_SHORTABLE_STOCKS = quote_shortable_stocks. 使用服务端方法 quote_shortable_stocks。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<SymbolNameResponse>

ModelValue: QuoteMarketModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
MarketMarketmarketNone (omitted if not set)OptionalEnum value
PackageNamePackageNamepackage_nameNone (omitted if not set)Optional
IncludeOTCBooleaninclude_otcNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, Market = Market.US }
};
SymbolNameResponse? response = await quoteClient.ExecuteAsync(request);

响应类型

List<SymbolNameItem>? data = response?.Data; // response 或 data 缺失时为 null

获取股票交易信息

操作名

QuoteApiService.QUOTE_STOCK_TRADE = quote_stock_trade. 使用服务端方法 quote_stock_trade。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteStockTradeResponse>

ModelValue: QuoteStockTradeModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
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 { Account = tradeClient.GetDefaultAccount, Symbols = new List<string> { "AAPL" } }
};
QuoteStockTradeResponse? response = await quoteClient.ExecuteAsync(request);

响应类型

List<QuoteStockTradeItem>? data = response?.Data; // response 或 data 缺失时为 null

获取深度行情

操作名

QuoteApiService.QUOTE_DEPTH = quote_depth. 使用服务端方法 quote_depth。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteDepthResponse>

ModelValue: QuoteDepthModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
MarketMarketmarketNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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}
      ]
    }
  ]
}

获取延迟行情

操作名

QuoteApiService.QUOTE_DELAY = quote_delay. 使用服务端方法 quote_delay。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteDelayResponse>

ModelValue: QuoteSymbolModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
Symbols列表,元素为 stringsymbolsnullRequiredNon-empty list
IncludeHourTradingBooleaninclude_hour_tradingNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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
    }
  ]
}

获取经纪商席位

操作名

QuoteApiService.STOCK_BROKER = stock_broker. 使用服务端方法 stock_broker。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteStockBrokerResponse>

ModelValue: QuoteStockBrokerModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
SymbolstringsymbolnullRequired
LimitInt32limitNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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}]}
    ]
  }
}

获取资金分布

操作名

QuoteApiService.CAPITAL_DISTRIBUTION = capital_distribution. 使用服务端方法 capital_distribution。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteCapitalDistributionResponse>

ModelValue: QuoteCapitalModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
SymbolstringsymbolnullRequired
MarketMarketmarketNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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
  }
}

获取资金流向

操作名

QuoteApiService.CAPITAL_FLOW = capital_flow. 使用服务端方法 capital_flow。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteCapitalFlowResponse>

ModelValue: QuoteCapitalFlowModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
SymbolstringsymbolnullRequired
MarketMarketmarketNone (omitted if not set)OptionalEnum value
PeriodstringperiodCapitalPeriod.day.ValueOptional
BeginTimeInt64begin_timeNone (omitted if not set)OptionalTimestamp or date format; maintain chronological order
EndTimeInt64end_timeNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, 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}
    ]
  }
}

获取经纪商持仓

操作名

QuoteApiService.BROKER_HOLD = broker_hold. 使用服务端方法 broker_hold。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<QuoteBrokerHoldResponse>

ModelValue: QuoteBrokerHoldModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullNot applicableTradeClient uses DefaultAccount when empty
MarketMarketmarketNone (omitted if not set)OptionalEnum value
LimitInt32limitNone (omitted if not set)OptionalPositive integer
PageInt32pageNone (omitted if not set)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 { Account = tradeClient.GetDefaultAccount, Market = Market.US, Limit = 20, Page = 1 }
};
QuoteBrokerHoldResponse? response = await quoteClient.ExecuteAsync(request);

响应类型

BrokerHoldPageItem? data = response?.Data; // response 或 data 缺失时为 null

Did this page help you?