@0xmonaco/types 0.8.7-develop.0e951a5 → 0.8.7-develop.0f12336
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/README.md +5 -3
- package/dist/api/index.d.ts +7 -0
- package/dist/applications/index.d.ts +47 -5
- package/dist/applications/index.js +2 -1
- package/dist/applications/requests.d.ts +78 -0
- package/dist/applications/requests.js +7 -0
- package/dist/applications/responses.d.ts +213 -2
- package/dist/applications/responses.js +3 -1
- package/dist/auth/index.d.ts +6 -12
- package/dist/auth/index.js +2 -2
- package/dist/auth/responses.d.ts +2 -12
- package/dist/contracts/balances.d.ts +1 -1
- package/dist/delegated-agents/index.d.ts +35 -18
- package/dist/faucet/index.d.ts +54 -0
- package/dist/faucet/index.js +10 -0
- package/dist/fees/index.d.ts +4 -4
- package/dist/fees/responses.d.ts +17 -17
- package/dist/fees/responses.js +20 -20
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/margin-accounts/index.d.ts +91 -55
- package/dist/market/index.d.ts +214 -95
- package/dist/positions/index.d.ts +67 -44
- package/dist/profile/index.d.ts +156 -70
- package/dist/sdk/index.d.ts +24 -3
- package/dist/sub-accounts/index.d.ts +146 -0
- package/dist/sub-accounts/index.js +9 -0
- package/dist/trading/index.d.ts +8 -8
- package/dist/trading/orders.d.ts +20 -20
- package/dist/trading/responses.d.ts +81 -100
- package/dist/validation/margin-accounts.d.ts +53 -13
- package/dist/validation/margin-accounts.js +38 -14
- package/dist/validation/market.d.ts +1 -1
- package/dist/validation/market.js +1 -1
- package/dist/validation/positions.d.ts +11 -7
- package/dist/validation/positions.js +10 -6
- package/dist/validation/profile.d.ts +13 -6
- package/dist/validation/profile.js +13 -6
- package/dist/validation/trading.d.ts +17 -42
- package/dist/validation/trading.js +51 -42
- package/dist/validation/vault.d.ts +8 -0
- package/dist/validation/vault.js +3 -0
- package/dist/vault/index.d.ts +46 -13
- package/dist/vault/responses.d.ts +50 -12
- package/dist/websocket/events/balance-events.d.ts +2 -1
- package/dist/websocket/events/movement-events.d.ts +2 -1
- package/dist/whitelist/index.d.ts +44 -0
- package/dist/whitelist/index.js +10 -0
- package/dist/wire/assert.d.ts +54 -0
- package/dist/wire/assert.js +0 -0
- package/dist/wire/audit.d.ts +47 -0
- package/dist/wire/audit.js +43 -0
- package/dist/wire/coverage.d.ts +1 -0
- package/dist/wire/coverage.js +0 -0
- package/dist/wire/index.d.ts +21 -0
- package/dist/wire/index.js +2 -0
- package/dist/wire/operations.d.ts +15 -0
- package/dist/wire/operations.js +101 -0
- package/dist/wire/schema.d.ts +8930 -0
- package/dist/wire/schema.js +4 -0
- package/dist/withdrawals/index.d.ts +114 -0
- package/dist/withdrawals/index.js +0 -0
- package/package.json +6 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Faucet Types
|
|
3
|
+
*
|
|
4
|
+
* Types for the testnet token faucet. Wire shapes are snake_case.
|
|
5
|
+
*
|
|
6
|
+
* NOTE: The faucet is **testnet-only** and performs real on-chain mints from a
|
|
7
|
+
* backend-operator-funded signer. It is disabled (returns an error) if the
|
|
8
|
+
* gateway operator has not configured a signer; the SDK caller has no control
|
|
9
|
+
* over that. It is rate-limited per user (default 1 request / 24h).
|
|
10
|
+
*/
|
package/dist/fees/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface FeesAPI extends BaseAPI {
|
|
|
15
15
|
* Returns exact fees for that specific order.
|
|
16
16
|
*
|
|
17
17
|
* @param params - Parameters for fee simulation
|
|
18
|
-
* @param params.
|
|
18
|
+
* @param params.tradingPairId - Trading pair ID
|
|
19
19
|
* @param params.side - Order side ("BUY" or "SELL")
|
|
20
20
|
* @param params.price - Price per unit
|
|
21
21
|
* @param params.quantity - Quantity to trade
|
|
@@ -24,13 +24,13 @@ export interface FeesAPI extends BaseAPI {
|
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
26
|
* const feeDetails = await feesAPI.simulateFees({
|
|
27
|
-
*
|
|
27
|
+
* tradingPairId: "123e4567-e89b-12d3-a456-426614174000",
|
|
28
28
|
* side: "BUY",
|
|
29
29
|
* price: "40000.00",
|
|
30
30
|
* quantity: "0.5"
|
|
31
31
|
* });
|
|
32
|
-
* console.log(`Total taker fees: ${feeDetails.
|
|
33
|
-
* console.log(`Taker must pay: ${feeDetails.
|
|
32
|
+
* console.log(`Total taker fees: ${feeDetails.totalTakerFees}`);
|
|
33
|
+
* console.log(`Taker must pay: ${feeDetails.takerTotalPayment}`);
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
simulateFees(params: SimulateFeeParams): Promise<SimulateFeeResponse>;
|
package/dist/fees/responses.d.ts
CHANGED
|
@@ -9,38 +9,38 @@ import { z } from "zod";
|
|
|
9
9
|
* Zod schema for simulating order fees parameters
|
|
10
10
|
*/
|
|
11
11
|
export declare const SimulateFeeParamsSchema: z.ZodObject<{
|
|
12
|
-
|
|
12
|
+
tradingPairId: z.ZodString;
|
|
13
13
|
side: z.ZodEnum<{
|
|
14
14
|
BUY: "BUY";
|
|
15
15
|
SELL: "SELL";
|
|
16
16
|
}>;
|
|
17
17
|
price: z.ZodString;
|
|
18
18
|
quantity: z.ZodString;
|
|
19
|
-
|
|
19
|
+
orderType: z.ZodOptional<z.ZodEnum<{
|
|
20
20
|
LIMIT: "LIMIT";
|
|
21
21
|
MARKET: "MARKET";
|
|
22
22
|
}>>;
|
|
23
|
-
|
|
23
|
+
slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
/**
|
|
26
26
|
* Zod schema for fee simulation response
|
|
27
27
|
*/
|
|
28
28
|
export declare const SimulateFeeResponseSchema: z.ZodObject<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
applicationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
applicationTakerFee: z.ZodString;
|
|
31
|
+
applicationTakerFeeBps: z.ZodNumber;
|
|
32
|
+
buyOrderLockAmount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
makerTotalReceipt: z.ZodString;
|
|
34
|
+
monacoMakerRebate: z.ZodString;
|
|
35
|
+
monacoMakerRebateBps: z.ZodNumber;
|
|
36
|
+
monacoTakerFee: z.ZodString;
|
|
37
|
+
monacoTakerFeeBps: z.ZodNumber;
|
|
38
38
|
notional: z.ZodString;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
takerTotalPayment: z.ZodString;
|
|
40
|
+
totalTakerFees: z.ZodString;
|
|
41
|
+
maxQuantity: z.ZodNullable<z.ZodString>;
|
|
42
|
+
maxQuantityRaw: z.ZodNullable<z.ZodString>;
|
|
43
|
+
slippageToleranceBps: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
45
|
/**
|
|
46
46
|
* Parameters for simulating order fees
|
package/dist/fees/responses.js
CHANGED
|
@@ -11,7 +11,7 @@ import { z } from "zod";
|
|
|
11
11
|
export const SimulateFeeParamsSchema = z
|
|
12
12
|
.object({
|
|
13
13
|
/** Trading pair ID */
|
|
14
|
-
|
|
14
|
+
tradingPairId: z.string().trim().min(1, "Trading pair ID is required and cannot be empty"),
|
|
15
15
|
/** Order side: "BUY" or "SELL" */
|
|
16
16
|
side: z.enum(["BUY", "SELL"], {
|
|
17
17
|
message: "Order side is required and must be either 'BUY' or 'SELL'",
|
|
@@ -31,9 +31,9 @@ export const SimulateFeeParamsSchema = z
|
|
|
31
31
|
.refine((val) => !Number.isNaN(Number(val)), "Quantity must be a valid number")
|
|
32
32
|
.refine((val) => Number(val) > 0, "Quantity must be greater than 0"),
|
|
33
33
|
/** Order type: "LIMIT" (default) or "MARKET". MARKET orders include a slippage buffer in the lock amount. */
|
|
34
|
-
|
|
34
|
+
orderType: z.enum(["LIMIT", "MARKET"]).optional(),
|
|
35
35
|
/** Slippage tolerance in basis points (0–1000). Only valid for MARKET orders. Default: 500 (5%). */
|
|
36
|
-
|
|
36
|
+
slippageToleranceBps: z
|
|
37
37
|
.number()
|
|
38
38
|
.int()
|
|
39
39
|
.min(0, "Slippage tolerance must be between 0 and 1000 bps")
|
|
@@ -41,11 +41,11 @@ export const SimulateFeeParamsSchema = z
|
|
|
41
41
|
.optional(),
|
|
42
42
|
})
|
|
43
43
|
.superRefine((data, ctx) => {
|
|
44
|
-
if (data.
|
|
44
|
+
if (data.slippageToleranceBps !== undefined && data.orderType !== "MARKET") {
|
|
45
45
|
ctx.addIssue({
|
|
46
46
|
code: z.ZodIssueCode.custom,
|
|
47
|
-
message: "
|
|
48
|
-
path: ["
|
|
47
|
+
message: "slippageToleranceBps is only valid when orderType is MARKET",
|
|
48
|
+
path: ["slippageToleranceBps"],
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
});
|
|
@@ -54,33 +54,33 @@ export const SimulateFeeParamsSchema = z
|
|
|
54
54
|
*/
|
|
55
55
|
export const SimulateFeeResponseSchema = z.object({
|
|
56
56
|
/** Application name (if applicable) */
|
|
57
|
-
|
|
57
|
+
applicationName: z.string().nullable().optional(),
|
|
58
58
|
/** Frontend application taker fee */
|
|
59
|
-
|
|
59
|
+
applicationTakerFee: z.string(),
|
|
60
60
|
/** Application fee in basis points */
|
|
61
|
-
|
|
61
|
+
applicationTakerFeeBps: z.number(),
|
|
62
62
|
/** Amount to lock for BUY orders (null for `SELL`) */
|
|
63
|
-
|
|
63
|
+
buyOrderLockAmount: z.string().nullable().optional(),
|
|
64
64
|
/** Total amount maker receives */
|
|
65
|
-
|
|
65
|
+
makerTotalReceipt: z.string(),
|
|
66
66
|
/** Monaco protocol maker rebate (negative = rebate) */
|
|
67
|
-
|
|
67
|
+
monacoMakerRebate: z.string(),
|
|
68
68
|
/** Monaco maker rebate in basis points */
|
|
69
|
-
|
|
69
|
+
monacoMakerRebateBps: z.number(),
|
|
70
70
|
/** Monaco protocol taker fee */
|
|
71
|
-
|
|
71
|
+
monacoTakerFee: z.string(),
|
|
72
72
|
/** Monaco taker fee in basis points */
|
|
73
|
-
|
|
73
|
+
monacoTakerFeeBps: z.number(),
|
|
74
74
|
/** Notional value (price * quantity) */
|
|
75
75
|
notional: z.string(),
|
|
76
76
|
/** Total amount taker must pay */
|
|
77
|
-
|
|
77
|
+
takerTotalPayment: z.string(),
|
|
78
78
|
/** Total taker fees (monaco + application) */
|
|
79
|
-
|
|
79
|
+
totalTakerFees: z.string(),
|
|
80
80
|
/** Maximum quantity affordable at the given price, accounting for fees (null if not authenticated or balance unavailable) */
|
|
81
|
-
|
|
81
|
+
maxQuantity: z.string().nullable(),
|
|
82
82
|
/** Maximum quantity in RAW (smallest unit) format */
|
|
83
|
-
|
|
83
|
+
maxQuantityRaw: z.string().nullable(),
|
|
84
84
|
/** Slippage tolerance used in the calculation, echoed back for MARKET orders (null for LIMIT orders) */
|
|
85
|
-
|
|
85
|
+
slippageToleranceBps: z.number().nullable(),
|
|
86
86
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -9,13 +9,17 @@ export * from "./applications";
|
|
|
9
9
|
export * from "./auth";
|
|
10
10
|
export * from "./contracts";
|
|
11
11
|
export * from "./delegated-agents";
|
|
12
|
+
export * from "./faucet";
|
|
12
13
|
export * from "./fees";
|
|
13
14
|
export * from "./margin-accounts";
|
|
14
15
|
export * from "./market";
|
|
15
16
|
export * from "./positions";
|
|
16
17
|
export * from "./profile";
|
|
17
18
|
export * from "./sdk";
|
|
19
|
+
export * from "./sub-accounts";
|
|
18
20
|
export * from "./trading";
|
|
19
21
|
export * from "./validation";
|
|
20
22
|
export * from "./vault";
|
|
21
23
|
export * from "./websocket";
|
|
24
|
+
export * from "./whitelist";
|
|
25
|
+
export * from "./withdrawals";
|
package/dist/index.js
CHANGED
|
@@ -10,13 +10,17 @@ export * from "./applications";
|
|
|
10
10
|
export * from "./auth";
|
|
11
11
|
export * from "./contracts";
|
|
12
12
|
export * from "./delegated-agents";
|
|
13
|
+
export * from "./faucet";
|
|
13
14
|
export * from "./fees";
|
|
14
15
|
export * from "./margin-accounts";
|
|
15
16
|
export * from "./market";
|
|
16
17
|
export * from "./positions";
|
|
17
18
|
export * from "./profile";
|
|
18
19
|
export * from "./sdk";
|
|
20
|
+
export * from "./sub-accounts";
|
|
19
21
|
export * from "./trading";
|
|
20
22
|
export * from "./validation";
|
|
21
23
|
export * from "./vault";
|
|
22
24
|
export * from "./websocket";
|
|
25
|
+
export * from "./whitelist";
|
|
26
|
+
export * from "./withdrawals";
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import type { BaseAPI } from "../api";
|
|
2
2
|
import type { OrderSide, OrderType, PositionSide } from "../trading";
|
|
3
3
|
export interface MarginAccountSummary {
|
|
4
|
-
|
|
4
|
+
marginAccountId: string;
|
|
5
5
|
label?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
riskBucketId?: string;
|
|
7
|
+
marginMode?: "ISOLATED" | "CROSS";
|
|
8
|
+
tradingPairId?: string;
|
|
9
|
+
strategyKey?: string;
|
|
10
|
+
accountState: string;
|
|
9
11
|
equity: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
initialMarginRequired: string;
|
|
13
|
+
maintenanceMarginRequired: string;
|
|
14
|
+
freeCollateral: string;
|
|
15
|
+
withdrawableCollateral: string;
|
|
16
|
+
totalPositionNotional: string;
|
|
17
|
+
unrealizedPnl: string;
|
|
18
|
+
realizedPnl: string;
|
|
19
|
+
updatedAt: string;
|
|
18
20
|
}
|
|
19
21
|
export interface ListMarginAccountsParams {
|
|
20
22
|
page?: number;
|
|
21
|
-
|
|
23
|
+
pageSize?: number;
|
|
22
24
|
state?: string;
|
|
23
25
|
tradingPairId?: string;
|
|
24
26
|
}
|
|
@@ -26,69 +28,77 @@ export interface ListMarginAccountsResponse {
|
|
|
26
28
|
accounts: MarginAccountSummary[];
|
|
27
29
|
total: number;
|
|
28
30
|
page: number;
|
|
29
|
-
|
|
31
|
+
pageSize: number;
|
|
30
32
|
}
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
collateralAsset?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface CreateMarginAccountResponse {
|
|
36
|
-
margin_account_id: string;
|
|
37
|
-
label?: string;
|
|
38
|
-
account_state: string;
|
|
39
|
-
collateral_asset: string;
|
|
40
|
-
created_at: string;
|
|
33
|
+
export interface GetMarginAccountSummaryParams {
|
|
34
|
+
tradingPairId?: string;
|
|
41
35
|
}
|
|
42
36
|
export interface GetAvailableCollateralParams {
|
|
43
37
|
asset?: string;
|
|
44
38
|
}
|
|
45
39
|
export interface GetAvailableCollateralResponse {
|
|
46
40
|
asset: string;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
walletAvailable: string;
|
|
42
|
+
walletLocked: string;
|
|
43
|
+
marginTransferable?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Free collateral held in the user's parent margin account for this asset
|
|
46
|
+
* (equity minus initial margin required) — collateral already inside margin
|
|
47
|
+
* and available to open new positions or transfer back out. Absent when the
|
|
48
|
+
* user has no margin account yet.
|
|
49
|
+
*/
|
|
50
|
+
marginAvailableCollateral?: string;
|
|
50
51
|
}
|
|
51
52
|
export interface TransferCollateralRequest {
|
|
52
53
|
asset: string;
|
|
53
54
|
amount: string;
|
|
55
|
+
tradingPairId?: string;
|
|
56
|
+
strategyKey?: string;
|
|
54
57
|
}
|
|
55
|
-
export interface
|
|
58
|
+
export interface TransferCollateralToParentMarginAccountRequest {
|
|
59
|
+
asset: string;
|
|
60
|
+
amount: string;
|
|
61
|
+
}
|
|
62
|
+
export interface TransferCollateralToRiskBucketRequest extends TransferCollateralToParentMarginAccountRequest {
|
|
56
63
|
tradingPairId: string;
|
|
57
64
|
strategyKey?: string;
|
|
58
65
|
}
|
|
66
|
+
export interface TransferCollateralFromParentMarginAccountRequest {
|
|
67
|
+
asset: string;
|
|
68
|
+
amount: string;
|
|
69
|
+
}
|
|
59
70
|
export interface TransferCollateralResponse {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
movementId: string;
|
|
72
|
+
marginAccountId: string;
|
|
73
|
+
strategyKey?: string;
|
|
63
74
|
asset: string;
|
|
64
75
|
amount: string;
|
|
65
76
|
status: string;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
newEquity: string;
|
|
78
|
+
newTotalCollateralValue: string;
|
|
79
|
+
newWithdrawableCollateral: string;
|
|
69
80
|
}
|
|
70
81
|
export interface GetMarginAccountMovementsParams {
|
|
71
|
-
|
|
82
|
+
movementType?: string;
|
|
72
83
|
page?: number;
|
|
73
|
-
|
|
84
|
+
pageSize?: number;
|
|
74
85
|
}
|
|
75
86
|
export interface MarginAccountMovement {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
movementId: string;
|
|
88
|
+
marginAccountId: string;
|
|
89
|
+
movementType: string;
|
|
79
90
|
asset: string;
|
|
80
91
|
amount: string;
|
|
81
|
-
|
|
92
|
+
createdAt: string;
|
|
82
93
|
}
|
|
83
94
|
export interface GetMarginAccountMovementsResponse {
|
|
84
95
|
movements: MarginAccountMovement[];
|
|
85
96
|
total: number;
|
|
86
97
|
page: number;
|
|
87
|
-
|
|
98
|
+
pageSize: number;
|
|
88
99
|
}
|
|
89
100
|
export interface SimulateOrderRiskRequest {
|
|
90
101
|
tradingPairId: string;
|
|
91
|
-
strategyKey?: string;
|
|
92
102
|
side: OrderSide;
|
|
93
103
|
positionSide: PositionSide;
|
|
94
104
|
orderType: OrderType;
|
|
@@ -97,27 +107,53 @@ export interface SimulateOrderRiskRequest {
|
|
|
97
107
|
leverage: string;
|
|
98
108
|
reduceOnly?: boolean;
|
|
99
109
|
}
|
|
110
|
+
export interface SimulateRiskBucketOrderRiskRequest extends SimulateOrderRiskRequest {
|
|
111
|
+
strategyKey?: string;
|
|
112
|
+
}
|
|
100
113
|
export interface SimulateOrderRiskResponse {
|
|
101
114
|
accepted: boolean;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
rejectReason?: string;
|
|
116
|
+
marginAccountId: string;
|
|
117
|
+
strategyKey?: string;
|
|
118
|
+
equityAfter: string;
|
|
119
|
+
initialMarginRequiredAfter: string;
|
|
120
|
+
maintenanceMarginRequiredAfter: string;
|
|
121
|
+
freeCollateralAfter: string;
|
|
122
|
+
estimatedFee?: string;
|
|
123
|
+
estimatedLiquidationPrice?: string;
|
|
111
124
|
}
|
|
112
125
|
export interface MarginAccountsAPI extends BaseAPI {
|
|
113
126
|
listMarginAccounts(params?: ListMarginAccountsParams): Promise<ListMarginAccountsResponse>;
|
|
114
|
-
|
|
115
|
-
|
|
127
|
+
getParentMarginAccountSummary(params?: GetMarginAccountSummaryParams): Promise<MarginAccountSummary>;
|
|
128
|
+
/**
|
|
129
|
+
* @deprecated Prefer getParentMarginAccountSummary(). Parent margin account ids
|
|
130
|
+
* are auto-resolved for the authenticated wallet/application scope.
|
|
131
|
+
*/
|
|
132
|
+
getMarginAccountSummary(marginAccountId: string, params?: GetMarginAccountSummaryParams): Promise<MarginAccountSummary>;
|
|
116
133
|
getAvailableCollateral(params?: GetAvailableCollateralParams): Promise<GetAvailableCollateralResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Prefer transferCollateralToParentMarginAccount() or
|
|
136
|
+
* transferCollateralToRiskBucket().
|
|
137
|
+
*/
|
|
117
138
|
transferCollateralToMarginAccount(marginAccountId: string, request: TransferCollateralRequest): Promise<TransferCollateralResponse>;
|
|
118
|
-
|
|
139
|
+
transferCollateralToParentMarginAccount(request: TransferCollateralToParentMarginAccountRequest): Promise<TransferCollateralResponse>;
|
|
140
|
+
transferCollateralToRiskBucket(request: TransferCollateralToRiskBucketRequest): Promise<TransferCollateralResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* @deprecated Prefer transferCollateralFromParentMarginAccount().
|
|
143
|
+
*/
|
|
119
144
|
transferCollateralFromMarginAccount(marginAccountId: string, request: TransferCollateralRequest): Promise<TransferCollateralResponse>;
|
|
145
|
+
transferCollateralFromParentMarginAccount(request: TransferCollateralFromParentMarginAccountRequest): Promise<TransferCollateralResponse>;
|
|
146
|
+
getParentMarginAccountMovements(params?: GetMarginAccountMovementsParams): Promise<GetMarginAccountMovementsResponse>;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated Prefer getParentMarginAccountMovements(). Parent margin account ids
|
|
149
|
+
* are auto-resolved for the authenticated wallet/application scope.
|
|
150
|
+
*/
|
|
120
151
|
getMarginAccountMovements(marginAccountId: string, params?: GetMarginAccountMovementsParams): Promise<GetMarginAccountMovementsResponse>;
|
|
152
|
+
simulateParentMarginOrderRisk(request: SimulateOrderRiskRequest): Promise<SimulateOrderRiskResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated Prefer simulateParentMarginOrderRisk(). Parent margin account ids
|
|
155
|
+
* are auto-resolved for the authenticated wallet/application scope.
|
|
156
|
+
*/
|
|
121
157
|
simulateOrderRisk(marginAccountId: string, request: SimulateOrderRiskRequest): Promise<SimulateOrderRiskResponse>;
|
|
122
|
-
|
|
158
|
+
simulateRiskBucketOrderRisk(request: SimulateRiskBucketOrderRiskRequest): Promise<SimulateOrderRiskResponse>;
|
|
123
159
|
}
|