zklighter-perps 1.0.241 → 1.0.242
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/.openapi-generator/FILES +0 -1
- package/apis/OrderApi.ts +10 -0
- package/models/AccountAsset.ts +0 -29
- package/models/Asset.ts +0 -72
- package/models/ReqGetTrades.ts +16 -0
- package/models/RiskParameters.ts +8 -35
- package/models/index.ts +0 -1
- package/openapi.json +29 -100
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/OrderApi.ts
CHANGED
|
@@ -144,6 +144,8 @@ export interface TradesRequest {
|
|
|
144
144
|
role?: TradesRoleEnum;
|
|
145
145
|
type?: TradesTypeEnum;
|
|
146
146
|
aggregate?: boolean;
|
|
147
|
+
skip_ask_order_id?: string;
|
|
148
|
+
skip_bid_order_id?: string;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
/**
|
|
@@ -819,6 +821,14 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
819
821
|
queryParameters['aggregate'] = requestParameters['aggregate'];
|
|
820
822
|
}
|
|
821
823
|
|
|
824
|
+
if (requestParameters['skip_ask_order_id'] != null) {
|
|
825
|
+
queryParameters['skip_ask_order_id'] = requestParameters['skip_ask_order_id'];
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
if (requestParameters['skip_bid_order_id'] != null) {
|
|
829
|
+
queryParameters['skip_bid_order_id'] = requestParameters['skip_bid_order_id'];
|
|
830
|
+
}
|
|
831
|
+
|
|
822
832
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
823
833
|
|
|
824
834
|
const response = await this.request({
|
package/models/AccountAsset.ts
CHANGED
|
@@ -43,31 +43,8 @@ export interface AccountAsset {
|
|
|
43
43
|
* @memberof AccountAsset
|
|
44
44
|
*/
|
|
45
45
|
locked_balance: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof AccountAsset
|
|
50
|
-
*/
|
|
51
|
-
margin_mode: AccountAssetMarginModeEnum;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof AccountAsset
|
|
56
|
-
*/
|
|
57
|
-
margin_balance: string;
|
|
58
46
|
}
|
|
59
47
|
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export const AccountAssetMarginModeEnum = {
|
|
65
|
-
Enabled: 'enabled',
|
|
66
|
-
Disabled: 'disabled'
|
|
67
|
-
} as const;
|
|
68
|
-
export type AccountAssetMarginModeEnum = typeof AccountAssetMarginModeEnum[keyof typeof AccountAssetMarginModeEnum];
|
|
69
|
-
|
|
70
|
-
|
|
71
48
|
/**
|
|
72
49
|
* Check if a given object implements the AccountAsset interface.
|
|
73
50
|
*/
|
|
@@ -76,8 +53,6 @@ export function instanceOfAccountAsset(value: object): value is AccountAsset {
|
|
|
76
53
|
if (!('asset_id' in value) || value['asset_id'] === undefined) return false;
|
|
77
54
|
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
78
55
|
if (!('locked_balance' in value) || value['locked_balance'] === undefined) return false;
|
|
79
|
-
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
80
|
-
if (!('margin_balance' in value) || value['margin_balance'] === undefined) return false;
|
|
81
56
|
return true;
|
|
82
57
|
}
|
|
83
58
|
|
|
@@ -95,8 +70,6 @@ export function AccountAssetFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
95
70
|
'asset_id': json['asset_id'],
|
|
96
71
|
'balance': json['balance'],
|
|
97
72
|
'locked_balance': json['locked_balance'],
|
|
98
|
-
'margin_mode': json['margin_mode'],
|
|
99
|
-
'margin_balance': json['margin_balance'],
|
|
100
73
|
};
|
|
101
74
|
}
|
|
102
75
|
|
|
@@ -110,8 +83,6 @@ export function AccountAssetToJSON(value?: AccountAsset | null): any {
|
|
|
110
83
|
'asset_id': value['asset_id'],
|
|
111
84
|
'balance': value['balance'],
|
|
112
85
|
'locked_balance': value['locked_balance'],
|
|
113
|
-
'margin_mode': value['margin_mode'],
|
|
114
|
-
'margin_balance': value['margin_balance'],
|
|
115
86
|
};
|
|
116
87
|
}
|
|
117
88
|
|
package/models/Asset.ts
CHANGED
|
@@ -67,60 +67,12 @@ export interface Asset {
|
|
|
67
67
|
* @memberof Asset
|
|
68
68
|
*/
|
|
69
69
|
index_price: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {number}
|
|
73
|
-
* @memberof Asset
|
|
74
|
-
*/
|
|
75
|
-
price_decimals: number;
|
|
76
70
|
/**
|
|
77
71
|
*
|
|
78
72
|
* @type {string}
|
|
79
73
|
* @memberof Asset
|
|
80
74
|
*/
|
|
81
75
|
l1_address: string;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof Asset
|
|
86
|
-
*/
|
|
87
|
-
loan_to_value: string;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof Asset
|
|
92
|
-
*/
|
|
93
|
-
liquidation_threshold: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof Asset
|
|
98
|
-
*/
|
|
99
|
-
liquidation_factor: string;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof Asset
|
|
104
|
-
*/
|
|
105
|
-
liquidation_fee: string;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof Asset
|
|
110
|
-
*/
|
|
111
|
-
global_supply_cap: string;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof Asset
|
|
116
|
-
*/
|
|
117
|
-
user_supply_cap: string;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof Asset
|
|
122
|
-
*/
|
|
123
|
-
total_supplied: string;
|
|
124
76
|
}
|
|
125
77
|
|
|
126
78
|
|
|
@@ -146,15 +98,7 @@ export function instanceOfAsset(value: object): value is Asset {
|
|
|
146
98
|
if (!('min_withdrawal_amount' in value) || value['min_withdrawal_amount'] === undefined) return false;
|
|
147
99
|
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
148
100
|
if (!('index_price' in value) || value['index_price'] === undefined) return false;
|
|
149
|
-
if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
|
|
150
101
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
151
|
-
if (!('loan_to_value' in value) || value['loan_to_value'] === undefined) return false;
|
|
152
|
-
if (!('liquidation_threshold' in value) || value['liquidation_threshold'] === undefined) return false;
|
|
153
|
-
if (!('liquidation_factor' in value) || value['liquidation_factor'] === undefined) return false;
|
|
154
|
-
if (!('liquidation_fee' in value) || value['liquidation_fee'] === undefined) return false;
|
|
155
|
-
if (!('global_supply_cap' in value) || value['global_supply_cap'] === undefined) return false;
|
|
156
|
-
if (!('user_supply_cap' in value) || value['user_supply_cap'] === undefined) return false;
|
|
157
|
-
if (!('total_supplied' in value) || value['total_supplied'] === undefined) return false;
|
|
158
102
|
return true;
|
|
159
103
|
}
|
|
160
104
|
|
|
@@ -176,15 +120,7 @@ export function AssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ass
|
|
|
176
120
|
'min_withdrawal_amount': json['min_withdrawal_amount'],
|
|
177
121
|
'margin_mode': json['margin_mode'],
|
|
178
122
|
'index_price': json['index_price'],
|
|
179
|
-
'price_decimals': json['price_decimals'],
|
|
180
123
|
'l1_address': json['l1_address'],
|
|
181
|
-
'loan_to_value': json['loan_to_value'],
|
|
182
|
-
'liquidation_threshold': json['liquidation_threshold'],
|
|
183
|
-
'liquidation_factor': json['liquidation_factor'],
|
|
184
|
-
'liquidation_fee': json['liquidation_fee'],
|
|
185
|
-
'global_supply_cap': json['global_supply_cap'],
|
|
186
|
-
'user_supply_cap': json['user_supply_cap'],
|
|
187
|
-
'total_supplied': json['total_supplied'],
|
|
188
124
|
};
|
|
189
125
|
}
|
|
190
126
|
|
|
@@ -202,15 +138,7 @@ export function AssetToJSON(value?: Asset | null): any {
|
|
|
202
138
|
'min_withdrawal_amount': value['min_withdrawal_amount'],
|
|
203
139
|
'margin_mode': value['margin_mode'],
|
|
204
140
|
'index_price': value['index_price'],
|
|
205
|
-
'price_decimals': value['price_decimals'],
|
|
206
141
|
'l1_address': value['l1_address'],
|
|
207
|
-
'loan_to_value': value['loan_to_value'],
|
|
208
|
-
'liquidation_threshold': value['liquidation_threshold'],
|
|
209
|
-
'liquidation_factor': value['liquidation_factor'],
|
|
210
|
-
'liquidation_fee': value['liquidation_fee'],
|
|
211
|
-
'global_supply_cap': value['global_supply_cap'],
|
|
212
|
-
'user_supply_cap': value['user_supply_cap'],
|
|
213
|
-
'total_supplied': value['total_supplied'],
|
|
214
142
|
};
|
|
215
143
|
}
|
|
216
144
|
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -103,6 +103,18 @@ export interface ReqGetTrades {
|
|
|
103
103
|
* @memberof ReqGetTrades
|
|
104
104
|
*/
|
|
105
105
|
aggregate?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof ReqGetTrades
|
|
110
|
+
*/
|
|
111
|
+
skip_ask_order_id?: string;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof ReqGetTrades
|
|
116
|
+
*/
|
|
117
|
+
skip_bid_order_id?: string;
|
|
106
118
|
}
|
|
107
119
|
|
|
108
120
|
|
|
@@ -190,6 +202,8 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
190
202
|
'type': json['type'] == null ? undefined : json['type'],
|
|
191
203
|
'limit': json['limit'],
|
|
192
204
|
'aggregate': json['aggregate'] == null ? undefined : json['aggregate'],
|
|
205
|
+
'skip_ask_order_id': json['skip_ask_order_id'] == null ? undefined : json['skip_ask_order_id'],
|
|
206
|
+
'skip_bid_order_id': json['skip_bid_order_id'] == null ? undefined : json['skip_bid_order_id'],
|
|
193
207
|
};
|
|
194
208
|
}
|
|
195
209
|
|
|
@@ -213,6 +227,8 @@ export function ReqGetTradesToJSON(value?: ReqGetTrades | null): any {
|
|
|
213
227
|
'type': value['type'],
|
|
214
228
|
'limit': value['limit'],
|
|
215
229
|
'aggregate': value['aggregate'],
|
|
230
|
+
'skip_ask_order_id': value['skip_ask_order_id'],
|
|
231
|
+
'skip_bid_order_id': value['skip_bid_order_id'],
|
|
216
232
|
};
|
|
217
233
|
}
|
|
218
234
|
|
package/models/RiskParameters.ts
CHANGED
|
@@ -30,49 +30,31 @@ export interface RiskParameters {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof RiskParameters
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof RiskParameters
|
|
38
|
-
*/
|
|
39
|
-
initial_margin_req: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof RiskParameters
|
|
44
|
-
*/
|
|
45
|
-
maintenance_margin_req: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof RiskParameters
|
|
50
|
-
*/
|
|
51
|
-
close_out_margin_req: string;
|
|
33
|
+
collateral: string;
|
|
52
34
|
/**
|
|
53
35
|
*
|
|
54
36
|
* @type {string}
|
|
55
37
|
* @memberof RiskParameters
|
|
56
38
|
*/
|
|
57
|
-
|
|
39
|
+
total_account_value: string;
|
|
58
40
|
/**
|
|
59
41
|
*
|
|
60
42
|
* @type {string}
|
|
61
43
|
* @memberof RiskParameters
|
|
62
44
|
*/
|
|
63
|
-
|
|
45
|
+
initial_margin_req: string;
|
|
64
46
|
/**
|
|
65
47
|
*
|
|
66
48
|
* @type {string}
|
|
67
49
|
* @memberof RiskParameters
|
|
68
50
|
*/
|
|
69
|
-
|
|
51
|
+
maintenance_margin_req: string;
|
|
70
52
|
/**
|
|
71
53
|
*
|
|
72
54
|
* @type {string}
|
|
73
55
|
* @memberof RiskParameters
|
|
74
56
|
*/
|
|
75
|
-
|
|
57
|
+
close_out_margin_req: string;
|
|
76
58
|
}
|
|
77
59
|
|
|
78
60
|
/**
|
|
@@ -80,14 +62,11 @@ export interface RiskParameters {
|
|
|
80
62
|
*/
|
|
81
63
|
export function instanceOfRiskParameters(value: object): value is RiskParameters {
|
|
82
64
|
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
65
|
+
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
83
66
|
if (!('total_account_value' in value) || value['total_account_value'] === undefined) return false;
|
|
84
67
|
if (!('initial_margin_req' in value) || value['initial_margin_req'] === undefined) return false;
|
|
85
68
|
if (!('maintenance_margin_req' in value) || value['maintenance_margin_req'] === undefined) return false;
|
|
86
69
|
if (!('close_out_margin_req' in value) || value['close_out_margin_req'] === undefined) return false;
|
|
87
|
-
if (!('total_account_liquidation_threshold' in value) || value['total_account_liquidation_threshold'] === undefined) return false;
|
|
88
|
-
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
89
|
-
if (!('usdc_collateral_with_funding' in value) || value['usdc_collateral_with_funding'] === undefined) return false;
|
|
90
|
-
if (!('usdc_portfolio_value' in value) || value['usdc_portfolio_value'] === undefined) return false;
|
|
91
70
|
return true;
|
|
92
71
|
}
|
|
93
72
|
|
|
@@ -102,14 +81,11 @@ export function RiskParametersFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
102
81
|
return {
|
|
103
82
|
|
|
104
83
|
'market_id': json['market_id'],
|
|
84
|
+
'collateral': json['collateral'],
|
|
105
85
|
'total_account_value': json['total_account_value'],
|
|
106
86
|
'initial_margin_req': json['initial_margin_req'],
|
|
107
87
|
'maintenance_margin_req': json['maintenance_margin_req'],
|
|
108
88
|
'close_out_margin_req': json['close_out_margin_req'],
|
|
109
|
-
'total_account_liquidation_threshold': json['total_account_liquidation_threshold'],
|
|
110
|
-
'collateral': json['collateral'],
|
|
111
|
-
'usdc_collateral_with_funding': json['usdc_collateral_with_funding'],
|
|
112
|
-
'usdc_portfolio_value': json['usdc_portfolio_value'],
|
|
113
89
|
};
|
|
114
90
|
}
|
|
115
91
|
|
|
@@ -120,14 +96,11 @@ export function RiskParametersToJSON(value?: RiskParameters | null): any {
|
|
|
120
96
|
return {
|
|
121
97
|
|
|
122
98
|
'market_id': value['market_id'],
|
|
99
|
+
'collateral': value['collateral'],
|
|
123
100
|
'total_account_value': value['total_account_value'],
|
|
124
101
|
'initial_margin_req': value['initial_margin_req'],
|
|
125
102
|
'maintenance_margin_req': value['maintenance_margin_req'],
|
|
126
103
|
'close_out_margin_req': value['close_out_margin_req'],
|
|
127
|
-
'total_account_liquidation_threshold': value['total_account_liquidation_threshold'],
|
|
128
|
-
'collateral': value['collateral'],
|
|
129
|
-
'usdc_collateral_with_funding': value['usdc_collateral_with_funding'],
|
|
130
|
-
'usdc_portfolio_value': value['usdc_portfolio_value'],
|
|
131
104
|
};
|
|
132
105
|
}
|
|
133
106
|
|
package/models/index.ts
CHANGED
package/openapi.json
CHANGED
|
@@ -689,7 +689,8 @@
|
|
|
689
689
|
"in": "query",
|
|
690
690
|
"required": false,
|
|
691
691
|
"type": "integer",
|
|
692
|
-
"format": "int16"
|
|
692
|
+
"format": "int16",
|
|
693
|
+
"default": "0"
|
|
693
694
|
}
|
|
694
695
|
],
|
|
695
696
|
"tags": [
|
|
@@ -4299,6 +4300,18 @@
|
|
|
4299
4300
|
"type": "boolean",
|
|
4300
4301
|
"format": "boolean",
|
|
4301
4302
|
"default": "false"
|
|
4303
|
+
},
|
|
4304
|
+
{
|
|
4305
|
+
"name": "skip_ask_order_id",
|
|
4306
|
+
"in": "query",
|
|
4307
|
+
"required": false,
|
|
4308
|
+
"type": "string"
|
|
4309
|
+
},
|
|
4310
|
+
{
|
|
4311
|
+
"name": "skip_bid_order_id",
|
|
4312
|
+
"in": "query",
|
|
4313
|
+
"required": false,
|
|
4314
|
+
"type": "string"
|
|
4302
4315
|
}
|
|
4303
4316
|
],
|
|
4304
4317
|
"tags": [
|
|
@@ -4811,18 +4824,6 @@
|
|
|
4811
4824
|
"locked_balance": {
|
|
4812
4825
|
"type": "string",
|
|
4813
4826
|
"example": "1000"
|
|
4814
|
-
},
|
|
4815
|
-
"margin_mode": {
|
|
4816
|
-
"type": "string",
|
|
4817
|
-
"example": "enabled",
|
|
4818
|
-
"enum": [
|
|
4819
|
-
"enabled",
|
|
4820
|
-
"disabled"
|
|
4821
|
-
]
|
|
4822
|
-
},
|
|
4823
|
-
"margin_balance": {
|
|
4824
|
-
"type": "string",
|
|
4825
|
-
"example": "1000"
|
|
4826
4827
|
}
|
|
4827
4828
|
},
|
|
4828
4829
|
"title": "AccountAsset",
|
|
@@ -4830,9 +4831,7 @@
|
|
|
4830
4831
|
"symbol",
|
|
4831
4832
|
"asset_id",
|
|
4832
4833
|
"balance",
|
|
4833
|
-
"locked_balance"
|
|
4834
|
-
"margin_mode",
|
|
4835
|
-
"margin_balance"
|
|
4834
|
+
"locked_balance"
|
|
4836
4835
|
]
|
|
4837
4836
|
},
|
|
4838
4837
|
"AccountLimits": {
|
|
@@ -5584,42 +5583,9 @@
|
|
|
5584
5583
|
"type": "string",
|
|
5585
5584
|
"example": "3024.66"
|
|
5586
5585
|
},
|
|
5587
|
-
"price_decimals": {
|
|
5588
|
-
"type": "integer",
|
|
5589
|
-
"format": "uint8",
|
|
5590
|
-
"example": "4"
|
|
5591
|
-
},
|
|
5592
5586
|
"l1_address": {
|
|
5593
5587
|
"type": "string",
|
|
5594
5588
|
"example": "0x0000000000000000000000000000000000000000"
|
|
5595
|
-
},
|
|
5596
|
-
"loan_to_value": {
|
|
5597
|
-
"type": "string",
|
|
5598
|
-
"example": "0.5"
|
|
5599
|
-
},
|
|
5600
|
-
"liquidation_threshold": {
|
|
5601
|
-
"type": "string",
|
|
5602
|
-
"example": "0.8"
|
|
5603
|
-
},
|
|
5604
|
-
"liquidation_factor": {
|
|
5605
|
-
"type": "string",
|
|
5606
|
-
"example": "0.9"
|
|
5607
|
-
},
|
|
5608
|
-
"liquidation_fee": {
|
|
5609
|
-
"type": "string",
|
|
5610
|
-
"example": "0.01"
|
|
5611
|
-
},
|
|
5612
|
-
"global_supply_cap": {
|
|
5613
|
-
"type": "string",
|
|
5614
|
-
"example": "1000000"
|
|
5615
|
-
},
|
|
5616
|
-
"user_supply_cap": {
|
|
5617
|
-
"type": "string",
|
|
5618
|
-
"example": "1000"
|
|
5619
|
-
},
|
|
5620
|
-
"total_supplied": {
|
|
5621
|
-
"type": "string",
|
|
5622
|
-
"example": "100"
|
|
5623
5589
|
}
|
|
5624
5590
|
},
|
|
5625
5591
|
"title": "Asset",
|
|
@@ -5632,15 +5598,7 @@
|
|
|
5632
5598
|
"min_withdrawal_amount",
|
|
5633
5599
|
"margin_mode",
|
|
5634
5600
|
"index_price",
|
|
5635
|
-
"
|
|
5636
|
-
"l1_address",
|
|
5637
|
-
"loan_to_value",
|
|
5638
|
-
"liquidation_threshold",
|
|
5639
|
-
"liquidation_factor",
|
|
5640
|
-
"liquidation_fee",
|
|
5641
|
-
"global_supply_cap",
|
|
5642
|
-
"user_supply_cap",
|
|
5643
|
-
"total_supplied"
|
|
5601
|
+
"l1_address"
|
|
5644
5602
|
]
|
|
5645
5603
|
},
|
|
5646
5604
|
"AssetDetails": {
|
|
@@ -5667,30 +5625,6 @@
|
|
|
5667
5625
|
"asset_details"
|
|
5668
5626
|
]
|
|
5669
5627
|
},
|
|
5670
|
-
"AssetStats": {
|
|
5671
|
-
"type": "object",
|
|
5672
|
-
"properties": {
|
|
5673
|
-
"asset_id": {
|
|
5674
|
-
"type": "integer",
|
|
5675
|
-
"format": "int16",
|
|
5676
|
-
"example": "1"
|
|
5677
|
-
},
|
|
5678
|
-
"index_price": {
|
|
5679
|
-
"type": "string",
|
|
5680
|
-
"example": "3024.66"
|
|
5681
|
-
},
|
|
5682
|
-
"total_supplied": {
|
|
5683
|
-
"type": "string",
|
|
5684
|
-
"example": "100"
|
|
5685
|
-
}
|
|
5686
|
-
},
|
|
5687
|
-
"title": "AssetStats",
|
|
5688
|
-
"required": [
|
|
5689
|
-
"asset_id",
|
|
5690
|
-
"index_price",
|
|
5691
|
-
"total_supplied"
|
|
5692
|
-
]
|
|
5693
|
-
},
|
|
5694
5628
|
"Auth": {
|
|
5695
5629
|
"type": "object",
|
|
5696
5630
|
"properties": {
|
|
@@ -10067,7 +10001,8 @@
|
|
|
10067
10001
|
"properties": {
|
|
10068
10002
|
"asset_id": {
|
|
10069
10003
|
"type": "integer",
|
|
10070
|
-
"format": "int16"
|
|
10004
|
+
"format": "int16",
|
|
10005
|
+
"default": "0"
|
|
10071
10006
|
}
|
|
10072
10007
|
},
|
|
10073
10008
|
"title": "ReqGetAssetDetails"
|
|
@@ -11003,6 +10938,12 @@
|
|
|
11003
10938
|
"type": "boolean",
|
|
11004
10939
|
"format": "boolean",
|
|
11005
10940
|
"default": "false"
|
|
10941
|
+
},
|
|
10942
|
+
"skip_ask_order_id": {
|
|
10943
|
+
"type": "string"
|
|
10944
|
+
},
|
|
10945
|
+
"skip_bid_order_id": {
|
|
10946
|
+
"type": "string"
|
|
11006
10947
|
}
|
|
11007
10948
|
},
|
|
11008
10949
|
"title": "ReqGetTrades",
|
|
@@ -12493,6 +12434,9 @@
|
|
|
12493
12434
|
"type": "integer",
|
|
12494
12435
|
"format": "int16"
|
|
12495
12436
|
},
|
|
12437
|
+
"collateral": {
|
|
12438
|
+
"type": "string"
|
|
12439
|
+
},
|
|
12496
12440
|
"total_account_value": {
|
|
12497
12441
|
"type": "string"
|
|
12498
12442
|
},
|
|
@@ -12504,31 +12448,16 @@
|
|
|
12504
12448
|
},
|
|
12505
12449
|
"close_out_margin_req": {
|
|
12506
12450
|
"type": "string"
|
|
12507
|
-
},
|
|
12508
|
-
"total_account_liquidation_threshold": {
|
|
12509
|
-
"type": "string"
|
|
12510
|
-
},
|
|
12511
|
-
"collateral": {
|
|
12512
|
-
"type": "string"
|
|
12513
|
-
},
|
|
12514
|
-
"usdc_collateral_with_funding": {
|
|
12515
|
-
"type": "string"
|
|
12516
|
-
},
|
|
12517
|
-
"usdc_portfolio_value": {
|
|
12518
|
-
"type": "string"
|
|
12519
12451
|
}
|
|
12520
12452
|
},
|
|
12521
12453
|
"title": "RiskParameters",
|
|
12522
12454
|
"required": [
|
|
12523
12455
|
"market_id",
|
|
12456
|
+
"collateral",
|
|
12524
12457
|
"total_account_value",
|
|
12525
12458
|
"initial_margin_req",
|
|
12526
12459
|
"maintenance_margin_req",
|
|
12527
|
-
"close_out_margin_req"
|
|
12528
|
-
"total_account_liquidation_threshold",
|
|
12529
|
-
"collateral",
|
|
12530
|
-
"usdc_collateral_with_funding",
|
|
12531
|
-
"usdc_portfolio_value"
|
|
12460
|
+
"close_out_margin_req"
|
|
12532
12461
|
]
|
|
12533
12462
|
},
|
|
12534
12463
|
"SharePrice": {
|