moexapi 1.7.22__tar.gz → 1.7.23__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.22
3
+ Version: 1.7.23
4
4
  Summary: Python API for MOEX ISS
5
5
  Author-email: Aliaksei Rak <kventinel@gmail.com>
6
6
  License: MIT License
@@ -66,7 +66,7 @@ Out[4]: [Candle(date=datetime.date(2023, 10, 2), low=165.51, high=168.86, open=1
66
66
 
67
67
  ### Bonds
68
68
 
69
- `get_history()` returns `History.accrued_interest` from ISS `ACCRUEDINT`.
69
+ `get_history()` returns `History.accrued_interest` from the historical ISS `ACCINT` column.
70
70
  It is accrued coupon cash per security in `History.currency` (settlement
71
71
  currency), not a percentage or a ruble conversion. Missing values remain `None`;
72
72
  zero is a valid observation. Same-day board merges retain one matching value
@@ -26,7 +26,7 @@ Out[4]: [Candle(date=datetime.date(2023, 10, 2), low=165.51, high=168.86, open=1
26
26
 
27
27
  ### Bonds
28
28
 
29
- `get_history()` returns `History.accrued_interest` from ISS `ACCRUEDINT`.
29
+ `get_history()` returns `History.accrued_interest` from the historical ISS `ACCINT` column.
30
30
  It is accrued coupon cash per security in `History.currency` (settlement
31
31
  currency), not a percentage or a ruble conversion. Missing values remain `None`;
32
32
  zero is a valid observation. Same-day board merges retain one matching value
@@ -168,7 +168,9 @@ def _parse_history(
168
168
  volume=line.get("VOLUME"),
169
169
  value=value,
170
170
  currency=currency,
171
- accrued_interest=line.get("ACCRUEDINT"),
171
+ # Historical ISS rows use ACCINT; ACCRUEDINT belongs to
172
+ # current market data and is absent from bond history.
173
+ accrued_interest=line.get("ACCINT"),
172
174
  )
173
175
  if len(result) > 0 and result[-1].date == date:
174
176
  if board in boards:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moexapi
3
- Version: 1.7.22
3
+ Version: 1.7.23
4
4
  Summary: Python API for MOEX ISS
5
5
  Author-email: Aliaksei Rak <kventinel@gmail.com>
6
6
  License: MIT License
@@ -66,7 +66,7 @@ Out[4]: [Candle(date=datetime.date(2023, 10, 2), low=165.51, high=168.86, open=1
66
66
 
67
67
  ### Bonds
68
68
 
69
- `get_history()` returns `History.accrued_interest` from ISS `ACCRUEDINT`.
69
+ `get_history()` returns `History.accrued_interest` from the historical ISS `ACCINT` column.
70
70
  It is accrued coupon cash per security in `History.currency` (settlement
71
71
  currency), not a percentage or a ruble conversion. Missing values remain `None`;
72
72
  zero is a valid observation. Same-day board merges retain one matching value
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "moexapi"
7
- version = "1.7.22"
7
+ version = "1.7.23"
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