altamoon-minicharts
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.22 • 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';
    
    // ...

    Keywords

    none

    Install

    npm i altamoon-minicharts

    DownloadsWeekly Downloads

    364

    Version

    0.3.22

    License

    AGPL-3.0-or-later

    Unpacked Size

    9.73 MB

    Total Files

    13

    Last publish

    Collaborators

    • finom
    • letiliel