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.