mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-24 06:34:18 +01:00
Add core OpenAPI 3.0.0 infrastructure for Tiingo API: - Main openapi.yaml with API structure and routing - Common schemas (Date, DateTime, Ticker, Currency, ErrorResponse) - Reusable parameters (token, ticker, date ranges, formats) - Standard error responses (401, 404, 500) - Schema and component registries This foundation enables all endpoint-specific specifications. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
50 lines
1023 B
YAML
50 lines
1023 B
YAML
# Reusable Parameter Definitions for Tiingo API
|
|
# Reference these using: $ref: '../parameters/_index.yaml#/ParameterName'
|
|
|
|
TokenParam: &TokenParam
|
|
name: token
|
|
in: query
|
|
required: true
|
|
schema:
|
|
type: string
|
|
description: API token for authentication
|
|
|
|
TickerPathParam: &TickerPathParam
|
|
name: ticker
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
pattern: '^[A-Z0-9]{1,5}$'
|
|
description: Stock or cryptocurrency ticker symbol
|
|
|
|
StartDateParam: &StartDateParam
|
|
name: startDate
|
|
in: query
|
|
required: false
|
|
schema:
|
|
type: string
|
|
format: date
|
|
description: Start date for historical data in YYYY-MM-DD format
|
|
|
|
EndDateParam: &EndDateParam
|
|
name: endDate
|
|
in: query
|
|
required: false
|
|
schema:
|
|
type: string
|
|
format: date
|
|
description: End date for historical data in YYYY-MM-DD format
|
|
|
|
FormatParam: &FormatParam
|
|
name: format
|
|
in: query
|
|
required: false
|
|
schema:
|
|
type: string
|
|
enum:
|
|
- json
|
|
- csv
|
|
default: json
|
|
description: Response format (json or csv)
|