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.
- {dtscore-2.0.2/src/dtscore.egg-info → dtscore-2.0.4}/PKG-INFO +1 -1
- {dtscore-2.0.2 → dtscore-2.0.4}/pyproject.toml +1 -1
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/domain.py +7 -0
- dtscore-2.0.2/src/dtscore/tiingoadapter.py → dtscore-2.0.4/src/dtscore/tiingo.py +4 -3
- {dtscore-2.0.2 → dtscore-2.0.4/src/dtscore.egg-info}/PKG-INFO +1 -1
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/SOURCES.txt +1 -1
- {dtscore-2.0.2 → dtscore-2.0.4}/tests/test2.py +1 -1
- {dtscore-2.0.2 → dtscore-2.0.4}/LICENSE +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/README.md +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/setup.cfg +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/__init__.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/consoleutils.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/csvnames.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/dataframenames.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/events.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/fileutils.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/globals.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/logging.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/schema_enums.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore/utils.py +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/dependency_links.txt +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/requires.txt +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/src/dtscore.egg-info/top_level.txt +0 -0
- {dtscore-2.0.2 → dtscore-2.0.4}/tests/test.py +0 -0
|
@@ -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
|
-
|
|
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
|
|
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
|
"""
|
|
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
|