@orderly.network/trading 2.5.3 → 2.6.0

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.d.mts CHANGED
@@ -345,6 +345,7 @@ declare const usePortfolioSheetScript: () => {
345
345
  setShowSliderTip: react.Dispatch<react.SetStateAction<boolean>>;
346
346
  isMainAccount: boolean;
347
347
  onTransfer: () => void;
348
+ hasSubAccount: boolean;
348
349
  aggregated: Omit<_orderly_network_types.API.PositionsTPSLExt, "rows">;
349
350
  totalUnrealizedROI: number;
350
351
  positionsInfo: Record<"unsettledPnL" | "margin_ratio" | "initial_margin_ratio" | "maintenance_margin_ratio" | "open_margin_ratio" | "current_margin_ratio_with_orders" | "initial_margin_ratio_with_orders" | "maintenance_margin_ratio_with_orders" | "total_collateral_value" | "free_collateral" | "total_pnl_24_h" | "unrealPnL" | "total_unreal_pnl" | "total_unreal_pnl_index" | "total_unsettled_pnl" | "notional" | "unrealPnlROI" | "unrealPnlROI_index", <Key extends "unsettledPnL" | "margin_ratio" | "initial_margin_ratio" | "maintenance_margin_ratio" | "open_margin_ratio" | "current_margin_ratio_with_orders" | "initial_margin_ratio_with_orders" | "maintenance_margin_ratio_with_orders" | "total_collateral_value" | "free_collateral" | "total_pnl_24_h" | "unrealPnL" | "total_unreal_pnl" | "total_unreal_pnl_index" | "total_unsettled_pnl" | "notional" | "unrealPnlROI" | "unrealPnlROI_index">(defaultValue?: Omit<_orderly_network_types.API.PositionInfo, "rows">[Key] | undefined) => Omit<_orderly_network_types.API.PositionInfo, "rows">[Key]> & {
@@ -486,7 +487,8 @@ declare const TradingPage: (props: TradingPageProps) => react_jsx_runtime.JSX.El
486
487
 
487
488
  declare const TradingPageContext: react.Context<TradingPageState>;
488
489
  declare const useTradingPageContext: () => TradingPageState;
489
- declare const TradingPageProvider: (props: PropsWithChildren<TradingPageProps>) => react_jsx_runtime.JSX.Element;
490
+
491
+ declare const TradingPageProvider: FC<PropsWithChildren<TradingPageProps>>;
490
492
 
491
493
  declare const useTradingLocalStorage: (props?: {
492
494
  pnlNotionalDecimalPrecision?: number;
package/dist/index.d.ts CHANGED
@@ -345,6 +345,7 @@ declare const usePortfolioSheetScript: () => {
345
345
  setShowSliderTip: react.Dispatch<react.SetStateAction<boolean>>;
346
346
  isMainAccount: boolean;
347
347
  onTransfer: () => void;
348
+ hasSubAccount: boolean;
348
349
  aggregated: Omit<_orderly_network_types.API.PositionsTPSLExt, "rows">;
349
350
  totalUnrealizedROI: number;
350
351
  positionsInfo: Record<"unsettledPnL" | "margin_ratio" | "initial_margin_ratio" | "maintenance_margin_ratio" | "open_margin_ratio" | "current_margin_ratio_with_orders" | "initial_margin_ratio_with_orders" | "maintenance_margin_ratio_with_orders" | "total_collateral_value" | "free_collateral" | "total_pnl_24_h" | "unrealPnL" | "total_unreal_pnl" | "total_unreal_pnl_index" | "total_unsettled_pnl" | "notional" | "unrealPnlROI" | "unrealPnlROI_index", <Key extends "unsettledPnL" | "margin_ratio" | "initial_margin_ratio" | "maintenance_margin_ratio" | "open_margin_ratio" | "current_margin_ratio_with_orders" | "initial_margin_ratio_with_orders" | "maintenance_margin_ratio_with_orders" | "total_collateral_value" | "free_collateral" | "total_pnl_24_h" | "unrealPnL" | "total_unreal_pnl" | "total_unreal_pnl_index" | "total_unsettled_pnl" | "notional" | "unrealPnlROI" | "unrealPnlROI_index">(defaultValue?: Omit<_orderly_network_types.API.PositionInfo, "rows">[Key] | undefined) => Omit<_orderly_network_types.API.PositionInfo, "rows">[Key]> & {
@@ -486,7 +487,8 @@ declare const TradingPage: (props: TradingPageProps) => react_jsx_runtime.JSX.El
486
487
 
487
488
  declare const TradingPageContext: react.Context<TradingPageState>;
488
489
  declare const useTradingPageContext: () => TradingPageState;
489
- declare const TradingPageProvider: (props: PropsWithChildren<TradingPageProps>) => react_jsx_runtime.JSX.Element;
490
+
491
+ declare const TradingPageProvider: FC<PropsWithChildren<TradingPageProps>>;
490
492
 
491
493
  declare const useTradingLocalStorage: (props?: {
492
494
  pnlNotionalDecimalPrecision?: number;