Documentation Index
Fetch the complete documentation index at: https://docs.duelduck.com/llms.txt
Use this file to discover all available pages before exploring further.
Retrieves the authenticated user’s prediction history with optional filtering, sorting, and pagination.
Parameters
| Name | Type | Header | Required | Description |
|---|
| Authorization | string | Authorization | yes | Authorization Bearer token |
opts.pagination.page_size , default value : 10
opts.pagination.page_num , default value : 1
opts.order.order_by , default value : created_at
opts.order.order_type , available values : desc, asc ; default value : ""
| Name | Type | Query | Description |
|---|
| opts.pagination.page_size | integer($int64) | 10 | Number of items per page |
| opts.pagination.page_num | integer($int64) | 1 | Page number (starting from 1) |
| opts.order.order_by | string | created_at | Field to order by |
| opts.order.order_type | string | desc / asc | Order type |
| opts.filters[0].column | string | opts.filters[0].column | First filter column name |
| opts.filters[0].operator | string | opts.filters[0].operator | First filter operator |
| opts.filters[0].value | string | opts.filters[0].value | First filter value |
| opts.filters[0].where_or | boolean | — | First filter OR condition |
Responses
Response content type: application / json .
Code 200
List of user’s historical predictions.
[
{
"approved_by": "string",
"cancellation_reason": "string",
"commission": 0,
"commission_rate": 0,
"created_at": "string",
"deadline": "string",
"duel_info": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"duel_price": 0,
"final_result": 0,
"id": "string",
"is_owner_resolving": true,
"is_self_resolved": true,
"joined": true,
"logo_url": "string",
"max_price": 0,
"min_price": 0,
"no_count": 0,
"owner_id": "string",
"player_status": 0,
"players_count": 0,
"potential_win": 0,
"price_type": "string",
"project_id": "string",
"question": "string",
"refunded_players_count": 0,
"resolved_at": "string",
"resolved_by": "string",
"room_number": 0,
"room_token_pda": "string",
"slug": "string",
"source_of_truth": "string",
"status": 0,
"symbol": "string",
"updated_at": "string",
"usd_price": 0,
"win_amount": 0,
"winners_count": 0,
"yes_count": 0,
"your_answer": 0
}
]
Code 400
Invalid request parameters.
{
"message": "string",
"status": 0
}
Code 401
Authentication required or invalid token.
{
"message": "string",
"status": 0
}
Code 500
Internal server error.
{
"message": "string",
"status": 0
}