Schema Registry
Market

Market

Betting market model

Properties

PropertyTypeRequiredDescription
idstringβœ… YesMarket ID
leaguestringβœ… YesLeague name
sportstringβœ… YesSport type
categorystringβœ… YesMarket category
titlestringβœ… YesMarket title/question
descriptionstringβœ… YesMarket description
typestringβœ… YesMarket type
volumeintegerβœ… YesTotal market volume
liquidityintegerβœ… YesMarket liquidity
endDatestringβœ… YesMarket end date
yesPriceintegerβœ… YesYes price in cents
noPriceintegerβœ… YesNo price in cents
yesVolumeintegerβœ… YesYes volume
noVolumeintegerβœ… YesNo volume
statusstringβœ… YesMarket status
tagsarrayβœ… YesMarket tags
tierstringβœ… YesLeague tier
teamsintegerβœ… YesNumber of teams
lastUpdatedstringβœ… YesLast updated timestamp

Example

{
  "id": "example",
  "league": "example",
  "sport": "example",
  "category": "example",
  "title": "example",
  "description": "example",
  "type": "example",
  "volume": 0,
  "liquidity": 0,
  "endDate": "example",
  "yesPrice": 0,
  "noPrice": 0,
  "yesVolume": 0,
  "noVolume": 0,
  "status": "example",
  "tags": [],
  "tier": "example",
  "teams": 0,
  "lastUpdated": "example"
}

Used In

Code Examples

TypeScript

interface Market {
  id: string;
  league: string;
  sport: string;
  category: string;
  title: string;
  description: string;
  type: string;
  volume: number;
  liquidity: number;
  endDate: string;
  yesPrice: number;
  noPrice: number;
  yesVolume: number;
  noVolume: number;
  status: string;
  tags: string[];
  tier: string;
  teams: number;
  lastUpdated: string;
}
 
// Usage example
const data: Market = {
  "id": "example",
  "league": "example",
  "sport": "example",
  "category": "example",
  "title": "example",
  "description": "example",
  "type": "example",
  "volume": 0,
  "liquidity": 0,
  "endDate": "example",
  "yesPrice": 0,
  "noPrice": 0,
  "yesVolume": 0,
  "noVolume": 0,
  "status": "example",
  "tags": [],
  "tier": "example",
  "teams": 0,
  "lastUpdated": "example"
};

Python

from data_layer.schemas import Market
 
# Create instance
data = Market(
    # 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",   "league": "example",   "sport": "example",   "category": "example",   "title": "example",   "description": "example",   "type": "example",   "volume": 0,   "liquidity": 0,   "endDate": "example",   "yesPrice": 0,   "noPrice": 0,   "yesVolume": 0,   "noVolume": 0,   "status": "example",   "tags": [],   "tier": "example",   "teams": 0,   "lastUpdated": "example" }'

Validation Rules

Required Fields: id, league, sport, category, title, description, type, volume, liquidity, endDate, yesPrice, noPrice, yesVolume, noVolume, status, tags, tier, teams, lastUpdated

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.

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time