BettingOpportunity
Betting opportunity model
Properties
| Property | Type | Required | Description |
|---|---|---|---|
id | string | β Yes | - |
question | string | β Yes | - |
league | string | β Yes | - |
teams | array | β Yes | - |
outcomes | array | β Yes | - |
volume | number | β Yes | - |
eventDate | string | β Yes | - |
sportCategory | string | β Yes | - |
description | string | β Yes | - |
status | string | β No | - |
createdAt | string | β Yes | - |
updatedAt | string | β Yes | - |
Example
{
"id": "example",
"question": "example",
"league": "example",
"teams": [],
"outcomes": [],
"volume": 0,
"eventDate": "example",
"sportCategory": "example",
"description": "example",
"status": "example",
"createdAt": "example",
"updatedAt": "example"
}Used In
Not used in any documented endpoints.
Code Examples
TypeScript
interface BettingOpportunity {
id: string;
question: string;
league: string;
teams: string[];
outcomes: Record<string, any>[];
volume: number;
eventDate: string;
sportCategory: string;
description: string;
status?: string;
createdAt: string;
updatedAt: string;
}
// Usage example
const data: BettingOpportunity = {
"id": "example",
"question": "example",
"league": "example",
"teams": [],
"outcomes": [],
"volume": 0,
"eventDate": "example",
"sportCategory": "example",
"description": "example",
"status": "example",
"createdAt": "example",
"updatedAt": "example"
};Python
from data_layer.schemas import BettingOpportunity
# Create instance
data = BettingOpportunity(
# Add your field values here
)cURL
curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{ "id": "example", "question": "example", "league": "example", "teams": [], "outcomes": [], "volume": 0, "eventDate": "example", "sportCategory": "example", "description": "example", "status": "example", "createdAt": "example", "updatedAt": "example" }'Validation Rules
Required Fields: id, question, league, teams, outcomes, volume, eventDate, sportCategory, description, createdAt, updatedAt
Additional Information
- Type: object
- Source: Generated from Pydantic models in
data_layer/schemas/ - Auto-validated: All fields are validated by FastAPI
This documentation is auto-generated from the OpenAPI specification.