Git Product home page Git Product logo

tradingview-udf-provider's Introduction

Logo

TradingView UDF provider

build NuGet version NuGet downloads

This is a C# implementation of the TradingView UDF data provider (via HTTP API). It's a backend server application that provides data for standalone charting library.

Info: https://www.tradingview.com/HTML5-stock-forex-bitcoin-charting-library/?feature=technical-analysis-charts

Docs: https://github.com/tradingview/charting_library/wiki/UDF

Releases and breaking changes

License:

MIT

Features

  • installation via NuGet (TradingView.Udf.Provider)
  • automatically integrates into ASP.NET Core
  • targeting .NET Standard 2.0 (.NET Core, Linux/MacOS compatible)

Usage

  1. Create a new ASP.NET Core solution
  2. Reference nuget TradingView.Udf.Provider
  3. In Startup.cs call:
public void ConfigureServices(IServiceCollection services)
{
    // setup default JSON serializer to ignore null values
    // important!
    services.AddControllers()
            .AddJsonOptions(opts =>
            {
                opts.JsonSerializerOptions.IgnoreNullValues = true;
            });

    ...

    // register TradingView provider with your custom data class
    services.AddTradingViewProvider<MyTvProvider>();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    ...
    // optional TradingView provider settings
    app.UseTradingViewProvider(new TradingViewSettings());
}
  1. Create a new class MyTvProvider that implements interface ITradingViewProvider link
  2. Everything ready, you can now connect TradingView chart library with this backend server, example: index.html

Full usage example link

API coverage

UDF Implemented
GET /config
GET /symbol_info?group
GET /symbols?symbol
GET /search
GET /history
GET /marks
GET /timescale_marks
GET /time
GET /quotes

Screens

TradingView

Swagger

Pull Requests are welcome!

Available for help

I do consulting, please don't hesitate to contact me if you have a custom solution you would like me to implement (web, [email protected])

Donations gratefully accepted.

  • Donate with Bitcoin
  • Donate with Litecoin
  • Donate with Ethereum

tradingview-udf-provider's People

Contributors

marfusios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tradingview-udf-provider's Issues

Needs to show moving average line

hello, thanks for this project. it helped alot in learning to implement in .net.
Although when i tried to modify, basically i needed to show the moving avg line, i tried to do this via js (hope i am missing something)

newtonsoft json problem

when use
.AddNewtonsoftJson(options => { options.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore; });
instead of :
.AddJsonOptions(opts => { opts.JsonSerializerOptions.IgnoreNullValues = true; })
get below error in console
Uncaught (in promise) Error: Unsupported datafeed configuration. Must either support search, or support group request

is any way to use newtonsoft json?

quick question

hello, i need to know if i can use this package in .net core 7 ? if not is there any alternatives? thank you in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.