TradingView.Screener

A C# port of the TradingView-Screener Python package that allows you to create custom stock screeners using TradingView's API. This package retrieves data directly from TradingView without web scraping or HTML parsing.
Credits
This project is a C# port of the excellent TradingView-Screener Python package by shner-elmo. All credit for the original implementation and API research goes to them.
Requirements
Installation
Install via NuGet Package Manager:
dotnet add package TradingView.Screener
For the CLI tool:
dotnet tool install --global TradingView.Screener.Cli
Features
- Multiple Markets: Stocks, crypto, forex, and more
- Comprehensive Data: Access to price, volume, market cap, and technical indicators
- Flexible Filtering: Filter by price, volume, market cap, and other metrics
- Sorting & Pagination: Order results and control result size
- Async Support: Built with modern .NET async patterns
- Command Line Interface: Easy-to-use CLI tool for quick scans
Quick Start
Here's a simple example using the library:
using TradingView.Screener;
using static TradingView.Screener.Columns;
// Basic query - Get top stocks by volume
var result = await new Query()
.Select(Name, Close, Volume, MarketCap)
.OrderBy(Volume, ascending: false)
.Limit(5)
.GetScannerDataRawAsync();
// Print results
foreach (var row in result.Data)
{
Console.WriteLine($"Symbol: {row.Symbol}, Name: {row.Data[0]}, Close: {row.Data[1]}, Volume: {row.Data[2]}");
}
CLI Usage