symbol search in tv

This commit is contained in:
Tim
2024-02-16 21:11:57 -04:00
parent 3ef63d5eb7
commit d01169b2fd
8 changed files with 5159 additions and 37 deletions

View File

@@ -1,5 +1,6 @@
import {useChartOrderStore} from "@/orderbuild.js";
import {invokeCallbacks, prototype} from "@/common.js";
import datafeed from "@/charts/datafeed.js";
export let widget = null
export let chart = null
@@ -21,12 +22,12 @@ export function initWidget(el) {
library_path: "/charting_library/",
// debug: true,
autosize: true,
symbol: 'AAPL',
// symbol: 'Uniswap:WETH/USD', // use this for ohlc
// symbol: 'AAPL',
symbol: 'UNIv3:WETH/USDC', // use this for ohlc
interval: '1D',
container: el,
datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
// datafeed: datafeed, // use this for ohlc
// datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
datafeed: datafeed, // use this for ohlc
locale: "en",
disabled_features: [],
enabled_features: ['saveload_separate_drawings_storage'],