zklighter-perps 1.0.321 → 1.0.323
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/apis/OrderApi.ts +5 -0
- package/models/Referral.ts +18 -0
- package/models/ReferralTotals.ts +18 -0
- package/models/ReqGetTrades.ts +8 -0
- package/models/RespSendTx.ts +9 -0
- package/models/RespSendTxBatch.ts +9 -0
- package/openapi.json +51 -4
- package/package.json +1 -1
package/apis/OrderApi.ts
CHANGED
|
@@ -152,6 +152,7 @@ export interface TradesRequest {
|
|
|
152
152
|
market_id?: number;
|
|
153
153
|
market_type?: TradesMarketTypeEnum;
|
|
154
154
|
account_index?: number;
|
|
155
|
+
integrator_account_index?: number;
|
|
155
156
|
order_index?: number;
|
|
156
157
|
order_index_str?: string;
|
|
157
158
|
sort_dir?: TradesSortDirEnum;
|
|
@@ -903,6 +904,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
903
904
|
queryParameters['account_index'] = requestParameters['account_index'];
|
|
904
905
|
}
|
|
905
906
|
|
|
907
|
+
if (requestParameters['integrator_account_index'] != null) {
|
|
908
|
+
queryParameters['integrator_account_index'] = requestParameters['integrator_account_index'];
|
|
909
|
+
}
|
|
910
|
+
|
|
906
911
|
if (requestParameters['order_index'] != null) {
|
|
907
912
|
queryParameters['order_index'] = requestParameters['order_index'];
|
|
908
913
|
}
|
package/models/Referral.ts
CHANGED
|
@@ -62,6 +62,18 @@ export interface Referral {
|
|
|
62
62
|
* @memberof Referral
|
|
63
63
|
*/
|
|
64
64
|
trade_stats: TradeStats;
|
|
65
|
+
/**
|
|
66
|
+
* RH referral points earned from this referral in the stats window; omitted when 0 and outside RH
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof Referral
|
|
69
|
+
*/
|
|
70
|
+
live_points: number;
|
|
71
|
+
/**
|
|
72
|
+
* RH weekly referral points for weeks ending in the stats window; omitted when 0 and outside RH
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof Referral
|
|
75
|
+
*/
|
|
76
|
+
weekly_points: number;
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
/**
|
|
@@ -74,6 +86,8 @@ export function instanceOfReferral(value: object): value is Referral {
|
|
|
74
86
|
if (!('tier' in value) || value['tier'] === undefined) return false;
|
|
75
87
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
76
88
|
if (!('trade_stats' in value) || value['trade_stats'] === undefined) return false;
|
|
89
|
+
if (!('live_points' in value) || value['live_points'] === undefined) return false;
|
|
90
|
+
if (!('weekly_points' in value) || value['weekly_points'] === undefined) return false;
|
|
77
91
|
return true;
|
|
78
92
|
}
|
|
79
93
|
|
|
@@ -93,6 +107,8 @@ export function ReferralFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
93
107
|
'tier': json['tier'],
|
|
94
108
|
'source': json['source'],
|
|
95
109
|
'trade_stats': TradeStatsFromJSON(json['trade_stats']),
|
|
110
|
+
'live_points': json['live_points'],
|
|
111
|
+
'weekly_points': json['weekly_points'],
|
|
96
112
|
};
|
|
97
113
|
}
|
|
98
114
|
|
|
@@ -108,6 +124,8 @@ export function ReferralToJSON(value?: Referral | null): any {
|
|
|
108
124
|
'tier': value['tier'],
|
|
109
125
|
'source': value['source'],
|
|
110
126
|
'trade_stats': TradeStatsToJSON(value['trade_stats']),
|
|
127
|
+
'live_points': value['live_points'],
|
|
128
|
+
'weekly_points': value['weekly_points'],
|
|
111
129
|
};
|
|
112
130
|
}
|
|
113
131
|
|
package/models/ReferralTotals.ts
CHANGED
|
@@ -79,6 +79,18 @@ export interface ReferralTotals {
|
|
|
79
79
|
* @memberof ReferralTotals
|
|
80
80
|
*/
|
|
81
81
|
total_premium_referrals: number;
|
|
82
|
+
/**
|
|
83
|
+
* RH referral points earned from all referrals in the stats window; omitted when 0 and outside RH
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof ReferralTotals
|
|
86
|
+
*/
|
|
87
|
+
live_points: number;
|
|
88
|
+
/**
|
|
89
|
+
* RH weekly referral points for weeks ending in the stats window; omitted when 0 and outside RH
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof ReferralTotals
|
|
92
|
+
*/
|
|
93
|
+
weekly_points: number;
|
|
82
94
|
}
|
|
83
95
|
|
|
84
96
|
/**
|
|
@@ -95,6 +107,8 @@ export function instanceOfReferralTotals(value: object): value is ReferralTotals
|
|
|
95
107
|
if (!('taker_fees_paid' in value) || value['taker_fees_paid'] === undefined) return false;
|
|
96
108
|
if (!('total_referrals' in value) || value['total_referrals'] === undefined) return false;
|
|
97
109
|
if (!('total_premium_referrals' in value) || value['total_premium_referrals'] === undefined) return false;
|
|
110
|
+
if (!('live_points' in value) || value['live_points'] === undefined) return false;
|
|
111
|
+
if (!('weekly_points' in value) || value['weekly_points'] === undefined) return false;
|
|
98
112
|
return true;
|
|
99
113
|
}
|
|
100
114
|
|
|
@@ -118,6 +132,8 @@ export function ReferralTotalsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
118
132
|
'taker_fees_paid': json['taker_fees_paid'],
|
|
119
133
|
'total_referrals': json['total_referrals'],
|
|
120
134
|
'total_premium_referrals': json['total_premium_referrals'],
|
|
135
|
+
'live_points': json['live_points'],
|
|
136
|
+
'weekly_points': json['weekly_points'],
|
|
121
137
|
};
|
|
122
138
|
}
|
|
123
139
|
|
|
@@ -137,6 +153,8 @@ export function ReferralTotalsToJSON(value?: ReferralTotals | null): any {
|
|
|
137
153
|
'taker_fees_paid': value['taker_fees_paid'],
|
|
138
154
|
'total_referrals': value['total_referrals'],
|
|
139
155
|
'total_premium_referrals': value['total_premium_referrals'],
|
|
156
|
+
'live_points': value['live_points'],
|
|
157
|
+
'weekly_points': value['weekly_points'],
|
|
140
158
|
};
|
|
141
159
|
}
|
|
142
160
|
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface ReqGetTrades {
|
|
|
37
37
|
* @memberof ReqGetTrades
|
|
38
38
|
*/
|
|
39
39
|
account_index?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ReqGetTrades
|
|
44
|
+
*/
|
|
45
|
+
integrator_account_index?: number;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {number}
|
|
@@ -192,6 +198,7 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
192
198
|
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
193
199
|
'market_type': json['market_type'] == null ? undefined : json['market_type'],
|
|
194
200
|
'account_index': json['account_index'] == null ? undefined : json['account_index'],
|
|
201
|
+
'integrator_account_index': json['integrator_account_index'] == null ? undefined : json['integrator_account_index'],
|
|
195
202
|
'order_index': json['order_index'] == null ? undefined : json['order_index'],
|
|
196
203
|
'order_index_str': json['order_index_str'] == null ? undefined : json['order_index_str'],
|
|
197
204
|
'sort_by': json['sort_by'],
|
|
@@ -217,6 +224,7 @@ export function ReqGetTradesToJSON(value?: ReqGetTrades | null): any {
|
|
|
217
224
|
'market_id': value['market_id'],
|
|
218
225
|
'market_type': value['market_type'],
|
|
219
226
|
'account_index': value['account_index'],
|
|
227
|
+
'integrator_account_index': value['integrator_account_index'],
|
|
220
228
|
'order_index': value['order_index'],
|
|
221
229
|
'order_index_str': value['order_index_str'],
|
|
222
230
|
'sort_by': value['sort_by'],
|
package/models/RespSendTx.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface RespSendTx {
|
|
|
49
49
|
* @memberof RespSendTx
|
|
50
50
|
*/
|
|
51
51
|
volume_quota_remaining: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof RespSendTx
|
|
56
|
+
*/
|
|
57
|
+
remaining_send_tx: number;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -59,6 +65,7 @@ export function instanceOfRespSendTx(value: object): value is RespSendTx {
|
|
|
59
65
|
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
60
66
|
if (!('predicted_execution_time_ms' in value) || value['predicted_execution_time_ms'] === undefined) return false;
|
|
61
67
|
if (!('volume_quota_remaining' in value) || value['volume_quota_remaining'] === undefined) return false;
|
|
68
|
+
if (!('remaining_send_tx' in value) || value['remaining_send_tx'] === undefined) return false;
|
|
62
69
|
return true;
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -77,6 +84,7 @@ export function RespSendTxFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
77
84
|
'tx_hash': json['tx_hash'],
|
|
78
85
|
'predicted_execution_time_ms': json['predicted_execution_time_ms'],
|
|
79
86
|
'volume_quota_remaining': json['volume_quota_remaining'],
|
|
87
|
+
'remaining_send_tx': json['remaining_send_tx'],
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
|
|
@@ -91,6 +99,7 @@ export function RespSendTxToJSON(value?: RespSendTx | null): any {
|
|
|
91
99
|
'tx_hash': value['tx_hash'],
|
|
92
100
|
'predicted_execution_time_ms': value['predicted_execution_time_ms'],
|
|
93
101
|
'volume_quota_remaining': value['volume_quota_remaining'],
|
|
102
|
+
'remaining_send_tx': value['remaining_send_tx'],
|
|
94
103
|
};
|
|
95
104
|
}
|
|
96
105
|
|
|
@@ -49,6 +49,12 @@ export interface RespSendTxBatch {
|
|
|
49
49
|
* @memberof RespSendTxBatch
|
|
50
50
|
*/
|
|
51
51
|
volume_quota_remaining: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof RespSendTxBatch
|
|
56
|
+
*/
|
|
57
|
+
remaining_send_tx: number;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -59,6 +65,7 @@ export function instanceOfRespSendTxBatch(value: object): value is RespSendTxBat
|
|
|
59
65
|
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
60
66
|
if (!('predicted_execution_time_ms' in value) || value['predicted_execution_time_ms'] === undefined) return false;
|
|
61
67
|
if (!('volume_quota_remaining' in value) || value['volume_quota_remaining'] === undefined) return false;
|
|
68
|
+
if (!('remaining_send_tx' in value) || value['remaining_send_tx'] === undefined) return false;
|
|
62
69
|
return true;
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -77,6 +84,7 @@ export function RespSendTxBatchFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
77
84
|
'tx_hash': json['tx_hash'],
|
|
78
85
|
'predicted_execution_time_ms': json['predicted_execution_time_ms'],
|
|
79
86
|
'volume_quota_remaining': json['volume_quota_remaining'],
|
|
87
|
+
'remaining_send_tx': json['remaining_send_tx'],
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
|
|
@@ -91,6 +99,7 @@ export function RespSendTxBatchToJSON(value?: RespSendTxBatch | null): any {
|
|
|
91
99
|
'tx_hash': value['tx_hash'],
|
|
92
100
|
'predicted_execution_time_ms': value['predicted_execution_time_ms'],
|
|
93
101
|
'volume_quota_remaining': value['volume_quota_remaining'],
|
|
102
|
+
'remaining_send_tx': value['remaining_send_tx'],
|
|
94
103
|
};
|
|
95
104
|
}
|
|
96
105
|
|
package/openapi.json
CHANGED
|
@@ -6513,6 +6513,14 @@
|
|
|
6513
6513
|
"format": "int64",
|
|
6514
6514
|
"default": "-1"
|
|
6515
6515
|
},
|
|
6516
|
+
{
|
|
6517
|
+
"name": "integrator_account_index",
|
|
6518
|
+
"in": "query",
|
|
6519
|
+
"required": false,
|
|
6520
|
+
"type": "integer",
|
|
6521
|
+
"format": "int64",
|
|
6522
|
+
"default": "-1"
|
|
6523
|
+
},
|
|
6516
6524
|
{
|
|
6517
6525
|
"name": "order_index",
|
|
6518
6526
|
"in": "query",
|
|
@@ -14220,6 +14228,16 @@
|
|
|
14220
14228
|
},
|
|
14221
14229
|
"trade_stats": {
|
|
14222
14230
|
"$ref": "#/definitions/TradeStats"
|
|
14231
|
+
},
|
|
14232
|
+
"live_points": {
|
|
14233
|
+
"type": "number",
|
|
14234
|
+
"format": "double",
|
|
14235
|
+
"description": " RH referral points earned from this referral in the stats window; omitted when 0 and outside RH"
|
|
14236
|
+
},
|
|
14237
|
+
"weekly_points": {
|
|
14238
|
+
"type": "number",
|
|
14239
|
+
"format": "double",
|
|
14240
|
+
"description": " RH weekly referral points for weeks ending in the stats window; omitted when 0 and outside RH"
|
|
14223
14241
|
}
|
|
14224
14242
|
},
|
|
14225
14243
|
"title": "Referral",
|
|
@@ -14229,7 +14247,9 @@
|
|
|
14229
14247
|
"used_at",
|
|
14230
14248
|
"tier",
|
|
14231
14249
|
"source",
|
|
14232
|
-
"trade_stats"
|
|
14250
|
+
"trade_stats",
|
|
14251
|
+
"live_points",
|
|
14252
|
+
"weekly_points"
|
|
14233
14253
|
]
|
|
14234
14254
|
},
|
|
14235
14255
|
"ReferralCode": {
|
|
@@ -14439,6 +14459,16 @@
|
|
|
14439
14459
|
"total_premium_referrals": {
|
|
14440
14460
|
"type": "integer",
|
|
14441
14461
|
"format": "int64"
|
|
14462
|
+
},
|
|
14463
|
+
"live_points": {
|
|
14464
|
+
"type": "number",
|
|
14465
|
+
"format": "double",
|
|
14466
|
+
"description": " RH referral points earned from all referrals in the stats window; omitted when 0 and outside RH"
|
|
14467
|
+
},
|
|
14468
|
+
"weekly_points": {
|
|
14469
|
+
"type": "number",
|
|
14470
|
+
"format": "double",
|
|
14471
|
+
"description": " RH weekly referral points for weeks ending in the stats window; omitted when 0 and outside RH"
|
|
14442
14472
|
}
|
|
14443
14473
|
},
|
|
14444
14474
|
"title": "ReferralTotals",
|
|
@@ -14452,7 +14482,9 @@
|
|
|
14452
14482
|
"maker_fees_paid",
|
|
14453
14483
|
"taker_fees_paid",
|
|
14454
14484
|
"total_referrals",
|
|
14455
|
-
"total_premium_referrals"
|
|
14485
|
+
"total_premium_referrals",
|
|
14486
|
+
"live_points",
|
|
14487
|
+
"weekly_points"
|
|
14456
14488
|
]
|
|
14457
14489
|
},
|
|
14458
14490
|
"ReqAckNotif": {
|
|
@@ -16617,6 +16649,11 @@
|
|
|
16617
16649
|
"format": "int64",
|
|
16618
16650
|
"default": "-1"
|
|
16619
16651
|
},
|
|
16652
|
+
"integrator_account_index": {
|
|
16653
|
+
"type": "integer",
|
|
16654
|
+
"format": "int64",
|
|
16655
|
+
"default": "-1"
|
|
16656
|
+
},
|
|
16620
16657
|
"order_index": {
|
|
16621
16658
|
"type": "integer",
|
|
16622
16659
|
"format": "int64"
|
|
@@ -19071,6 +19108,10 @@
|
|
|
19071
19108
|
"volume_quota_remaining": {
|
|
19072
19109
|
"type": "integer",
|
|
19073
19110
|
"format": "int64"
|
|
19111
|
+
},
|
|
19112
|
+
"remaining_send_tx": {
|
|
19113
|
+
"type": "integer",
|
|
19114
|
+
"format": "int64"
|
|
19074
19115
|
}
|
|
19075
19116
|
},
|
|
19076
19117
|
"title": "RespSendTx",
|
|
@@ -19078,7 +19119,8 @@
|
|
|
19078
19119
|
"code",
|
|
19079
19120
|
"tx_hash",
|
|
19080
19121
|
"predicted_execution_time_ms",
|
|
19081
|
-
"volume_quota_remaining"
|
|
19122
|
+
"volume_quota_remaining",
|
|
19123
|
+
"remaining_send_tx"
|
|
19082
19124
|
]
|
|
19083
19125
|
},
|
|
19084
19126
|
"RespSendTxBatch": {
|
|
@@ -19106,6 +19148,10 @@
|
|
|
19106
19148
|
"volume_quota_remaining": {
|
|
19107
19149
|
"type": "integer",
|
|
19108
19150
|
"format": "int64"
|
|
19151
|
+
},
|
|
19152
|
+
"remaining_send_tx": {
|
|
19153
|
+
"type": "integer",
|
|
19154
|
+
"format": "int64"
|
|
19109
19155
|
}
|
|
19110
19156
|
},
|
|
19111
19157
|
"title": "RespSendTxBatch",
|
|
@@ -19113,7 +19159,8 @@
|
|
|
19113
19159
|
"code",
|
|
19114
19160
|
"tx_hash",
|
|
19115
19161
|
"predicted_execution_time_ms",
|
|
19116
|
-
"volume_quota_remaining"
|
|
19162
|
+
"volume_quota_remaining",
|
|
19163
|
+
"remaining_send_tx"
|
|
19117
19164
|
]
|
|
19118
19165
|
},
|
|
19119
19166
|
"RespSetMakerOnlyApiKeys": {
|