altamoon-minicharts

0.3.116 • Public • Published

altamoon-minicharts

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

The online tool itself can be found at altamoon.github.io/altamoon-minicharts.

image

API

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

<!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://altamoon.github.io/altamoon-minicharts/bootstrap-bootswatch-darkly.min.css">
    <link rel="stylesheet" href="https://altamoon.github.io/altamoon-minicharts/style.css">
</head>
<body>
    <div id="root" class="m-4"></div>
    <script src="https://altamoon.github.io/altamoon-minicharts/altamoonMinicharts.js"></script>
    <script> altamoonMinicharts('#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.

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

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

npm i altamoon-minicharts

import altamoonMinicharts from 'altamoon-minicharts';

// ...

Readme

Keywords

none

Package Sidebar

Install

npm i altamoon-minicharts

Weekly Downloads

0

Version

0.3.116

License

AGPL-3.0-or-later

Unpacked Size

418 kB

Total Files

73

Last publish

Collaborators

  • finom
  • letiliel