@orderly.network/hooks 2.8.10 → 2.8.11-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 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +128 -152
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +128 -152
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -13
package/dist/index.d.mts
CHANGED
|
@@ -37,7 +37,7 @@ declare global {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
declare const _default: "2.8.
|
|
40
|
+
declare const _default: "2.8.11-alpha.1";
|
|
41
41
|
|
|
42
42
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
43
43
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -783,6 +783,7 @@ type TabSort = Record<string, {
|
|
|
783
783
|
}>;
|
|
784
784
|
type MarketsItem = {
|
|
785
785
|
symbol: string;
|
|
786
|
+
displayName?: string;
|
|
786
787
|
index_price: number;
|
|
787
788
|
mark_price: number;
|
|
788
789
|
sum_unitary_funding: number;
|
|
@@ -1294,6 +1295,10 @@ type MarginRatioReturn = {
|
|
|
1294
1295
|
* Maintenance margin ratio (MMR) of the account, null if user has no positions
|
|
1295
1296
|
*/
|
|
1296
1297
|
mmr: number | null;
|
|
1298
|
+
/**
|
|
1299
|
+
* Maintenance margin of the account
|
|
1300
|
+
*/
|
|
1301
|
+
maintenanceMargin: number | null;
|
|
1297
1302
|
};
|
|
1298
1303
|
/**
|
|
1299
1304
|
* Hook to calculate and monitor account's margin ratio, leverage, and maintenance margin ratio (MMR)
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare global {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
declare const _default: "2.8.
|
|
40
|
+
declare const _default: "2.8.11-alpha.1";
|
|
41
41
|
|
|
42
42
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
43
43
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -783,6 +783,7 @@ type TabSort = Record<string, {
|
|
|
783
783
|
}>;
|
|
784
784
|
type MarketsItem = {
|
|
785
785
|
symbol: string;
|
|
786
|
+
displayName?: string;
|
|
786
787
|
index_price: number;
|
|
787
788
|
mark_price: number;
|
|
788
789
|
sum_unitary_funding: number;
|
|
@@ -1294,6 +1295,10 @@ type MarginRatioReturn = {
|
|
|
1294
1295
|
* Maintenance margin ratio (MMR) of the account, null if user has no positions
|
|
1295
1296
|
*/
|
|
1296
1297
|
mmr: number | null;
|
|
1298
|
+
/**
|
|
1299
|
+
* Maintenance margin of the account
|
|
1300
|
+
*/
|
|
1301
|
+
maintenanceMargin: number | null;
|
|
1297
1302
|
};
|
|
1298
1303
|
/**
|
|
1299
1304
|
* Hook to calculate and monitor account's margin ratio, leverage, and maintenance margin ratio (MMR)
|