Giter Site home page Giter Site logo

amirhossein-tohidi / tradingview-udf-provider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marfusios/tradingview-udf-provider

0.0 0.0 0.0 2.37 MB

TradingView UDF data provider for C# (ASP.NET Core)

License: MIT License

JavaScript 4.14% C# 2.73% TypeScript 2.07% CSS 0.11% HTML 90.95%

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

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.