@orderly.network/trading 2.2.0 → 2.3.0-alpha.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 +10 -24
- package/dist/index.d.ts +10 -24
- package/dist/index.js +32 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.d.mts
CHANGED
|
@@ -181,12 +181,12 @@ declare const DataListWidget: (props: {
|
|
|
181
181
|
} & PositionsProps) => react_jsx_runtime.JSX.Element;
|
|
182
182
|
|
|
183
183
|
declare const useLastTradesScript: (symbol: string) => {
|
|
184
|
-
base:
|
|
185
|
-
quote:
|
|
184
|
+
base: string;
|
|
185
|
+
quote: string;
|
|
186
186
|
data: _orderly_network_types.API.Trade[];
|
|
187
187
|
isLoading: boolean;
|
|
188
|
-
baseDp:
|
|
189
|
-
quoteDp:
|
|
188
|
+
baseDp: number;
|
|
189
|
+
quoteDp: number;
|
|
190
190
|
};
|
|
191
191
|
type LastTradesState = ReturnType<typeof useLastTradesScript>;
|
|
192
192
|
|
|
@@ -222,6 +222,7 @@ declare const LastTradesWidget: (props: {
|
|
|
222
222
|
declare const useAssetViewScript: () => {
|
|
223
223
|
onDeposit: () => Promise<unknown>;
|
|
224
224
|
onWithdraw: () => Promise<unknown>;
|
|
225
|
+
onTransfer: () => Promise<unknown>;
|
|
225
226
|
onSettle: () => Promise<any>;
|
|
226
227
|
visible: any;
|
|
227
228
|
toggleVisible: () => void;
|
|
@@ -233,6 +234,8 @@ declare const useAssetViewScript: () => {
|
|
|
233
234
|
marginRatioVal: number | undefined;
|
|
234
235
|
renderMMR: number | undefined;
|
|
235
236
|
isConnected: boolean;
|
|
237
|
+
isMainAccount: boolean;
|
|
238
|
+
hasSubAccount: boolean;
|
|
236
239
|
};
|
|
237
240
|
type AssetViewState = ReturnType<typeof useAssetViewScript>;
|
|
238
241
|
|
|
@@ -333,28 +336,11 @@ declare const usePortfolioSheetScript: () => {
|
|
|
333
336
|
onWithdraw: () => void;
|
|
334
337
|
showSliderTip: boolean;
|
|
335
338
|
setShowSliderTip: react.Dispatch<react.SetStateAction<boolean>>;
|
|
339
|
+
isMainAccount: boolean;
|
|
340
|
+
onTransfer: () => void;
|
|
336
341
|
aggregated: Omit<_orderly_network_types.API.PositionsTPSLExt, "rows">;
|
|
337
342
|
totalUnrealizedROI: number;
|
|
338
|
-
positionsInfo: {
|
|
339
|
-
unsettledPnL: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
340
|
-
margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
341
|
-
initial_margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
342
|
-
maintenance_margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
343
|
-
open_margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
344
|
-
current_margin_ratio_with_orders: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
345
|
-
initial_margin_ratio_with_orders: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
346
|
-
maintenance_margin_ratio_with_orders: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
347
|
-
total_collateral_value: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
348
|
-
free_collateral: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
349
|
-
total_pnl_24_h: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
350
|
-
unrealPnL: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
351
|
-
total_unreal_pnl: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
352
|
-
total_unreal_pnl_index: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
353
|
-
total_unsettled_pnl: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
354
|
-
notional: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
355
|
-
unrealPnlROI: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
356
|
-
unrealPnlROI_index: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
357
|
-
} & {
|
|
343
|
+
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]> & {
|
|
358
344
|
isNil: boolean;
|
|
359
345
|
};
|
|
360
346
|
marginRatio: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -181,12 +181,12 @@ declare const DataListWidget: (props: {
|
|
|
181
181
|
} & PositionsProps) => react_jsx_runtime.JSX.Element;
|
|
182
182
|
|
|
183
183
|
declare const useLastTradesScript: (symbol: string) => {
|
|
184
|
-
base:
|
|
185
|
-
quote:
|
|
184
|
+
base: string;
|
|
185
|
+
quote: string;
|
|
186
186
|
data: _orderly_network_types.API.Trade[];
|
|
187
187
|
isLoading: boolean;
|
|
188
|
-
baseDp:
|
|
189
|
-
quoteDp:
|
|
188
|
+
baseDp: number;
|
|
189
|
+
quoteDp: number;
|
|
190
190
|
};
|
|
191
191
|
type LastTradesState = ReturnType<typeof useLastTradesScript>;
|
|
192
192
|
|
|
@@ -222,6 +222,7 @@ declare const LastTradesWidget: (props: {
|
|
|
222
222
|
declare const useAssetViewScript: () => {
|
|
223
223
|
onDeposit: () => Promise<unknown>;
|
|
224
224
|
onWithdraw: () => Promise<unknown>;
|
|
225
|
+
onTransfer: () => Promise<unknown>;
|
|
225
226
|
onSettle: () => Promise<any>;
|
|
226
227
|
visible: any;
|
|
227
228
|
toggleVisible: () => void;
|
|
@@ -233,6 +234,8 @@ declare const useAssetViewScript: () => {
|
|
|
233
234
|
marginRatioVal: number | undefined;
|
|
234
235
|
renderMMR: number | undefined;
|
|
235
236
|
isConnected: boolean;
|
|
237
|
+
isMainAccount: boolean;
|
|
238
|
+
hasSubAccount: boolean;
|
|
236
239
|
};
|
|
237
240
|
type AssetViewState = ReturnType<typeof useAssetViewScript>;
|
|
238
241
|
|
|
@@ -333,28 +336,11 @@ declare const usePortfolioSheetScript: () => {
|
|
|
333
336
|
onWithdraw: () => void;
|
|
334
337
|
showSliderTip: boolean;
|
|
335
338
|
setShowSliderTip: react.Dispatch<react.SetStateAction<boolean>>;
|
|
339
|
+
isMainAccount: boolean;
|
|
340
|
+
onTransfer: () => void;
|
|
336
341
|
aggregated: Omit<_orderly_network_types.API.PositionsTPSLExt, "rows">;
|
|
337
342
|
totalUnrealizedROI: number;
|
|
338
|
-
positionsInfo: {
|
|
339
|
-
unsettledPnL: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
340
|
-
margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
341
|
-
initial_margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
342
|
-
maintenance_margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
343
|
-
open_margin_ratio: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
344
|
-
current_margin_ratio_with_orders: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
345
|
-
initial_margin_ratio_with_orders: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
346
|
-
maintenance_margin_ratio_with_orders: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
347
|
-
total_collateral_value: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
348
|
-
free_collateral: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
349
|
-
total_pnl_24_h: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
350
|
-
unrealPnL: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
351
|
-
total_unreal_pnl: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
352
|
-
total_unreal_pnl_index: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
353
|
-
total_unsettled_pnl: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
354
|
-
notional: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
355
|
-
unrealPnlROI: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
356
|
-
unrealPnlROI_index: (key?: "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" | undefined, defaultValue?: number | undefined) => any;
|
|
357
|
-
} & {
|
|
343
|
+
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]> & {
|
|
358
344
|
isNil: boolean;
|
|
359
345
|
};
|
|
360
346
|
marginRatio: number;
|