{"id":13633124,"url":"https://github.com/tradex-app/TradeX-chart","last_synced_at":"2025-04-18T10:34:16.295Z","repository":{"id":43174618,"uuid":"511093717","full_name":"tradex-app/TradeX-chart","owner":"tradex-app","description":"TradeX Chart is a trade / stock chart written in  plain (vanilla) JavaScript with mobile support","archived":false,"fork":false,"pushed_at":"2025-03-20T16:14:15.000Z","size":40878,"stargazers_count":126,"open_issues_count":4,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-12T18:57:26.442Z","etag":null,"topics":["canvas","chart","crypto","cryptocurrency","javascript","mobile","mobile-web","nextjs","react","stock-chart","talib","technical-analysis","technical-indicators","trading"],"latest_commit_sha":null,"homepage":"https://tradex-app.github.io/TradeX-chart/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tradex-app.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-06T10:37:03.000Z","updated_at":"2025-03-31T07:13:00.000Z","dependencies_parsed_at":"2025-01-15T08:18:21.363Z","dependency_job_id":"25615dae-5db4-492b-9d84-1a56095a362f","html_url":"https://github.com/tradex-app/TradeX-chart","commit_stats":{"total_commits":872,"total_committers":8,"mean_commits":109.0,"dds":0.2155963302752294,"last_synced_commit":"d9636d301822030ac3c08dfac26a1361498cc8be"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradex-app%2FTradeX-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradex-app%2FTradeX-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradex-app%2FTradeX-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradex-app%2FTradeX-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradex-app","download_url":"https://codeload.github.com/tradex-app/TradeX-chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249479054,"owners_count":21279187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvas","chart","crypto","cryptocurrency","javascript","mobile","mobile-web","nextjs","react","stock-chart","talib","technical-analysis","technical-indicators","trading"],"created_at":"2024-08-01T23:00:28.330Z","updated_at":"2025-04-18T10:34:16.283Z","avatar_url":"https://github.com/tradex-app.png","language":"JavaScript","funding_links":[],"categories":["Charting libraries"],"sub_categories":[],"readme":"# README\n\nTradeX-chart is a highly customizable stock trade chart with **one** dependency written in plain JavaScript; use it with any framework or backend.\n\n\u003cdiv align=\"center\"\u003e\n\n[![Version](https://badgen.net/npm/v/tradex-chart)](https://www.npmjs.com/package/tradex-chart)\n[![Size](https://badgen.net/bundlephobia/minzip/tradex-chart)](https://bundlephobia.com/result?p=tradex-chart)\n[![LICENSE](https://badgen.net/github/license/tradex-app/tradex-chart)](LICENSE)\n[![GitHub](https://badgen.net/badge/icon/github?icon=github\u0026label)](https://github.com/tradex-app/TradeX-chart)\n[![Discord](https://badgen.net/badge/icon/discord?icon=discord\u0026label)](https://discord.gg/6XS9tDrcdq)\n\n\u003c/div\u003e\n\n![](assets/EMA.png)\n\n## Table of Contents\n\n* [Demo](#demo)\n* [Getting Started](#getting-started)\n* [Documentation](/docs/documentation.md)\n* [Features](#features)\n* [License](/LICENSE)\n\n## Demo\n\n### [Live Demo](https://tradex-chart.guildmedia.net/)\n\n## Getting Started\n\n### Requirements\n\nTradeX-chart targets browsers that support [ECMAScript 2022](https://www.ecma-international.org/wp-content/uploads/ECMA-262_13th_edition_june_2022.pdfhttps:/).\n\n## Install\n\n### NPM\n\n```\nnpm install tradex-chart\n```\n\n### In Browser\n\n```\n\u003cscript src=\"tradex-chart.es.js\"\u003e\u003c/script\u003e\n```\n\n## How to Use\n\nMinimal working example:\n\n```javascript\n\u003cdiv id=\"myChartDiv\"\u003e\u003c/div\u003e\n\n\u003cscript\u003e\n\nimport {Chart, DOM} from 'tradex-chart'\nimport * as talib from \"talib-web\"\n\n// minimal data state\nlet state = {\n  \"ohlcv\": [\n// [timestamp, open, high, low, close, volume]\n    [1543579200000,4035.6,4072.78348726,3965,4055.6,2157.50135341],\n    [1543582800000,4055.6,4100,4035,4059.1719252,1660.6115119],\n    [1543586400000,4059.1,4076.6,4014.1,4060,1070.09946267],\n    [1543590000000,4060.5,4060.5,3987.2,4049.2,1530.46774287],\n    [1543593600000,4049.2,4092.7,4035,4089.6691106,922.84509291]\n  ]\n}\n\n// minimal config\nconst config = {\n  id: \"TradeX_test\",\n  title: \"BTC/USDT\",\n  width: 1000,\n  height: 800,\n  utils: {none: true},\n  tools: {none: true},\n  talib: talib,\n  // see configuration.md#config regarding talib.wasm\n  // `${window.location.origin}/talib.wasm`\n  rangeLimit: 30,\n}\n\nconst mount = document.getElementById('myChartDiv')\nconst chart = document.createElement(\"tradex-chart\")\n\nmount.appendChild(chart)\nchart.start(config)\n\n\u003c/script\u003e\n```\n\n## TypeScript\n\nTypes provided\n\n## Documentation\n\nDocumentation can be found here:\n[Documentation](https://tradex-app.github.io/TradeX-chart/)\n\nor built and run locally from the repository by running:\n\n```shell\ngit clone https://github.com/tradex-app/TradeX-chart\ncd ./tradex-chart/src/docs\nnpm run build\n```\n\n## Editable Live Sandbox Examples\n\nEditable sandbox examples can found on [CodeSandbox.io](https://codesandbox.io/u/tradex-app)\n\n## Framework Integration Examples\n\n* [React / NextJS](nextjs)\n* [Vue](https://github.com/tradex-app/TradeX-Chart-Vue-JS)\n* Svelte (TODO:)\n\n## Features\n\n* Plain JavaScript with no framework dependencies\n* All chart features and functions accessible via [API](https://tradex-app.github.io/TradeX-chart/api/core/)\n* [State object](https://tradex-app.github.io/TradeX-chart/reference/state/) defines [chart configuration](https://tradex-app.github.io/TradeX-chart/reference/02_configuration/), [indicators](https://tradex-app.github.io/TradeX-chart/reference/indicators_default/) and tools\n* State can be [imported](https://https://tradex-app.github.io/TradeX-chart/reference/state/#create-and-use-a-state) or [exported](https://tradex-app.github.io/TradeX-chart/reference/state/#export) for storage and retrieval\n* Indicator calculation provided by [talib-web](https://https://anchegt.github.io/talib-web/) as a WebAssembly module.\n* [Custom Themes](https://tradex-app.github.io/TradeX-chart/reference/themes/)\n* [Custom Indicators](https://tradex-app.github.io/TradeX-chart/reference/indicators_default/https:/)\n* [Custom Overlays](https://tradex-app.github.io/TradeX-chart/reference/overlays_custom/https:/)\n* Custom Drawing Tools (to be implemented)\n* [Event Hub](https://tradex-app.github.io/TradeX-chart/reference/events/) - subscribe to chart events\n* Rendering Optimization - smooth performance\n* High frequency chart candles updates\n* [Export chart to png, jpg](https://tradex-app.github.io/TradeX-chart/reference/api-examples/#download-image), webp, with optional watermarking\n\n## Support\n\nFor the latest news on TradeX-chart, feedback, feature requests, and community, join us over on Discord or GitHub.\n\n* [TradeX Discord](https://discord.gg/6XS9tDrcdq)\n* [Issue Tracker](https://github.com/tradex-app/TradeX-chart/issues)\n* [GitHub](https://github.com/tradex-app/TradeX-chart/discussions)\n* [Discord](https://discord.gg/6XS9tDrcdq)\n\n## Contributing\n\nTesting, [bug reports and feature requests](https://github.com/tradex-app/TradeX-chart/issues) welcome\n\nIf you have any bugs, issues, or feature requests, please, before making a submission, first:\n* [check the GitHub issue tracker](https://github.com/tradex-app/TradeX-chart/issues)\n* [documentation](https://tradex-app.github.io/TradeX-chart/)\n* [live examples](https://tradex-chart.guildmedia.net/examples/static_chart/)\n* [development roadmap](https://github.com/tradex-app/TradeX-chart/blob/master/docs/TradeX-chart-Development-Roadmap.pdf)\n\nTo submit an issue:\n* [Fork the chart repostitory](https://github.com/tradex-app/TradeX-chart/fork)\n* Create your Feature Branch ``git checkout -b feature/AmazingFeature``\n* Commit your Changes ``git commit -m 'Add some AmazingFeature'``\n* Push to the Branch ``git push origin feature/AmazingFeature``\n* Open a [Pull Request](https://github.com/tradex-app/TradeX-chart/pulls)\n\nYou can help speed up development by contributing with crypto or PayPal.\n\n---\n\n```javascript\nif (youEnjoyed) {\n    starThisRepository();\n}\n```\n                        \n## Stargazers over time\n[![Stargazers over time](https://starchart.cc/tradex-app/TradeX-chart.svg?variant=adaptive)](https://starchart.cc/tradex-app/TradeX-chart)\n\n                    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradex-app%2FTradeX-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradex-app%2FTradeX-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradex-app%2FTradeX-chart/lists"}