KDS接口教程之获取比赛赔率信息

作者:admin人气:0更新:2021-04-04 21:13:57

获取比赛赔率信息

简要描述:

· 此接口用于获取指定比赛ID的赛事赔率数据。

限制说明

· 频率限制:60秒/次

· 建议更新频率:5分钟/次

请求URL:

· http://api.kds.tw/game/odds

请求方式:

· GET

参数:

参数

必选

类型

说明

gameId

string

赛程ID,球探比赛id

返回示例

1. {

2.     "code":200,

3.     "desc":"OK",

4.     "msg":"OK",

5.     "data":[

6.         {

7.             "sdata":"[{"company":"澳门","country":null,"companyId":"1","updateTime":"2020-10-09 14:49:18","first":{"home":"0.9","away":"0.9","handi":"7.5","s1":null,"s2":null,"pk":null},"end":{"home":"0.96","away":"0.84","handi":"7.5","s1":null,"s2":null,"pk":null}},{"company":"易胜博","country":null,"companyId":"2","updateTime":"2020-10-09 01:43:55","first":{"home":"0.94","away":"0.97","handi":"7","s1":null,"s2":null,"pk":null},"end":{"home":"1","away":"0.9","handi":"7.5","s1":null,"s2":null,"pk":null}},{"company":"皇冠","country":null,"companyId":"3","updateTime":"2020-10-09 11:01:13","first":{"home":"0.98","away":"0.88","handi":"7.5","s1":null,"s2":null,"pk":null},"end":{"home":"0.98","away":"0.88","handi":"7.5","s1":null,"s2":null,"pk":null}},{"company":"bet365","country":null,"companyId":"8","updateTime":"2020-10-07 21:46:29","first":{"home":"0.95","away":"0.86","handi":"7.5","s1":null,"s2":null,"pk":null},"end":{"home":"0.9","away":"0.9","handi":"7","s1":null,"s2":null,"pk":null}},{"company":"韦德","country":null,"companyId":"9","updateTime":"2020-10-09 14:51:23","first":{"home":"0.93","away":"0.83","handi":"7.5","s1":null,"s2":null,"pk":null},"end":{"home":"0.95","away":"0.83","handi":"7.5","s1":null,"s2":null,"pk":null}},{"company":"利记","country":null,"companyId":"31","updateTime":"2020-10-09 08:39:34","first":{"home":"0.1","away":"4.54","handi":"2.5","s1":null,"s2":null,"pk":null},"end":{"home":"0.8","away":"1.11","handi":"6.5","s1":null,"s2":null,"pk":null}}]",

8.             "nageType":0,

9.             "ndataType":5,

10.             "sgameId":"396179",

11.             "sa8GameId":"3961791601730723121",

12.             "nId":"174355",

13.             "nState":1,

14.             "tCreateTime":"2020-10-03 21:12:03",

15.             "tLastTime":"2020-10-09 15:27:25"

16.         },

17.         {

18.             "sdata":"[{"company":"澳门","country":null,"companyId":"4","updateTime":"2020-10-09 12:05:54","first":{"big":"0.8","handi":"216.5","small":"0.9","b":null,"pk":null,"s":null},"end":{"big":"0.78","handi":"215.5","small":"0.92","b":null,"pk":null,"s":null}},{"company":"易胜博","country":null,"companyId":"5","updateTime":"2020-10-09 11:49:19","first":{"big":"0.93","handi":"216.5","small":"0.96","b":null,"pk":null,"s":null},"end":{"big":"0.94","handi":"216.5","small":"0.95","b":null,"pk":null,"s":null}},{"company":"皇冠","country":null,"companyId":"6","updateTime":"2020-10-09 11:50:40","first":{"big":"0.96","handi":"216.5","small":"0.88","b":null,"pk":null,"s":null},"end":{"big":"0.92","handi":"216.5","small":"0.92","b":null,"pk":null,"s":null}},{"company":"bet365","country":null,"companyId":"11","updateTime":"2020-10-09 06:28:29","first":{"big":"0.95","handi":"217","small":"0.86","b":null,"pk":null,"s":null},"end":{"big":"0.9","handi":"216.5","small":"0.9","b":null,"pk":null,"s":null}},{"company":"韦德","country":null,"companyId":"12","updateTime":"2020-10-07 15:14:49","first":{"big":"0.88","handi":"216.5","small":"0.88","b":null,"pk":null,"s":null},"end":{"big":"0.88","handi":"216.5","small":"0.88","b":null,"pk":null,"s":null}},{"company":"利记","country":null,"companyId":"34","updateTime":"2020-10-09 05:34:42","first":{"big":"0.94","handi":"216.5","small":"0.94","b":null,"pk":null,"s":null},"end":{"big":"0.94","handi":"216.5","small":"0.94","b":null,"pk":null,"s":null}}]",

19.             "nageType":0,

20.             "ndataType":6,

21.             "sgameId":"396179",

22.             "sa8GameId":"3961791601730723121",

23.             "nId":"177737",

24.             "nState":1,

25.             "tCreateTime":"2020-10-07 23:04:36",

26.             "tLastTime":"2020-10-09 15:27:25"

27.         },

28.         {

29.             "sdata":"[{"company":"Bet365","country":null,"companyId":"214","updateTime":null,"first":{"win":"1.31","lost":"3.6"},"end":{"win":"1.31","lost":"3.6"}},{"company":"BWin","country":null,"companyId":"272","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Coral","country":null,"companyId":"43","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Crown","country":null,"companyId":"458","updateTime":null,"first":{"win":"1.31","lost":"3.6"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Easybets","country":null,"companyId":"6","updateTime":null,"first":{"win":"1.31","lost":"3.4"},"end":{"win":"1.32","lost":"3.3"}},{"company":"Expekt","country":null,"companyId":"77","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.56"}},{"company":"Interwetten","country":null,"companyId":"3","updateTime":null,"first":{"win":"1.3","lost":"3.5"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Macauslot","country":null,"companyId":"265","updateTime":null,"first":{"win":"1.25","lost":"3.45"},"end":{"win":"1.25","lost":"3.45"}},{"company":"Pinnacle Sports","country":null,"companyId":"17","updateTime":null,"first":{"win":"1.31","lost":"3.73"},"end":{"win":"1.32","lost":"3.69"}},{"company":"Sporttery Official","country":null,"companyId":"431","updateTime":null,"first":{"win":"1.17","lost":"3.15"},"end":{"win":"1.17","lost":"3.15"}},{"company":"Vcbet","country":null,"companyId":"82","updateTime":null,"first":{"win":"1.29","lost":"3.5"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Betfair","country":null,"companyId":"45","updateTime":null,"first":{"win":"1.15","lost":"3.4"},"end":{"win":"1.34","lost":"3.85"}},{"company":"10BET","country":null,"companyId":"369","updateTime":null,"first":{"win":"1.28","lost":"3.55"},"end":{"win":"1.29","lost":"3.5"}},{"company":"188bet","country":null,"companyId":"367","updateTime":null,"first":{"win":"1.31","lost":"3.6"},"end":{"win":"1.3","lost":"3.5"}},{"company":"888Sport","country":null,"companyId":"371","updateTime":null,"first":{"win":"1.32","lost":"3.55"},"end":{"win":"1.3","lost":"3.6"}},{"company":"bet3000","country":null,"companyId":"339","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"bet365.it","country":null,"companyId":"518","updateTime":null,"first":{"win":"1.31","lost":"3.6"},"end":{"win":"1.31","lost":"3.6"}},{"company":"Bet777.be","country":null,"companyId":"594","updateTime":null,"first":{"win":"1.27","lost":"3.5"},"end":{"win":"1.28","lost":"3.45"}},{"company":"Betaland","country":null,"companyId":"373","updateTime":null,"first":{"win":"1.31","lost":"3.4"},"end":{"win":"1.31","lost":"3.4"}},{"company":"Bet-at-home.com","country":null,"companyId":"134","updateTime":null,"first":{"win":"1.28","lost":"3.4"},"end":{"win":"1.28","lost":"3.35"}},{"company":"BetClic.fr","country":null,"companyId":"330","updateTime":null,"first":{"win":"1.29","lost":"3.59"},"end":{"win":"1.3","lost":"3.55"}},{"company":"BetClic.it","country":null,"companyId":"329","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.56"}},{"company":"BetClick","country":null,"companyId":"231","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.56"}},{"company":"BETCRIS","country":null,"companyId":"73","updateTime":null,"first":{"win":"1.31","lost":"3.63"},"end":{"win":"1.31","lost":"3.63"}},{"company":"Betfair UK Sportsbook","country":null,"companyId":"574","updateTime":null,"first":{"win":"1.33","lost":"3.4"},"end":{"win":"1.33","lost":"3.4"}},{"company":"Betflag.it","country":null,"companyId":"480","updateTime":null,"first":{"win":"1.3","lost":"3.5"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Betfred","country":null,"companyId":"122","updateTime":null,"first":{"win":"1.3","lost":"3.5"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Bethard","country":null,"companyId":"561","updateTime":null,"first":{"win":"1.28","lost":"3.55"},"end":{"win":"1.29","lost":"3.5"}},{"company":"BetRegal","country":null,"companyId":"596","updateTime":null,"first":{"win":"1.26","lost":"3.45"},"end":{"win":"1.27","lost":"3.4"}},{"company":"Betsafe","country":null,"companyId":"248","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Betsson Sportsbook","country":null,"companyId":"246","updateTime":null,"first":{"win":"1.32","lost":"3.65"},"end":{"win":"1.32","lost":"3.65"}},{"company":"better.it","country":null,"companyId":"312","updateTime":null,"first":{"win":"1.32","lost":"3.35"},"end":{"win":"1.32","lost":"3.3"}},{"company":"BetVictor","country":null,"companyId":"506","updateTime":null,"first":{"win":"1.33","lost":"3.4"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Betway","country":null,"companyId":"247","updateTime":null,"first":{"win":"1.31","lost":"3.5"},"end":{"win":"1.31","lost":"3.5"}},{"company":"Boylesports","country":null,"companyId":"172","updateTime":null,"first":{"win":"1.3","lost":"3.5"},"end":{"win":"1.3","lost":"3.5"}},{"company":"bwin.es","country":null,"companyId":"520","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"bwin.fr","country":null,"companyId":"332","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.2","lost":"2.95"}},{"company":"bwin.it","country":null,"companyId":"341","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"CashPoint","country":null,"companyId":"297","updateTime":null,"first":{"win":"1.29","lost":"3.6"},"end":{"win":"1.29","lost":"3.6"}},{"company":"ComeOn","country":null,"companyId":"401","updateTime":null,"first":{"win":"1.26","lost":"3.4"},"end":{"win":"1.31","lost":"3.6"}},{"company":"CoolBet","country":null,"companyId":"562","updateTime":null,"first":{"win":"1.34","lost":"3.43"},"end":{"win":"1.34","lost":"3.47"}},{"company":"Dafabet","country":null,"companyId":"424","updateTime":null,"first":{"win":"1.3","lost":"3.77"},"end":{"win":"1.32","lost":"3.63"}},{"company":"Fonbet","country":null,"companyId":"212","updateTime":null,"first":{"win":"1.35","lost":"3.2"},"end":{"win":"1.35","lost":"3.2"}},{"company":"France Pari","country":null,"companyId":"519","updateTime":null,"first":{"win":"1.3","lost":"3.65"},"end":{"win":"1.31","lost":"3.6"}},{"company":"GoldBet","country":null,"companyId":"492","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.56"}},{"company":"iFortuna.cz","country":null,"companyId":"531","updateTime":null,"first":{"win":"1.29","lost":"3.53"},"end":{"win":"1.29","lost":"3.53"}},{"company":"Intertops","country":null,"companyId":"18","updateTime":null,"first":{"win":"1.31","lost":"3.6"},"end":{"win":"1.31","lost":"3.6"}},{"company":"Intralot.it","country":null,"companyId":"579","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.56"}},{"company":"Jetbull","country":null,"companyId":"224","updateTime":null,"first":{"win":"1.25","lost":"3.4"},"end":{"win":"1.25","lost":"3.4"}},{"company":"Ladbrokes","country":null,"companyId":"83","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Marathon","country":null,"companyId":"381","updateTime":null,"first":{"win":"1.35","lost":"3.84"},"end":{"win":"1.35","lost":"3.84"}},{"company":"Marathonbet","country":null,"companyId":"457","updateTime":null,"first":{"win":"1.36","lost":"3.74"},"end":{"win":"1.35","lost":"3.84"}},{"company":"matchbook","country":null,"companyId":"331","updateTime":null,"first":{"win":"1.23","lost":"2.97"},"end":{"win":"1.34","lost":"3.82"}},{"company":"Netbet.fr","country":null,"companyId":"495","updateTime":null,"first":{"win":"1.3","lost":"3.65"},"end":{"win":"1.31","lost":"3.6"}},{"company":"NightRush","country":null,"companyId":"599","updateTime":null,"first":{"win":"1.28","lost":"3.55"},"end":{"win":"1.29","lost":"3.5"}},{"company":"NordicBet","country":null,"companyId":"9","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Ohmbet","country":null,"companyId":"595","updateTime":null,"first":{"win":"1.28","lost":"3.4"},"end":{"win":"1.28","lost":"3.4"}},{"company":"Paddy Power","country":null,"companyId":"102","updateTime":null,"first":{"win":"1.3","lost":"3.4"},"end":{"win":"1.3","lost":"3.4"}},{"company":"PlanetWin365","country":null,"companyId":"581","updateTime":null,"first":{"win":"1.28","lost":"3.6"},"end":{"win":"1.31","lost":"3.43"}},{"company":"PMU","country":null,"companyId":"335","updateTime":null,"first":{"win":"1.3","lost":"3.5"},"end":{"win":"1.3","lost":"3.5"}},{"company":"sbobet","country":null,"companyId":"421","updateTime":null,"first":{"win":"1.28","lost":"3.63"},"end":{"win":"1.3","lost":"3.5"}},{"company":"Sisal","country":null,"companyId":"392","updateTime":null,"first":{"win":"1.28","lost":"3.65"},"end":{"win":"1.28","lost":"3.6"}},{"company":"skybet","country":null,"companyId":"446","updateTime":null,"first":{"win":"1.29","lost":"3.5"},"end":{"win":"1.33","lost":"3.25"}},{"company":"Sportingbet","country":null,"companyId":"368","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Sportium","country":null,"companyId":"513","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Stanleybet.it","country":null,"companyId":"592","updateTime":null,"first":{"win":"1.28","lost":"3.4"},"end":{"win":"1.28","lost":"3.35"}},{"company":"STS","country":null,"companyId":"460","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.32","lost":"3.39"}},{"company":"Tipbet","country":null,"companyId":"566","updateTime":null,"first":{"win":"1.26","lost":"3.3"},"end":{"win":"1.26","lost":"3.25"}},{"company":"Tipico","country":null,"companyId":"238","updateTime":null,"first":{"win":"1.27","lost":"3.7"},"end":{"win":"1.27","lost":"3.7"}},{"company":"Tipsport","country":null,"companyId":"477","updateTime":null,"first":{"win":"1.32","lost":"3.47"},"end":{"win":"1.31","lost":"3.53"}},{"company":"Tipsport.cz","country":null,"companyId":"530","updateTime":null,"first":{"win":"1.31","lost":"3.58"},"end":{"win":"1.31","lost":"3.53"}},{"company":"Tipsport.sk","country":null,"companyId":"515","updateTime":null,"first":{"win":"1.31","lost":"3.58"},"end":{"win":"1.31","lost":"3.53"}},{"company":"Titanbet","country":null,"companyId":"340","updateTime":null,"first":{"win":"1.3","lost":"3.65"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Unibet","country":null,"companyId":"19","updateTime":null,"first":{"win":"1.32","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Unibet.fr","country":null,"companyId":"395","updateTime":null,"first":{"win":"1.3","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"Unibet.it","country":null,"companyId":"487","updateTime":null,"first":{"win":"1.32","lost":"3.6"},"end":{"win":"1.3","lost":"3.6"}},{"company":"WilliamHill.it","country":null,"companyId":"516","updateTime":null,"first":{"win":"1.3","lost":"3.7"},"end":{"win":"1.3","lost":"3.65"}},{"company":"X-TiP","country":null,"companyId":"598","updateTime":null,"first":{"win":"1.29","lost":"3.6"},"end":{"win":"1.29","lost":"3.6"}},{"company":"youwin","country":null,"companyId":"389","updateTime":null,"first":{"win":"1.27","lost":"3.3"},"end":{"win":"1.27","lost":"3.3"}},{"company":"Zebet.fr","country":null,"companyId":"587","updateTime":null,"first":{"win":"1.31","lost":"3.65"},"end":{"win":"1.32","lost":"3.6"}}]",

