tradingview-mcp 1.0.0__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.
- tradingview_mcp-1.0.0/.gitignore +41 -0
- tradingview_mcp-1.0.0/LICENSE +23 -0
- tradingview_mcp-1.0.0/PKG-INFO +182 -0
- tradingview_mcp-1.0.0/README.md +153 -0
- tradingview_mcp-1.0.0/pyproject.toml +65 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/__init__.py +14 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/column.py +231 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/constants.py +425 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/models.py +154 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/query.py +367 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/scanner.py +256 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/server.py +1361 -0
- tradingview_mcp-1.0.0/src/tradingview_mcp/utils.py +382 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Reference files
|
|
2
|
+
referance/
|
|
3
|
+
|
|
4
|
+
# Environment
|
|
5
|
+
.env
|
|
6
|
+
|
|
7
|
+
# Byte-compiled / optimized / DLL files
|
|
8
|
+
__pycache__/
|
|
9
|
+
*.py[cod]
|
|
10
|
+
*$py.class
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
build/
|
|
14
|
+
dist/
|
|
15
|
+
*.egg-info/
|
|
16
|
+
.installed.cfg
|
|
17
|
+
*.egg
|
|
18
|
+
|
|
19
|
+
# Unit test / coverage reports
|
|
20
|
+
.pytest_cache/
|
|
21
|
+
.coverage
|
|
22
|
+
htmlcov/
|
|
23
|
+
|
|
24
|
+
# Virtual environments
|
|
25
|
+
.venv
|
|
26
|
+
venv/
|
|
27
|
+
ENV/
|
|
28
|
+
|
|
29
|
+
# IDE
|
|
30
|
+
.vscode/
|
|
31
|
+
.idea/
|
|
32
|
+
*.swp
|
|
33
|
+
*.swo
|
|
34
|
+
*~
|
|
35
|
+
|
|
36
|
+
# OS
|
|
37
|
+
.DS_Store
|
|
38
|
+
Thumbs.db
|
|
39
|
+
|
|
40
|
+
# UV
|
|
41
|
+
uv.lock
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Shneor Elmaleh
|
|
4
|
+
Copyright (c) 2025 Ahmet Taner Atila
|
|
5
|
+
Copyright (c) 2026 Henrik (k73a)
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tradingview-mcp
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A comprehensive MCP server for TradingView market screening with integrated screener functionality
|
|
5
|
+
Author: TradingView MCP Team
|
|
6
|
+
License: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: crypto,mcp,screener,stocks,technical-analysis,trading,tradingview
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Requires-Dist: httpx>=0.24.0
|
|
20
|
+
Requires-Dist: mcp>=1.0.0
|
|
21
|
+
Requires-Dist: pandas>=2.0.0
|
|
22
|
+
Requires-Dist: requests>=2.28.0
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: pyright>=1.1.0; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
27
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# TradingView MCP Server
|
|
31
|
+
|
|
32
|
+
A comprehensive Model Context Protocol (MCP) server for TradingView market screening with fully integrated screener functionality. This server provides powerful tools for cryptocurrency and stock market analysis directly through the MCP interface.
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
|
|
36
|
+
### Core Screener Functionality
|
|
37
|
+
- **Direct TradingView API Integration**: Query the TradingView scanner API without external dependencies
|
|
38
|
+
- **Multi-Market Support**: 76+ markets including crypto, stocks, forex, futures, and bonds
|
|
39
|
+
- **SQL-like Query Interface**: Build complex queries with filtering, sorting, and pagination
|
|
40
|
+
- **250+ Technical Indicators**: Access a comprehensive set of technical analysis columns
|
|
41
|
+
|
|
42
|
+
### MCP Tools
|
|
43
|
+
- `screen_market`: Execute custom market screening queries
|
|
44
|
+
- `get_top_gainers`: Find top gaining assets in any market
|
|
45
|
+
- `get_top_losers`: Find top losing assets in any market
|
|
46
|
+
- `get_premarket_movers`: Pre-market gainers, losers, and most active
|
|
47
|
+
- `get_postmarket_movers`: Post-market activity analysis
|
|
48
|
+
- `get_technical_analysis`: Detailed technical analysis for specific symbols
|
|
49
|
+
- `scan_bollinger_bands`: Bollinger Band squeeze detection
|
|
50
|
+
- `scan_volume_breakout`: Volume breakout detection
|
|
51
|
+
- `scan_rsi_extremes`: RSI overbought/oversold scanner
|
|
52
|
+
- `scan_macd_crossover`: MACD crossover detection
|
|
53
|
+
- `get_all_symbols`: Retrieve all symbols for a market
|
|
54
|
+
- `advanced_query`: Execute advanced queries with AND/OR logic
|
|
55
|
+
|
|
56
|
+
### MCP Resources
|
|
57
|
+
- `markets://list`: List all available markets
|
|
58
|
+
- `columns://list`: List all available technical indicator columns
|
|
59
|
+
- `exchanges://crypto`: List cryptocurrency exchanges
|
|
60
|
+
- `presets://list`: List predefined screening presets
|
|
61
|
+
|
|
62
|
+
## Installation
|
|
63
|
+
|
|
64
|
+
### Using uv (Recommended)
|
|
65
|
+
```bash
|
|
66
|
+
uv add tradingview-mcp
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Using pip
|
|
70
|
+
```bash
|
|
71
|
+
pip install tradingview-mcp
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### From Source
|
|
75
|
+
```bash
|
|
76
|
+
git clone https://github.com/your-repo/tradingview-mcp.git
|
|
77
|
+
cd tradingview-mcp
|
|
78
|
+
uv sync
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Usage
|
|
82
|
+
|
|
83
|
+
### Running the MCP Server
|
|
84
|
+
|
|
85
|
+
#### Stdio Transport (Default)
|
|
86
|
+
```bash
|
|
87
|
+
tradingview-mcp
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### HTTP Transport
|
|
91
|
+
```bash
|
|
92
|
+
tradingview-mcp streamable-http --host 127.0.0.1 --port 8000
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### MCP Client Configuration
|
|
96
|
+
|
|
97
|
+
Add to your MCP client configuration:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"mcpServers": {
|
|
102
|
+
"tradingview": {
|
|
103
|
+
"command": "tradingview-mcp",
|
|
104
|
+
"args": []
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Example Queries
|
|
111
|
+
|
|
112
|
+
#### Basic Market Screening
|
|
113
|
+
```python
|
|
114
|
+
# Get top 50 stocks by trading volume
|
|
115
|
+
await client.call_tool("screen_market", {
|
|
116
|
+
"market": "america",
|
|
117
|
+
"columns": ["name", "close", "volume", "change"],
|
|
118
|
+
"sort_by": "volume",
|
|
119
|
+
"ascending": False,
|
|
120
|
+
"limit": 50
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Technical Analysis Screening
|
|
125
|
+
```python
|
|
126
|
+
# Find stocks with RSI below 30 (oversold)
|
|
127
|
+
await client.call_tool("scan_rsi_extremes", {
|
|
128
|
+
"market": "america",
|
|
129
|
+
"condition": "oversold",
|
|
130
|
+
"threshold": 30,
|
|
131
|
+
"limit": 20
|
|
132
|
+
})
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### Cryptocurrency Screening
|
|
136
|
+
```python
|
|
137
|
+
# Get top crypto gainers
|
|
138
|
+
await client.call_tool("get_top_gainers", {
|
|
139
|
+
"market": "crypto",
|
|
140
|
+
"limit": 25
|
|
141
|
+
})
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## API Reference
|
|
145
|
+
|
|
146
|
+
### Markets
|
|
147
|
+
The following markets are supported:
|
|
148
|
+
- **Crypto**: `crypto`, `coin`
|
|
149
|
+
- **Traditional Finance**: `america`, `uk`, `germany`, `japan`, etc. (67 countries)
|
|
150
|
+
- **Other**: `forex`, `futures`, `bonds`, `cfd`, `options`
|
|
151
|
+
|
|
152
|
+
### Technical Indicators
|
|
153
|
+
Common indicators include:
|
|
154
|
+
- Price: `open`, `high`, `low`, `close`, `volume`
|
|
155
|
+
- Moving Averages: `SMA5`, `SMA10`, `SMA20`, `SMA50`, `SMA100`, `SMA200`, `EMA5`, `EMA10`, `EMA20`, `EMA50`, `EMA100`, `EMA200`
|
|
156
|
+
- Oscillators: `RSI`, `RSI7`, `MACD.macd`, `MACD.signal`, `Stoch.K`, `Stoch.D`
|
|
157
|
+
- Bollinger Bands: `BB.upper`, `BB.lower`
|
|
158
|
+
- Others: `VWAP`, `ATR`, `ADX`, `CCI20`, etc.
|
|
159
|
+
|
|
160
|
+
See `columns://list` resource for the complete list.
|
|
161
|
+
|
|
162
|
+
## Development
|
|
163
|
+
|
|
164
|
+
### Running Tests
|
|
165
|
+
```bash
|
|
166
|
+
uv run pytest tests/
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Code Formatting
|
|
170
|
+
```bash
|
|
171
|
+
uv run ruff format .
|
|
172
|
+
uv run ruff check . --fix
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Type Checking
|
|
176
|
+
```bash
|
|
177
|
+
uv run pyright
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# TradingView MCP Server
|
|
2
|
+
|
|
3
|
+
A comprehensive Model Context Protocol (MCP) server for TradingView market screening with fully integrated screener functionality. This server provides powerful tools for cryptocurrency and stock market analysis directly through the MCP interface.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
### Core Screener Functionality
|
|
8
|
+
- **Direct TradingView API Integration**: Query the TradingView scanner API without external dependencies
|
|
9
|
+
- **Multi-Market Support**: 76+ markets including crypto, stocks, forex, futures, and bonds
|
|
10
|
+
- **SQL-like Query Interface**: Build complex queries with filtering, sorting, and pagination
|
|
11
|
+
- **250+ Technical Indicators**: Access a comprehensive set of technical analysis columns
|
|
12
|
+
|
|
13
|
+
### MCP Tools
|
|
14
|
+
- `screen_market`: Execute custom market screening queries
|
|
15
|
+
- `get_top_gainers`: Find top gaining assets in any market
|
|
16
|
+
- `get_top_losers`: Find top losing assets in any market
|
|
17
|
+
- `get_premarket_movers`: Pre-market gainers, losers, and most active
|
|
18
|
+
- `get_postmarket_movers`: Post-market activity analysis
|
|
19
|
+
- `get_technical_analysis`: Detailed technical analysis for specific symbols
|
|
20
|
+
- `scan_bollinger_bands`: Bollinger Band squeeze detection
|
|
21
|
+
- `scan_volume_breakout`: Volume breakout detection
|
|
22
|
+
- `scan_rsi_extremes`: RSI overbought/oversold scanner
|
|
23
|
+
- `scan_macd_crossover`: MACD crossover detection
|
|
24
|
+
- `get_all_symbols`: Retrieve all symbols for a market
|
|
25
|
+
- `advanced_query`: Execute advanced queries with AND/OR logic
|
|
26
|
+
|
|
27
|
+
### MCP Resources
|
|
28
|
+
- `markets://list`: List all available markets
|
|
29
|
+
- `columns://list`: List all available technical indicator columns
|
|
30
|
+
- `exchanges://crypto`: List cryptocurrency exchanges
|
|
31
|
+
- `presets://list`: List predefined screening presets
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
### Using uv (Recommended)
|
|
36
|
+
```bash
|
|
37
|
+
uv add tradingview-mcp
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Using pip
|
|
41
|
+
```bash
|
|
42
|
+
pip install tradingview-mcp
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### From Source
|
|
46
|
+
```bash
|
|
47
|
+
git clone https://github.com/your-repo/tradingview-mcp.git
|
|
48
|
+
cd tradingview-mcp
|
|
49
|
+
uv sync
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
### Running the MCP Server
|
|
55
|
+
|
|
56
|
+
#### Stdio Transport (Default)
|
|
57
|
+
```bash
|
|
58
|
+
tradingview-mcp
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
#### HTTP Transport
|
|
62
|
+
```bash
|
|
63
|
+
tradingview-mcp streamable-http --host 127.0.0.1 --port 8000
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### MCP Client Configuration
|
|
67
|
+
|
|
68
|
+
Add to your MCP client configuration:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"mcpServers": {
|
|
73
|
+
"tradingview": {
|
|
74
|
+
"command": "tradingview-mcp",
|
|
75
|
+
"args": []
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Example Queries
|
|
82
|
+
|
|
83
|
+
#### Basic Market Screening
|
|
84
|
+
```python
|
|
85
|
+
# Get top 50 stocks by trading volume
|
|
86
|
+
await client.call_tool("screen_market", {
|
|
87
|
+
"market": "america",
|
|
88
|
+
"columns": ["name", "close", "volume", "change"],
|
|
89
|
+
"sort_by": "volume",
|
|
90
|
+
"ascending": False,
|
|
91
|
+
"limit": 50
|
|
92
|
+
})
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### Technical Analysis Screening
|
|
96
|
+
```python
|
|
97
|
+
# Find stocks with RSI below 30 (oversold)
|
|
98
|
+
await client.call_tool("scan_rsi_extremes", {
|
|
99
|
+
"market": "america",
|
|
100
|
+
"condition": "oversold",
|
|
101
|
+
"threshold": 30,
|
|
102
|
+
"limit": 20
|
|
103
|
+
})
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### Cryptocurrency Screening
|
|
107
|
+
```python
|
|
108
|
+
# Get top crypto gainers
|
|
109
|
+
await client.call_tool("get_top_gainers", {
|
|
110
|
+
"market": "crypto",
|
|
111
|
+
"limit": 25
|
|
112
|
+
})
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## API Reference
|
|
116
|
+
|
|
117
|
+
### Markets
|
|
118
|
+
The following markets are supported:
|
|
119
|
+
- **Crypto**: `crypto`, `coin`
|
|
120
|
+
- **Traditional Finance**: `america`, `uk`, `germany`, `japan`, etc. (67 countries)
|
|
121
|
+
- **Other**: `forex`, `futures`, `bonds`, `cfd`, `options`
|
|
122
|
+
|
|
123
|
+
### Technical Indicators
|
|
124
|
+
Common indicators include:
|
|
125
|
+
- Price: `open`, `high`, `low`, `close`, `volume`
|
|
126
|
+
- Moving Averages: `SMA5`, `SMA10`, `SMA20`, `SMA50`, `SMA100`, `SMA200`, `EMA5`, `EMA10`, `EMA20`, `EMA50`, `EMA100`, `EMA200`
|
|
127
|
+
- Oscillators: `RSI`, `RSI7`, `MACD.macd`, `MACD.signal`, `Stoch.K`, `Stoch.D`
|
|
128
|
+
- Bollinger Bands: `BB.upper`, `BB.lower`
|
|
129
|
+
- Others: `VWAP`, `ATR`, `ADX`, `CCI20`, etc.
|
|
130
|
+
|
|
131
|
+
See `columns://list` resource for the complete list.
|
|
132
|
+
|
|
133
|
+
## Development
|
|
134
|
+
|
|
135
|
+
### Running Tests
|
|
136
|
+
```bash
|
|
137
|
+
uv run pytest tests/
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Code Formatting
|
|
141
|
+
```bash
|
|
142
|
+
uv run ruff format .
|
|
143
|
+
uv run ruff check . --fix
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Type Checking
|
|
147
|
+
```bash
|
|
148
|
+
uv run pyright
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tradingview-mcp"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "A comprehensive MCP server for TradingView market screening with integrated screener functionality"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = { text = "MIT" }
|
|
7
|
+
requires-python = ">=3.10"
|
|
8
|
+
authors = [{ name = "TradingView MCP Team" }]
|
|
9
|
+
keywords = ["mcp", "tradingview", "screener", "crypto", "stocks", "trading", "technical-analysis"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 4 - Beta",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"Intended Audience :: Financial and Insurance Industry",
|
|
14
|
+
"License :: OSI Approved :: MIT License",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3.10",
|
|
17
|
+
"Programming Language :: Python :: 3.11",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Topic :: Office/Business :: Financial :: Investment",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
dependencies = [
|
|
23
|
+
"mcp>=1.0.0",
|
|
24
|
+
"requests>=2.28.0",
|
|
25
|
+
"pandas>=2.0.0",
|
|
26
|
+
"httpx>=0.24.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
dev = [
|
|
31
|
+
"pytest>=7.0.0",
|
|
32
|
+
"pytest-asyncio>=0.21.0",
|
|
33
|
+
"ruff>=0.1.0",
|
|
34
|
+
"pyright>=1.1.0",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.scripts]
|
|
38
|
+
tradingview-mcp = "tradingview_mcp:main"
|
|
39
|
+
|
|
40
|
+
[build-system]
|
|
41
|
+
requires = ["hatchling"]
|
|
42
|
+
build-backend = "hatchling.build"
|
|
43
|
+
|
|
44
|
+
[tool.hatch.build.targets.wheel]
|
|
45
|
+
packages = ["src/tradingview_mcp"]
|
|
46
|
+
|
|
47
|
+
[tool.hatch.build.targets.sdist]
|
|
48
|
+
include = ["src/tradingview_mcp/**"]
|
|
49
|
+
|
|
50
|
+
[tool.pytest.ini_options]
|
|
51
|
+
pythonpath = ["src"]
|
|
52
|
+
testpaths = ["tests"]
|
|
53
|
+
asyncio_mode = "auto"
|
|
54
|
+
|
|
55
|
+
[tool.ruff]
|
|
56
|
+
line-length = 120
|
|
57
|
+
target-version = "py310"
|
|
58
|
+
|
|
59
|
+
[tool.ruff.lint]
|
|
60
|
+
select = ["E", "F", "I", "W"]
|
|
61
|
+
ignore = ["E501"]
|
|
62
|
+
|
|
63
|
+
[tool.pyright]
|
|
64
|
+
pythonVersion = "3.10"
|
|
65
|
+
typeCheckingMode = "basic"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TradingView MCP Server - A comprehensive MCP server for TradingView market screening.
|
|
3
|
+
|
|
4
|
+
This package provides:
|
|
5
|
+
- Direct TradingView API integration for market screening
|
|
6
|
+
- SQL-like query interface for building complex filters
|
|
7
|
+
- MCP tools for market analysis and technical indicators
|
|
8
|
+
- Support for 76+ markets including crypto, stocks, forex, and futures
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from tradingview_mcp.server import mcp, main
|
|
12
|
+
|
|
13
|
+
__version__ = "1.0.0"
|
|
14
|
+
__all__ = ["mcp", "main"]
|