zklighter-perps 1.0.367 → 1.0.369
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 +1 -0
- package/apis/AccountApi.ts +30 -25
- package/apis/AtomicordersApi.ts +23 -8
- package/apis/BridgeApi.ts +4 -4
- package/apis/EventApi.ts +5 -0
- package/apis/LivepointsApi.ts +4 -4
- package/apis/MarketnewsApi.ts +4 -4
- package/apis/OrderApi.ts +24 -24
- package/apis/PortfolioApi.ts +4 -4
- package/apis/PushnotifApi.ts +23 -8
- package/apis/ReferralApi.ts +8 -8
- package/apis/StrategyApi.ts +15 -0
- package/apis/TransactionApi.ts +16 -16
- package/models/ReqGetAccountMetadata.ts +1 -1
- package/models/ReqGetAirdropAllocations.ts +1 -1
- package/models/ReqGetGuildDuelMine.ts +1 -1
- package/models/ReqGetGuildDuelMineDetail.ts +1 -1
- package/models/ReqGetLeaderboard.ts +1 -1
- package/models/ReqGetMakerOnlyApiKeys.ts +1 -1
- package/models/ReqGetRFQ.ts +1 -1
- package/models/ReqGetReferralStats.ts +1 -1
- package/models/ReqGetUserReferrals.ts +1 -1
- package/models/ReqListRFQs.ts +1 -1
- package/models/SavingsEntry.ts +16 -0
- package/models/SavingsEntryVenue.ts +169 -0
- package/models/index.ts +1 -0
- package/openapi.json +311 -91
- package/package.json +1 -1
package/apis/StrategyApi.ts
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
|
|
28
28
|
export interface StrategyHeartbeatRequest {
|
|
29
29
|
account_index: number;
|
|
30
|
+
authorization?: string;
|
|
30
31
|
auth?: string;
|
|
31
32
|
strategy_type?: string;
|
|
32
33
|
}
|
|
@@ -34,12 +35,14 @@ export interface StrategyHeartbeatRequest {
|
|
|
34
35
|
export interface StrategyHeartbeatFinishRequest {
|
|
35
36
|
account_index: number;
|
|
36
37
|
heartbeat_id: string;
|
|
38
|
+
authorization?: string;
|
|
37
39
|
auth?: string;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
export interface StrategyHeartbeatPingRequest {
|
|
41
43
|
account_index: number;
|
|
42
44
|
heartbeat_id: string;
|
|
45
|
+
authorization?: string;
|
|
43
46
|
auth?: string;
|
|
44
47
|
}
|
|
45
48
|
|
|
@@ -64,6 +67,10 @@ export class StrategyApi extends runtime.BaseAPI {
|
|
|
64
67
|
|
|
65
68
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
69
|
|
|
70
|
+
if (requestParameters['authorization'] != null) {
|
|
71
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
72
|
+
}
|
|
73
|
+
|
|
67
74
|
const consumes: runtime.Consume[] = [
|
|
68
75
|
{ contentType: 'multipart/form-data' },
|
|
69
76
|
];
|
|
@@ -133,6 +140,10 @@ export class StrategyApi extends runtime.BaseAPI {
|
|
|
133
140
|
|
|
134
141
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
135
142
|
|
|
143
|
+
if (requestParameters['authorization'] != null) {
|
|
144
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
145
|
+
}
|
|
146
|
+
|
|
136
147
|
const consumes: runtime.Consume[] = [
|
|
137
148
|
{ contentType: 'multipart/form-data' },
|
|
138
149
|
];
|
|
@@ -202,6 +213,10 @@ export class StrategyApi extends runtime.BaseAPI {
|
|
|
202
213
|
|
|
203
214
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
204
215
|
|
|
216
|
+
if (requestParameters['authorization'] != null) {
|
|
217
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
218
|
+
}
|
|
219
|
+
|
|
205
220
|
const consumes: runtime.Consume[] = [
|
|
206
221
|
{ contentType: 'multipart/form-data' },
|
|
207
222
|
];
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -174,10 +174,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
174
174
|
queryParameters['value'] = requestParameters['value'];
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
if (requestParameters['authorization'] != null) {
|
|
178
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
177
|
if (requestParameters['auth'] != null) {
|
|
182
178
|
queryParameters['auth'] = requestParameters['auth'];
|
|
183
179
|
}
|
|
@@ -188,6 +184,10 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
188
184
|
|
|
189
185
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
190
186
|
|
|
187
|
+
if (requestParameters['authorization'] != null) {
|
|
188
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
191
|
const response = await this.request({
|
|
192
192
|
path: `/api/v1/accountTxs`,
|
|
193
193
|
method: 'GET',
|
|
@@ -278,10 +278,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
278
278
|
|
|
279
279
|
const queryParameters: any = {};
|
|
280
280
|
|
|
281
|
-
if (requestParameters['authorization'] != null) {
|
|
282
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
283
|
-
}
|
|
284
|
-
|
|
285
281
|
if (requestParameters['auth'] != null) {
|
|
286
282
|
queryParameters['auth'] = requestParameters['auth'];
|
|
287
283
|
}
|
|
@@ -304,6 +300,10 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
304
300
|
|
|
305
301
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
306
302
|
|
|
303
|
+
if (requestParameters['authorization'] != null) {
|
|
304
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
307
|
const response = await this.request({
|
|
308
308
|
path: `/api/v1/deposit/history`,
|
|
309
309
|
method: 'GET',
|
|
@@ -616,10 +616,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
616
616
|
|
|
617
617
|
const queryParameters: any = {};
|
|
618
618
|
|
|
619
|
-
if (requestParameters['authorization'] != null) {
|
|
620
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
621
|
-
}
|
|
622
|
-
|
|
623
619
|
if (requestParameters['auth'] != null) {
|
|
624
620
|
queryParameters['auth'] = requestParameters['auth'];
|
|
625
621
|
}
|
|
@@ -638,6 +634,10 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
638
634
|
|
|
639
635
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
640
636
|
|
|
637
|
+
if (requestParameters['authorization'] != null) {
|
|
638
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
641
|
const response = await this.request({
|
|
642
642
|
path: `/api/v1/transfer/history`,
|
|
643
643
|
method: 'GET',
|
|
@@ -803,10 +803,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
803
803
|
|
|
804
804
|
const queryParameters: any = {};
|
|
805
805
|
|
|
806
|
-
if (requestParameters['authorization'] != null) {
|
|
807
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
808
|
-
}
|
|
809
|
-
|
|
810
806
|
if (requestParameters['auth'] != null) {
|
|
811
807
|
queryParameters['auth'] = requestParameters['auth'];
|
|
812
808
|
}
|
|
@@ -825,6 +821,10 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
825
821
|
|
|
826
822
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
827
823
|
|
|
824
|
+
if (requestParameters['authorization'] != null) {
|
|
825
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
828
|
const response = await this.request({
|
|
829
829
|
path: `/api/v1/withdraw/history`,
|
|
830
830
|
method: 'GET',
|
package/models/ReqGetRFQ.ts
CHANGED
package/models/ReqListRFQs.ts
CHANGED
package/models/SavingsEntry.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SavingsEntryVenue } from './SavingsEntryVenue';
|
|
17
|
+
import {
|
|
18
|
+
SavingsEntryVenueFromJSON,
|
|
19
|
+
SavingsEntryVenueFromJSONTyped,
|
|
20
|
+
SavingsEntryVenueToJSON,
|
|
21
|
+
} from './SavingsEntryVenue';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -97,6 +104,12 @@ export interface SavingsEntry {
|
|
|
97
104
|
* @memberof SavingsEntry
|
|
98
105
|
*/
|
|
99
106
|
filled_in_saved_usd: number;
|
|
107
|
+
/**
|
|
108
|
+
* the wallet against each venue it has compared orders with under this request, the ranked one included
|
|
109
|
+
* @type {Array<SavingsEntryVenue>}
|
|
110
|
+
* @memberof SavingsEntry
|
|
111
|
+
*/
|
|
112
|
+
venues: Array<SavingsEntryVenue>;
|
|
100
113
|
}
|
|
101
114
|
|
|
102
115
|
/**
|
|
@@ -116,6 +129,7 @@ export function instanceOfSavingsEntry(value: object): value is SavingsEntry {
|
|
|
116
129
|
if (!('saved_bps' in value) || value['saved_bps'] === undefined) return false;
|
|
117
130
|
if (!('filled_in_volume_usd' in value) || value['filled_in_volume_usd'] === undefined) return false;
|
|
118
131
|
if (!('filled_in_saved_usd' in value) || value['filled_in_saved_usd'] === undefined) return false;
|
|
132
|
+
if (!('venues' in value) || value['venues'] === undefined) return false;
|
|
119
133
|
return true;
|
|
120
134
|
}
|
|
121
135
|
|
|
@@ -142,6 +156,7 @@ export function SavingsEntryFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
142
156
|
'saved_bps': json['saved_bps'],
|
|
143
157
|
'filled_in_volume_usd': json['filled_in_volume_usd'],
|
|
144
158
|
'filled_in_saved_usd': json['filled_in_saved_usd'],
|
|
159
|
+
'venues': ((json['venues'] as Array<any>).map(SavingsEntryVenueFromJSON)),
|
|
145
160
|
};
|
|
146
161
|
}
|
|
147
162
|
|
|
@@ -164,6 +179,7 @@ export function SavingsEntryToJSON(value?: SavingsEntry | null): any {
|
|
|
164
179
|
'saved_bps': value['saved_bps'],
|
|
165
180
|
'filled_in_volume_usd': value['filled_in_volume_usd'],
|
|
166
181
|
'filled_in_saved_usd': value['filled_in_saved_usd'],
|
|
182
|
+
'venues': ((value['venues'] as Array<any>).map(SavingsEntryVenueToJSON)),
|
|
167
183
|
};
|
|
168
184
|
}
|
|
169
185
|
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SavingsEntryVenue
|
|
20
|
+
*/
|
|
21
|
+
export interface SavingsEntryVenue {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SavingsEntryVenue
|
|
26
|
+
*/
|
|
27
|
+
venue: string;
|
|
28
|
+
/**
|
|
29
|
+
* the wallet's position against this venue
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SavingsEntryVenue
|
|
32
|
+
*/
|
|
33
|
+
rank: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SavingsEntryVenue
|
|
38
|
+
*/
|
|
39
|
+
trades: number;
|
|
40
|
+
/**
|
|
41
|
+
* compared orders that cost less on Lighter
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof SavingsEntryVenue
|
|
44
|
+
*/
|
|
45
|
+
cheaper_trades: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof SavingsEntryVenue
|
|
50
|
+
*/
|
|
51
|
+
volume_usd: number;
|
|
52
|
+
/**
|
|
53
|
+
* fee paid to Lighter, without the front-end's fee
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof SavingsEntryVenue
|
|
56
|
+
*/
|
|
57
|
+
lighter_fee_usd: number;
|
|
58
|
+
/**
|
|
59
|
+
* fill price against Lighter's mid
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof SavingsEntryVenue
|
|
62
|
+
*/
|
|
63
|
+
lighter_price_cost_usd: number;
|
|
64
|
+
/**
|
|
65
|
+
* the venue's taker fee at the wallet's volume
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof SavingsEntryVenue
|
|
68
|
+
*/
|
|
69
|
+
venue_fee_usd: number;
|
|
70
|
+
/**
|
|
71
|
+
* replayed price under the request's measure and timing
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof SavingsEntryVenue
|
|
74
|
+
*/
|
|
75
|
+
venue_price_cost_usd: number;
|
|
76
|
+
/**
|
|
77
|
+
* the venue's cost minus Lighter's; negative when Lighter cost more
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof SavingsEntryVenue
|
|
80
|
+
*/
|
|
81
|
+
saved_usd: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof SavingsEntryVenue
|
|
86
|
+
*/
|
|
87
|
+
saved_bps: number;
|
|
88
|
+
/**
|
|
89
|
+
* the part of volume_usd in markets the venue does not list
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof SavingsEntryVenue
|
|
92
|
+
*/
|
|
93
|
+
filled_in_volume_usd: number;
|
|
94
|
+
/**
|
|
95
|
+
* the part of saved_usd from those markets
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof SavingsEntryVenue
|
|
98
|
+
*/
|
|
99
|
+
filled_in_saved_usd: number;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the SavingsEntryVenue interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfSavingsEntryVenue(value: object): value is SavingsEntryVenue {
|
|
106
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
107
|
+
if (!('rank' in value) || value['rank'] === undefined) return false;
|
|
108
|
+
if (!('trades' in value) || value['trades'] === undefined) return false;
|
|
109
|
+
if (!('cheaper_trades' in value) || value['cheaper_trades'] === undefined) return false;
|
|
110
|
+
if (!('volume_usd' in value) || value['volume_usd'] === undefined) return false;
|
|
111
|
+
if (!('lighter_fee_usd' in value) || value['lighter_fee_usd'] === undefined) return false;
|
|
112
|
+
if (!('lighter_price_cost_usd' in value) || value['lighter_price_cost_usd'] === undefined) return false;
|
|
113
|
+
if (!('venue_fee_usd' in value) || value['venue_fee_usd'] === undefined) return false;
|
|
114
|
+
if (!('venue_price_cost_usd' in value) || value['venue_price_cost_usd'] === undefined) return false;
|
|
115
|
+
if (!('saved_usd' in value) || value['saved_usd'] === undefined) return false;
|
|
116
|
+
if (!('saved_bps' in value) || value['saved_bps'] === undefined) return false;
|
|
117
|
+
if (!('filled_in_volume_usd' in value) || value['filled_in_volume_usd'] === undefined) return false;
|
|
118
|
+
if (!('filled_in_saved_usd' in value) || value['filled_in_saved_usd'] === undefined) return false;
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function SavingsEntryVenueFromJSON(json: any): SavingsEntryVenue {
|
|
123
|
+
return SavingsEntryVenueFromJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function SavingsEntryVenueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SavingsEntryVenue {
|
|
127
|
+
if (json == null) {
|
|
128
|
+
return json;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'venue': json['venue'],
|
|
133
|
+
'rank': json['rank'],
|
|
134
|
+
'trades': json['trades'],
|
|
135
|
+
'cheaper_trades': json['cheaper_trades'],
|
|
136
|
+
'volume_usd': json['volume_usd'],
|
|
137
|
+
'lighter_fee_usd': json['lighter_fee_usd'],
|
|
138
|
+
'lighter_price_cost_usd': json['lighter_price_cost_usd'],
|
|
139
|
+
'venue_fee_usd': json['venue_fee_usd'],
|
|
140
|
+
'venue_price_cost_usd': json['venue_price_cost_usd'],
|
|
141
|
+
'saved_usd': json['saved_usd'],
|
|
142
|
+
'saved_bps': json['saved_bps'],
|
|
143
|
+
'filled_in_volume_usd': json['filled_in_volume_usd'],
|
|
144
|
+
'filled_in_saved_usd': json['filled_in_saved_usd'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function SavingsEntryVenueToJSON(value?: SavingsEntryVenue | null): any {
|
|
149
|
+
if (value == null) {
|
|
150
|
+
return value;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'venue': value['venue'],
|
|
155
|
+
'rank': value['rank'],
|
|
156
|
+
'trades': value['trades'],
|
|
157
|
+
'cheaper_trades': value['cheaper_trades'],
|
|
158
|
+
'volume_usd': value['volume_usd'],
|
|
159
|
+
'lighter_fee_usd': value['lighter_fee_usd'],
|
|
160
|
+
'lighter_price_cost_usd': value['lighter_price_cost_usd'],
|
|
161
|
+
'venue_fee_usd': value['venue_fee_usd'],
|
|
162
|
+
'venue_price_cost_usd': value['venue_price_cost_usd'],
|
|
163
|
+
'saved_usd': value['saved_usd'],
|
|
164
|
+
'saved_bps': value['saved_bps'],
|
|
165
|
+
'filled_in_volume_usd': value['filled_in_volume_usd'],
|
|
166
|
+
'filled_in_saved_usd': value['filled_in_saved_usd'],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
package/models/index.ts
CHANGED
|
@@ -333,6 +333,7 @@ export * from './RollingContractResp';
|
|
|
333
333
|
export * from './SavingsAccountEntry';
|
|
334
334
|
export * from './SavingsCosts';
|
|
335
335
|
export * from './SavingsEntry';
|
|
336
|
+
export * from './SavingsEntryVenue';
|
|
336
337
|
export * from './SavingsVenue';
|
|
337
338
|
export * from './SavingsWindow';
|
|
338
339
|
export * from './SharePrice';
|