massive 2.0.1__tar.gz → 2.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {massive-2.0.1 → massive-2.0.2}/PKG-INFO +1 -1
- {massive-2.0.1 → massive-2.0.2}/massive/rest/economy.py +42 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/futures.py +22 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/economy.py +25 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/futures.py +32 -2
- {massive-2.0.1 → massive-2.0.2}/massive/websocket/models/models.py +2 -2
- {massive-2.0.1 → massive-2.0.2}/pyproject.toml +1 -1
- {massive-2.0.1 → massive-2.0.2}/LICENSE +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/__init__.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/exceptions.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/logging.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/modelclass.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/__init__.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/aggs.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/base.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/benzinga.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/etf_global.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/financials.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/indicators.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/__init__.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/aggs.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/benzinga.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/common.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/conditions.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/contracts.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/dividends.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/etf_global.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/exchanges.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/financials.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/indicators.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/markets.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/quotes.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/request.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/snapshot.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/splits.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/summaries.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/tickers.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/tmx.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/models/trades.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/quotes.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/reference.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/snapshot.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/summaries.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/tmx.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/trades.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/rest/vX.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/websocket/__init__.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/websocket/models/__init__.py +0 -0
- {massive-2.0.1 → massive-2.0.2}/massive/websocket/models/common.py +0 -0
|
@@ -6,6 +6,7 @@ from .base import BaseClient
|
|
|
6
6
|
from .models.economy import (
|
|
7
7
|
FedInflation,
|
|
8
8
|
TreasuryYield,
|
|
9
|
+
FedInflationExpectations,
|
|
9
10
|
)
|
|
10
11
|
from .models.common import Sort, Order
|
|
11
12
|
from .models.request import RequestOptionBuilder
|
|
@@ -85,3 +86,44 @@ class EconomyClient(BaseClient):
|
|
|
85
86
|
deserializer=FedInflation.from_dict,
|
|
86
87
|
options=options,
|
|
87
88
|
)
|
|
89
|
+
|
|
90
|
+
def list_inflation_expectations(
|
|
91
|
+
self,
|
|
92
|
+
date: Optional[Union[str, date]] = None,
|
|
93
|
+
date_any_of: Optional[str] = None,
|
|
94
|
+
date_gt: Optional[Union[str, date]] = None,
|
|
95
|
+
date_gte: Optional[Union[str, date]] = None,
|
|
96
|
+
date_lt: Optional[Union[str, date]] = None,
|
|
97
|
+
date_lte: Optional[Union[str, date]] = None,
|
|
98
|
+
limit: Optional[int] = None,
|
|
99
|
+
sort: Optional[Union[str, Sort]] = None,
|
|
100
|
+
params: Optional[Dict[str, Any]] = None,
|
|
101
|
+
raw: bool = False,
|
|
102
|
+
options: Optional[RequestOptionBuilder] = None,
|
|
103
|
+
) -> Union[Iterator[FedInflationExpectations], HTTPResponse]:
|
|
104
|
+
"""
|
|
105
|
+
A table tracking inflation expectations from both market-based and economic model perspectives across different time horizons.
|
|
106
|
+
|
|
107
|
+
:param date: Calendar date of the observation (YYYY-MM-DD).
|
|
108
|
+
:param date_any_of: Filter equal to any of the values. Multiple values can be specified by using a comma separated list.
|
|
109
|
+
:param date_gt: Filter greater than the value.
|
|
110
|
+
:param date_gte: Filter greater than or equal to the value.
|
|
111
|
+
:param date_lt: Filter less than the value.
|
|
112
|
+
:param date_lte: Filter less than or equal to the value.
|
|
113
|
+
:param limit: Limit the maximum number of results returned. Defaults to '100' if not specified. The maximum allowed limit is '50000'.
|
|
114
|
+
:param sort: A comma separated list of sort columns. For each column, append '.asc' or '.desc' to specify the sort direction. The sort column defaults to 'date' if not specified. The sort order defaults to 'asc' if not specified.
|
|
115
|
+
:param params: Additional query parameters.
|
|
116
|
+
:param raw: Return raw HTTPResponse object if True, else return Iterator[FedInflationExpectations].
|
|
117
|
+
:param options: RequestOptionBuilder for additional headers or params.
|
|
118
|
+
:return: An iterator of FedInflationExpectations objects or HTTPResponse if raw=True.
|
|
119
|
+
"""
|
|
120
|
+
url = "/fed/v1/inflation-expectations"
|
|
121
|
+
|
|
122
|
+
return self._paginate(
|
|
123
|
+
path=url,
|
|
124
|
+
params=self._get_params(self.list_inflation_expectations, locals()),
|
|
125
|
+
deserializer=FedInflationExpectations.from_dict,
|
|
126
|
+
raw=raw,
|
|
127
|
+
result_key="results",
|
|
128
|
+
options=options,
|
|
129
|
+
)
|
|
@@ -12,6 +12,7 @@ from .models.futures import (
|
|
|
12
12
|
FuturesSchedule,
|
|
13
13
|
FuturesMarketStatus,
|
|
14
14
|
FuturesSnapshot,
|
|
15
|
+
FuturesExchange,
|
|
15
16
|
)
|
|
16
17
|
from .models.common import Sort
|
|
17
18
|
from .models.request import RequestOptionBuilder
|
|
@@ -332,3 +333,24 @@ class FuturesClient(BaseClient):
|
|
|
332
333
|
deserializer=FuturesSnapshot.from_dict,
|
|
333
334
|
options=options,
|
|
334
335
|
)
|
|
336
|
+
|
|
337
|
+
def list_futures_exchanges(
|
|
338
|
+
self,
|
|
339
|
+
limit: Optional[int] = None,
|
|
340
|
+
params: Optional[Dict[str, Any]] = None,
|
|
341
|
+
raw: bool = False,
|
|
342
|
+
options: Optional[RequestOptionBuilder] = None,
|
|
343
|
+
) -> Union[Iterator[FuturesExchange], HTTPResponse]:
|
|
344
|
+
"""
|
|
345
|
+
Endpoint: GET /futures/vX/exchanges
|
|
346
|
+
|
|
347
|
+
US futures exchanges and trading venues including major derivatives exchanges (CME, CBOT, NYMEX, COMEX) and other futures market infrastructure for commodity, financial, and other derivative contract trading.
|
|
348
|
+
"""
|
|
349
|
+
url = "/futures/vX/exchanges"
|
|
350
|
+
return self._paginate(
|
|
351
|
+
path=url,
|
|
352
|
+
params=self._get_params(self.list_futures_exchanges, locals()),
|
|
353
|
+
raw=raw,
|
|
354
|
+
deserializer=FuturesExchange.from_dict,
|
|
355
|
+
options=options,
|
|
356
|
+
)
|
|
@@ -60,3 +60,28 @@ class FedInflation:
|
|
|
60
60
|
pce_core=d.get("pce_core"),
|
|
61
61
|
pce_spending=d.get("pce_spending"),
|
|
62
62
|
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@modelclass
|
|
66
|
+
class FedInflationExpectations:
|
|
67
|
+
date: Optional[str] = None
|
|
68
|
+
forward_years_5_to_10: Optional[float] = None
|
|
69
|
+
market_10_year: Optional[float] = None
|
|
70
|
+
market_5_year: Optional[float] = None
|
|
71
|
+
model_10_year: Optional[float] = None
|
|
72
|
+
model_1_year: Optional[float] = None
|
|
73
|
+
model_30_year: Optional[float] = None
|
|
74
|
+
model_5_year: Optional[float] = None
|
|
75
|
+
|
|
76
|
+
@staticmethod
|
|
77
|
+
def from_dict(d):
|
|
78
|
+
return FedInflationExpectations(
|
|
79
|
+
date=d.get("date"),
|
|
80
|
+
forward_years_5_to_10=d.get("forward_years_5_to_10"),
|
|
81
|
+
market_10_year=d.get("market_10_year"),
|
|
82
|
+
market_5_year=d.get("market_5_year"),
|
|
83
|
+
model_10_year=d.get("model_10_year"),
|
|
84
|
+
model_1_year=d.get("model_1_year"),
|
|
85
|
+
model_30_year=d.get("model_30_year"),
|
|
86
|
+
model_5_year=d.get("model_5_year"),
|
|
87
|
+
)
|
|
@@ -16,7 +16,7 @@ class FuturesAgg:
|
|
|
16
16
|
close: Optional[float] = None
|
|
17
17
|
volume: Optional[float] = None
|
|
18
18
|
dollar_volume: Optional[float] = None
|
|
19
|
-
|
|
19
|
+
transactions: Optional[int] = None
|
|
20
20
|
window_start: Optional[int] = None
|
|
21
21
|
session_end_date: Optional[str] = None
|
|
22
22
|
settlement_price: Optional[float] = None
|
|
@@ -31,7 +31,7 @@ class FuturesAgg:
|
|
|
31
31
|
close=d.get("close"),
|
|
32
32
|
volume=d.get("volume"),
|
|
33
33
|
dollar_volume=d.get("dollar_volume"),
|
|
34
|
-
|
|
34
|
+
transactions=d.get("transactions"),
|
|
35
35
|
window_start=d.get("window_start"),
|
|
36
36
|
session_end_date=d.get("session_end_date"),
|
|
37
37
|
settlement_price=d.get("settlement_price"),
|
|
@@ -391,3 +391,33 @@ class FuturesSnapshot:
|
|
|
391
391
|
else None
|
|
392
392
|
),
|
|
393
393
|
)
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
@modelclass
|
|
397
|
+
class FuturesExchange:
|
|
398
|
+
"""
|
|
399
|
+
Represents a futures exchange or trading venue.
|
|
400
|
+
Corresponds to /futures/vX/exchanges endpoint.
|
|
401
|
+
"""
|
|
402
|
+
|
|
403
|
+
acronym: Optional[str] = None
|
|
404
|
+
id: Optional[str] = None
|
|
405
|
+
locale: Optional[str] = None
|
|
406
|
+
mic: Optional[str] = None
|
|
407
|
+
name: Optional[str] = None
|
|
408
|
+
operating_mic: Optional[str] = None
|
|
409
|
+
type: Optional[str] = None
|
|
410
|
+
url: Optional[str] = None
|
|
411
|
+
|
|
412
|
+
@staticmethod
|
|
413
|
+
def from_dict(d):
|
|
414
|
+
return FuturesExchange(
|
|
415
|
+
acronym=d.get("acronym"),
|
|
416
|
+
id=d.get("id"),
|
|
417
|
+
locale=d.get("locale"),
|
|
418
|
+
mic=d.get("mic"),
|
|
419
|
+
name=d.get("name"),
|
|
420
|
+
operating_mic=d.get("operating_mic"),
|
|
421
|
+
type=d.get("type"),
|
|
422
|
+
url=d.get("url"),
|
|
423
|
+
)
|
|
@@ -417,7 +417,7 @@ class FuturesAgg:
|
|
|
417
417
|
close: Optional[float] = None
|
|
418
418
|
high: Optional[float] = None
|
|
419
419
|
low: Optional[float] = None
|
|
420
|
-
|
|
420
|
+
transactions: Optional[int] = None
|
|
421
421
|
start_timestamp: Optional[int] = None
|
|
422
422
|
end_timestamp: Optional[int] = None
|
|
423
423
|
|
|
@@ -432,7 +432,7 @@ class FuturesAgg:
|
|
|
432
432
|
close=d.get("c"),
|
|
433
433
|
high=d.get("h"),
|
|
434
434
|
low=d.get("l"),
|
|
435
|
-
|
|
435
|
+
transactions=d.get("n"),
|
|
436
436
|
start_timestamp=d.get("s"),
|
|
437
437
|
end_timestamp=d.get("e"),
|
|
438
438
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|