This package has been deprecated

Author message:

The project is renamed to altamoon-minicharts

minichart-grid
TypeScript icon, indicating that this package has built-in type declarations

0.3.13 • Public • Published

minichart-grid

An embeddable online tool that allows to track all the Binance futures markets on one page

The online tool itself can be found at letiliel.github.io/minichart-grid.

image

API

The simplest way is to embed it via global variable minichartGrid.

<!DOCTYPE html>
<html>
<head>
    <!-- The tool originally uses a dark bootstrap theme, but you can replace it by the regulatstrap CSS -->
    <link rel="stylesheet" href="https://letiliel.github.io/minichart-grid/bootstrap-bootswatch-darkly.min.css">
    <link rel="stylesheet" href="https://letiliel.github.io/minichart-grid/style.css">
</head>
<body>
    <div id="root" class="m-4"></div>
    <script src="https://letiliel.github.io/minichart-grid/minichartGrid.js"></script>
    <script> minichartGrid('#root'); </script> 
</body>
</html>

The function also accepts options as second argument. By the time being the only option is onSymbolSelect handler that is called when user clicks symbol name.

minichartGrid('#root', {
    onSymbolSelect: (symbol) => console.log(symbol),
});

It can also be installed via NPM to be imported as a module.

npm i minichart-grid

import minichartGrid from 'minichart-grid';

// ...

Readme

Keywords

none

Package Sidebar

Install

npm i minichart-grid

Weekly Downloads

5

Version

0.3.13

License

AGPL-3.0-or-later

Unpacked Size

13.3 MB

Total Files

14

Last publish

Collaborators

  • finom