MarketResponse
Market API response
Properties
| Property | Type | Required | Description |
|---|---|---|---|
markets | array | β Yes | - |
stats | object | β Yes | - |
filters | object | β Yes | - |
timestamp | string | β Yes | - |
Example
{
"markets": [],
"stats": {},
"filters": {},
"timestamp": "example"
}Used In
Code Examples
TypeScript
interface MarketResponse {
markets: any[];
stats: any;
filters: any;
timestamp: string;
}
// Usage example
const data: MarketResponse = {
"markets": [],
"stats": {},
"filters": {},
"timestamp": "example"
};Python
from data_layer.schemas import MarketResponse
# Create instance
data = MarketResponse(
# 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 '{ "markets": [], "stats": {}, "filters": {}, "timestamp": "example" }'Validation Rules
Required Fields: markets, stats, filters, timestamp
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.