黃金資料查詢演示示例

2021-06-26 14:20:34 字數 1397 閱讀 4114

**資料查詢演示示例

using system;

using system.text;

using system.net;

namespace gold

class

program

static

void main(string args){

string key = "*****************";//申請的

key值

支援格式:json

http請求方式:

?key=您申請的

返回示例:

"error_code":"0",

"reason":"success!",

"result":[

"1":{

"variety":"ag(t+d)", /*品種

*/"latestpri":"6585.00", /*最新價

*/"openpri":"6712.00", /*開盤價

*/"maxpri":"6721.00", /*最**

*/"minpri":"6581.00", /*最低價

*/"limit":"-1.98%", /*漲跌幅

*/"yespri":"6718.00", /*昨收價

*/"totalvol":"1564524.0000", /*總成交量

*/"time":"2012-12-19 15:29:59"

/*更新時間

*/"7":{

"variety":"au99.99",

"latestpri":"336.77",

"openpri":"342.00",

"maxpri":"342.00",

"minpri":"336.40",

"limit":"-1.53%",

"yespri":"342.00",

"totalvol":"6936.2000",

"time":"2012-12-19 15:29:53"

備註:

**資料查詢,

只用申請

key值即可;

若出現錯誤,

請檢視該網頁

上的**表

.

黃金資料查詢演示示例

資料查詢演示示例 using system using system.text using system.net namespace gold class program static void main string args string key 申請的 key值 支援格式 json http請...

樹形資料查詢示例

參考 樹形資料查詢示例 示例資料 create table tb id int identity 1,1 pid int,name varchar 20 insert tb select 0,中國 union all select 0,美國 union all select 0,加拿大 union ...

車輛違章查詢演示示例

車輛違章查詢演示示例 using system using system.text using system.net namespace weizhang class program static void main string args string city 城市 string hphm 號牌...