Skip to content
Open
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
3 changes: 2 additions & 1 deletion spgci/forward_curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ForwardCurves:
"""

_path = "market-data/forward-curve/v3/"
_ref_path = "market-data/reference-data/v3/forward-curve/search"
_ref_path = "market-data/reference-data/v4/forward-curve/search"

class MatFrequency(Enum):
"""Derivative Maturity Frequency"""
Expand Down Expand Up @@ -351,6 +351,7 @@ def get_curves(
"page": page,
"pageSize": page_size,
"subscribed_only": subscribed_only,
"showAdditionalFields": "false"
}
return get_data(
path=f"{self._ref_path}",
Expand Down
5 changes: 3 additions & 2 deletions spgci/market_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MarketData:
"""

_path = "market-data/v3/value/"
_ref_path = "market-data/reference-data/v3/search"
_ref_path = "market-data/reference-data/v4/search"
_mdd_fields = "deltaPrice, deltaPercent, pValue, pDate"

class ContractType(Enum):
Expand Down Expand Up @@ -679,6 +679,7 @@ def get_symbols(
"filter": filter_exp,
"page": page,
"pageSize": page_size,
"showAdditionalFields": "false"
}
return get_data(
path=f"{self._ref_path}",
Expand Down Expand Up @@ -1179,4 +1180,4 @@ def get_corrections_by_modified_date(
params=params,
paginate=paginate,
raw=raw,
)
)