Skip to content

Instantly share code, notes, and snippets.

@HumanRupert
Last active April 30, 2021 07:18
Show Gist options
  • Save HumanRupert/39e3af2dba47447c7d04077eb267835c to your computer and use it in GitHub Desktop.
Save HumanRupert/39e3af2dba47447c7d04077eb267835c to your computer and use it in GitHub Desktop.
# src/models/constituent.py
from pydantic import BaseModel
class Constituent(BaseModel):
"""Represents a ticker received from FMP API when retrieving constituents of an index; see `price.load_djia_constituents` method."""
symbol: str
name: str
sector: str
subSector: str
headQuarter: str
dateFirstAdded: str
cik: str
founded: str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment