Socket
Socket
Sign inDemoInstall

@dreygur/react-crypto-chart

Package Overview
Dependencies
4
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dreygur/react-crypto-chart

crypto chart widget for react using binance api


Version published
Weekly downloads
1
Maintainers
1
Install size
1.59 MB
Created
Weekly downloads
 

Readme

Source

React Crypto Chart

Crypto chart widget for react using binance api
React Crypto Chart

Example

  • Stackblitz example

How To Install

npm i react-crypto-chart
yarn
yarn add react-crypto-chart

Usage

import TradeViewChart from '@dreygur/react-crypto-chart';

<TradeViewChart pair="BTCBUSD" />;

Properties

PropRequiredTypeDefault Value
pairNoStringBTCBUSD
Please refer binance api for more pairs
binance rest api
intervalNoString1m
candleStickConfigNoObject
Candlestick Config type
    {
        upColor: "#00c176",
        downColor: "#cf304a",
        borderDownColor: "#cf304a",
        borderUpColor: "#00c176",
        wickDownColor: "#838ca1",
        wickUpColor: "#838ca1",
    }
    
histogramConfigNoObject
Histogram Config type
{
        base: 0,
        lineWidth: 2,
        priceFormat: {
            type: "volume",
        },
        overlay: true,
        scaleMargins: {
            top: 0.8,
            bottom: 0,
        },
    }
  
chartLayoutNoObject
Chart Layout types
    {
        layout: {
            backgroundColor: "#ededed",
            textColor: "#253248",
        },
        grid: {
            vertLines: {
            color: "#838fa3",
            style: LineStyle.SparseDotted,
            },
            horzLines: {
            color: "#838fa3",
            style: LineStyle.SparseDotted,
            },
        },
        crosshair: {
            mode: CrosshairMode.Normal,
        },
        priceScale: {
            borderColor: "#485c7b",
        },
        timeScale: {
            borderColor: "#485c7b",
            timeVisible: true,
            secondsVisible: false,
        },
    }
    
containerStyleNoObject
    {
      maxWidth: '100%',
      maxHeight: '100vh',
      display: 'flex',
      justifyContent: 'center',
      alignItems: 'center',
    }
  
useFuturesTestnetNoBoolean
false
useSpotTestnetNoBoolean
false

Authors

  • Justin K Xavier - Initial work - LinkedIn

  • Rakibul Yeasin - Spot and Future Testnet - Github

License

This project is licensed under the MIT License - see the LICENSE.md file for details


Pull requests accepted with ❤️

FAQs

Last updated on 26 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc