pool fee selection; ohlc subs

This commit is contained in:
Tim
2024-03-13 15:48:19 -04:00
parent 82a150df2b
commit 35856a4edb
7 changed files with 148 additions and 44 deletions

View File

@@ -1,6 +1,6 @@
import {useChartOrderStore} from "@/orderbuild.js";
import {invokeCallbacks, prototype} from "@/common.js";
import datafeed, {lookupSymbol} from "@/charts/datafeed.js";
import {DataFeed, initFeeDropdown, lookupSymbol} from "@/charts/datafeed.js";
export let widget = null
export let chart = null
@@ -47,7 +47,7 @@ export function initWidget(el) {
interval: '15',
container: el,
// datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
datafeed: datafeed, // use this for ohlc
datafeed: DataFeed, // use this for ohlc
locale: "en",
disabled_features: [],
enabled_features: ['saveload_separate_drawings_storage'],
@@ -62,8 +62,8 @@ export function initWidget(el) {
widget.subscribe('onSelectedLineToolChanged', onSelectedLineToolChanged)
widget.subscribe('mouse_down', mouseDown)
widget.subscribe('mouse_up', mouseUp)
widget.headerReady().then(()=>initFeeDropdown(widget))
widget.onChartReady(initChart)
}