证券
以下操作均通过 QuoteClient.ExecuteAsync 调用。
STOCK_DETAIL 与 QUOTE_OVERNIGHT 需额外行情权限,未开通时服务端返回权限错误码。
获取实时行情快照
操作名
QuoteApiService.BRIEF = brief. 使用服务端方法 brief。这是 *ApiService 常量,不是客户端成员方法。
请求
TigerRequest<QuoteRealTimeQuoteResponse>ModelValue: QuoteSymbolModel.
参数
| SDK property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
返回
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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
BeginTime | Int64 | begin_time | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Period | TimeLineType | period | None (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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
BeginTime | Int64 | begin_time | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Period | TimeLineType | period | None (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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
Date | string | date | null | Optional | — |
Right | RightOption | right | None (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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
Period | string | period | KLineType.day.Value | Optional | — |
Right | RightOption | right | RightOption.br | Optional | — |
BeginTime | Int64 | begin_time | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndTime | Int64 | end_time | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 300 | Optional | Positive integer |
PageToken | string | page_token | null | Optional | — |
返回
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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
BeginIndex | Int64 | begin_index | None (omitted if not set) | Optional | — |
EndIndex | Int64 | end_index | None (omitted if not set) | Optional | — |
Limit | Int32 | limit | 200 | Optional | Positive integer |
TradeSession | string | trade_session | null | Optional | — |
返回
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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
返回
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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
PackageName | PackageName | package_name | None (omitted if not set) | Optional | — |
IncludeOTC | Boolean | include_otc | None (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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
Market | Market | market | None (omitted if not set) | Optional | Enum 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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbols | 列表,元素为 string | symbols | null | Required | Non-empty list |
IncludeHourTrading | Boolean | include_hour_trading | None (omitted if not set) | Optional | — |
TradeSession | string | trade_session | null | Optional | — |
返回
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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbol | string | symbol | null | Required | — |
Limit | Int32 | limit | None (omitted if not set) | Optional | Positive 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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbol | string | symbol | null | Required | — |
Market | Market | market | None (omitted if not set) | Optional | Enum 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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Symbol | string | symbol | null | Required | — |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
Period | string | period | CapitalPeriod.day.Value | Optional | — |
BeginTime | Int64 | begin_time | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
EndTime | Int64 | end_time | None (omitted if not set) | Optional | Timestamp or date format; maintain chronological order |
Limit | Int32 | limit | 200 | Optional | Positive 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 property | C# type | API field | SDK default | Required | Constraints |
|---|---|---|---|---|---|
Lang | Language | lang | None (omitted if not set) | no | — |
Account | string (nullable) | account | null | Not applicable | TradeClient uses DefaultAccount when empty |
Market | Market | market | None (omitted if not set) | Optional | Enum value |
Limit | Int32 | limit | None (omitted if not set) | Optional | Positive integer |
Page | Int32 | page | None (omitted if not set) | Optional | Positive integer |
OrderBy | string | order_by | null | Optional | — |
Direction | string | direction | null | Optional | — |
返回
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 缺失时为 nullUpdated 7 days ago
