propline_list_event_markets
Retrieve all prop market types available for a given event, such as h2h, spreads, totals, or player points. Helps identify which markets are offered before placing bets.
Instructions
List the market types available for a specific event (e.g. h2h, spreads, totals, player_points, pitcher_strikeouts). Useful when you don't know which prop markets a given event carries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport_key | Yes | ||
| event_id | Yes |
Implementation Reference
- src/index.ts:125-129 (handler)The handler function for propline_list_event_markets that calls client().listEventMarkets() with sport_key and event_id arguments.
handler: (args) => client().listEventMarkets( args.sport_key as string, args.event_id as string | number, ), - src/index.ts:116-124 (schema)Input schema for propline_list_event_markets: requires sport_key (string) and event_id (string or number).
inputSchema: { type: "object", properties: { sport_key: { type: "string" }, event_id: { type: ["string", "number"] }, }, required: ["sport_key", "event_id"], additionalProperties: false, }, - src/index.ts:110-130 (registration)Full tool definition registration in the tools[] array, including name, description, inputSchema, and handler.
{ name: "propline_list_event_markets", description: "List the market types available for a specific event (e.g. h2h, " + "spreads, totals, player_points, pitcher_strikeouts). Useful when " + "you don't know which prop markets a given event carries.", inputSchema: { type: "object", properties: { sport_key: { type: "string" }, event_id: { type: ["string", "number"] }, }, required: ["sport_key", "event_id"], additionalProperties: false, }, handler: (args) => client().listEventMarkets( args.sport_key as string, args.event_id as string | number, ), }, - src/client.ts:87-89 (helper)The helper method in the PropLineClient class that makes the actual REST API request to GET /v1/sports/{sportKey}/events/{eventId}/markets.
listEventMarkets(sportKey: string, eventId: string | number): Promise<unknown> { return this.request(`/v1/sports/${sportKey}/events/${eventId}/markets`); }