moexapi 1.7.6__tar.gz → 1.7.7__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.
- {moexapi-1.7.6 → moexapi-1.7.7}/PKG-INFO +1 -1
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/bonds.py +3 -2
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi.egg-info/PKG-INFO +1 -1
- {moexapi-1.7.6 → moexapi-1.7.7}/pyproject.toml +1 -1
- {moexapi-1.7.6 → moexapi-1.7.7}/LICENSE +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/README.md +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/__init__.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/candles.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/changeover.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/dividends.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/exchange.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/history.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/markets.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/splits.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/tickers.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi/utils.py +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi.egg-info/SOURCES.txt +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi.egg-info/dependency_links.txt +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi.egg-info/requires.txt +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/moexapi.egg-info/top_level.txt +0 -0
- {moexapi-1.7.6 → moexapi-1.7.7}/setup.cfg +0 -0
|
@@ -28,7 +28,7 @@ class Amortization:
|
|
|
28
28
|
@dataclasses.dataclass
|
|
29
29
|
class Coupon:
|
|
30
30
|
date: datetime.date
|
|
31
|
-
start_date: datetime.date
|
|
31
|
+
start_date: T.Optional[datetime.date]
|
|
32
32
|
value: float
|
|
33
33
|
initialfacevalue: float
|
|
34
34
|
|
|
@@ -108,7 +108,8 @@ class Bond:
|
|
|
108
108
|
self.coupons.append(
|
|
109
109
|
Coupon(
|
|
110
110
|
date=date,
|
|
111
|
-
start_date=datetime.date.fromisoformat(line["startdate"])
|
|
111
|
+
start_date=datetime.date.fromisoformat(line["startdate"])
|
|
112
|
+
if line.get("startdate") else None,
|
|
112
113
|
value=line["value"],
|
|
113
114
|
initialfacevalue=line["initialfacevalue"],
|
|
114
115
|
)
|
|
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
|