港美股分析专家
港美股分析专家 · Ações GPT
tamp相关的api接口
提供tamp的各种接口,包括取数、产品分析、对比、筛选、组合研究等
POST /api/v1.0/14300001获取财富早餐资讯基于日期,获取财富早餐资讯
POST /api/v1.0/14300002获取收盘点评基于日期,获取收盘点评
POST /api/v1.0/14300003获取操盘必读基于日期,获取操盘必读
POST /api/v1.0/14300004获取午盘视点基于日期,获取午盘视点
POST /api/v1.0/14300005获取基金早班车基于日期,获取基金早班车
POST /api/v1.0/14300006获取股票基金要闻基于日期,获取股票基金要闻
POST /api/v1.0/14300007获取热点追踪基于日期,获取热点追踪
POST /api/v1.0/14300011A股的股票筛选工具A股的股票筛选工具(基于指数范围、行业、热点、基本面指标、基金重仓搜索A股)
POST /api/v1.0/15300001获取美股信息POST /api/v1.0/15300002Get the top 20 best (sorted by expected Sharpe Ratio) ETFs based on the provided filters with a lot of additional ETF information.POST /api/v1.0/15300003Get the top 20 stocks with the highest expected Sharpe based on the provided filters.POST /api/v1.0/15300004Get all performance details for the given portfolio, best presented in table formatPOST /api/v1.0/15300005Get sector, country, and holding exposures for the given portfolio and the markdown of respective chartsPOST /api/v1.0/15300006Portfolio assessment with summary, expected performance, recommendations, downside protection. Each section helps understanding portfolio insights.POST /api/v1.0/15300007Get macro insights of the global economy or a specific region based on the provided filters.POST /api/v1.0/15300008Get recent historical returns of all individual items in your portfolio, represented as a heat map imageGET /api/v1.0/16300000/stock_sse_summary上海证券交易所-股票数据总貌上海证券交易所-股票数据总貌
GET /api/v1.0/16300000/stock_szse_summary深圳证券交易所-股票数据总貌深圳证券交易所-股票数据总貌
GET /api/v1.0/16300000/stock_szse_area_summary深圳证券交易所-市场总貌-地区交易排序深圳证券交易所-市场总貌-地区交易排序
GET /api/v1.0/16300000/stock_szse_sector_summary深圳证券交易所-统计资料-股票行业成交数据深圳证券交易所-统计资料-股票行业成交数据
GET /api/v1.0/16300000/stock_financial_report_sina财务报表-三大报表财务报表-三大报表
GET /api/v1.0/16300000/stock_financial_analysis_indicator财务分析-财务指标财务分析-财务指标
Esquema API original
{
"openapi": "3.1.0",
"info": {
"title": "tamp相关的api接口",
"description": "提供tamp的各种接口,包括取数、产品分析、对比、筛选、组合研究等",
"version": "1.0.0"
},
"servers": [
{
"url": "https://new-tamp-ai-dev.thinkive.com"
}
],
"paths": {
"/api/v1.0/14300001": {
"post": {
"summary": "获取财富早餐资讯",
"description": "基于日期,获取财富早餐资讯",
"operationId": "url_wealth_breakfast_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300002": {
"post": {
"summary": "获取收盘点评",
"description": "基于日期,获取收盘点评",
"operationId": "url_close_post_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300003": {
"post": {
"summary": "获取操盘必读",
"description": "基于日期,获取操盘必读",
"operationId": "url_trading_info_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300004": {
"post": {
"summary": "获取午盘视点",
"description": "基于日期,获取午盘视点",
"operationId": "url_midday_post_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300005": {
"post": {
"summary": "获取基金早班车",
"description": "基于日期,获取基金早班车",
"operationId": "url_fund_early_bus_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300006": {
"post": {
"summary": "获取股票基金要闻",
"description": "基于日期,获取股票基金要闻",
"operationId": "url_stock_fund_news_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300007": {
"post": {
"summary": "获取热点追踪",
"description": "基于日期,获取热点追踪",
"operationId": "url_hot_track_api",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"endDate": {
"type": "string",
"format": "date",
"description": "The end date for the operation, formatted as YYYYMMDD.",
"example": "20231130"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Result of the operation."
}
}
}
}
}
},
"400": {
"description": "Bad request due to invalid input parameters."
}
}
}
},
"/api/v1.0/14300011": {
"post": {
"summary": "A股的股票筛选工具",
"description": "A股的股票筛选工具(基于指数范围、行业、热点、基本面指标、基金重仓搜索A股)",
"operationId": "Stocks_selection",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"customer_date_list": {
"type": "array",
"items": {
"type": "string",
"format": "date"
},
"example": [
"2023-11-10"
]
},
"use_info": {
"type": "boolean",
"example": false
},
"industry": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"801120"
]
},
"fundamentals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"indicator": {
"type": "string",
"example": "total_mktval"
},
"filter_value": {
"type": "array",
"items": {
"type": "number"
},
"example": [
100000000000,
null
]
}
}
}
},
"heavy_holdings": {
"type": "object",
"properties": {
"target_type": {
"type": "string",
"example": "fund"
},
"target_code": {
"type": "string",
"example": "110022"
}
}
}
}
}
}
}
}
}
},
"/api/v1.0/15300001": {
"post": {
"operationId": "Get_US_Stock_Detail",
"summary": "获取美股信息",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"ticker": {
"type": "string",
"description": "The ticker symbol of the security"
},
"include_news_and_ai_sentiment": {
"type": "boolean",
"description": "Whether to include AI sentiment analysis in the response"
}
}
}
}
}
}
}
},
"/api/v1.0/15300002": {
"post": {
"operationId": "postTopETFs",
"summary": "Get the top 20 best (sorted by expected Sharpe Ratio) ETFs based on the provided filters with a lot of additional ETF information.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"philosophy": {
"type": "string",
"enum": [
"Actively Managed",
"Passively Managed",
"Strategic Beta"
]
},
"is_diversified": {
"type": "boolean"
},
"max_expense_ratio": {
"type": "number"
},
"asset_class": {
"type": "string",
"enum": [
"US Large Cap Equities",
"US Mid Cap Equities",
"US Small Cap Equities",
"Developed Total Market Equities (Ex-US)",
"Emerging Total Market Equities",
"Private Equity",
"US Government Bonds",
"US Municipal Bonds",
"US Corporate Bonds",
"Developed Total Market Bonds",
"Emerging Total Market Bonds",
"Global Inflation-linked Bonds",
"Gold",
"Other Commodities",
"Real Estate",
"Cryptocurrencies",
"Cash & Equivalents",
"Other Currencies",
"Unknown"
]
},
"listed_country": {
"type": "string",
"enum": [
"US",
"CA"
]
}
}
}
}
}
}
}
},
"/api/v1.0/15300003": {
"post": {
"operationId": "postTopStocks",
"summary": "Get the top 20 stocks with the highest expected Sharpe based on the provided filters.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"sector": {
"type": "string",
"enum": [
"Healthcare",
"Energy",
"Technology",
"Financial Services",
"Basic Materials",
"Industrials",
"Real Estate",
"Consumer Defensive",
"Manufacturing",
"Consumer Cyclical",
"Communication Services",
"Information",
"Retail Trade",
"Professional, Scientific, and Technical Services",
"Transportation and Warehousing",
"Finance and Insurance",
"Health Care and Social Assistance",
"Utilities",
"Educational Services",
"Mining, Quarrying, and Oil and Gas Extraction",
"Administrative and Support and Waste Management and Remediation Services",
"Agriculture, Forestry, Fishing and Hunting",
"Construction",
"Wholesale Trade",
"Arts, Entertainment, and Recreation",
"Real Estate and Rental and Leasing",
"Accommodation and Food Services",
"Management of Companies and Enterprises"
]
},
"min_marketcap": {
"type": "number"
},
"country": {
"type": "string",
"enum": [
"US",
"CA"
]
},
"sort_by": {
"type": "string",
"enum": [
"expected_sharpe",
"ai_sentiment_score",
"expected_return",
"market_cap"
]
},
"sort_order": {
"type": "string",
"enum": [
"descending",
"ascending"
]
}
}
}
}
}
}
}
},
"/api/v1.0/15300004": {
"post": {
"operationId": "getPortfolioDetails",
"summary": "Get all performance details for the given portfolio, best presented in table format",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"portfolio": {
"$ref": "#/components/schemas/Portfolio"
}
},
"example": [
{
"portfolio": [
{
"T": "AAPL",
"A": 5000
},
{
"T": "VTI",
"A": 4000
},
{
"T": "CUR:USD",
"A": 2000
}
]
}
]
}
}
}
}
}
},
"/api/v1.0/15300005": {
"post": {
"operationId": "getPortfolioExposures",
"summary": "Get sector, country, and holding exposures for the given portfolio and the markdown of respective charts",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"portfolio": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Portfolio"
}
}
},
"example": {
"portfolio": [
{
"T": "AAPL",
"A": 5000
},
{
"T": "VWO",
"A": 3000
},
{
"T": "CUR:USD",
"A": 2000
}
]
}
}
}
}
}
}
},
"/api/v1.0/15300006": {
"post": {
"operationId": "getPortfoliossessment",
"summary": "Portfolio assessment with summary, expected performance, recommendations, downside protection. Each section helps understanding portfolio insights.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"portfolio": {
"$ref": "#/components/schemas/Portfolio"
}
},
"example": [
{
"portfolio": [
{
"T": "AAPL",
"A": 5000
},
{
"T": "VTI",
"A": 4000
},
{
"T": "CUR:USD",
"A": 2000
}
]
}
]
}
}
}
}
}
},
"/api/v1.0/15300007": {
"post": {
"operationId": "postMacroInsights",
"summary": "Get macro insights of the global economy or a specific region based on the provided filters.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"region": {
"type": "string",
"enum": [
"US",
"Canada",
"World"
]
}
}
}
}
}
}
}
},
"/api/v1.0/15300008": {
"post": {
"operationId": "get_portfolio_item_cumulative_returns",
"summary": "Get recent historical returns of all individual items in your portfolio, represented as a heat map image",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"portfolio": {
"$ref": "#/components/schemas/Portfolio"
}
},
"example": [
{
"portfolio": [
{
"T": "AAPL",
"A": 5000
},
{
"T": "VTI",
"A": 4000
},
{
"T": "CUR:USD",
"A": 2000
}
]
}
]
}
}
}
}
}
},
"/api/v1.0/16300000/stock_sse_summary": {
"get": {
"summary": "上海证券交易所-股票数据总貌",
"description": "上海证券交易所-股票数据总貌",
"operationId": "getStockSSESummary",
"responses": {
"200": {
"description": "Successful response with summary information of SSE stocks."
},
"400": {
"description": "Bad request due to invalid input parameters."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/api/v1.0/16300000/stock_szse_summary": {
"get": {
"summary": "深圳证券交易所-股票数据总貌",
"description": "深圳证券交易所-股票数据总貌",
"operationId": "getStockSZSESummary",
"parameters": [
{
"name": "date",
"in": "query",
"description": "Date for which to retrieve the stock summary, formatted as YYYYMMDD.",
"required": true,
"schema": {
"type": "string",
"pattern": "^\\d{8}$",
"example": "20200619"
}
}
],
"responses": {
"200": {
"description": "Successful response with summary information of SZSE stocks."
},
"400": {
"description": "Bad request due to invalid input parameters."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/api/v1.0/16300000/stock_szse_area_summary": {
"get": {
"summary": "深圳证券交易所-市场总貌-地区交易排序",
"description": "深圳证券交易所-市场总貌-地区交易排序",
"operationId": "getstockszseareasummary",
"parameters": [
{
"name": "date",
"in": "query",
"description": "Date for which to retrieve the stock summary, formatted as YYYYMMDD.",
"required": true,
"schema": {
"type": "string",
"pattern": "^\\d{8}$",
"example": "20200619"
}
}
],
"responses": {
"200": {
"description": "Successful response with summary information of SZSE area stocks."
},
"400": {
"description": "Bad request due to invalid input parameters."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/api/v1.0/16300000/stock_szse_sector_summary": {
"get": {
"summary": "深圳证券交易所-统计资料-股票行业成交数据",
"description": "深圳证券交易所-统计资料-股票行业成交数据",
"operationId": "getstockszsesectorsummary",
"parameters": [
{
"name": "date",
"in": "query",
"description": "Date for which to retrieve the stock summary, formatted as YYYYMMDD.",
"required": true,
"schema": {
"type": "string",
"pattern": "^\\d{8}$",
"example": "20200619"
}
},
{
"name": "symbol",
"in": "query",
"description": "choice of {\"当月\", \"当年\"}",
"required": true,
"schema": {
"type": "string",
"example": "当月"
}
}
],
"responses": {
"200": {
"description": "Successful response with summary information of SZSE area stocks."
},
"400": {
"description": "Bad request due to invalid input parameters."
},
"500": {
"description": "Internal server error."
}
}
}
},
"/api/v1.0/16300000/stock_financial_report_sina": {
"get": {
"summary": "财务报表-三大报表",
"description": "财务报表-三大报表",
"operationId": "getStockFinancialReport",
"parameters": [
{
"name": "stock",
"in": "query",
"description": "stock,like '000001'",
"required": true,
"schema": {
"type": "string",
"pattern": "^\\d{6}$",
"example": "000001"
}
},
{
"name": "symbol",
"in": "query",
"description": "choice of {\"资产负债表\",\"现金流量\",\"利润表\"}",
"required": true,
"schema": {
"type": "string",
"example": "资产负债表"
}
}
]
}
},
"/api/v1.0/16300000/stock_financial_analysis_indicator": {
"get": {
"summary": "财务分析-财务指标",
"description": "财务分析-财务指标",
"operationId": "getStockFinancialAnalysisIndicator",
"parameters": [
{
"name": "symbol",
"in": "query",
"description": "stock_code,like '000001'",
"required": true,
"schema": {
"type": "string",
"pattern": "^\\d{6}$",
"example": "000001"
}
},
{
"name": "start_year",
"in": "query",
"description": "year,like '2020'",
"required": true,
"schema": {
"type": "string",
"pattern": "^\\d{4}$",
"example": "2020"
}
}
]
}
}
}
}