moexapi 1.7.9__tar.gz → 1.7.11__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.9 → moexapi-1.7.11}/PKG-INFO +1 -1
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/bonds.py +4 -1
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/tickers.py +2 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi.egg-info/PKG-INFO +1 -1
- {moexapi-1.7.9 → moexapi-1.7.11}/pyproject.toml +1 -1
- {moexapi-1.7.9 → moexapi-1.7.11}/LICENSE +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/README.md +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/__init__.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/candles.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/changeover.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/dividends.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/exchange.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/history.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/markets.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/splits.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi/utils.py +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi.egg-info/SOURCES.txt +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi.egg-info/dependency_links.txt +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi.egg-info/requires.txt +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/moexapi.egg-info/top_level.txt +0 -0
- {moexapi-1.7.9 → moexapi-1.7.11}/setup.cfg +0 -0
|
@@ -119,7 +119,10 @@ class Bond:
|
|
|
119
119
|
if item not in self.coupons:
|
|
120
120
|
self.coupons.append(item)
|
|
121
121
|
for line in offers:
|
|
122
|
-
|
|
122
|
+
offer_date = line.get("offerdate")
|
|
123
|
+
if not offer_date or offer_date == "0000-00-00":
|
|
124
|
+
continue
|
|
125
|
+
date = datetime.date.fromisoformat(offer_date)
|
|
123
126
|
end_date = _max(end_date, date)
|
|
124
127
|
item = Offer(date=date, value=line["value"])
|
|
125
128
|
if item not in self.offers:
|
|
@@ -241,6 +241,8 @@ class Ticker:
|
|
|
241
241
|
board_info = TickerBoardInfo.from_secid(listing.secid, listing.market, listing.board)
|
|
242
242
|
if board_info is not None:
|
|
243
243
|
for key, value in dataclasses.asdict(board_info).items():
|
|
244
|
+
if value is None:
|
|
245
|
+
continue
|
|
244
246
|
if getattr(result, key, None) is None or getattr(result, key, None) == []:
|
|
245
247
|
setattr(result, key, value)
|
|
246
248
|
elif getattr(result, key) != value:
|
|
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
|