@kodiak-finance/orderly-trading 2.8.21-alpha.0 → 2.8.21-beta.3
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.
- package/dist/index.js +49 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -3331,7 +3331,7 @@ var init_fundingRate_ui = __esm({
|
|
|
3331
3331
|
}
|
|
3332
3332
|
),
|
|
3333
3333
|
predFundingRate === null ? "--" : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "orderly-flex orderly-gap-1 oui-text-2xs oui-text-base-contrast-36", children: [
|
|
3334
|
-
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text.numeral, {
|
|
3334
|
+
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text.numeral, { suffix: "%", dp: 4, intensity: 80, children: predFundingRate ?? "--" }),
|
|
3335
3335
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: " in" }),
|
|
3336
3336
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: " " + countDown })
|
|
3337
3337
|
] })
|
|
@@ -3438,30 +3438,54 @@ var init_fundingRateModal_ui = __esm({
|
|
|
3438
3438
|
return null;
|
|
3439
3439
|
}
|
|
3440
3440
|
return /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", itemAlign: "center", width: "100%", children: [
|
|
3441
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3441
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3442
|
+
orderlyUi.Text,
|
|
3443
|
+
{
|
|
3444
|
+
size: "xs",
|
|
3445
|
+
intensity: 54,
|
|
3446
|
+
className: "oui-whitespace-nowrap",
|
|
3447
|
+
children: annualizedValue ? `${label}/ ${t("trading.fundingRate.annualized")}` : label
|
|
3448
|
+
}
|
|
3449
|
+
),
|
|
3450
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3451
|
+
orderlyUi.Flex,
|
|
3452
|
+
{
|
|
3453
|
+
itemAlign: "end",
|
|
3454
|
+
gap: 1,
|
|
3455
|
+
className: "oui-text-base-contrast-80",
|
|
3456
|
+
children: [
|
|
3457
|
+
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 80, className: "oui-font-semibold", children: value }),
|
|
3458
|
+
annualizedValue && " / ",
|
|
3459
|
+
annualizedValue && /* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 80, className: "oui-font-semibold", children: annualizedValue })
|
|
3460
|
+
]
|
|
3461
|
+
}
|
|
3462
|
+
)
|
|
3447
3463
|
] });
|
|
3448
3464
|
};
|
|
3449
3465
|
return /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { width: "100%", itemAlign: "center", direction: "column", gap: 1, children: [
|
|
3450
3466
|
/* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", itemAlign: "center", width: "100%", children: [
|
|
3451
|
-
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: 54, children: t("trading.fundingRate.predFundingRate.interval") }),
|
|
3452
|
-
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: 80, children: fundingPeriod })
|
|
3467
|
+
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 54, className: "oui-flex-shrink-0", children: t("trading.fundingRate.predFundingRate.interval") }),
|
|
3468
|
+
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { size: "xs", intensity: 80, className: "oui-flex-shrink-0", children: fundingPeriod })
|
|
3453
3469
|
] }),
|
|
3454
3470
|
/* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Flex, { justify: "between", itemAlign: "center", width: "100%", children: [
|
|
3455
|
-
/* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Text, { intensity: 54, children: [
|
|
3471
|
+
/* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Text, { size: "xs", intensity: 54, className: "oui-flex-shrink-0", children: [
|
|
3456
3472
|
t("trading.fundingRate.predFundingRate.cap"),
|
|
3457
3473
|
" /",
|
|
3458
3474
|
t("trading.fundingRate.predFundingRate.floor")
|
|
3459
3475
|
] }),
|
|
3460
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3476
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3477
|
+
orderlyUi.Text,
|
|
3478
|
+
{
|
|
3479
|
+
size: "xs",
|
|
3480
|
+
intensity: 80,
|
|
3481
|
+
className: "oui-flex-shrink-0 oui-font-semibold oui-whitespace-nowrap",
|
|
3482
|
+
children: [
|
|
3483
|
+
capFunding,
|
|
3484
|
+
" / ",
|
|
3485
|
+
floorFunding
|
|
3486
|
+
]
|
|
3487
|
+
}
|
|
3488
|
+
)
|
|
3465
3489
|
] }),
|
|
3466
3490
|
renderRow(
|
|
3467
3491
|
t("trading.fundingRate.lastFundingRate"),
|
|
@@ -3475,7 +3499,7 @@ var init_fundingRateModal_ui = __esm({
|
|
|
3475
3499
|
),
|
|
3476
3500
|
renderRow(t("trading.fundingRate.estimatedFundingFee"), estFundingFee),
|
|
3477
3501
|
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Divider, { my: 4, className: "oui-w-full", intensity: 8 }),
|
|
3478
|
-
t("markets.symbolInfoBar.predFundingRate.tooltip")
|
|
3502
|
+
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Text, { intensity: 54, children: t("markets.symbolInfoBar.predFundingRate.tooltip") })
|
|
3479
3503
|
] });
|
|
3480
3504
|
};
|
|
3481
3505
|
}
|
|
@@ -5243,8 +5267,8 @@ var init_tradingview_ui = __esm({
|
|
|
5243
5267
|
mode: 3,
|
|
5244
5268
|
scriptSRC: props.tradingViewConfig?.scriptSRC,
|
|
5245
5269
|
customCssUrl: props.tradingViewConfig?.customCssUrl,
|
|
5246
|
-
|
|
5247
|
-
|
|
5270
|
+
...props.tradingViewConfig,
|
|
5271
|
+
showVolumeInSamePane: true
|
|
5248
5272
|
}
|
|
5249
5273
|
) }),
|
|
5250
5274
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-relative oui-w-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5612,7 +5636,13 @@ var init_orderBookAndEntry_ui = __esm({
|
|
|
5612
5636
|
) })
|
|
5613
5637
|
}
|
|
5614
5638
|
),
|
|
5615
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-rounded-xl oui-bg-base-9 oui-p-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5639
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-rounded-xl oui-bg-base-9 oui-p-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5640
|
+
orderlyUiOrderEntry.OrderEntryWidget,
|
|
5641
|
+
{
|
|
5642
|
+
symbol: props.symbol,
|
|
5643
|
+
containerRef: divRef
|
|
5644
|
+
}
|
|
5645
|
+
) })
|
|
5616
5646
|
]
|
|
5617
5647
|
}
|
|
5618
5648
|
);
|