GNU General Public License v3.0

项目介绍

tradex-app/TradeX-chart 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 GNU General Public License v3.0 许可证,目前获得 182 个 Star、38 次 Fork。

仓库全名
tradex-app/TradeX-chart
开源许可证
GNU General Public License v3.0
Star 数
182
Fork 数
38
未关闭 Issue
5

README 摘要

README TradeX-chart is a highly customizable stock trade chart with one dependency written in plain JavaScript; use it with any framework or backend. Table of Contents Demo Getting Started Documentation Features License Demo Live Demo Getting Started Requirements TradeX-chart targets browsers that support ECMAScript 2022. Install NPM In Browser How to Use Minimal working example: TypeScript Types provided…

完整内容见 GitHub 原始 README 或本页 。

常见问题

TradeX-chart 用什么语言开发?

主要使用 JavaScript 编写,采用 GNU General Public License v3.0 许可证,目前有 182 个 Star。

TradeX-chart 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 TradeX-chart 的源码?

可以直接克隆仓库:git clone https://github.com/tradex-app/TradeX-chart.git,默认分支为 master;安装与运行步骤见仓库 README。

TradeX-chart 最近还在维护吗?

仓库最近一次更新为 7月22日,当前有 5 个未关闭 Issue;Star 数为 182,可作为社区活跃度的参考。

关于

TradeX Chart is a trade / stock chart written in plain (vanilla) JavaScript with mobile support

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Astro
CSS
HTML
Handlebars
JavaScript
MDX
Shell
TypeScript

README

README

TradeX-chart is a highly customizable stock trade chart with one dependency written in plain JavaScript; use it with any framework or backend.

Version Size LICENSE GitHub Discord

Table of Contents

Demo

Live Demo

Getting Started

Requirements

TradeX-chart targets browsers that support ECMAScript 2022.

Install

NPM

npm install tradex-chart

In Browser

<script src="tradex-chart.es.js"></script>

How to Use

Minimal working example:

<div id="myChartDiv"></div>

<script>

import {Chart, DOM} from 'tradex-chart'
import * as talib from "talib-web"

// minimal data state
let state = {
  "ohlcv": [
// [timestamp, open, high, low, close, volume]
    [1543579200000,4035.6,4072.78348726,3965,4055.6,2157.50135341],
    [1543582800000,4055.6,4100,4035,4059.1719252,1660.6115119],
    [1543586400000,4059.1,4076.6,4014.1,4060,1070.09946267],
    [1543590000000,4060.5,4060.5,3987.2,4049.2,1530.46774287],
    [1543593600000,4049.2,4092.7,4035,4089.6691106,922.84509291]
  ]
}

// minimal config
const config = {
  id: "TradeX_test",
  title: "BTC/USDT",
  width: 1000,
  height: 800,
  utils: {none: true},
  tools: {none: true},
  talib: talib,
  // see configuration.md#config regarding talib.wasm
  // `${window.location.origin}/talib.wasm`
  rangeLimit: 30,
}

const mount = document.getElementById('myChartDiv')
const chart = document.createElement("tradex-chart")

mount.appendChild(chart)
chart.start(config)

</script>

TypeScript

Types provided

Documentation

Documentation can be found here: Documentation

or built and run locally from the repository by running:

git clone https://github.com/tradex-app/TradeX-chart
cd ./tradex-chart/src/docs
npm run build

Editable Live Sandbox Examples

Editable sandbox examples can found on CodeSandbox.io

Framework Integration Examples

Features

Support

For the latest news on TradeX-chart, feedback, feature requests, and community, join us over on Discord or GitHub.

Contributing

Testing, bug reports and feature requests welcome

If you have any bugs, issues, or feature requests, please, before making a submission, first:

To submit an issue:

  • Fork the chart repostitory
  • Create your Feature Branch git checkout -b feature/AmazingFeature
  • Commit your Changes git commit -m 'Add some AmazingFeature'
  • Push to the Branch git push origin feature/AmazingFeature
  • Open a Pull Request

You can help speed up development by contributing with crypto or PayPal.


if (youEnjoyed) {
    starThisRepository();
}

Stargazers over time

Stargazers over time

评论

暂无评论