Skip to main content
GET
Get bet by ID or txID
查詢屬於呼叫方的單筆投注(已撮合、已結算或未成交掛單)。傳入 id 或 txID 之一,不要同時傳入。

請求

GET /user/getBetByID
string
來自列表端點(例如 /user/getMatchedBets)的投注 id。
string
事務 ID,例如 /session/v3/place 回傳的 wagerRequestID 或 txID。
必須恰好傳入 id 或 txID 之一。

回應

bet 的形態取決於投注的當前狀態: 注意,與大多數端點不同,此端點在頂層回傳投注(不在 data 下)。

示例

錯誤

授權

Authorization
string
header
必填

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

查詢參數

id
string

Bet id from a list endpoint.

txID
string

Transaction id (e.g. wagerRequestID or txID returned from place).

回應

The bet, in matched, graded, or open form depending on its current state.

bet
object

A bet that has been matched but not yet graded.