@0xmonaco/types 0.7.0 → 0.7.2
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.
|
@@ -54,6 +54,8 @@ export interface TransferCollateralResponse {
|
|
|
54
54
|
amount: string;
|
|
55
55
|
status: string;
|
|
56
56
|
new_equity: string;
|
|
57
|
+
new_total_collateral_value: string;
|
|
58
|
+
new_withdrawable_collateral: string;
|
|
57
59
|
}
|
|
58
60
|
export interface GetMarginAccountMovementsParams {
|
|
59
61
|
movement_type?: string;
|
package/dist/profile/index.d.ts
CHANGED
|
@@ -190,7 +190,7 @@ export interface AccountBalance {
|
|
|
190
190
|
available_balance: string;
|
|
191
191
|
/** Locked balance (in orders or pending operations, normalized) */
|
|
192
192
|
locked_balance: string;
|
|
193
|
-
/** Total balance (available + locked, normalized) */
|
|
193
|
+
/** Total balance (available + locked + margin collateral, normalized) */
|
|
194
194
|
total_balance: string;
|
|
195
195
|
/** Available balance in raw format (wei) */
|
|
196
196
|
available_balance_raw: string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Reason for the balance update
|
|
9
9
|
*/
|
|
10
|
-
export type BalanceUpdateReason = "lock" | "unlock" | "deposit" | "withdrawal" | "trade";
|
|
10
|
+
export type BalanceUpdateReason = "lock" | "unlock" | "deposit" | "withdrawal" | "trade" | "margin_transfer_in" | "margin_transfer_out";
|
|
11
11
|
/**
|
|
12
12
|
* User balance event data containing current balance state
|
|
13
13
|
*/
|
|
@@ -24,7 +24,7 @@ export interface UserBalanceEventData {
|
|
|
24
24
|
locked: string;
|
|
25
25
|
/** Locked balance in raw format (wei) */
|
|
26
26
|
lockedRaw: string;
|
|
27
|
-
/** Total balance (available + locked, normalized) */
|
|
27
|
+
/** Total balance (available + locked + margin collateral, normalized) */
|
|
28
28
|
total: string;
|
|
29
29
|
/** Total balance in raw format (wei) */
|
|
30
30
|
totalRaw: string;
|