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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moexapi
3
- Version: 1.7.12
3
+ Version: 1.7.13
4
4
  Summary: Python API for MOEX ISS
5
5
  Author-email: Aliaksei Rak <kventinel@gmail.com>
6
6
  License: MIT License
@@ -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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moexapi
3
- Version: 1.7.12
3
+ Version: 1.7.13
4
4
  Summary: Python API for MOEX ISS
5
5
  Author-email: Aliaksei Rak <kventinel@gmail.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "moexapi"
7
- version = "1.7.12"
7
+ version = "1.7.13"
8
8
  description = "Python API for MOEX ISS"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Aliaksei Rak", email = "kventinel@gmail.com" }]
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