Prediction Market
get_active_pm_positions (open bets)
get_active_pm_positions (open bets)Example Request
Example Response
{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61"
}{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61",
"positions": [
{
"positionId": "pred_pos_552118",
"marketId": "mkt_384734",
"question": "Will the US approve a spot ETH ETF before 31 Mar 2025?",
"outcome": "YES",
"usdStake": 500.00,
"entryPrice": 0.54,
"takeProfitPrice": 0.75, // Only for live odds enabled market
"stopLossPrice": 0.30, // Only for live odds enabled market
"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 (resolved bets)
get_historical_pm_positions (resolved bets)Example Request
Example Response
{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61"
}{
"clientAddress": "0xF4614C8C45beF5700e491E627aeecd4d5aabac61",
"positions": [
{
"positionId": "pred_pos_540902",
"marketId": "mkt_384734",
"question": "Will Ethereum Dencun upgrade go live before Feb 2025?",
"outcome": "YES",
"usdStake": 300.00,
"entryPrice": 0.54,
"usdFeePaid": 0.75,
"finalOutcome": "YES",
"usdPayout": 630.00,
"takeProfitPrice": 0.75, // Only for live odds enabled market
"stopLossPrice": 0.30, // Only for live odds enabled market
"isLiveOddsEnabled": true,
"resolvedAt": "2025-01-14T11:19:44Z",
"resultStatus": "Won - Position resolved in the user’s favor and paid out"
}
]
}get_prediction_market
get_prediction_marketExample Request
Example Response
{
"marketId": "mkt_384734"
}## OPEN
{
"marketId": "mkt_384734",
"isOpen": true,
"closesAt": "2025-01-14T11:05:44Z",
"question": "Will the US approve a spot ETH ETF before 31 Mar 2025?",
"outcomes": [
{
"outcome": "YES",
"odds": 0.562,
},
{
"outcome": "NO",
"odds": 0.438,
}
],
"lastCheckedAt": "2025-01-14T11:05:44Z"
}
## CLOSED
{
"marketId": "mkt_384473",
"isOpen": false,
"reasonCode": "MARKET_CLOSED",
"lastCheckedAt": "2025-01-14T11:05:44Z"
}Last updated