moexapi 1.7.12__tar.gz → 1.7.13__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.12 → moexapi-1.7.13}/PKG-INFO +1 -1
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/tickers.py +3 -1
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi.egg-info/PKG-INFO +1 -1
- {moexapi-1.7.12 → moexapi-1.7.13}/pyproject.toml +1 -1
- {moexapi-1.7.12 → moexapi-1.7.13}/LICENSE +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/README.md +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/__init__.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/bonds.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/candles.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/changeover.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/dividends.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/exchange.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/history.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/markets.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/splits.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi/utils.py +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi.egg-info/SOURCES.txt +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi.egg-info/dependency_links.txt +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi.egg-info/requires.txt +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/moexapi.egg-info/top_level.txt +0 -0
- {moexapi-1.7.12 → moexapi-1.7.13}/setup.cfg +0 -0
|
@@ -33,6 +33,8 @@ LISTED_TILL = "listed_till"
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
def _sur_to_rub(currency: T.Optional[str]) -> T.Optional[str]:
|
|
36
|
+
if not currency:
|
|
37
|
+
return None
|
|
36
38
|
if currency == "SUR":
|
|
37
39
|
return "RUB"
|
|
38
40
|
return currency
|
|
@@ -69,7 +71,7 @@ class Listing:
|
|
|
69
71
|
@dataclasses.dataclass
|
|
70
72
|
class TickerBoardInfo:
|
|
71
73
|
boards: list[str]
|
|
72
|
-
currency: str
|
|
74
|
+
currency: T.Optional[str]
|
|
73
75
|
raw_price: T.Optional[float]
|
|
74
76
|
price: T.Optional[float]
|
|
75
77
|
price_in_rub: T.Optional[float]
|
|
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
|