@orderly.network/hooks 2.8.10-alpha.0 → 2.8.11-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 +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +119 -150
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +119 -150
- 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.0";
|
|
41
41
|
|
|
42
42
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
43
43
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -1294,6 +1294,10 @@ type MarginRatioReturn = {
|
|
|
1294
1294
|
* Maintenance margin ratio (MMR) of the account, null if user has no positions
|
|
1295
1295
|
*/
|
|
1296
1296
|
mmr: number | null;
|
|
1297
|
+
/**
|
|
1298
|
+
* Maintenance margin of the account
|
|
1299
|
+
*/
|
|
1300
|
+
maintenanceMargin: number | null;
|
|
1297
1301
|
};
|
|
1298
1302
|
/**
|
|
1299
1303
|
* 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.0";
|
|
41
41
|
|
|
42
42
|
declare const fetcher: (url: string, init: RequestInit | undefined, queryOptions: useQueryOptions<any>) => Promise<any>;
|
|
43
43
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
@@ -1294,6 +1294,10 @@ type MarginRatioReturn = {
|
|
|
1294
1294
|
* Maintenance margin ratio (MMR) of the account, null if user has no positions
|
|
1295
1295
|
*/
|
|
1296
1296
|
mmr: number | null;
|
|
1297
|
+
/**
|
|
1298
|
+
* Maintenance margin of the account
|
|
1299
|
+
*/
|
|
1300
|
+
maintenanceMargin: number | null;
|
|
1297
1301
|
};
|
|
1298
1302
|
/**
|
|
1299
1303
|
* Hook to calculate and monitor account's margin ratio, leverage, and maintenance margin ratio (MMR)
|