@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": "000002.SZ",
    "trade_date": "20250102"
  },
  "fields": [
    "ts_code",
    "trade_date",
    "close",
    "close_qfq",
    "close_hfq"
  ]
}

### Get income
POST {{api_url}}
Content-Type: application/json

{
  "api_name": "income_vip",
  "token": "{{api_key}}",
  "params": {
    "ts_code": "000799.SZ",
    "period": "20191231"
  },
  "fields": [
    "revenue",
    "total_revenue"
  ]
}

### Get cashflow
POST {{api_url}}
Content-Type: application/json

{
  "api_name": "cashflow_vip",
  "token": "{{api_key}}",
  "params": {
    "ts_code": "000002.SZ",
    "period": "20231231"
  },
  "fields": [
    "ts_code",
    "net_profit",
    "finan_exp",
    "c_fr_sale_sg",
    "c_inf_fr_operate_a",
    "c_paid_to_for_empl",
    "c_paid_for_taxes",
    "n_cashflow_act",
    "stot_inflows_inv_act",
    "c_pay_acq_const_fiolta",
    "stot_out_inv_act",
    "stot_cashout_fnc_act",
    "c_cash_equ_beg_period",
    "c_cash_equ_end_period"
  ]
}

### Get balancesheet
POST {{api_url}}
Content-Type: application/json

{
  "api_name": "balancesheet_vip",
  "token": "{{api_key}}",
  "params": {
    "ts_code": "000799.SZ",
    "period": "20191231"
  },
  "fields": [
    "total_liab_hldr_eqy",
    "total_assets"
  ]
}

### Get fina_indicator
POST {{api_url}}
Content-Type: application/json

{
  "api_name": "fina_indicator",
  "token": "{{api_key}}",
  "params": {
    "ts_code": "600132.SH",
    "period": "20191231"
  },
  "fields": [
    "ts_code",
    "current_ratio",
    "quick_ratio",
    "invturn_days",
    "arturn_days",
    "ar_turn"
  ]
}

### 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"
  ]
}
