This project aims to convert SimpleChart.js example from Mathieu2301/TradingView-API into a Vue.js 3 application that lets you.
- Select market, timeframe and chart type
- Listen to price changes on the market according to settings
The main code can be found in src/App.vue
TradingViewAPI is not meant to run on a browser so the websocket code is not working. I'm considering two solutions
- Use Server Side Rendering (same repo) to run websocket code from the server
- Split the repo in two (vue.js app + node.js server) and make a websocket connection between both
$ npm i
$ npm run dev
Will be running on localhost:5173
$ node src/tradingview.js
Then check logs
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.
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).