这是一个tradingview和websocket结合使用的案例
代码来源于 这里,有修改,数据来源fcoin。
修复了原代码的一些bug,主要是数据接收处理的逻辑。另外加了参数配置和皮肤,black和white两个皮肤,皮肤变量skin,可设置。
线上预览 demo。
数据来源 www.fcoin.com,年前已经被墙,请自备梯子,,,,,,,,,,,,
可运行的tradingview-websocket实例,一边学习一边使用
这是一个tradingview和websocket结合使用的案例
代码来源于 这里,有修改,数据来源fcoin。
修复了原代码的一些bug,主要是数据接收处理的逻辑。另外加了参数配置和皮肤,black和white两个皮肤,皮肤变量skin,可设置。
线上预览 demo。
数据来源 www.fcoin.com,年前已经被墙,请自备梯子,,,,,,,,,,,,
> <div id="tv_chart_container" style="height: 530px"></div>
<ul id="symbolName">
<li data-symbol="btcusdt">BTC/USDT</li>
<li data-symbol="ethusdt">ETHUSDT</li>
<li data-symbol="eosusdt">EOS/USDT</li>
<li data-symbol="xrpusdt">XRP/USDT</li>
<li data-symbol="ltcusdt">LTC/USDT</li>
</ul>
vue 使用的时候一直报下面这个错误
charting_library.min.js:1 Uncaught TypeError: i.contentWindow.widgetReady is not a function
at HTMLIFrameElement.n (charting_library.min.js:1)
K线一直走 我想加一个标记买入点 应该怎么加呢 现在我只能达到画线
Demo's not working.
err:socket.js:32 WebSocket connection to 'wss://api.fcoin.pro/v2/ws' failed:
比如说创建了一个volume的指标,默认会显示成volume(20):xxx,想把这个改成自定义的标题“成交量:”,这样可以实现吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.