svelte-tradingview-component

2.3.1 • Public • Published

svelte-tradingview-widget

Svelte component for rendering the TradingView Advanced Real-Time Chart Widget.

npm license npm

image

Demo

https://borakilicoglu.github.io/svelte-tradingview-widget

Install

yarn add svelte-tradingview-widget or npm install --save svelte-tradingview-widget

Usage

Basic example

import TradingViewWidget from "svelte-tradingview-widget";

<TradingViewWidget />;

Advanced example

Define all properties into options and then pass them to the component. See this page for the TradingView Advanced Real-Time Chart API.

import TradingViewWidget from "svelte-tradingview-widget";

let options = { symbol: "BINANCE:BTCUSDT", theme: "dark", autosize: true, locale: "fr" };

<TradingViewWidget {options} />;

/svelte-tradingview-component/

    Package Sidebar

    Install

    npm i svelte-tradingview-component

    Weekly Downloads

    0

    Version

    2.3.1

    License

    MIT

    Unpacked Size

    157 kB

    Total Files

    14

    Last publish

    Collaborators

    • your-name-here