文档中心 > API类目 > yunos-data-platform

yunos.dataplatform.api.zebra.general.get (数据服务分发平台对外通用接口)

通过此api可以查询数据服务平台数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
context RdamContext 可选 请求上下文参数
rdam_request RdamGenericRequest 可选 请求对象
  • └ trace_id
  • String
  • 可选
  • 对于top接口值可以随便填
  • 请求标示

响应参数

名称 类型 示例值 描述
result RdamResponse {"code":200,"message":"success","traceId":"DET9CO1CRAIVCMJTNGU8","dataList":[{"more":{"tplId":"stockAppCard_tplId_001"},"itemList":[{"stockCode":"000001","stockType":"1","more":{"tradeTime":"34200|54000|1|34200|41400|46800|54000","udfStockType":"1","stockStatus":"1","openPrice":"3106.99"},"changePercent":"-0.02%","weblink":"http://wap.eastmoney.com/3g/stock/StockIndex,000001.shtml","change":"-0.48","name":"上证指数","currentPrice":"3109.55","totalValue":"31605005563909"},{"stockCode":"399001","stockType":"2","more":{"tradeTime":"34200|54000|1|34200|41400|46800|54000","udfStockType":"5","stockStatus":"1","openPrice":"10879.99"},"changePercent":"0.07%","weblink":"http://wap.eastmoney.com/3g/stock/StockIndex,399001.shtml","change":"7.74","name":"深证成指","currentPrice":"10890.69","totalValue":"22400953714133"}],"secondLogoText":"上证指数"}]} result
  • └ message
  • String
  • "success"
  • message
  • └ data_list
  • String []
  • [{"more":{"tplId":"stockAppCard_tplId_001"},"itemList":[{"stockCode":"000001","stockType":"1","more":{"tradeTime":"34200|54000|1|34200|41400|46800|54000","udfStockType":"1","stockStatus":"1","openPrice":"3106.99"},"changePercent":"-0.02%","weblink":"http://wap.eastmoney.com/3g/stock/StockIndex,000001.shtml","change":"-0.48","name":"上证指数","currentPrice":"3109.55","totalValue":"31605005563909"},{"stockCode":"399001","stockType":"2","more":{"tradeTime":"34200|54000|1|34200|41400|46800|54000","udfStockType":"5","stockStatus":"1","openPrice":"10879.99"},"changePercent":"0.07%","weblink":"http://wap.eastmoney.com/3g/stock/StockIndex,399001.shtml","change":"7.74","name":"深证成指","currentPrice":"10890.69","totalValue":"22400953714133"}],"secondLogoText":"上证指数"}] dataList
  • dataList
  • └ more
  • String
  • more
  • └ trace_id
  • String
  • traceId
  • └ code
  • Number
  • code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosDataplatformApiZebraGeneralGetRequest req = new YunosDataplatformApiZebraGeneralGetRequest();
RdamContext context = new RdamContext();
context.setPropertyMap("{\"user_key\":\"xxx\"}");
req.setContext(context);
RdamGenericRequest rdam_request = new RdamGenericRequest();
rdam_request.setConMap("{\"apiId\":\"stock_content_0000\",\"cmd\":\"0000011,3990012\",\"srvId\":\"stock\"}");
rdam_request.setTraceId("对于top接口值可以随便填");
req.setRdamRequest(rdam_request);
YunosDataplatformApiZebraGeneralGetResponse response = client.execute(req);

响应示例

  • XML示例
  • JSON示例
<yunos_dataplatform_api_zebra_general_get_response>
    <result>
        <message>&quot;success&quot;</message>
        <data_list>
            <string>[{&quot;more&quot;:{&quot;tplId&quot;:&quot;stockAppCard_tplId_001&quot;}</string>
            <string>&quot;itemList&quot;:[{&quot;stockCode&quot;:&quot;000001&quot;</string>
            <string>&quot;stockType&quot;:&quot;1&quot;</string>
            <string>&quot;more&quot;:{&quot;tradeTime&quot;:&quot;34200|54000|1|34200|41400|46800|54000&quot;</string>
            <string>&quot;udfStockType&quot;:&quot;1&quot;</string>
            <string>&quot;stockStatus&quot;:&quot;1&quot;</string>
            <string>&quot;openPrice&quot;:&quot;3106.99&quot;}</string>
            <string>&quot;changePercent&quot;:&quot;-0.02%&quot;</string>
            <string>&quot;weblink&quot;:&quot;http://wap.eastmoney.com/3g/stock/StockIndex</string>
            <string>000001.shtml&quot;</string>
            <string>&quot;change&quot;:&quot;-0.48&quot;</string>
            <string>&quot;name&quot;:&quot;上证指数&quot;</string>
            <string>&quot;currentPrice&quot;:&quot;3109.55&quot;</string>
            <string>&quot;totalValue&quot;:&quot;31605005563909&quot;}</string>
            <string>{&quot;stockCode&quot;:&quot;399001&quot;</string>
            <string>&quot;stockType&quot;:&quot;2&quot;</string>
            <string>&quot;more&quot;:{&quot;tradeTime&quot;:&quot;34200|54000|1|34200|41400|46800|54000&quot;</string>
            <string>&quot;udfStockType&quot;:&quot;5&quot;</string>
            <string>&quot;stockStatus&quot;:&quot;1&quot;</string>
            <string>&quot;openPrice&quot;:&quot;10879.99&quot;}</string>
            <string>&quot;changePercent&quot;:&quot;0.07%&quot;</string>
            <string>&quot;weblink&quot;:&quot;http://wap.eastmoney.com/3g/stock/StockIndex</string>
            <string>399001.shtml&quot;</string>
            <string>&quot;change&quot;:&quot;7.74&quot;</string>
            <string>&quot;name&quot;:&quot;深证成指&quot;</string>
            <string>&quot;currentPrice&quot;:&quot;10890.69&quot;</string>
            <string>&quot;totalValue&quot;:&quot;22400953714133&quot;}]</string>
            <string>&quot;secondLogoText&quot;:&quot;上证指数&quot;}]	dataList</string>
        </data_list>
        <more>略</more>
        <trace_id>略</trace_id>
        <code>略</code>
    </result>
</yunos_dataplatform_api_zebra_general_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部