tvfinance 1.0.0__py3-none-any.whl
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.
- tvfinance/__init__.py +77 -0
- tvfinance/aio/__init__.py +77 -0
- tvfinance/api/__init__.py +1 -0
- tvfinance/api/calendar.py +731 -0
- tvfinance/api/history.py +47 -0
- tvfinance/api/html_extractors.py +1505 -0
- tvfinance/api/news.py +41 -0
- tvfinance/api/options.py +329 -0
- tvfinance/api/quote.py +67 -0
- tvfinance/api/screener.py +253 -0
- tvfinance/api/search.py +96 -0
- tvfinance/cli.py +349 -0
- tvfinance/client/__init__.py +1 -0
- tvfinance/client/chart_session.py +221 -0
- tvfinance/client/news_session.py +238 -0
- tvfinance/client/quote_session.py +165 -0
- tvfinance/core/__init__.py +1 -0
- tvfinance/core/exceptions.py +10 -0
- tvfinance/core/models.py +113 -0
- tvfinance/core/news_parser.py +84 -0
- tvfinance/core/protocol.py +52 -0
- tvfinance/core/range_bars.py +50 -0
- tvfinance/core/series.py +47 -0
- tvfinance/core/session.py +49 -0
- tvfinance/core/timeframe.py +53 -0
- tvfinance/ticker.py +1099 -0
- tvfinance-1.0.0.dist-info/METADATA +110 -0
- tvfinance-1.0.0.dist-info/RECORD +31 -0
- tvfinance-1.0.0.dist-info/WHEEL +4 -0
- tvfinance-1.0.0.dist-info/entry_points.txt +2 -0
- tvfinance-1.0.0.dist-info/licenses/LICENSE +21 -0
tvfinance/__init__.py
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from tvfinance.api.history import history
|
|
4
|
+
from tvfinance.api.html_extractors import (
|
|
5
|
+
bonds,
|
|
6
|
+
docs,
|
|
7
|
+
etfs,
|
|
8
|
+
holdings,
|
|
9
|
+
ideas,
|
|
10
|
+
financials,
|
|
11
|
+
profile,
|
|
12
|
+
forecast,
|
|
13
|
+
technicals,
|
|
14
|
+
)
|
|
15
|
+
from tvfinance.core.models import NewsArticle, Quote, Candle
|
|
16
|
+
from tvfinance.api.news import news, news_markdown
|
|
17
|
+
from tvfinance.api.options import (
|
|
18
|
+
OptionChainRow,
|
|
19
|
+
OptionContract,
|
|
20
|
+
options_chain,
|
|
21
|
+
options_info,
|
|
22
|
+
)
|
|
23
|
+
from tvfinance.api.quote import (
|
|
24
|
+
quote,
|
|
25
|
+
stream,
|
|
26
|
+
)
|
|
27
|
+
from tvfinance.api.screener import (
|
|
28
|
+
ScreenerClient,
|
|
29
|
+
screener,
|
|
30
|
+
to_dataframe,
|
|
31
|
+
)
|
|
32
|
+
from tvfinance.api.search import search
|
|
33
|
+
from tvfinance.api.calendar import (
|
|
34
|
+
calendar,
|
|
35
|
+
earnings,
|
|
36
|
+
dividends,
|
|
37
|
+
ipo,
|
|
38
|
+
revenue,
|
|
39
|
+
)
|
|
40
|
+
from tvfinance.ticker import Ticker, Tickers
|
|
41
|
+
from tvfinance.core.session import Session
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"Candle",
|
|
45
|
+
"Quote",
|
|
46
|
+
"NewsArticle",
|
|
47
|
+
"Ticker",
|
|
48
|
+
"Tickers",
|
|
49
|
+
"Session",
|
|
50
|
+
"ScreenerClient",
|
|
51
|
+
"OptionContract",
|
|
52
|
+
"OptionChainRow",
|
|
53
|
+
"options_info",
|
|
54
|
+
"options_chain",
|
|
55
|
+
"history",
|
|
56
|
+
"quote",
|
|
57
|
+
"stream",
|
|
58
|
+
"news",
|
|
59
|
+
"news_markdown",
|
|
60
|
+
"screener",
|
|
61
|
+
"to_dataframe",
|
|
62
|
+
"search",
|
|
63
|
+
"bonds",
|
|
64
|
+
"etfs",
|
|
65
|
+
"docs",
|
|
66
|
+
"holdings",
|
|
67
|
+
"ideas",
|
|
68
|
+
"financials",
|
|
69
|
+
"profile",
|
|
70
|
+
"forecast",
|
|
71
|
+
"technicals",
|
|
72
|
+
"calendar",
|
|
73
|
+
"earnings",
|
|
74
|
+
"dividends",
|
|
75
|
+
"ipo",
|
|
76
|
+
"revenue",
|
|
77
|
+
]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from tvfinance.api.history import history_async as history
|
|
4
|
+
from tvfinance.api.html_extractors import (
|
|
5
|
+
bonds_async as bonds,
|
|
6
|
+
docs_async as docs,
|
|
7
|
+
etfs_async as etfs,
|
|
8
|
+
holdings_async as holdings,
|
|
9
|
+
ideas_async as ideas,
|
|
10
|
+
financials_async as financials,
|
|
11
|
+
profile_async as profile,
|
|
12
|
+
forecast_async as forecast,
|
|
13
|
+
technicals_async as technicals,
|
|
14
|
+
)
|
|
15
|
+
from tvfinance.core.models import NewsArticle, Quote, Candle
|
|
16
|
+
from tvfinance.api.news import news_async as news, news_markdown_async as news_markdown
|
|
17
|
+
from tvfinance.api.options import (
|
|
18
|
+
OptionChainRow,
|
|
19
|
+
OptionContract,
|
|
20
|
+
options_chain_async as options_chain,
|
|
21
|
+
options_info_async as options_info,
|
|
22
|
+
)
|
|
23
|
+
from tvfinance.api.quote import (
|
|
24
|
+
quote_async as quote,
|
|
25
|
+
stream_async as stream,
|
|
26
|
+
)
|
|
27
|
+
from tvfinance.api.screener import (
|
|
28
|
+
ScreenerClient,
|
|
29
|
+
screener_async as screener,
|
|
30
|
+
to_dataframe,
|
|
31
|
+
)
|
|
32
|
+
from tvfinance.api.search import search_async as search
|
|
33
|
+
from tvfinance.api.calendar import (
|
|
34
|
+
calendar_async as calendar,
|
|
35
|
+
earnings_async as earnings,
|
|
36
|
+
dividends_async as dividends,
|
|
37
|
+
ipo_async as ipo,
|
|
38
|
+
revenue_async as revenue,
|
|
39
|
+
)
|
|
40
|
+
from tvfinance.ticker import AsyncTicker as Ticker, AsyncTickers as Tickers
|
|
41
|
+
from tvfinance.core.session import AsyncSession as Session
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"Candle",
|
|
45
|
+
"Quote",
|
|
46
|
+
"NewsArticle",
|
|
47
|
+
"Ticker",
|
|
48
|
+
"Tickers",
|
|
49
|
+
"Session",
|
|
50
|
+
"ScreenerClient",
|
|
51
|
+
"OptionContract",
|
|
52
|
+
"OptionChainRow",
|
|
53
|
+
"options_info",
|
|
54
|
+
"options_chain",
|
|
55
|
+
"history",
|
|
56
|
+
"quote",
|
|
57
|
+
"stream",
|
|
58
|
+
"news",
|
|
59
|
+
"news_markdown",
|
|
60
|
+
"screener",
|
|
61
|
+
"to_dataframe",
|
|
62
|
+
"search",
|
|
63
|
+
"bonds",
|
|
64
|
+
"etfs",
|
|
65
|
+
"docs",
|
|
66
|
+
"holdings",
|
|
67
|
+
"ideas",
|
|
68
|
+
"financials",
|
|
69
|
+
"profile",
|
|
70
|
+
"forecast",
|
|
71
|
+
"technicals",
|
|
72
|
+
"calendar",
|
|
73
|
+
"earnings",
|
|
74
|
+
"dividends",
|
|
75
|
+
"ipo",
|
|
76
|
+
"revenue",
|
|
77
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Layer initialization
|