###### tags: `API 文件` API Doc : Query === api url: ### Request ### Response ```json= [ Tournament:{ name: "", matches: [ { id:"", home: { name: "", //隊名 score: "", //分數 redCard: "", //紅牌數 }, away: { name: "", //隊名 score: "", //分數 redCard: "", //紅牌數 }, status: { phase: "1H",//"賽事節數,上半場、中場、下半場、延長賽上半場、延長賽中場、延長賽下半場、PK" startTime: "2022-12-19T18:15:52Z", //該節賽事開賽時間 // injuryTime: "", // Whta is this for?? sourcePause:"", eventPause:"", adjustPause:"", isPause:"", isClose:"", } market:[ //玩法,如1x2、AH、OU { marketId:"", marketName:"", sourcePause:"", eventPause:"", adjustPause:"", isPause:"", lines: [ //盤口,如大2.5,讓0/0.5 { condition:"" //盤口的決定球數 status:"", //Open, Suspend, Closed isSync:"", //是否要跟隨水份(是否要上下盤連動),default是true,要上下連動 outcomes:[ //投注項,如讓球玩法中的主、客隊,大小玩法中的大、小 { id:"", odd:"", adjust:"" } ] } ] } ] } ] } ] ``` ### json format ``` { "code": 1, "message": "str", "data": { "tournaments": [ { "name": "str", "matches": [ { "id": "numberStr", "home": { "name": "str", "score": "numberStr", "redCard": "numberStr" }, "away": { "name": "str", "score": "numberStr", "redCard": "numberStr" }, "status": { "phase": "str", "phaseStartTime": "2022-12-22T00:30:00Z", "injuryTime": "numberStr", "isSourcePause": false, "isEventPause": false, "isAdjustPause": false, "isPause": false, "isClose": false }, "markets": [ { "marketId": "numberStr", "marketName": "str", "isSourcePause": false, "isEventPause": false, "isAdjustPause": false, "isPause": false, "lines": [ { "condition": "str", "status": "str", "isSync": true, "outcomes": [ { "id": "numberStr", "odd": "numberStr", "adjust": "numberStr" } ] } ] } ] } ] } ], "pageInfo": { "currentPage": 1, "pageSize": 100, "totalPage": 20 } } } ``` 狀態改動所需要的api - 全部暫停 input matchId - 跟隨市場 input mathcId - 全部關閉 input matchId - 單一玩法暫停 input matchId, marketId SetOdds要增加一個isFollowWater的欄位 可以控制,要不要上下盤連動