30.             "nageType":0,

31.             "ndataType":4,

32.             "sgameId":"396179",

33.             "sa8GameId":"3961791601730723121",

34.             "nId":"178000",

35.             "nState":1,

36.             "tCreateTime":"2020-10-08 05:10:21",

37.             "tLastTime":"2020-10-09 15:27:25"

38.         }

39.     ],

40.     "time":"2020-10-09 15:35:19",

41.     "error_code":1

42. }

返回参数说明

参数名

类型

说明

ndataType

int

0:足球欧赔,1:足球亚盘 ,3:足球大小盘,4:篮球欧赔,5:篮球让分,6:篮球大小盘

sdata

string

数据内容,json串,见下方详细描述

· 欧赔 type -> (0,4)

1. {

2.     "company":"竞彩官方 ", // 赔率公司

3.     "country":"中国", // 赔率地区

4.     "companyId":"431", // 公司id

5.     "updateTime":"03-31 13:03", // 更新时间

6.     "first":{ //初盘

7.         "win":"1.72", // 胜

8.         "draw":"3.30", // 平

9.         "lost":"3.65", // 负

10.         "w":"0", // 胜的变化 0:不变;-1:下降;1:上升

11.         "d":"0", // 平的变化  0:不变;-1:下降;1:上升

12.         "l":"0" // 负的变化  0:不变;-1:下降;1:上升

13.     },

14.     "end":{ // 当前盘口

15.         "win":"1.82",

16.         "draw":"3.20",

17.         "lost":"3.38",

18.         "w":"1",

19.         "d":"-1",

20.         "l":"-1"

21.     }

22. }

