Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions docs/source/Reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,29 @@ Reference
===============

====================
List market holidays
Get market holidays
====================
.. automethod:: polygon.RESTClient.list_market_holidays
.. automethod:: polygon.RESTClient.get_market_holidays

====================
Get market status
====================
.. automethod:: polygon.RESTClient.get_market_status

====================
List tickers
====================
.. automethod:: polygon.RESTClient.list_tickers

====================
List ticker details
Get ticker details
====================
.. automethod:: polygon.RESTClient.get_ticker_details

====================
Get ticker news
List ticker news
====================
.. automethod:: polygon.RESTClient.get_ticker_news
.. automethod:: polygon.RESTClient.list_ticker_news

====================
Get ticker types
Expand All @@ -38,3 +43,12 @@ List dividends
====================
.. automethod:: polygon.RESTClient.list_dividends

====================
List conditions
====================
.. automethod:: polygon.RESTClient.list_conditions

====================
Get exchanges
====================
.. automethod:: polygon.RESTClient.get_exchanges
4 changes: 1 addition & 3 deletions polygon/rest/models/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ class Condition:
legacy: Optional[bool] = None
name: Optional[str] = None
sip_mapping: Optional[SipMapping] = None
Type: Optional[
str
] = None # todo: 'type' is a keyword so here I capitalized. Should we capital case all dataclasses?
type: Optional[str] = None
update_rules: Optional[UpdateRules] = None

@staticmethod
Expand Down
18 changes: 9 additions & 9 deletions polygon/rest/models/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ class DividendType(Enum):


class Frequency(Enum):
OneTime = 0
Anually = 1
BiAnually = 2
Quarterly = 4
Monthly = 12
ONE_TIME = 0
ANUALLY = 1
BIANUALLY = 2
QUARTERLY = 4
MONTHLY = 12


class DataType(Enum):
DataTrade = "trade"
DataBBO = "bbo"
DataNBBO = "nbbo"
DATA_TRADE = "trade"
DATA_BBO = "bbo"
DATA_NBBO = "nbbo"


class SIP(Enum):
Expand All @@ -57,6 +57,6 @@ class SIP(Enum):


class ExchangeType(Enum):
exchange = "exchange"
EXCHANGE = "exchange"
TRF = "TRF"
SIP = "SIP"
2 changes: 1 addition & 1 deletion polygon/rest/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# https://polygon.io/docs/stocks
class MarketsClient(BaseClient):
def list_market_holidays(
def get_market_holidays(
self, params: Optional[Dict[str, Any]] = None, raw: bool = False
) -> Union[List[MarketHoliday], HTTPResponse]:
"""
Expand Down