@orderly.network/trading 2.4.1 → 2.5.0-alpha.1
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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _orderly_network_types from '@orderly.network/types';
|
|
2
|
-
import { API, NetworkId, AccountStatusEnum } from '@orderly.network/types';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import react__default, { ReactNode, FC, RefObject, PropsWithChildren } from 'react';
|
|
3
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
4
|
+
import { API, NetworkId, AccountStatusEnum } from '@orderly.network/types';
|
|
5
5
|
import * as _orderly_network_ui_share from '@orderly.network/ui-share';
|
|
6
6
|
import { SharePnLConfig } from '@orderly.network/ui-share';
|
|
7
7
|
import { TradingviewWidgetPropsInterface } from '@orderly.network/ui-tradingview';
|
|
@@ -80,7 +80,9 @@ declare enum TradingFeatures {
|
|
|
80
80
|
TradeHistory = "tradeHistory",
|
|
81
81
|
Positions = "positions",
|
|
82
82
|
Orders = "orders",
|
|
83
|
-
AssetAndMarginInfo = "asset_margin_info"
|
|
83
|
+
AssetAndMarginInfo = "asset_margin_info",
|
|
84
|
+
SlippageSetting = "slippageSetting",
|
|
85
|
+
FeesInfo = "feesInfo"
|
|
84
86
|
}
|
|
85
87
|
type BasicSymbolInfo = {
|
|
86
88
|
base_dp: number;
|
|
@@ -236,6 +238,7 @@ declare const useAssetViewScript: () => {
|
|
|
236
238
|
isConnected: boolean;
|
|
237
239
|
isMainAccount: boolean;
|
|
238
240
|
hasSubAccount: boolean;
|
|
241
|
+
currentLtv: number;
|
|
239
242
|
};
|
|
240
243
|
type AssetViewState = ReturnType<typeof useAssetViewScript>;
|
|
241
244
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _orderly_network_types from '@orderly.network/types';
|
|
2
|
-
import { API, NetworkId, AccountStatusEnum } from '@orderly.network/types';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import react__default, { ReactNode, FC, RefObject, PropsWithChildren } from 'react';
|
|
3
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
4
|
+
import { API, NetworkId, AccountStatusEnum } from '@orderly.network/types';
|
|
5
5
|
import * as _orderly_network_ui_share from '@orderly.network/ui-share';
|
|
6
6
|
import { SharePnLConfig } from '@orderly.network/ui-share';
|
|
7
7
|
import { TradingviewWidgetPropsInterface } from '@orderly.network/ui-tradingview';
|
|
@@ -80,7 +80,9 @@ declare enum TradingFeatures {
|
|
|
80
80
|
TradeHistory = "tradeHistory",
|
|
81
81
|
Positions = "positions",
|
|
82
82
|
Orders = "orders",
|
|
83
|
-
AssetAndMarginInfo = "asset_margin_info"
|
|
83
|
+
AssetAndMarginInfo = "asset_margin_info",
|
|
84
|
+
SlippageSetting = "slippageSetting",
|
|
85
|
+
FeesInfo = "feesInfo"
|
|
84
86
|
}
|
|
85
87
|
type BasicSymbolInfo = {
|
|
86
88
|
base_dp: number;
|
|
@@ -236,6 +238,7 @@ declare const useAssetViewScript: () => {
|
|
|
236
238
|
isConnected: boolean;
|
|
237
239
|
isMainAccount: boolean;
|
|
238
240
|
hasSubAccount: boolean;
|
|
241
|
+
currentLtv: number;
|
|
239
242
|
};
|
|
240
243
|
type AssetViewState = ReturnType<typeof useAssetViewScript>;
|
|
241
244
|
|