Coder Social home page Coder Social logo

clins777 / trading-view-api-examples-client-vue-js Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 20 KB

Simple Vue.js app for fetching chart data from TradingView using TradingViewAPI. Consider donating if you'd like to see more examples like this. Feel free to reach out to me on Telegram: @clins777

License: MIT License

HTML 5.06% Vue 49.10% JavaScript 27.77% CSS 18.07%

trading-view-api-examples-client-vue-js's Introduction

Overview

This project aims to convert SimpleChart.js example from Mathieu2301/TradingView-API into a Vue.js 3 application that lets you.

  1. Select market, timeframe and chart type
  2. Listen to price changes on the market according to settings

The main code can be found in src/App.vue

Current Problem

TradingViewAPI is not meant to run on a browser so the websocket code is not working. I'm considering two solutions

  1. Use Server Side Rendering (same repo) to run websocket code from the server
  2. Split the repo in two (vue.js app + node.js server) and make a websocket connection between both

How to run app

$ npm i
$ npm run dev

Will be running on localhost:5173

How to run TradingViewAPI/example/SimpleChart.js

$ node src/tradingview.js

Then check logs

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

trading-view-api-examples-client-vue-js's People

Stargazers

 avatar

Watchers

 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.