· 亚盘 type -> (1,5)

1. 

2. {

3.     "company":"10BET ",

4.     "country":"英国",

5.     "companyId":"16",

6.     "updateTime":"03-31 22:53",

7.     "first":{

8.         "home":"1.08", 

9.         "away":"0.76", 

10.         "handi":"半球/一球", 

11.         "s1":"0", 

12.         "s2":"0",

13.         "pk":"0"

14.     },

15.     "end":{

16.         "home":"1.05", // 主队赔率

17.         "away":"0.85", // 客队赔率

18.         "handi":"半球/一球", // 盘口

19.         "s1":"1",  //主队赔率的变化 0:不变;-1:下降;1:上升

20.         "s2":"-1", //客队赔率的变化 0:不变;-1:下降;1:上升

21.         "pk":"0"   //盘口的变化 0:不变;-1:下降;1:上升

22.     }

23. }

· 大小 type -> (3,6)

1. 

2. {

3.     "company":"10BET ",

4.     "country":"英国",

5.     "companyId":"16",

6.     "updateTime":"0.14",

7.     "first":{

8.         "big":"0.76",

9.         "handi":"2.25",

10.         "small":"1.04",

11.         "b":"0",

12.         "pk":"0",

13.         "s":"0"

14.     },

15.     "end":{

16.         "big":"7.96", // 大分赔率

17.         "handi":"2.5", // 盘口

18.         "small":"0.07", // 小分赔率

19.         "b":"-1",  //大分赔率的变化 0:不变;-1:下降;1:上升

20.         "pk":"0", //小分赔率的变化 0:不变;-1:下降;1:上升

21.         "s":"1"  //盘口赔率的变化 0:不变;-1:下降;1:上升

22.     }

23. }

 


更多标签

Copyright kds.tw Rights Reserved.