@bulletxyz/bullet-sdk 0.17.3-rc.2 → 0.17.3-rc.4
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/browser/index.js +41 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +41 -1
- package/dist/node/index.js.map +2 -2
- package/dist/types/calc.d.ts +1 -0
- package/package.json +1 -1
package/dist/types/calc.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare function calculateUsedMargin(marginType: MarginType, userAccount:
|
|
|
16
16
|
export declare function calculateWithdrawableAmountOfAsset(assetId: AssetId, userAccount: UserAccount, marginContext: MarginContext): Decimal;
|
|
17
17
|
export declare function calculateEstimatedLiquidationPrice(assetId: AssetId, userAccount: UserAccount, marginContext: MarginContext): Decimal;
|
|
18
18
|
export declare function calculateLiquidationRiskPercentage(userAccount: UserAccount, marginContext: MarginContext): Decimal;
|
|
19
|
+
export declare function calculateForceCloseRiskPercentage(userAccount: UserAccount, marginContext: MarginContext): Decimal;
|
|
19
20
|
export declare function calculateMaxBorrowAmount(assetId: AssetId, userAccount: UserAccount, marginContext: MarginContext): Decimal;
|
|
20
21
|
export declare function calculateMaxOrderSize(assetId: AssetId, side: Side, price: Decimal, reduceOnly: boolean, userAccount: UserAccount, marginContext: MarginContext, makerBook: OrderbookData, n_iterations?: number, error_tolerance?: Decimal): Decimal;
|
|
21
22
|
export declare function simulateUsedMarginOnBorrow(assetId: AssetId, borrowAmount: Decimal, userAccount: UserAccount, marginType: MarginType, marginContext: MarginContext): {
|