{
    "openapi": "3.0.0",
    "info": {
        "title": "股票行情分析 - API文档",
        "version": "1.0.0",
        "description": "code参数传递股票代码（支持批量查询），如港股hk00001，沪市sh000001，深市sz000001。指数成交量的单位是手，个股是股。每个字段和下标的解释，请阅读<a target=\"_blank\" href=\"https:\/\/www.tianapi.com\/article\/91\">股票行情分析接口返回字段的释义<\/a>。数据来自互联网，仅供参考。不得用于对外展示，只支持自用学习研究。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/finance\/index": {
            "get": {
                "summary": "股票行情分析",
                "tags": [
                    "股票行情分析"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "code",
                        "in": "query",
                        "description": "股票代码，多个以半角逗号,分隔，最多10个",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "hk00700",
                            "description": "股票代码，多个以半角逗号,分隔，最多10个"
                        }
                    },
                    {
                        "name": "list",
                        "in": "query",
                        "description": "单个0、批量1",
                        "required": true,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "单个0、批量1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "hk00700": {
                                            "type": "string",
                                            "example": "TENCENT,腾讯控股,370.000...",
                                            "description": "股票代码及行情数据"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "hk00700": "TENCENT,腾讯控股,370.000,372.400,389.000,362.000,386.000,13.600,3.652,386.00000,386.20001,10456493145,27816871,0.000,0.000,658.000,297.000,2022\/03\/22,15:56",
                                        "sz000001": "平安银行,14.590,14.590,15.180,15.220,14.500,15.170,15.180,162865658,2443174055.850,167246,15.170,136600,15.160,159700,15.150,43400,15.140,83700,15.130,425700,15.180,452300,15.190,990759,15.200,553483,15.210,863424,15.220,2022-03-22,15:00:03,00"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "股票行情分析",
                "tags": [
                    "股票行情分析"
                ],
                "description": "",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "code": {
                                        "type": "string",
                                        "example": "hk00700",
                                        "description": "股票代码，多个以半角逗号,分隔，最多10个"
                                    },
                                    "list": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "单个0、批量1"
                                    }
                                },
                                "required": [
                                    "key",
                                    "code",
                                    "list"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "hk00700": {
                                            "type": "string",
                                            "example": "TENCENT,腾讯控股,370.000...",
                                            "description": "股票代码及行情数据"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "hk00700": "TENCENT,腾讯控股,370.000,372.400,389.000,362.000,386.000,13.600,3.652,386.00000,386.20001,10456493145,27816871,0.000,0.000,658.000,297.000,2022\/03\/22,15:56",
                                        "sz000001": "平安银行,14.590,14.590,15.180,15.220,14.500,15.170,15.180,162865658,2443174055.850,167246,15.170,136600,15.160,159700,15.150,43400,15.140,83700,15.130,425700,15.180,452300,15.190,990759,15.200,553483,15.210,863424,15.220,2022-03-22,15:00:03,00"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}