propline_get_odds_history
Retrieve historical line-movement snapshots for any event, showing every recorded price change per outcome over its lifetime.
Instructions
Pro-tier endpoint. Returns the historical line-movement snapshot series for an event (every recorded price/point change per outcome over the event's lifetime). Free tier returns market structure with redacted snapshots and an upgrade pointer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sport_key | Yes | ||
| event_id | Yes | ||
| markets | No |
Implementation Reference
- src/index.ts:172-195 (registration)Tool definition (name, description, inputSchema) and inline handler that delegates to client().getOddsHistory().
{ name: "propline_get_odds_history", description: "Pro-tier endpoint. Returns the historical line-movement snapshot " + "series for an event (every recorded price/point change per " + "outcome over the event's lifetime). Free tier returns market " + "structure with redacted snapshots and an upgrade pointer.", inputSchema: { type: "object", properties: { sport_key: { type: "string" }, event_id: { type: ["string", "number"] }, markets: { type: "string" }, }, required: ["sport_key", "event_id"], additionalProperties: false, }, handler: (args) => client().getOddsHistory( args.sport_key as string, args.event_id as string | number, { markets: args.markets as string | undefined }, ), }, - src/index.ts:179-188 (schema)Input schema for propline_get_odds_history: requires sport_key (string) and event_id (string|number), optional markets (string).
inputSchema: { type: "object", properties: { sport_key: { type: "string" }, event_id: { type: ["string", "number"] }, markets: { type: "string" }, }, required: ["sport_key", "event_id"], additionalProperties: false, }, - src/client.ts:116-125 (handler)Actual HTTP client method getOddsHistory that makes a GET request to /v1/sports/{sportKey}/events/{eventId}/odds/history with optional markets query param.
getOddsHistory( sportKey: string, eventId: string | number, opts: { markets?: string } = {}, ): Promise<unknown> { return this.request( `/v1/sports/${sportKey}/events/${eventId}/odds/history`, { markets: opts.markets }, ); }