K线图接口

接口名称:

/kline.php

要求:

分钟线需要联系客服开通

请求方式:

GET

请求参数:

参数 必填 类型 描述
code Y string 股票代码
cycle Y string K线图类型 day=日K,week=周k,month=月k,min1=1分钟,min5=5分钟,min30=30分钟,min60=1小时
fq N string 复权类型 data=原始数据,before=前复权,after=后复权
page N int 页码,默认1
pageSize N int 页大小,默认240
t Y int 十位时间戳
token Y string 签名

请求实列

http://kline.api.shqingsi.cn/v1/kline.php?code=sh000001&cycle=day&fq=data

http://kline.api.shqingsi.cn/v1/kline.php?code=sh000001&cycle=week&fq=data

http://kline.api.shqingsi.cn/v1/kline.php?code=sh000001&cycle=month&fq=data

返回数据:

{
  "error": 0,
  "msg": "",
  "success": true,
  "data": [
    "20180720,2769.75,2837.86,2753.84,2829.27,14590768800,155661123584.00",
    "20180723,2815.20,2863.57,2809.62,2859.54,17338279700,186996850688.00",
    "20180724,2862.27,2911.46,2862.27,2905.56,22957830700,228701880320.00",
    "20180725,2911.45,2912.31,2894.04,2903.65,16780020700,166412075008.00",
    "20180726,2905.79,2915.30,2875.70,2882.23,16842820200,157496688640.00",
    "20180727,2879.69,2889.69,2864.11,2873.59,14637161000,132419371008.00",
    "20180730,2871.94,2896.01,2850.30,2869.05,15165224900,145988583424.00",
    "20180731,2866.90,2884.68,2854.32,2876.40,11893111700,119528767488.00",
    "20180801,2882.51,2897.40,2823.93,2824.53,14951434800,151692869632.00",
    "20180802,2815.34,2815.34,2726.48,2768.02,17417900300,169769320448.00",
    "20180803,2763.40,2777.66,2740.43,2740.44,12700636300,129134690304.00",
    "20180806,2736.53,2760.47,2692.32,2705.16,12975305800,132993802240.00",
    "20180807,2711.74,2779.37,2696.04,2779.37,14957974300,147259490304.00",
    "20180808,2771.13,2779.91,2741.07,2744.07,14768871500,139969757184.00",
    "20180809,2729.58,2801.66,2726.22,2794.38,15166033300,151079878656.00",
    "20180810,2791.40,2806.12,2777.51,2795.31,12153223200,123112595456.00",
    "20180813,2769.02,2789.80,2742.56,2785.87,12753224100,129460543488.00",
    "20180814,2780.74,2789.44,2766.57,2780.96,10957107700,112465395712.00",
    "20180815,2777.25,2777.70,2721.24,2723.26,11616178700,118707675136.00",
    "20180816,2691.43,2732.95,2672.74,2705.19,12027787800,117580996608.00",
    "20180817,2723.89,2730.33,2665.59,2668.97,11244529400,115499393024.00",
    "20180820,2673.07,2698.47,2653.11,2698.47,11078416400,114047614976.00",
    "20180821,2700.34,2739.17,2696.29,2733.83,11358683900,122260217856.00",
    "20180822,2731.96,2731.96,2709.06,2714.61,9366464000,98463973376.00",
    "20180823,2714.87,2736.01,2700.80,2724.62,9844647000,107826020352.00",
    "20180824,2717.08,2748.82,2705.32,2729.43,10051626900,102665797632.00",
    "20180827,2736.32,2780.90,2736.32,2780.90,13276257800,141429686272.00",
    "20180828,2782.29,2791.39,2769.40,2777.98,11874936700,125118578688.00",
    "20180829,2774.86,2778.54,2762.35,2769.29,10015692900,101220663296.00",
    "20180830,2769.33,2780.53,2736.35,2737.74,10606094300,106400399360.00",
    "20180831,2730.11,2744.63,2710.54,2725.25,10975874200,114813353984.00",
    "20180903,2716.40,2722.85,2692.36,2720.73,10221301100,104817688576.00",
    "20180904,2720.65,2756.61,2712.38,2750.58,10901030700,113708883968.00",
    "20180905,2741.38,2745.47,2704.34,2704.34,10500226900,107269447680.00",
    "20180906,2697.58,2719.41,2683.74,2691.59,9901783300,106266083328.00",
    "20180907,2696.68,2728.55,2683.72,2702.30,10752329300,113840070656.00",
    "20180910,2698.01,2703.43,2667.32,2669.48,10355917000,102860718080.00",
    "20180911,2668.49,2680.57,2652.70,2664.80,9986594600,96884580352.00",
    "20180912,2659.74,2672.07,2647.17,2656.11,9002675800,93448208384.00",
    "20180913,2679.21,2689.06,2653.19,2686.58,10733501400,112464142336.00",
    "20180914,2688.78,2694.92,2675.29,2681.64,10000500800,104992358400.00",
    "20180917,2671.29,2671.29,2647.92,2651.79,8823888800,86962601984.00",
    "20180918,2644.30,2700.19,2644.30,2699.95,11576799300,113031888896.00",
    "20180919,2694.80,2746.08,2690.99,2730.85,14155031800,140107005952.00",
    "20180920,2732.17,2743.96,2724.08,2729.24,11138746300,104875868160.00",
    "20180921,2733.87,2797.49,2722.03,2797.49,15801664200,148976353280.00",
    "20180925,2775.07,2790.03,2771.16,2781.14,11198317900,108528050176.00",
    "20180926,2785.32,2827.34,2783.34,2806.81,13956770600,145058775040.00",
    "20180927,2805.79,2810.51,2786.32,2791.78,12399769600,123447713792.00",
    "20180928,2794.26,2821.76,2791.84,2821.35,13429045600,125369991168.00",
    "20181008,2768.21,2771.94,2710.18,2716.51,14950138800,141531545600.00",
    "20181009,2713.73,2734.31,2711.20,2721.01,11677189900,110292459520.00",
    "20181010,2723.72,2743.55,2703.06,2725.84,11348573600,111312453632.00",
    "20181011,2643.07,2661.29,2560.32,2583.46,19715070200,170057760768.00",
    "20181012,2574.04,2615.92,2536.67,2606.91,17008163500,142803206144.00",
    "20181015,2605.91,2611.97,2564.74,2568.10,11857619700,105214738432.00",
    "20181016,2567.76,2597.72,2536.44,2546.33,11941914400,106792247296.00",
    "20181017,2574.31,2582.55,2517.57,2561.61,12995399700,117388353536.00",
    "20181018,2544.91,2544.91,2485.62,2486.42,12542851300,106576764928.00",
    "20181019,2460.08,2553.39,2449.20,2550.47,14732355800,130095923200.00",
    "20181022,2565.64,2675.41,2565.64,2654.88,21188844900,197309808640.00",
    "20181023,2652.65,2659.81,2583.26,2594.83,17834354300,166919405568.00",
    "20181024,2579.97,2640.40,2577.77,2603.30,16006040700,142082162688.00",
    "20181025,2540.93,2606.10,2531.53,2603.80,16203297900,137630187520.00",
    "20181026,2610.90,2626.12,2580.85,2598.85,15893611900,133415493632.00",
    "20181029,2593.59,2595.54,2529.19,2542.10,13424192300,122500038656.00",
    "20181030,2538.57,2586.92,2521.78,2568.05,16668230900,152385929216.00",
    "20181031,2573.01,2612.92,2567.03,2602.78,18055034800,154894729216.00",
    "20181101,2617.03,2636.80,2603.65,2606.24,20090393200,180253802496.00",
    "20181102,2649.25,2676.48,2628.87,2676.48,22502692100,207861563392.00",
    "20181105,2665.43,2673.19,2639.27,2665.43,19376010000,168588918784.00",
    "20181106,2660.72,2660.86,2635.32,2659.36,16366947900,138800939008.00",
    "20181107,2659.84,2675.68,2639.25,2641.34,17320198600,147261816832.00",
    "20181108,2660.09,2662.37,2632.30,2635.63,15963548700,128668819456.00",
    "20181109,2621.24,2621.24,2598.16,2598.87,15244630700,121260490752.00",
    "20181112,2593.20,2631.17,2590.21,2630.52,17503130800,142351433728.00",
    "20181113,2600.50,2666.49,2597.35,2654.88,24928244700,189607231488.00",
    "20181114,2648.31,2658.31,2627.96,2632.24,23844935100,176970432512.00",
    "20181115,2632.14,2668.17,2631.89,2668.17,20784872100,171882496000.00",
    "20181116,2669.78,2695.57,2657.03,2679.11,24219884900,204983599104.00",
    "20181119,2681.90,2703.51,2674.18,2703.51,23166282700,196562714624.00",
    "20181120,2684.29,2690.83,2643.36,2645.85,21589130900,180870414336.00",
    "20181121,2619.82,2653.80,2617.78,2651.51,18259644700,149375778816.00",
    "20181122,2655.90,2658.00,2634.48,2645.43,14930906300,125570170880.00",
    "20181123,2640.67,2642.04,2577.35,2579.48,19147454900,149975646208.00",
    "20181126,2580.84,2595.00,2568.04,2575.81,13431454000,108158091264.00",
    "20181127,2585.83,2592.54,2566.17,2574.68,12365843600,102226558976.00",
    "20181128,2575.45,2601.96,2561.56,2601.74,14596347300,119578492928.00",
    "20181129,2613.78,2617.55,2567.44,2567.44,15716873800,129472446464.00",
    "20181130,2564.56,2590.21,2555.32,2588.19,13932902100,112219824128.00",
    "20181203,2647.13,2665.30,2629.18,2654.80,20747895500,187831795712.00",
    "20181204,2651.56,2666.08,2644.90,2665.96,16794055800,144143400960.00",
    "20181205,2629.83,2660.39,2625.91,2649.81,15450205600,133730205696.00",
    "20181206,2629.82,2633.68,2603.13,2605.18,14166165000,129092976640.00",
    "20181207,2609.34,2614.58,2599.28,2605.89,10907499300,97727660032.00",
    "20181210,2589.19,2599.76,2576.24,2584.58,11319966900,99148144640.00",
    "20181211,2587.01,2596.15,2583.20,2594.09,10130436400,85404123136.00",
    "20181212,2608.11,2610.01,2595.08,2602.15,10351830100,88998199296.00",
    "20181213,2607.14,2645.84,2599.46,2634.05,15073811500,132396105728.00",
    "20181214,2627.28,2629.16,2593.74,2593.74,14594248800,123724988416.00",
    "20181217,2587.26,2598.97,2573.87,2597.97,11736325000,102960848896.00",
    "20181218,2583.63,2599.15,2563.57,2576.65,11703337000,99306536960.00",
    "20181219,2578.68,2579.87,2547.08,2549.56,10766179700,93713178624.00",
    "20181220,2544.51,2554.86,2516.02,2536.27,12056649600,103504986112.00",
    "20181221,2526.55,2527.42,2498.69,2516.25,11567120000,101360623616.00",
    "20181224,2506.74,2529.44,2500.44,2527.01,9733985200,85760933888.00",
    "20181225,2503.95,2513.96,2462.84,2504.82,14067056000,114766012416.00",
    "20181226,2501.12,2513.83,2492.08,2498.29,10879962900,93989535744.00",
    "20181227,2527.72,2532.00,2483.09,2483.09,13540684300,112479764480.00",
    "20181228,2483.62,2505.11,2478.33,2493.90,11924525000,105980854272.00",
    "20190102,2497.88,2500.28,2456.42,2465.29,10993201300,97592573952.00",
    "20190103,2461.78,2488.48,2455.93,2464.36,12439749700,106922786816.00",
    "20190104,2446.02,2515.32,2440.91,2514.87,16887766700,139298668544.00",
    "20190107,2528.70,2536.98,2515.51,2533.09,17730501000,145513234432.00",
    "20190108,2530.30,2531.35,2520.16,2526.46,15809918100,123379040256.00",
    "20190109,2536.42,2574.41,2536.16,2544.35,19188793000,160812531712.00",
    "20190110,2543.85,2551.83,2531.66,2535.10,15987432600,132692328448.00",
    "20190111,2539.55,2554.79,2533.36,2553.83,14944410000,122375659520.00",
    "20190114,2553.33,2556.29,2533.01,2535.77,14482546400,116243415040.00",
    "20190115,2537.37,2571.50,2532.43,2570.35,16026553000,137374982144.00",
    "20190116,2569.07,2574.24,2563.01,2570.42,14930153900,126876311552.00",
    "20190117,2573.58,2582.56,2557.71,2559.64,16246813400,127546130432.00",
    "20190118,2567.74,2598.88,2565.90,2596.01,19076723700,151270424576.00",
    "20190121,2599.06,2618.98,2599.06,2610.51,16342511500,139915493376.00",
    "20190122,2609.64,2609.64,2573.06,2579.70,15253777300,122995433472.00",
    "20190123,2575.26,2589.51,2572.41,2581.00,13142679800,105101320192.00",
    "20190124,2584.65,2597.29,2569.70,2591.69,15404204600,131575037952.00",
    "20190125,2596.26,2617.00,2595.63,2601.72,15939402600,135415169024.00",
    "20190128,2615.71,2630.32,2591.10,2596.98,14698176500,127465635840.00",
    "20190129,2592.36,2601.74,2559.98,2594.25,15558111200,126749048832.00",
    "20190130,2584.75,2598.82,2575.41,2575.58,12050257100,101103927296.00",
    "20190131,2581.33,2606.63,2571.58,2584.57,15430386900,126013243392.00",
    "20190201,2597.78,2618.48,2590.55,2618.23,13198685000,111522627584.00",
    "20190211,2613.17,2654.10,2613.17,2653.90,15489885800,137307193344.00",
    "20190212,2654.04,2674.48,2648.83,2671.89,18410117900,156741533696.00",
    "20190213,2674.52,2727.08,2666.52,2721.07,24379401000,207125315584.00",
    "20190214,2715.54,2729.46,2707.49,2719.70,19703734900,170330832896.00",
    "20190215,2712.79,2715.63,2679.79,2682.39,19600426500,169823256576.00",
    "20190218,2699.82,2754.36,2699.82,2754.36,26043600700,224184074240.00",
    "20190219,2759.50,2780.78,2737.59,2755.65,28804627100,247121051648.00",
    "20190220,2761.06,2767.41,2739.98,2761.22,24597252700,205446922240.00",
    "20190221,2759.94,2794.01,2744.98,2751.80,29864996900,253033381888.00",
    "20190222,2749.46,2804.23,2736.33,2804.23,30148141100,264518877184.00",
    "20190225,2838.39,2961.80,2838.39,2961.28,52865859000,465991434240.00",
    "20190226,2969.10,2995.68,2938.62,2941.52,56555796700,492396544000.00",
    "20190227,2939.93,2997.49,2924.64,2953.82,47497645300,411837628416.00",
    "20190228,2950.05,2965.30,2930.20,2940.95,35020660200,298763943936.00",
    "20190301,2954.40,2994.01,2930.83,2994.01,34578620000,307337658368.00",
    "20190304,3015.94,3090.80,3006.94,3027.58,52564943600,480603668480.00",
    "20190305,3019.88,3054.96,3009.45,3054.25,42414252900,382768545792.00",
    "20190306,3060.43,3103.83,3050.11,3102.10,55500636500,485478334464.00",
    "20190307,3103.67,3129.94,3074.98,3106.42,58381706500,525725237248.00",
    "20190308,3038.34,3075.05,2969.58,2969.86,57785547300,525598261248.00",
    "20190311,2969.08,3028.25,2963.58,3026.99,42621302900,404368424960.00",
    "20190312,3049.08,3093.39,3029.90,3060.31,51117315800,487066632192.00",
    "20190313,3062.33,3065.29,3013.93,3026.95,45321462500,451247308800.00",
    "20190314,3013.60,3041.16,2968.82,2990.69,37314179800,356240359424.00",
    "20190315,3000.88,3048.12,2999.43,3021.75,34120613900,344721489920.00",
    "20190318,3027.80,3096.42,3009.51,3096.42,39779717900,398469595136.00",
    "20190319,3099.90,3113.43,3076.36,3090.98,35090886000,353216790528.00",
    "20190320,3084.17,3102.52,3053.45,3090.64,35855750500,349295411200.00",
    "20190321,3094.12,3125.02,3086.85,3101.46,41425118200,403939819520.00",
    "20190322,3100.73,3107.28,3064.88,3104.15,36484834600,356678336512.00",
    "20190325,3058.80,3087.00,3041.95,3043.03,38027876200,375375659008.00",
    "20190326,3057.56,3062.69,2988.49,2997.10,35349802100,341444820992.00",
    "20190327,3012.26,3022.76,2987.77,3022.72,29139035700,295075971072.00",
    "20190328,3009.80,3025.78,2991.78,2994.94,28810642500,289554563072.00",
    "20190329,3000.68,3093.03,2999.99,3090.76,37508299100,386699624448.00",
    "20190401,3111.66,3176.62,3111.66,3170.36,46612469300,480085934080.00",
    "20190402,3183.27,3193.27,3164.91,3176.82,44706898100,462662074368.00",
    "20190403,3159.15,3219.26,3152.33,3216.30,43054863500,442622050304.00",
    "20190404,3233.69,3254.14,3216.85,3246.57,46911766900,475156381696.00",
    "20190408,3271.27,3288.45,3210.52,3244.81,50451840300,506431242240.00",
    "20190409,3240.39,3251.65,3215.70,3239.66,36416999700,380272967680.00",
    "20190410,3224.65,3264.78,3204.88,3241.93,38013440800,395669962752.00",
    "20190411,3241.55,3254.13,3185.55,3189.96,35303187900,360684552192.00",
    "20190412,3184.86,3199.28,3168.04,3188.63,28978899600,288908967936.00",
    "20190415,3233.46,3253.98,3177.27,3177.79,34880978500,355666132992.00",
    "20190416,3164.40,3253.60,3153.21,3253.60,35791875200,360166621184.00",
    "20190417,3250.15,3275.33,3239.80,3263.12,35754179600,354509881344.00",
    "20190418,3261.07,3271.39,3241.83,3250.20,32553994200,323508174848.00",
    "20190419,3250.15,3274.33,3226.81,3270.80,31519800400,315131920384.00",
    "20190422,3278.49,3279.49,3206.88,3215.04,35321738700,359154286592.00",
    "20190423,3211.87,3231.58,3186.76,3198.59,32836120700,324870176768.00",
    "20190424,3203.56,3210.65,3156.61,3201.61,27487216400,278410854400.00",
    "20190425,3190.59,3193.75,3123.03,3123.83,32587912900,309076099072.00",
    "20190426,3108.16,3129.21,3085.81,3086.40,28087385400,274776408064.00",
    "20190429,3090.63,3107.76,3050.03,3062.50,29211488600,289063272448.00",
    "20190430,3052.62,3088.41,3052.62,3078.34,22230251700,225498136576.00",
    "20190506,2984.73,2986.54,2876.47,2906.46,32697226900,314336509952.00",
    "20190507,2914.29,2937.28,2889.07,2926.39,25328176900,245444214784.00",
    "20190508,2873.14,2929.43,2866.70,2893.76,23153051900,218892615680.00",
    "20190509,2871.20,2888.86,2845.04,2850.95,20004113300,197446877184.00",
    "20190510,2878.23,2941.45,2838.38,2939.21,28230680800,274176262144.00",
    "20190513,2905.07,2921.41,2892.17,2903.71,21202988200,202624122880.00",
    "20190514,2872.83,2909.20,2872.83,2883.61,20834535300,201223307264.00",
    "20190515,2902.64,2945.39,2902.64,2938.68,23051970100,226262777856.00",
    "20190516,2933.50,2956.17,2929.06,2955.71,24838570100,226203074560.00",
    "20190517,2955.77,2956.78,2873.80,2882.30,26630164300,247875174400.00",
    "20190520,2874.80,2882.63,2838.45,2870.60,20947244200,199210778624.00",
    "20190521,2867.71,2919.24,2862.50,2905.97,21138702200,202777772032.00",
    "20190522,2905.52,2912.40,2879.64,2891.70,20002690500,193629372416.00",
    "20190523,2880.84,2885.14,2846.96,2852.52,19734030900,192869482496.00",
    "20190524,2847.84,2871.86,2846.02,2853.00,16720549000,162689318912.00",
    "20190527,2851.28,2898.13,2833.04,2892.38,19672090200,193768718336.00",
    "20190528,2890.27,2924.04,2887.08,2909.91,22331055700,227253813248.00",
    "20190529,2894.83,2934.98,2890.66,2914.70,19895882100,202855038976.00",
    "20190530,2903.42,2907.85,2881.38,2905.81,20575878900,197105549312.00",
    "20190531,2904.50,2922.91,2895.58,2898.70,19523058000,191280398336.00",
    "20190603,2901.74,2920.83,2875.90,2890.08,21594355400,208073326592.00",
    "20190604,2887.64,2888.39,2851.97,2862.28,18846354100,181118910464.00",
    "20190605,2882.94,2888.77,2858.57,2861.42,18156104700,175200845824.00",
    "20190606,2862.33,2862.33,2822.19,2827.80,17706441100,164850548736.00",
    "20190610,2833.01,2861.13,2824.36,2852.13,16658591800,162489827328.00",
    "20190611,2854.07,2927.43,2854.07,2925.72,26052579600,254479990784.00",
    "20190612,2917.22,2924.70,2903.88,2909.38,24025577500,223063949312.00",
    "20190613,2905.29,2918.42,2885.92,2910.74,21295779100,191748210688.00",
    "20190614,2913.00,2924.32,2879.66,2881.97,21543579600,194303115264.00",
    "20190617,2880.42,2902.48,2877.39,2887.62,15396496000,143141634048.00",
    "20190618,2891.09,2898.33,2874.31,2890.16,14770532000,136935235584.00",
    "20190619,2944.12,2953.34,2916.22,2917.80,23075697300,225567260672.00",
    "20190620,2917.33,2997.39,2915.09,2987.12,29101153700,288296534016.00",
    "20190621,2990.37,3010.35,2989.25,3001.98,28697383500,276662452224.00",
    "20190624,3004.29,3012.83,2994.42,3008.15,21049389400,211237175296.00",
    "20190625,3004.91,3004.91,2948.99,2982.07,24369924400,244315078656.00",
    "20190626,2964.62,2986.91,2958.46,2976.28,17444953300,172516048896.00",
    "20190627,2982.61,3011.54,2981.05,2996.79,19539704900,208618651648.00",
    "20190628,2992.24,2992.24,2961.22,2978.88,18143152300,183641767936.00",
    "20190701,3024.62,3045.37,3014.69,3044.90,25084043300,266541056000.00",
    "20190702,3042.58,3048.48,3033.78,3043.94,21452062400,229566611456.00",
    "20190703,3031.83,3031.83,3006.32,3015.26,21229617300,218657996800.00",
    "20190704,3015.68,3024.50,2991.91,3005.25,19441513300,202266394624.00",
    "20190705,3004.74,3014.85,2990.92,3011.06,15675542900,163180838912.00",
    "20190708,2997.81,2997.81,2918.72,2933.36,21154126800,205568819200.00",
    "20190709,2928.82,2937.76,2912.81,2928.23,14511060400,154251427840.00",
    "20190710,2935.19,2936.75,2908.16,2915.30,13548353800,141236256768.00",
    "20190711,2928.06,2945.80,2907.89,2917.76,14369252200,152181407744.00",
    "20190712,2915.34,2938.53,2905.81,2930.55,13779475900,142918877184.00",
    "20190715,2921.55,2955.00,2886.70,2942.19,16764339700,176533209088.00",
    "20190716,2938.64,2944.82,2931.29,2937.62,13181175100,140766396416.00"
  ]
}

#数组格式为

日期,开盘价,最高价,最低价,收盘价,成交量(股),成交额(元)