zklighter-perps 1.0.128 → 1.0.129
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/models/Account.ts +0 -9
- package/models/AccountPosition.ts +0 -18
- package/models/DetailedAccount.ts +0 -9
- package/models/PublicPool.ts +0 -9
- package/models/ReferralPointEntry.ts +9 -0
- package/models/ReferralPoints.ts +0 -18
- package/models/RiskInfo.ts +37 -17
- package/models/index.ts +0 -1
- package/openapi.json +8 -68
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/models/Account.ts
CHANGED
|
@@ -61,12 +61,6 @@ export interface Account {
|
|
|
61
61
|
* @memberof Account
|
|
62
62
|
*/
|
|
63
63
|
total_order_count: number;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof Account
|
|
68
|
-
*/
|
|
69
|
-
total_isolated_order_count: number;
|
|
70
64
|
/**
|
|
71
65
|
*
|
|
72
66
|
* @type {number}
|
|
@@ -97,7 +91,6 @@ export function instanceOfAccount(value: object): value is Account {
|
|
|
97
91
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
98
92
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
99
93
|
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
100
|
-
if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
|
|
101
94
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
102
95
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
103
96
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
@@ -121,7 +114,6 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|
|
121
114
|
'l1_address': json['l1_address'],
|
|
122
115
|
'cancel_all_time': json['cancel_all_time'],
|
|
123
116
|
'total_order_count': json['total_order_count'],
|
|
124
|
-
'total_isolated_order_count': json['total_isolated_order_count'],
|
|
125
117
|
'pending_order_count': json['pending_order_count'],
|
|
126
118
|
'status': json['status'],
|
|
127
119
|
'collateral': json['collateral'],
|
|
@@ -141,7 +133,6 @@ export function AccountToJSON(value?: Account | null): any {
|
|
|
141
133
|
'l1_address': value['l1_address'],
|
|
142
134
|
'cancel_all_time': value['cancel_all_time'],
|
|
143
135
|
'total_order_count': value['total_order_count'],
|
|
144
|
-
'total_isolated_order_count': value['total_isolated_order_count'],
|
|
145
136
|
'pending_order_count': value['pending_order_count'],
|
|
146
137
|
'status': value['status'],
|
|
147
138
|
'collateral': value['collateral'],
|
|
@@ -97,18 +97,6 @@ export interface AccountPosition {
|
|
|
97
97
|
* @memberof AccountPosition
|
|
98
98
|
*/
|
|
99
99
|
total_funding_paid_out?: string;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {number}
|
|
103
|
-
* @memberof AccountPosition
|
|
104
|
-
*/
|
|
105
|
-
margin_mode: number;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof AccountPosition
|
|
110
|
-
*/
|
|
111
|
-
allocated_margin: string;
|
|
112
100
|
}
|
|
113
101
|
|
|
114
102
|
/**
|
|
@@ -127,8 +115,6 @@ export function instanceOfAccountPosition(value: object): value is AccountPositi
|
|
|
127
115
|
if (!('position_value' in value) || value['position_value'] === undefined) return false;
|
|
128
116
|
if (!('unrealized_pnl' in value) || value['unrealized_pnl'] === undefined) return false;
|
|
129
117
|
if (!('realized_pnl' in value) || value['realized_pnl'] === undefined) return false;
|
|
130
|
-
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
131
|
-
if (!('allocated_margin' in value) || value['allocated_margin'] === undefined) return false;
|
|
132
118
|
return true;
|
|
133
119
|
}
|
|
134
120
|
|
|
@@ -155,8 +141,6 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
155
141
|
'unrealized_pnl': json['unrealized_pnl'],
|
|
156
142
|
'realized_pnl': json['realized_pnl'],
|
|
157
143
|
'total_funding_paid_out': json['total_funding_paid_out'] == null ? undefined : json['total_funding_paid_out'],
|
|
158
|
-
'margin_mode': json['margin_mode'],
|
|
159
|
-
'allocated_margin': json['allocated_margin'],
|
|
160
144
|
};
|
|
161
145
|
}
|
|
162
146
|
|
|
@@ -179,8 +163,6 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
|
|
|
179
163
|
'unrealized_pnl': value['unrealized_pnl'],
|
|
180
164
|
'realized_pnl': value['realized_pnl'],
|
|
181
165
|
'total_funding_paid_out': value['total_funding_paid_out'],
|
|
182
|
-
'margin_mode': value['margin_mode'],
|
|
183
|
-
'allocated_margin': value['allocated_margin'],
|
|
184
166
|
};
|
|
185
167
|
}
|
|
186
168
|
|
|
@@ -80,12 +80,6 @@ export interface DetailedAccount {
|
|
|
80
80
|
* @memberof DetailedAccount
|
|
81
81
|
*/
|
|
82
82
|
total_order_count: number;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {number}
|
|
86
|
-
* @memberof DetailedAccount
|
|
87
|
-
*/
|
|
88
|
-
total_isolated_order_count: number;
|
|
89
83
|
/**
|
|
90
84
|
*
|
|
91
85
|
* @type {number}
|
|
@@ -170,7 +164,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
170
164
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
171
165
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
172
166
|
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
173
|
-
if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
|
|
174
167
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
175
168
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
176
169
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
@@ -203,7 +196,6 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
203
196
|
'l1_address': json['l1_address'],
|
|
204
197
|
'cancel_all_time': json['cancel_all_time'],
|
|
205
198
|
'total_order_count': json['total_order_count'],
|
|
206
|
-
'total_isolated_order_count': json['total_isolated_order_count'],
|
|
207
199
|
'pending_order_count': json['pending_order_count'],
|
|
208
200
|
'status': json['status'],
|
|
209
201
|
'collateral': json['collateral'],
|
|
@@ -232,7 +224,6 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
232
224
|
'l1_address': value['l1_address'],
|
|
233
225
|
'cancel_all_time': value['cancel_all_time'],
|
|
234
226
|
'total_order_count': value['total_order_count'],
|
|
235
|
-
'total_isolated_order_count': value['total_isolated_order_count'],
|
|
236
227
|
'pending_order_count': value['pending_order_count'],
|
|
237
228
|
'status': value['status'],
|
|
238
229
|
'collateral': value['collateral'],
|
package/models/PublicPool.ts
CHANGED
|
@@ -74,12 +74,6 @@ export interface PublicPool {
|
|
|
74
74
|
* @memberof PublicPool
|
|
75
75
|
*/
|
|
76
76
|
total_order_count: number;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {number}
|
|
80
|
-
* @memberof PublicPool
|
|
81
|
-
*/
|
|
82
|
-
total_isolated_order_count: number;
|
|
83
77
|
/**
|
|
84
78
|
*
|
|
85
79
|
* @type {number}
|
|
@@ -158,7 +152,6 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
|
|
|
158
152
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
159
153
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
160
154
|
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
161
|
-
if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
|
|
162
155
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
163
156
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
164
157
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
@@ -189,7 +182,6 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
189
182
|
'l1_address': json['l1_address'],
|
|
190
183
|
'cancel_all_time': json['cancel_all_time'],
|
|
191
184
|
'total_order_count': json['total_order_count'],
|
|
192
|
-
'total_isolated_order_count': json['total_isolated_order_count'],
|
|
193
185
|
'pending_order_count': json['pending_order_count'],
|
|
194
186
|
'status': json['status'],
|
|
195
187
|
'collateral': json['collateral'],
|
|
@@ -217,7 +209,6 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
|
|
|
217
209
|
'l1_address': value['l1_address'],
|
|
218
210
|
'cancel_all_time': value['cancel_all_time'],
|
|
219
211
|
'total_order_count': value['total_order_count'],
|
|
220
|
-
'total_isolated_order_count': value['total_isolated_order_count'],
|
|
221
212
|
'pending_order_count': value['pending_order_count'],
|
|
222
213
|
'status': value['status'],
|
|
223
214
|
'collateral': value['collateral'],
|
|
@@ -49,6 +49,12 @@ export interface ReferralPointEntry {
|
|
|
49
49
|
* @memberof ReferralPointEntry
|
|
50
50
|
*/
|
|
51
51
|
week_reward_points: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ReferralPointEntry
|
|
56
|
+
*/
|
|
57
|
+
reward_point_multiplier: string;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -60,6 +66,7 @@ export function instanceOfReferralPointEntry(value: object): value is ReferralPo
|
|
|
60
66
|
if (!('week_points' in value) || value['week_points'] === undefined) return false;
|
|
61
67
|
if (!('total_reward_points' in value) || value['total_reward_points'] === undefined) return false;
|
|
62
68
|
if (!('week_reward_points' in value) || value['week_reward_points'] === undefined) return false;
|
|
69
|
+
if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
|
|
63
70
|
return true;
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -78,6 +85,7 @@ export function ReferralPointEntryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
78
85
|
'week_points': json['week_points'],
|
|
79
86
|
'total_reward_points': json['total_reward_points'],
|
|
80
87
|
'week_reward_points': json['week_reward_points'],
|
|
88
|
+
'reward_point_multiplier': json['reward_point_multiplier'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -92,6 +100,7 @@ export function ReferralPointEntryToJSON(value?: ReferralPointEntry | null): any
|
|
|
92
100
|
'week_points': value['week_points'],
|
|
93
101
|
'total_reward_points': value['total_reward_points'],
|
|
94
102
|
'week_reward_points': value['week_reward_points'],
|
|
103
|
+
'reward_point_multiplier': value['reward_point_multiplier'],
|
|
95
104
|
};
|
|
96
105
|
}
|
|
97
106
|
|
package/models/ReferralPoints.ts
CHANGED
|
@@ -56,18 +56,6 @@ export interface ReferralPoints {
|
|
|
56
56
|
* @memberof ReferralPoints
|
|
57
57
|
*/
|
|
58
58
|
user_last_week_referral_reward_points: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof ReferralPoints
|
|
63
|
-
*/
|
|
64
|
-
all_referral_count: number;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof ReferralPoints
|
|
69
|
-
*/
|
|
70
|
-
referral_with_account_count: number;
|
|
71
59
|
/**
|
|
72
60
|
*
|
|
73
61
|
* @type {string}
|
|
@@ -85,8 +73,6 @@ export function instanceOfReferralPoints(value: object): value is ReferralPoints
|
|
|
85
73
|
if (!('user_last_week_points' in value) || value['user_last_week_points'] === undefined) return false;
|
|
86
74
|
if (!('user_total_referral_reward_points' in value) || value['user_total_referral_reward_points'] === undefined) return false;
|
|
87
75
|
if (!('user_last_week_referral_reward_points' in value) || value['user_last_week_referral_reward_points'] === undefined) return false;
|
|
88
|
-
if (!('all_referral_count' in value) || value['all_referral_count'] === undefined) return false;
|
|
89
|
-
if (!('referral_with_account_count' in value) || value['referral_with_account_count'] === undefined) return false;
|
|
90
76
|
if (!('reward_point_multiplier' in value) || value['reward_point_multiplier'] === undefined) return false;
|
|
91
77
|
return true;
|
|
92
78
|
}
|
|
@@ -106,8 +92,6 @@ export function ReferralPointsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
106
92
|
'user_last_week_points': json['user_last_week_points'],
|
|
107
93
|
'user_total_referral_reward_points': json['user_total_referral_reward_points'],
|
|
108
94
|
'user_last_week_referral_reward_points': json['user_last_week_referral_reward_points'],
|
|
109
|
-
'all_referral_count': json['all_referral_count'],
|
|
110
|
-
'referral_with_account_count': json['referral_with_account_count'],
|
|
111
95
|
'reward_point_multiplier': json['reward_point_multiplier'],
|
|
112
96
|
};
|
|
113
97
|
}
|
|
@@ -123,8 +107,6 @@ export function ReferralPointsToJSON(value?: ReferralPoints | null): any {
|
|
|
123
107
|
'user_last_week_points': value['user_last_week_points'],
|
|
124
108
|
'user_total_referral_reward_points': value['user_total_referral_reward_points'],
|
|
125
109
|
'user_last_week_referral_reward_points': value['user_last_week_referral_reward_points'],
|
|
126
|
-
'all_referral_count': value['all_referral_count'],
|
|
127
|
-
'referral_with_account_count': value['referral_with_account_count'],
|
|
128
110
|
'reward_point_multiplier': value['reward_point_multiplier'],
|
|
129
111
|
};
|
|
130
112
|
}
|
package/models/RiskInfo.ts
CHANGED
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { RiskParameters } from './RiskParameters';
|
|
17
|
-
import {
|
|
18
|
-
RiskParametersFromJSON,
|
|
19
|
-
RiskParametersFromJSONTyped,
|
|
20
|
-
RiskParametersToJSON,
|
|
21
|
-
} from './RiskParameters';
|
|
22
|
-
|
|
23
16
|
/**
|
|
24
17
|
*
|
|
25
18
|
* @export
|
|
@@ -28,24 +21,45 @@ import {
|
|
|
28
21
|
export interface RiskInfo {
|
|
29
22
|
/**
|
|
30
23
|
*
|
|
31
|
-
* @type {
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RiskInfo
|
|
26
|
+
*/
|
|
27
|
+
collateral: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RiskInfo
|
|
32
|
+
*/
|
|
33
|
+
total_account_value: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RiskInfo
|
|
38
|
+
*/
|
|
39
|
+
initial_margin_req: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
32
43
|
* @memberof RiskInfo
|
|
33
44
|
*/
|
|
34
|
-
|
|
45
|
+
maintenance_margin_req: string;
|
|
35
46
|
/**
|
|
36
47
|
*
|
|
37
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
38
49
|
* @memberof RiskInfo
|
|
39
50
|
*/
|
|
40
|
-
|
|
51
|
+
close_out_margin_req: string;
|
|
41
52
|
}
|
|
42
53
|
|
|
43
54
|
/**
|
|
44
55
|
* Check if a given object implements the RiskInfo interface.
|
|
45
56
|
*/
|
|
46
57
|
export function instanceOfRiskInfo(value: object): value is RiskInfo {
|
|
47
|
-
if (!('
|
|
48
|
-
if (!('
|
|
58
|
+
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
59
|
+
if (!('total_account_value' in value) || value['total_account_value'] === undefined) return false;
|
|
60
|
+
if (!('initial_margin_req' in value) || value['initial_margin_req'] === undefined) return false;
|
|
61
|
+
if (!('maintenance_margin_req' in value) || value['maintenance_margin_req'] === undefined) return false;
|
|
62
|
+
if (!('close_out_margin_req' in value) || value['close_out_margin_req'] === undefined) return false;
|
|
49
63
|
return true;
|
|
50
64
|
}
|
|
51
65
|
|
|
@@ -59,8 +73,11 @@ export function RiskInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
59
73
|
}
|
|
60
74
|
return {
|
|
61
75
|
|
|
62
|
-
'
|
|
63
|
-
'
|
|
76
|
+
'collateral': json['collateral'],
|
|
77
|
+
'total_account_value': json['total_account_value'],
|
|
78
|
+
'initial_margin_req': json['initial_margin_req'],
|
|
79
|
+
'maintenance_margin_req': json['maintenance_margin_req'],
|
|
80
|
+
'close_out_margin_req': json['close_out_margin_req'],
|
|
64
81
|
};
|
|
65
82
|
}
|
|
66
83
|
|
|
@@ -70,8 +87,11 @@ export function RiskInfoToJSON(value?: RiskInfo | null): any {
|
|
|
70
87
|
}
|
|
71
88
|
return {
|
|
72
89
|
|
|
73
|
-
'
|
|
74
|
-
'
|
|
90
|
+
'collateral': value['collateral'],
|
|
91
|
+
'total_account_value': value['total_account_value'],
|
|
92
|
+
'initial_margin_req': value['initial_margin_req'],
|
|
93
|
+
'maintenance_margin_req': value['maintenance_margin_req'],
|
|
94
|
+
'close_out_margin_req': value['close_out_margin_req'],
|
|
75
95
|
};
|
|
76
96
|
}
|
|
77
97
|
|
package/models/index.ts
CHANGED
|
@@ -113,7 +113,6 @@ export * from './RespGetFastBridgeInfo';
|
|
|
113
113
|
export * from './RespGetFastwithdrawalInfo';
|
|
114
114
|
export * from './ResultCode';
|
|
115
115
|
export * from './RiskInfo';
|
|
116
|
-
export * from './RiskParameters';
|
|
117
116
|
export * from './SimpleOrder';
|
|
118
117
|
export * from './Status';
|
|
119
118
|
export * from './SubAccounts';
|
package/openapi.json
CHANGED
|
@@ -2830,11 +2830,6 @@
|
|
|
2830
2830
|
"format": "int64",
|
|
2831
2831
|
"example": "100"
|
|
2832
2832
|
},
|
|
2833
|
-
"total_isolated_order_count": {
|
|
2834
|
-
"type": "integer",
|
|
2835
|
-
"format": "int64",
|
|
2836
|
-
"example": "100"
|
|
2837
|
-
},
|
|
2838
2833
|
"pending_order_count": {
|
|
2839
2834
|
"type": "integer",
|
|
2840
2835
|
"format": "int64",
|
|
@@ -2858,7 +2853,6 @@
|
|
|
2858
2853
|
"l1_address",
|
|
2859
2854
|
"cancel_all_time",
|
|
2860
2855
|
"total_order_count",
|
|
2861
|
-
"total_isolated_order_count",
|
|
2862
2856
|
"pending_order_count",
|
|
2863
2857
|
"status",
|
|
2864
2858
|
"collateral"
|
|
@@ -3141,15 +3135,6 @@
|
|
|
3141
3135
|
"total_funding_paid_out": {
|
|
3142
3136
|
"type": "string",
|
|
3143
3137
|
"example": "34.2"
|
|
3144
|
-
},
|
|
3145
|
-
"margin_mode": {
|
|
3146
|
-
"type": "integer",
|
|
3147
|
-
"format": "int32",
|
|
3148
|
-
"example": "1"
|
|
3149
|
-
},
|
|
3150
|
-
"allocated_margin": {
|
|
3151
|
-
"type": "string",
|
|
3152
|
-
"example": "46342"
|
|
3153
3138
|
}
|
|
3154
3139
|
},
|
|
3155
3140
|
"title": "AccountPosition",
|
|
@@ -3165,9 +3150,7 @@
|
|
|
3165
3150
|
"avg_entry_price",
|
|
3166
3151
|
"position_value",
|
|
3167
3152
|
"unrealized_pnl",
|
|
3168
|
-
"realized_pnl"
|
|
3169
|
-
"margin_mode",
|
|
3170
|
-
"allocated_margin"
|
|
3153
|
+
"realized_pnl"
|
|
3171
3154
|
]
|
|
3172
3155
|
},
|
|
3173
3156
|
"AccountStats": {
|
|
@@ -3838,11 +3821,6 @@
|
|
|
3838
3821
|
"format": "int64",
|
|
3839
3822
|
"example": "100"
|
|
3840
3823
|
},
|
|
3841
|
-
"total_isolated_order_count": {
|
|
3842
|
-
"type": "integer",
|
|
3843
|
-
"format": "int64",
|
|
3844
|
-
"example": "100"
|
|
3845
|
-
},
|
|
3846
3824
|
"pending_order_count": {
|
|
3847
3825
|
"type": "integer",
|
|
3848
3826
|
"format": "int64",
|
|
@@ -3904,7 +3882,6 @@
|
|
|
3904
3882
|
"l1_address",
|
|
3905
3883
|
"cancel_all_time",
|
|
3906
3884
|
"total_order_count",
|
|
3907
|
-
"total_isolated_order_count",
|
|
3908
3885
|
"pending_order_count",
|
|
3909
3886
|
"status",
|
|
3910
3887
|
"collateral",
|
|
@@ -5546,11 +5523,6 @@
|
|
|
5546
5523
|
"format": "int64",
|
|
5547
5524
|
"example": "100"
|
|
5548
5525
|
},
|
|
5549
|
-
"total_isolated_order_count": {
|
|
5550
|
-
"type": "integer",
|
|
5551
|
-
"format": "int64",
|
|
5552
|
-
"example": "100"
|
|
5553
|
-
},
|
|
5554
5526
|
"pending_order_count": {
|
|
5555
5527
|
"type": "integer",
|
|
5556
5528
|
"format": "int64",
|
|
@@ -5603,7 +5575,6 @@
|
|
|
5603
5575
|
"l1_address",
|
|
5604
5576
|
"cancel_all_time",
|
|
5605
5577
|
"total_order_count",
|
|
5606
|
-
"total_isolated_order_count",
|
|
5607
5578
|
"pending_order_count",
|
|
5608
5579
|
"status",
|
|
5609
5580
|
"collateral",
|
|
@@ -5790,6 +5761,10 @@
|
|
|
5790
5761
|
"type": "integer",
|
|
5791
5762
|
"format": "int64",
|
|
5792
5763
|
"example": "200"
|
|
5764
|
+
},
|
|
5765
|
+
"reward_point_multiplier": {
|
|
5766
|
+
"type": "string",
|
|
5767
|
+
"example": "0.1"
|
|
5793
5768
|
}
|
|
5794
5769
|
},
|
|
5795
5770
|
"title": "ReferralPointEntry",
|
|
@@ -5798,7 +5773,8 @@
|
|
|
5798
5773
|
"total_points",
|
|
5799
5774
|
"week_points",
|
|
5800
5775
|
"total_reward_points",
|
|
5801
|
-
"week_reward_points"
|
|
5776
|
+
"week_reward_points",
|
|
5777
|
+
"reward_point_multiplier"
|
|
5802
5778
|
]
|
|
5803
5779
|
},
|
|
5804
5780
|
"ReferralPoints": {
|
|
@@ -5830,16 +5806,6 @@
|
|
|
5830
5806
|
"format": "int64",
|
|
5831
5807
|
"example": "1000"
|
|
5832
5808
|
},
|
|
5833
|
-
"all_referral_count": {
|
|
5834
|
-
"type": "integer",
|
|
5835
|
-
"format": "int32",
|
|
5836
|
-
"example": "100"
|
|
5837
|
-
},
|
|
5838
|
-
"referral_with_account_count": {
|
|
5839
|
-
"type": "integer",
|
|
5840
|
-
"format": "int32",
|
|
5841
|
-
"example": "100"
|
|
5842
|
-
},
|
|
5843
5809
|
"reward_point_multiplier": {
|
|
5844
5810
|
"type": "string",
|
|
5845
5811
|
"example": "0.1"
|
|
@@ -5852,8 +5818,6 @@
|
|
|
5852
5818
|
"user_last_week_points",
|
|
5853
5819
|
"user_total_referral_reward_points",
|
|
5854
5820
|
"user_last_week_referral_reward_points",
|
|
5855
|
-
"all_referral_count",
|
|
5856
|
-
"referral_with_account_count",
|
|
5857
5821
|
"reward_point_multiplier"
|
|
5858
5822
|
]
|
|
5859
5823
|
},
|
|
@@ -7091,29 +7055,6 @@
|
|
|
7091
7055
|
"RiskInfo": {
|
|
7092
7056
|
"type": "object",
|
|
7093
7057
|
"properties": {
|
|
7094
|
-
"cross_risk_parameters": {
|
|
7095
|
-
"$ref": "#/definitions/RiskParameters"
|
|
7096
|
-
},
|
|
7097
|
-
"isolated_risk_parameters": {
|
|
7098
|
-
"type": "array",
|
|
7099
|
-
"items": {
|
|
7100
|
-
"$ref": "#/definitions/RiskParameters"
|
|
7101
|
-
}
|
|
7102
|
-
}
|
|
7103
|
-
},
|
|
7104
|
-
"title": "RiskInfo",
|
|
7105
|
-
"required": [
|
|
7106
|
-
"cross_risk_parameters",
|
|
7107
|
-
"isolated_risk_parameters"
|
|
7108
|
-
]
|
|
7109
|
-
},
|
|
7110
|
-
"RiskParameters": {
|
|
7111
|
-
"type": "object",
|
|
7112
|
-
"properties": {
|
|
7113
|
-
"market_id": {
|
|
7114
|
-
"type": "integer",
|
|
7115
|
-
"format": "uint8"
|
|
7116
|
-
},
|
|
7117
7058
|
"collateral": {
|
|
7118
7059
|
"type": "string"
|
|
7119
7060
|
},
|
|
@@ -7130,9 +7071,8 @@
|
|
|
7130
7071
|
"type": "string"
|
|
7131
7072
|
}
|
|
7132
7073
|
},
|
|
7133
|
-
"title": "
|
|
7074
|
+
"title": "RiskInfo",
|
|
7134
7075
|
"required": [
|
|
7135
|
-
"market_id",
|
|
7136
7076
|
"collateral",
|
|
7137
7077
|
"total_account_value",
|
|
7138
7078
|
"initial_margin_req",
|