@iccandle/widget-web-trading 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10746,6 +10746,7 @@ const MS = "wss://public-ticks.opheleo.com";
|
|
|
10746
10746
|
function Ec(e) {
|
|
10747
10747
|
const [t, n] = Q(null), r = IS();
|
|
10748
10748
|
return le(() => {
|
|
10749
|
+
n(null);
|
|
10749
10750
|
const i = zs(e).toUpperCase();
|
|
10750
10751
|
let s = null, o = !1;
|
|
10751
10752
|
const a = r || MS, c = () => {
|
|
@@ -14381,8 +14382,8 @@ function Kx({ position: e, isSelected: t, isClosing: n, onSelect: r, onClose: i
|
|
|
14381
14382
|
/* @__PURE__ */ f("td", { className: `web-trading-widget-terminal__cell web-trading-widget-terminal__cell--capitalize ${s}`, children: e.type }),
|
|
14382
14383
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.volumeLots.toFixed(2) }),
|
|
14383
14384
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: Ne(e.openPrice, e.digits) }),
|
|
14384
|
-
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.stopLoss !== void 0 ? Ne(e.stopLoss, e.digits) : "" }),
|
|
14385
|
-
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.takeProfit !== void 0 ? Ne(e.takeProfit, e.digits) : "" }),
|
|
14385
|
+
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.stopLoss !== void 0 && e.stopLoss !== 0 ? Ne(e.stopLoss, e.digits) : "N/A" }),
|
|
14386
|
+
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.takeProfit !== void 0 && e.takeProfit !== 0 ? Ne(e.takeProfit, e.digits) : "N/A" }),
|
|
14386
14387
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: Ne(e.currentPrice, e.digits) }),
|
|
14387
14388
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.swap !== 0 ? nn(e.swap) : "" }),
|
|
14388
14389
|
/* @__PURE__ */ f("td", { className: `web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right ${o}`, children: nn(e.profit) }),
|
|
@@ -14423,8 +14424,8 @@ function Gx({ order: e, isSelected: t, isDeleting: n, onSelect: r, onDelete: i }
|
|
|
14423
14424
|
e.volumeFilledLots.toFixed(2)
|
|
14424
14425
|
] }),
|
|
14425
14426
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: Ne(e.orderPrice, e.digits) }),
|
|
14426
|
-
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.stopLoss !== void 0 ? Ne(e.stopLoss, e.digits) : "" }),
|
|
14427
|
-
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.takeProfit !== void 0 ? Ne(e.takeProfit, e.digits) : "" }),
|
|
14427
|
+
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.stopLoss !== void 0 && e.stopLoss !== 0 ? Ne(e.stopLoss, e.digits) : "N/A" }),
|
|
14428
|
+
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.takeProfit !== void 0 && e.takeProfit !== 0 ? Ne(e.takeProfit, e.digits) : "N/A" }),
|
|
14428
14429
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: Ne(e.currentPrice, e.digits) }),
|
|
14429
14430
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right" }),
|
|
14430
14431
|
/* @__PURE__ */ f("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right" }),
|