Skip to content

ef-thomp-sawyer/TradingView-Api-in-JavaScript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TradingView API Integration in JavaScript, HTML, and CSS

Overview

This project demonstrates how to integrate the TradingView API into a web application using JavaScript, HTML, and CSS to display real-time financial market data. The integration allows users to view charts, analyze technical indicators, and receive live updates from various financial markets.

website: https://trading-api-javascript.netlify.app/

Getting Started

Prerequisites

Make sure you have the following tools installed on your machine:

  • Web Browser: Google Chrome, Mozilla Firefox, or any modern web browser.
  • Text Editor: Visual Studio Code, Sublime Text, or any text editor of your choice.

Setting Up TradingView API Key

  1. Visit the TradingView website and create an account if you don't have one.
  2. Once logged in, go to the API Settings page.
  3. Generate a new API key for your project.

Project Setup

  1. Clone the repository:

    git clone https://github.com/your-username/Tradingview-Api-in-JavaScript-HTML-CSS.git
  2. Open the project folder in your text editor.

  3. Create a file named config.js and add your TradingView API key:

    // config.js
    const API_KEY = 'your-tradingview-api-key';
  4. Open index.html in your browser or set up a local server to run the project.

Features

  • Real-time Data: Fetch and display real-time market data using the TradingView API.
  • Interactive Charts: Utilize the TradingView charting library for interactive and customizable charts.
  • Technical Indicators: Display various technical indicators on the charts for better analysis.

Usage

  1. Open index.html in your web browser.
  2. The application will prompt you to enter a symbol or instrument.
  3. The TradingView chart will display real-time data for the entered symbol.
  4. Explore the chart, add technical indicators, and analyze the market.

Customization

Feel free to customize the project to suit your needs. You can modify the HTML, CSS, and JavaScript files to add additional features, improve the user interface, or integrate with other APIs.

Resources

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to TradingView for providing the API and charting library.
  • Contributors and developers who have worked on the TradingView Charting Library.

Feel free to contribute to the project and make it even better!

About

TradingView-API-JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 48.1%
  • JavaScript 45.3%
  • CSS 6.6%