Metadata-Version: 2.1
Name: tradingview-websocket
Version: 0.6
Summary: This Python package provides a simple WebSocket client for connecting to the TradingView WebSocket API. It allows users to subscribe to real-time financial data streams and retrieve historical data.
Home-page: https://github.com/SerdarARIKAN/tradingview_websocket
Author: Serdar ARIKAN
Author-email: serdardarikan@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE.md

# TradingView WebSocket Client

## Introduction
This Python package provides a simple WebSocket client for connecting to the TradingView WebSocket API. It allows users to subscribe to real-time financial data streams and retrieve historical data.

## Installation
You can install the package via pip:

```bash
pip install tradingview_websocket
```

## Usage

```python
from tradingview_websocket import TradingViewWebSocket
```

### Define symbol, timeframe, and number of candles
```python
symbol = "USDEUR"
timeframe = "1D"
candles = 100
```

### Initialize TradingViewWebSocket object
```python
ws = TradingViewWebSocket(symbol, timeframe, candles)
ws.connect()
```

### Run the WebSocket client
```python
ws.run()
```

### Access the result data
```python
result_data = ws.result_data
print(result_data)
```

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.

## Issues
If you encounter any issues or have questions regarding the package, please feel free to open an issue on GitHub.


