dtscore 2.0.2__tar.gz → 2.0.4__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.
Files changed (24) hide show
  1. {dtscore-2.0.2/src/dtscore.egg-info → dtscore-2.0.4}/PKG-INFO +1 -1
  2. {dtscore-2.0.2 → dtscore-2.0.4}/pyproject.toml +1 -1
  3. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/domain.py +7 -0
  4. dtscore-2.0.2/src/dtscore/tiingoadapter.py → dtscore-2.0.4/src/dtscore/tiingo.py +4 -3
  5. {dtscore-2.0.2 → dtscore-2.0.4/src/dtscore.egg-info}/PKG-INFO +1 -1
  6. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/SOURCES.txt +1 -1
  7. {dtscore-2.0.2 → dtscore-2.0.4}/tests/test2.py +1 -1
  8. {dtscore-2.0.2 → dtscore-2.0.4}/LICENSE +0 -0
  9. {dtscore-2.0.2 → dtscore-2.0.4}/README.md +0 -0
  10. {dtscore-2.0.2 → dtscore-2.0.4}/setup.cfg +0 -0
  11. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/__init__.py +0 -0
  12. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/consoleutils.py +0 -0
  13. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/csvnames.py +0 -0
  14. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/dataframenames.py +0 -0
  15. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/events.py +0 -0
  16. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/fileutils.py +0 -0
  17. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/globals.py +0 -0
  18. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/logging.py +0 -0
  19. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/schema_enums.py +0 -0
  20. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/utils.py +0 -0
  21. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/dependency_links.txt +0 -0
  22. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/requires.txt +0 -0
  23. {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/top_level.txt +0 -0
  24. {dtscore-2.0.2 → dtscore-2.0.4}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dtscore
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: DTS Core Services
5
5
  Author-email: "D. Smith" <dgsmith.hpot@gmail.com>
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dtscore"
7
- version = "2.0.2"
7
+ version = "2.0.4"
8
8
  authors = [
9
9
  { name="D. Smith", email="dgsmith.hpot@gmail.com" },
10
10
  ]
@@ -33,3 +33,10 @@ class Quote:
33
33
  return f"Quote[date={self.date}, close={self.close}, high={self.high}, low={self.low}, open={self.open}, volume={self.volume}, " + \
34
34
  f"adjClose={self.adjClose}, adjHigh={self.adjHigh}, adjLow={self.adjLow}, adjOpen={self.adjOpen}, adjVolume={self.adjVolume}, " + \
35
35
  f"divCash={self.divCash}, splitFactor={self.splitFactor}"
36
+
37
+ def to_list(self) -> list[dt.date | Optional[float] | Optional[int]]:
38
+ return [
39
+ self.date, self.open, self.high, self.low, self.close, self.volume,
40
+ self.adjOpen, self.adjHigh, self.adjLow, self.adjClose, self.adjVolume,
41
+ self.divCash, self.splitFactor
42
+ ]
@@ -1,5 +1,5 @@
1
1
  """
2
- IEX adapter
2
+ Tiingo adapter
3
3
 
4
4
  Latest EOD
5
5
  https://api.tiingo.com/tiingo/daily/<ticker>/prices
@@ -10,11 +10,12 @@
10
10
  import datetime as dt
11
11
  import json
12
12
  from collections import namedtuple
13
- from typing import Optional, Any
14
- from dtscore import logging as _log
13
+ from typing import Any, Optional
15
14
  from urllib import parse as urlp
16
15
 
17
16
  import requests
17
+
18
+ from dtscore import logging as _log
18
19
  from dtscore.domain import Quote
19
20
 
20
21
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dtscore
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: DTS Core Services
5
5
  Author-email: "D. Smith" <dgsmith.hpot@gmail.com>
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -11,7 +11,7 @@ src/dtscore/fileutils.py
11
11
  src/dtscore/globals.py
12
12
  src/dtscore/logging.py
13
13
  src/dtscore/schema_enums.py
14
- src/dtscore/tiingoadapter.py
14
+ src/dtscore/tiingo.py
15
15
  src/dtscore/utils.py
16
16
  src/dtscore.egg-info/PKG-INFO
17
17
  src/dtscore.egg-info/SOURCES.txt
@@ -1,5 +1,5 @@
1
1
 
2
- from dtscore import tiingoadapter as ti
2
+ from dtscore import tiingo as ti
3
3
  from dtscore import domain
4
4
  import datetime as dt
5
5
 
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