tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.07k stars 629 forks source link

Web API datafeed #203

Closed hossein2408 closed 3 years ago

hossein2408 commented 3 years ago

How can I use data feed except websocket For example how can use a simple web api url without port number?

eminvergil commented 3 years ago

which api do you want to use ? is it a public api

you can use axios to fetch it and use a state that holds the data ?

hossein2408 commented 3 years ago

I get data from binance exchange in one minute timeframe and make custom timeframe in server side now I can show this candles with tradingvue but it is not live and should to refresh page

eminvergil commented 3 years ago

@hossein2408 i dont know anything about vue but i think your problem can solved with state machines. Here is a good documentation for you : https://www.phillipparker.io/articles/finite-state-machines-in-vue