231 lines
3.5 KiB
HTTP
231 lines
3.5 KiB
HTTP
@api_url = http://api.tushare.pro
|
|
@api_key = 64ebff4fa679167600b905ee45dd88e76f3963c0ff39157f3f085f0e
|
|
|
|
### Get Stock List
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "stock_basic",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"list_status": "L",
|
|
"market": "主板",
|
|
"exchange": "SSE,SZSE"
|
|
},
|
|
"fields": [
|
|
"ts_code",
|
|
"name",
|
|
"fullname",
|
|
"exchange",
|
|
"industry",
|
|
"market",
|
|
"list_date"
|
|
]
|
|
}
|
|
|
|
### Get income list
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "income_vip",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"period": "20241231"
|
|
},
|
|
"fields": [
|
|
"basic_eps",
|
|
"diluted_eps",
|
|
"total_revenue",
|
|
"revenue",
|
|
"total_cogs",
|
|
"oper_cost",
|
|
"sell_exp",
|
|
"admin_exp",
|
|
"fin_exp",
|
|
"oper_exp",
|
|
"operate_profit",
|
|
"non_oper_income",
|
|
"non_oper_exp",
|
|
"total_profit",
|
|
"income_tax",
|
|
"n_income",
|
|
"n_income_attr_p",
|
|
"compr_inc_attr_p",
|
|
"compr_inc_attr_m_s",
|
|
"ebit",
|
|
"ebida",
|
|
"undist_profit",
|
|
"distable_profit",
|
|
"rd_exp",
|
|
"fin_exp_int_exp",
|
|
"continued_net_profit",
|
|
"end_net_profit"
|
|
]
|
|
}
|
|
|
|
### Get daily list
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "daily",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000001.SZ",
|
|
"trade_date": "20140715"
|
|
},
|
|
"fields": [
|
|
"close",
|
|
"pre_close"
|
|
]
|
|
}
|
|
|
|
### Get trade date
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "trade_cal",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"exchange": "BSE",
|
|
"is_open": 1
|
|
},
|
|
"fields": [
|
|
"exchange",
|
|
"cal_date",
|
|
"is_open",
|
|
"pretrade_date"
|
|
]
|
|
}
|
|
|
|
### Get Factor
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "adj_factor",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"trade_date": "20241231"
|
|
},
|
|
"fields": [
|
|
"ts_code",
|
|
"trade_date",
|
|
"adj_factor"
|
|
]
|
|
}
|
|
|
|
### Get daily factor
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "stk_factor_pro",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000001.SZ",
|
|
"trade_date": "20250225"
|
|
},
|
|
"fields": [
|
|
"ts_code",
|
|
"trade_date",
|
|
"close",
|
|
"close_qfq",
|
|
"close_hfq",
|
|
"ema_hfq_5"
|
|
]
|
|
}
|
|
|
|
### Get income
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "income",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000001.SZ",
|
|
"period": "20241231"
|
|
},
|
|
"fields": [
|
|
"ts_code",
|
|
"ann_date",
|
|
"total_revenue",
|
|
"total_cogs",
|
|
"n_income"
|
|
]
|
|
}
|
|
|
|
### Get cashflow
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "cashflow",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000002.SZ",
|
|
"period": "20231231"
|
|
},
|
|
"fields": [
|
|
"ann_date",
|
|
"n_cashflow_act"
|
|
]
|
|
}
|
|
|
|
### Get balancesheet
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "balancesheet",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000002.SZ",
|
|
"period": "20231231"
|
|
},
|
|
"fields": [
|
|
"ann_date",
|
|
"total_cur_liab",
|
|
"oth_cur_liab"
|
|
]
|
|
}
|
|
|
|
### Get fina_indicator
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "fina_indicator",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000002.SZ",
|
|
"period": "20231231"
|
|
},
|
|
"fields": [
|
|
"ann_date",
|
|
"ocf_to_shortdebt",
|
|
"currentdebt_to_debt"
|
|
]
|
|
}
|
|
|
|
### Get suspend
|
|
POST {{api_url}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"api_name": "suspend",
|
|
"token": "{{api_key}}",
|
|
"params": {
|
|
"ts_code": "000001.SZ",
|
|
"suspend_type": "S"
|
|
},
|
|
"fields": [
|
|
"suspend_date",
|
|
"resume_date"
|
|
]
|
|
}
|