预测市场
get_active_pm_positions (未结注)
get_active_pm_positions (未结注)示例请求
示例响应
{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61"
}{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61",
"positions": [
{
"positionId": "pred_pos_552118",
"marketId": "mkt_384734",
"question": "美国会在 2025 年 3 月 31 日之前批准实物 ETH ETF 吗?",
"outcome": "YES",
"usdStake": 500.00,
"entryPrice": 0.54,
"takeProfitPrice": 0.75, // 仅适用于启用实时赔率的市场
"stopLossPrice": 0.30, // 仅适用于启用实时赔率的市场
"usdPotentialPayout": 925.00,
"usdFeePaid": 0.75,
"isLiveOddsEnabled": true,
"openedAt": "2025-01-14T11:05:44Z",
"resolveBy": "2025-01-20T11:05:44Z"
}
],
"lastUpdatedAt": "2025-01-14T11:19:44Z"
}get_historical_pm_positions (已结注)
get_historical_pm_positions (已结注)示例请求
示例响应
{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61"
}{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61",
"positions": [
{
"positionId": "pred_pos_540902",
"marketId": "mkt_384734",
"question": "以太坊 Dencun 升级会在 2025 年 2 月之前上线吗?",
"outcome": "YES",
"usdStake": 300.00,
"entryPrice": 0.54,
"usdFeePaid": 0.75,
"finalOutcome": "YES",
"usdPayout": 630.00,
"takeProfitPrice": 0.75, // 仅适用于启用实时赔率的市场
"stopLossPrice": 0.30, // 仅适用于启用实时赔率的市场
"isLiveOddsEnabled": true,
"resolvedAt": "2025-01-14T11:19:44Z",
"resultStatus": "赢 - 头寸对用户有利并已支付"
}
]
}get_prediction_market
get_prediction_market示例请求
示例响应
{
"marketId": "mkt_384734"
}## 开放
{
"marketId": "mkt_384734",
"isOpen": true,
"closesAt": "2025-01-14T11:05:44Z",
"question": "美国会在 2025 年 3 月 31 日之前批准实物 ETH ETF 吗?",
"outcomes": [
{
"outcome": "YES",
"odds": 0.562,
},
{
"outcome": "NO",
"odds": 0.438,
}
],
"lastCheckedAt": "2025-01-14T11:05:44Z"
}
## 关闭
{
"marketId": "mkt_384473",
"isOpen": false,
"reasonCode": "MARKET_CLOSED",
"lastCheckedAt": "2025-01-14T11:05:44Z"
}最后更新于