npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-kline-bte

v0.2.1

Published

基于Vue框架,使用ECharts绘制K线,该K线用于BTE产品

Downloads

4

Readme

K线

基于Vue框架,使用ECharts制作,适用于BTE产品的K线

使用说明

  • 导入vue-kline-bte包,在template中使用VueKLineBTE组件
  • 接收的props:
    • configuration,配置项,包含如下属性:
      1. loadChartOption:加载的ECharts图表选项
      2. loadMarkPointOption:加载的MarkPoint选项
      3. requestModule:请求的服务器端模块。默认:future(kline:只有K线以及相关指标、实时点评数据,future:在K线基础上,还有压力线、净流量、异常大单等数据)
      4. timeInterval:定时请求数据的时间间隔

      注:默认加载完整的K线图表选项,每1分钟请求一次期货数据。

    • show-indicators:Array 要显示哪些指标(可用指标:'MA', 'BOLL', 'PRESSURELINE', 'REALTIMESOLUTION', 'ABNORMALTRANSACTION', 'VOL', 'ABNORMALVOLUME', 'MACD', 'KDJ', 'RSI')。指标名都要大写
    • request-param,请求参数,包含如下属性:
      1. base: 'BTC', // 币种
      2. quote: 'QUARTER', // 币对
      3. exchange: 'okex', // 交易所
      4. type: '1m', // 时间类型
      5. size: '500' // 请求的点数量
  • 提交的事件:
    • getDataOnSuccess({ kline, markPoint, price}):获取数据成功后被调用,告知外层组件获取数据成功,以便外层组件可以对数据进行操作(比如:是否有实时点评数据,没有则不显示实时点评按钮)。
    • tooltipOnChange({availableHeight, grids, gridGroups}):触发tooltip时调用。告知外层组件,当前的tooltip数据对象,以便显示tooltip

注:可以参考example目录下的范例

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report