Skip to main content
GET
Get game liability
计算调用方在单场赛事上的最坏情况下的财务负债(最大风险敞口),计入该赛事每个市场上的每一笔投注。 该值始终 <= 0 — 即使完全对冲的持仓也可能因雨取消、中止或取消资格而产生亏损。

请求

GET /user/getGameLiability
string
必填
要计算负债的赛事 ID。

响应

number
账户货币计的最坏情况亏损。始终 <= 0。调用方在该赛事上没有投注时返回 0。

示例

授权

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.

查询参数

gameID
string
必填

A 4casters game id (ObjectID). Get game ids from GET /exchange/v2/getGames or GET /exchange/v2/getOrderbook.

响应

Liability for the requested game (always <= 0).

data
object