选股器

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": {
    "items": [
      {"symbol": "AAPL", "latestPrice": 308.91, "changeRate": -0.0735, "volume": 176739024, "marketValue": 3250000000000.0},
      {"symbol": "TSLA", "latestPrice": 285.50, "changeRate": 0.0312, "volume": 95000000, "marketValue": 915000000000.0}
    ],
    "totalCount": 156
  }
}

获取选股器标签

value QuoteClient::get_market_scanner_tags(utility::string_t market = U(""), const value &multi_tags_fields = value::null())

说明

获取行业、概念等多标签筛选字段的可选标签。

参数

参数名类型是否必填描述
marketutility::string_tNo市场代码,如 U("US")U("HK");SDK 默认为空字符串
multi_tags_fieldsconst value&NoJSON 字符串数组;SDK 默认为 value::null(),常用值为 IndustryConcept

返回

web::json::value。每项包含市场、标签字段和可选标签列表;服务端错误也以 JSON 响应返回。

示例

#include "tigerapi/client_config.h"
#include "tigerapi/quote_client.h"

int main() {
    TIGER_API::ClientConfig config(false, U("your_config_directory_path"));
    TIGER_API::QuoteClient client(config);
    web::json::value fields = web::json::value::array();
    fields[0] = web::json::value::string(U("Industry"));
    fields[1] = web::json::value::string(U("Concept"));
    auto result = client.get_market_scanner_tags(U("US"), fields);
    utility::ucout << result.serialize() << std::endl;
}

响应依据

SDK 返回未建模的 web::json::value,仓库没有已验证 fixture。上面的字段说明来自当前请求构造和既有接口语义,不提供合成 JSON payload。


Did this page help you?