首頁 金融理財 股票查詢
股票查詢

股票查詢

  • 148
  • 340
根據股票代碼查詢當日股票行情,數據粒度為分鐘。返回股票名稱、昨收盤價 、時間、價格、成交量、成交總額、平均價等數據。
49.00/10000次
申請就送100次
https://api.jisuapi.com/stock/query
JSON,JSONP
GET POST
https://api.jisuapi.com/stock/query?code=300917&appkey=yourappkey

請求參數:

API在線測試
參數名稱類型必填說明
code string 股票代碼

返回參數:

參數名稱類型說明
name string 股票名稱
code string 股票代碼
price string 最新價
lastclosingprice string 昨收盤價
trendnum string 數據量
updatetime string 更新時間
trend string 股票趨勢 依次為時間、價格、成交量、成交總額、平均價

請求代碼:

查看代碼
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuapi.com/stock/query?code=300917&appkey=$appkey";
$result = curlOpen($url);

$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));

if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}

$result = $jsonarr['result'];
foreach($result as $val)
{
    echo $val['name'].' '.$val['code'].' '.$val['price'].' '.$val['lastclosingprice'].' '.$val['trendnum'].' '.$val['updatetime'].' '.$val['trend'].'
'; }

JSON返回示例 :

{
  "status": 0,
  "msg": "ok",
  "result": [
    {
      "name": "特發服務",
      "code": "300917",
      "price": "51.08",
      "lastclosingprice": 51,
      "trendnum": 271,
      "updatetime": "2020-12-29 15:28:13",
      "trend": [
        "2020-12-29 09:30,51.08,1582,8082745.00,51.080",
        "2020-12-29 09:31,48.50,4282,21596207.00,50.612",
        "2020-12-29 09:32,48.98,2212,10882521.00,50.225",
        "2020-12-29 09:33,48.50,1850,9042691.00,49.974",
        "2020-12-29 09:34,47.72,2082,9933160.00,49.581",
        "2020-12-29 09:35,47.40,3900,18378254.00,48.979",
        "2020-12-29 09:36,46.50,2747,12762402.00,48.608",
        "2020-12-29 09:37,46.35,3028,14064342.00,48.306",
        "2020-12-29 09:38,46.50,2303,10603599.00,48.089",
        "2020-12-29 09:39,46.26,2134,9873477.00,47.939",
        "2020-12-29 09:40,46.90,1320,6130479.00,47.868",
        "2020-12-29 09:41,46.51,2109,9876229.00,47.794",
        "2020-12-29 09:42,46.85,1332,6245002.00,47.754",
        "2020-12-29 09:43,46.70,858,4017392.00,47.729",
        "2020-12-29 09:44,47.10,771,3609652.00,47.708",
        "2020-12-29 09:45,46.90,990,4650155.00,47.686",
        "2020-12-29 09:46,46.90,511,2388127.00,47.672",
        "2020-12-29 09:47,47.13,549,2575698.00,47.660",
        "2020-12-29 09:48,47.40,716,3384324.00,47.652",
        "2020-12-29 09:49,47.00,664,3145885.00,47.647",
        "2020-12-29 09:50,47.00,429,2015630.00,47.640",
        "2020-12-29 09:51,46.00,866,4029483.00,47.614",
        "2020-12-29 09:52,45.80,1217,5594037.00,47.562",
        "2020-12-29 09:53,45.59,1261,5747621.00,47.499",
        "2020-12-29 09:54,45.88,1461,6683054.00,47.437",
        "2020-12-29 09:55,45.72,1139,5210681.00,47.391",
        "2020-12-29 09:56,45.65,725,3307261.00,47.362",
        "2020-12-29 09:57,46.20,512,2344719.00,47.343",
        "2020-12-29 09:58,45.85,707,3250188.00,47.321",
        "2020-12-29 09:59,46.01,298,1370996.00,47.312",
        "2020-12-29 10:00,46.65,295,1368017.00,47.306",
        "2020-12-29 10:01,46.32,487,2262627.00,47.297",
        "2020-12-29 10:02,45.65,606,2789799.00,47.280",
        "2020-12-29 10:03,45.98,344,1571889.00,47.268",
        "2020-12-29 10:04,45.48,1075,4908000.00,47.232",
        "2020-12-29 10:05,45.20,1105,5019752.00,47.191",
        "2020-12-29 10:06,45.32,914,4124650.00,47.152",
        "2020-12-29 10:07,45.45,394,1784276.00,47.138",
        "2020-12-29 10:08,45.79,338,1538468.00,47.127",
        "2020-12-29 10:09,46.24,506,2333131.00,47.117",
        "2020-12-29 10:10,46.00,281,1295140.00,47.111",
        "2020-12-29 10:11,45.90,201,923560.00,47.106",
        "2020-12-29 10:12,46.05,375,1724742.00,47.098",
        "2020-12-29 10:13,46.49,240,1111324.00,47.095",
        "2020-12-29 10:14,46.49,271,1258717.00,47.091",
        "2020-12-29 10:15,46.69,135,626122.00,47.090",
        "2020-12-29 10:16,46.78,310,1449696.00,47.088",
        "2020-12-29 10:17,47.05,291,1365597.00,47.087",
        "2020-12-29 10:18,47.08,542,2552454.00,47.087",
        "2020-12-29 10:19,46.99,284,1335977.00,47.086",
        "2020-12-29 10:20,46.51,47,217752.00,47.086",
        "2020-12-29 10:21,46.96,183,853832.00,47.085",
        "2020-12-29 10:22,47.00,226,1061601.00,47.084",
        "2020-12-29 10:23,47.80,384,1823369.00,47.087",
        "2020-12-29 10:24,47.78,521,2490898.00,47.094",
        "2020-12-29 10:25,47.65,325,1549796.00,47.097",
        "2020-12-29 10:26,48.28,485,2331160.00,47.105",
        "2020-12-29 10:27,48.44,537,2595645.00,47.117",
        "2020-12-29 10:28,49.00,409,1991715.00,47.129",
        "2020-12-29 10:29,48.94,607,2985413.00,47.151",
        "2020-12-29 10:30,48.55,349,1705539.00,47.161",
        "2020-12-29 10:31,48.65,298,1440425.00,47.167",
        "2020-12-29 10:32,48.94,275,1342402.00,47.175",
        "2020-12-29 10:33,48.66,435,2127332.00,47.187",
        "2020-12-29 10:34,48.36,264,1281035.00,47.193",
        "2020-12-29 10:35,48.00,178,858135.00,47.196",
        "2020-12-29 10:36,48.23,233,1119225.00,47.200",
        "2020-12-29 10:37,48.88,97,470605.00,47.202",
        "2020-12-29 10:38,49.51,363,1788704.00,47.214",
        "2020-12-29 10:39,49.39,563,2795709.00,47.237",
        "2020-12-29 10:40,49.38,257,1266035.00,47.246",
        "2020-12-29 10:41,50.67,722,3622737.00,47.280",
        "2020-12-29 10:42,50.69,843,4284546.00,47.328",
        "2020-12-29 10:43,50.16,370,1866061.00,47.347",
        "2020-12-29 10:44,50.74,501,2531832.00,47.372",
        "2020-12-29 10:45,50.33,403,2037292.00,47.392",
        "2020-12-29 10:46,49.86,281,1408979.00,47.404",
        "2020-12-29 10:47,49.60,196,968035.00,47.410",
        "2020-12-29 10:48,49.50,174,859724.00,47.416",
        "2020-12-29 10:49,49.13,332,1642022.00,47.426",
        "2020-12-29 10:50,48.85,466,2278807.00,47.437",
        "2020-12-29 10:51,49.20,425,2082540.00,47.447",
        "2020-12-29 10:52,48.08,600,2923275.00,47.458",
        "2020-12-29 10:53,48.01,549,2640797.00,47.464",
        "2020-12-29 10:54,47.98,654,3139906.00,47.469",
        "2020-12-29 10:55,48.07,467,2237807.00,47.472",
        "2020-12-29 10:56,48.33,378,1828433.00,47.477",
        "2020-12-29 10:57,48.48,407,1974050.00,47.483",
        "2020-12-29 10:58,48.08,375,1804839.00,47.487",
        "2020-12-29 10:59,48.44,157,760013.00,47.489",
        "2020-12-29 11:00,47.91,194,932259.00,47.491",
        "2020-12-29 11:01,47.50,440,2101998.00,47.492",
        "2020-12-29 11:02,47.10,462,2184748.00,47.491",
        "2020-12-29 11:03,47.20,643,3039613.00,47.489",
        "2020-12-29 11:04,47.22,655,3086216.00,47.486",
        "2020-12-29 11:05,47.20,608,2861570.00,47.482",
        "2020-12-29 11:06,46.69,571,2673367.00,47.477",
        "2020-12-29 11:07,47.11,413,1931749.00,47.473",
        "2020-12-29 11:08,47.01,584,2744062.00,47.469",
        "2020-12-29 11:09,47.01,120,563021.00,47.468",
        "2020-12-29 11:10,46.97,658,3095222.00,47.464",
        "2020-12-29 11:11,46.77,240,1125946.00,47.462",
        "2020-12-29 11:12,46.18,264,1226620.00,47.459",
        "2020-12-29 11:13,46.51,446,2064460.00,47.452",
        "2020-12-29 11:14,46.79,332,1549820.00,47.448",
        "2020-12-29 11:15,46.79,310,1446464.00,47.445",
        "2020-12-29 11:16,46.30,248,1152841.00,47.442",
        "2020-12-29 11:17,46.20,523,2422167.00,47.434",
        "2020-12-29 11:18,46.46,323,1494583.00,47.429",
        "2020-12-29 11:19,46.51,232,1078191.00,47.427",
        "2020-12-29 11:20,46.50,165,765087.00,47.424",
        "2020-12-29 11:21,46.21,262,1212129.00,47.420",
        "2020-12-29 11:22,46.60,259,1202416.00,47.417",
        "2020-12-29 11:23,46.27,316,1464763.00,47.413",
        "2020-12-29 11:24,46.50,217,1004543.00,47.410",
        "2020-12-29 11:25,46.64,56,260576.00,47.409",
        "2020-12-29 11:26,47.02,275,1287232.00,47.407",
        "2020-12-29 11:27,47.40,315,1488138.00,47.406",
        "2020-12-29 11:28,47.30,320,1512875.00,47.406",
        "2020-12-29 11:29,47.90,210,998650.00,47.406",
        "2020-12-29 11:30,48.24,534,2575971.00,47.412",
        "2020-12-29 13:01,47.78,159,764887.00,47.413",
        "2020-12-29 13:02,47.80,5,23894.00,47.413",
        "2020-12-29 13:03,48.15,114,546422.00,47.414",
        "2020-12-29 13:04,47.76,21,100467.00,47.414",
        "2020-12-29 13:05,48.00,37,177394.00,47.414",
        "2020-12-29 13:06,47.90,62,297360.00,47.415",
        "2020-12-29 13:07,47.99,127,606565.00,47.415",
        "2020-12-29 13:08,47.18,78,368708.00,47.415",
        "2020-12-29 13:09,46.50,275,1283227.00,47.413",
        "2020-12-29 13:10,46.78,336,1563715.00,47.409",
        "2020-12-29 13:11,46.94,93,435319.00,47.408",
        "2020-12-29 13:12,46.30,352,1640990.00,47.405",
        "2020-12-29 13:13,46.74,108,503402.00,47.404",
        "2020-12-29 13:14,46.41,200,930240.00,47.402",
        "2020-12-29 13:15,46.37,352,1633844.00,47.397",
        "2020-12-29 13:16,46.68,271,1262818.00,47.395",
        "2020-12-29 13:17,46.40,156,724270.00,47.393",
        "2020-12-29 13:18,46.20,636,2939526.00,47.384",
        "2020-12-29 13:19,45.95,1155,5309349.00,47.365",
        "2020-12-29 13:20,46.28,369,1702609.00,47.360",
        "2020-12-29 13:21,46.44,86,399002.00,47.359",
        "2020-12-29 13:22,46.44,80,372001.00,47.358",
        "2020-12-29 13:23,46.21,212,983154.00,47.355",
        "2020-12-29 13:24,45.93,328,1508475.00,47.350",
        "2020-12-29 13:25,46.10,438,2015288.00,47.343",
        "2020-12-29 13:26,45.94,509,2341805.00,47.335",
        "2020-12-29 13:27,45.98,303,1391395.00,47.330",
        "2020-12-29 13:28,46.00,402,1845588.00,47.324",
        "2020-12-29 13:29,46.10,250,1150829.00,47.320",
        "2020-12-29 13:30,45.80,493,2263130.00,47.312",
        "2020-12-29 13:31,46.08,238,1092191.00,47.308",
        "2020-12-29 13:32,45.97,130,597428.00,47.306",
        "2020-12-29 13:33,46.07,211,972192.00,47.303",
        "2020-12-29 13:34,46.45,151,697939.00,47.302",
        "2020-12-29 13:35,46.50,686,3204668.00,47.297",
        "2020-12-29 13:36,46.00,266,1230460.00,47.294",
        "2020-12-29 13:37,46.41,138,635716.00,47.292",
        "2020-12-29 13:38,46.01,326,1507879.00,47.288",
        "2020-12-29 13:39,45.98,336,1546716.00,47.284",
        "2020-12-29 13:40,46.03,429,1973373.00,47.278",
        "2020-12-29 13:41,45.81,456,2093121.00,47.271",
        "2020-12-29 13:42,46.00,324,1485585.00,47.266",
        "2020-12-29 13:43,46.10,313,1437344.00,47.261",
        "2020-12-29 13:44,46.32,206,946433.00,47.258",
        "2020-12-29 13:45,46.10,246,1131745.00,47.255",
        "2020-12-29 13:46,46.20,44,203159.00,47.254",
        "2020-12-29 13:47,45.93,123,567500.00,47.253",
        "2020-12-29 13:48,45.91,487,2236310.00,47.246",
        "2020-12-29 13:49,45.81,470,2155344.00,47.239",
        "2020-12-29 13:50,45.83,360,1652254.00,47.234",
        "2020-12-29 13:51,46.00,396,1816725.00,47.228",
        "2020-12-29 13:52,46.00,409,1878561.00,47.223",
        "2020-12-29 13:53,46.07,117,538139.00,47.221",
        "2020-12-29 13:54,46.06,106,488001.00,47.220",
        "2020-12-29 13:55,46.43,234,1078555.00,47.217",
        "2020-12-29 13:56,46.09,124,573538.00,47.216",
        "2020-12-29 13:57,45.82,395,1815302.00,47.211",
        "2020-12-29 13:58,45.72,533,2441812.00,47.203",
        "2020-12-29 13:59,46.00,546,2506172.00,47.195",
        "2020-12-29 14:00,45.90,212,974402.00,47.193",
        "2020-12-29 14:01,45.73,333,1528351.00,47.188",
        "2020-12-29 14:02,45.98,139,637068.00,47.186",
        "2020-12-29 14:03,45.70,231,1059793.00,47.183",
        "2020-12-29 14:04,45.40,667,3038284.00,47.172",
        "2020-12-29 14:05,45.25,601,2723313.00,47.161",
        "2020-12-29 14:06,45.23,399,1809314.00,47.153",
        "2020-12-29 14:07,45.10,599,2705301.00,47.142",
        "2020-12-29 14:08,45.12,737,3322914.00,47.127",
        "2020-12-29 14:09,45.13,564,2544563.00,47.115",
        "2020-12-29 14:10,45.30,298,1344398.00,47.110",
        "2020-12-29 14:11,45.70,238,1083427.00,47.106",
        "2020-12-29 14:12,45.61,143,652925.00,47.104",
        "2020-12-29 14:13,46.00,294,1352002.00,47.100",
        "2020-12-29 14:14,46.30,229,1055234.00,47.098",
        "2020-12-29 14:15,46.65,317,1477175.00,47.097",
        "2020-12-29 14:16,46.13,413,1918495.00,47.094",
        "2020-12-29 14:17,46.10,176,811756.00,47.093",
        "2020-12-29 14:18,46.30,181,835198.00,47.091",
        "2020-12-29 14:19,45.83,312,1436431.00,47.088",
        "2020-12-29 14:20,45.39,381,1739586.00,47.083",
        "2020-12-29 14:21,45.55,585,2661773.00,47.074",
        "2020-12-29 14:22,45.18,602,2725628.00,47.063",
        "2020-12-29 14:23,45.36,449,2030120.00,47.056",
        "2020-12-29 14:24,45.36,428,1934411.00,47.048",
        "2020-12-29 14:25,45.23,262,1185989.00,47.044",
        "2020-12-29 14:26,45.52,76,344258.00,47.042",
        "2020-12-29 14:27,45.80,71,326249.00,47.041",
        "2020-12-29 14:28,45.20,407,1846219.00,47.035",
        "2020-12-29 14:29,45.20,458,2070046.00,47.027",
        "2020-12-29 14:30,45.33,360,1627347.00,47.021",
        "2020-12-29 14:31,45.20,600,2711990.00,47.011",
        "2020-12-29 14:32,45.20,426,1925947.00,47.004",
        "2020-12-29 14:33,45.00,1523,6868682.00,46.978",
        "2020-12-29 14:34,45.40,1500,6751857.00,46.952",
        "2020-12-29 14:35,45.22,159,718933.00,46.949",
        "2020-12-29 14:36,45.35,617,2799620.00,46.941",
        "2020-12-29 14:37,45.06,476,2144047.00,46.933",
        "2020-12-29 14:38,45.01,448,2012560.00,46.925",
        "2020-12-29 14:39,45.02,285,1283581.00,46.920",
        "2020-12-29 14:40,45.35,545,2464006.00,46.912",
        "2020-12-29 14:41,44.90,669,3015681.00,46.901",
        "2020-12-29 14:42,44.93,383,1720655.00,46.895",
        "2020-12-29 14:43,44.87,812,3646639.00,46.881",
        "2020-12-29 14:44,44.56,1010,4514578.00,46.862",
        "2020-12-29 14:45,44.56,826,3680924.00,46.846",
        "2020-12-29 14:46,44.60,1234,5515285.00,46.824",
        "2020-12-29 14:47,44.30,985,4374327.00,46.804",
        "2020-12-29 14:48,43.71,934,4111598.00,46.783",
        "2020-12-29 14:49,44.10,1632,7169783.00,46.745",
        "2020-12-29 14:50,44.10,1018,4477858.00,46.722",
        "2020-12-29 14:51,44.30,1543,6801843.00,46.690",
        "2020-12-29 14:52,44.26,756,3342593.00,46.675",
        "2020-12-29 14:53,44.06,1217,5372611.00,46.651",
        "2020-12-29 14:54,43.88,1019,4485945.00,46.630",
        "2020-12-29 14:55,43.63,1417,6196405.00,46.599",
        "2020-12-29 14:56,43.43,1450,6314512.00,46.565",
        "2020-12-29 14:57,43.75,2548,11096195.00,46.508",
        "2020-12-29 14:58,44.00,5,21992.00,46.508",
        "2020-12-29 14:59,44.00,0,0.00,46.508",
        "2020-12-29 15:00,43.45,2649,11510991.00,46.449",
        "2020-12-29 15:01,43.45,0,0.00,46.449",
        "2020-12-29 15:02,43.45,0,0.00,46.449",
        "2020-12-29 15:03,43.45,0,0.00,46.449",
        "2020-12-29 15:04,43.45,0,0.00,46.449",
        "2020-12-29 15:05,43.45,0,0.00,46.449",
        "2020-12-29 15:06,43.45,2,8690.00,46.449",
        "2020-12-29 15:07,43.45,0,0.00,46.449",
        "2020-12-29 15:08,43.45,0,0.00,46.449",
        "2020-12-29 15:09,43.45,0,0.00,46.449",
        "2020-12-29 15:10,43.45,3,13035.00,46.449",
        "2020-12-29 15:11,43.45,0,0.00,46.449",
        "2020-12-29 15:12,43.45,3,13035.00,46.449",
        "2020-12-29 15:13,43.45,0,0.00,46.449",
        "2020-12-29 15:14,43.45,17,73865.00,46.449",
        "2020-12-29 15:15,43.45,0,0.00,46.449",
        "2020-12-29 15:16,43.45,0,0.00,46.449",
        "2020-12-29 15:17,43.45,2,8690.00,46.449",
        "2020-12-29 15:18,43.45,2,8690.00,46.449",
        "2020-12-29 15:19,43.45,0,0.00,46.449",
        "2020-12-29 15:20,43.45,0,0.00,46.449",
        "2020-12-29 15:21,43.45,0,0.00,46.449",
        "2020-12-29 15:22,43.45,0,0.00,46.449",
        "2020-12-29 15:23,43.45,2,8690.00,46.449",
        "2020-12-29 15:24,43.45,0,0.00,46.449",
        "2020-12-29 15:25,43.45,0,0.00,46.449",
        "2020-12-29 15:26,43.45,0,0.00,46.449",
        "2020-12-29 15:27,43.45,0,0.00,46.449",
        "2020-12-29 15:28,43.45,0,0.00,46.449",
        "2020-12-29 15:29,43.45,1,4345.00,46.449"
      ]
    }
  ]
}
                    

API錯誤碼:

代號說明
201 股票代碼為空
202 股票代碼不存在
210 沒有信息

系統錯誤碼:

代號說明
101 APPKEY為空或不存在
102 APPKEY已過期
103 APPKEY無請求此數據權限
104 請求超過次數限制
105 IP被禁止
106 IP請求超過限制
107 接口維護中
108 接口已停用
計次套餐套餐規格價格
試用套餐 100次 0.00元 ≈0元/次
Level1 10000次 49.00元 ≈0.0049元/次
Level2 20000次 97.00元 ≈0.00485元/次
Level3 50000次 240.00元 ≈0.0048元/次
Level4 100000次 475.00元 ≈0.00475元/次

活動推薦ACTIVITY 更多

  • orc活動

其它推薦RECOMMENDED DATA 更多

2021的欢乐真人麻将 陕西11选5500彩票 北京赛车pk10注册送38 秒速飞艇开奖网 快乐12开奖今天 六合彩今晚开奖出的什么号码 ds视讯太阳厅能赌吗 ag真人怎么玩才能赢 香港赛马会原创绝杀 新疆35选7近1000期走势图 排列三走势图和值和尾 今日七乐彩开奖结果9 深圳风采中三个有奖吗 极速快3玩法 4场进球是自己选4场吗 河内5分彩开奖走势图河 篮彩大势推荐