zklighter-perps 1.0.367 → 1.0.368
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/models/SavingsEntry.ts +16 -0
- package/models/SavingsEntryVenue.ts +169 -0
- package/models/index.ts +1 -0
- package/openapi.json +102 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
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';
|
package/openapi.json
CHANGED
|
@@ -24403,6 +24403,13 @@
|
|
|
24403
24403
|
"format": "double",
|
|
24404
24404
|
"example": "310.75",
|
|
24405
24405
|
"description": " the part of saved_usd from those markets"
|
|
24406
|
+
},
|
|
24407
|
+
"venues": {
|
|
24408
|
+
"type": "array",
|
|
24409
|
+
"items": {
|
|
24410
|
+
"$ref": "#/definitions/SavingsEntryVenue"
|
|
24411
|
+
},
|
|
24412
|
+
"description": " the wallet against each venue it has compared orders with under this request, the ranked one included"
|
|
24406
24413
|
}
|
|
24407
24414
|
},
|
|
24408
24415
|
"title": "SavingsEntry",
|
|
@@ -24419,6 +24426,101 @@
|
|
|
24419
24426
|
"saved_usd",
|
|
24420
24427
|
"saved_bps",
|
|
24421
24428
|
"filled_in_volume_usd",
|
|
24429
|
+
"filled_in_saved_usd",
|
|
24430
|
+
"venues"
|
|
24431
|
+
]
|
|
24432
|
+
},
|
|
24433
|
+
"SavingsEntryVenue": {
|
|
24434
|
+
"type": "object",
|
|
24435
|
+
"properties": {
|
|
24436
|
+
"venue": {
|
|
24437
|
+
"type": "string",
|
|
24438
|
+
"example": "binance"
|
|
24439
|
+
},
|
|
24440
|
+
"rank": {
|
|
24441
|
+
"type": "integer",
|
|
24442
|
+
"format": "int64",
|
|
24443
|
+
"example": "20",
|
|
24444
|
+
"description": " the wallet's position against this venue"
|
|
24445
|
+
},
|
|
24446
|
+
"trades": {
|
|
24447
|
+
"type": "integer",
|
|
24448
|
+
"format": "int64",
|
|
24449
|
+
"example": "1204"
|
|
24450
|
+
},
|
|
24451
|
+
"cheaper_trades": {
|
|
24452
|
+
"type": "integer",
|
|
24453
|
+
"format": "int64",
|
|
24454
|
+
"example": "1101",
|
|
24455
|
+
"description": " compared orders that cost less on Lighter"
|
|
24456
|
+
},
|
|
24457
|
+
"volume_usd": {
|
|
24458
|
+
"type": "number",
|
|
24459
|
+
"format": "double",
|
|
24460
|
+
"example": "200607208.12"
|
|
24461
|
+
},
|
|
24462
|
+
"lighter_fee_usd": {
|
|
24463
|
+
"type": "number",
|
|
24464
|
+
"format": "double",
|
|
24465
|
+
"example": "1203.5",
|
|
24466
|
+
"description": " fee paid to Lighter, without the front-end's fee"
|
|
24467
|
+
},
|
|
24468
|
+
"lighter_price_cost_usd": {
|
|
24469
|
+
"type": "number",
|
|
24470
|
+
"format": "double",
|
|
24471
|
+
"example": "30211.9",
|
|
24472
|
+
"description": " fill price against Lighter's mid"
|
|
24473
|
+
},
|
|
24474
|
+
"venue_fee_usd": {
|
|
24475
|
+
"type": "number",
|
|
24476
|
+
"format": "double",
|
|
24477
|
+
"example": "56170.02",
|
|
24478
|
+
"description": " the venue's taker fee at the wallet's volume"
|
|
24479
|
+
},
|
|
24480
|
+
"venue_price_cost_usd": {
|
|
24481
|
+
"type": "number",
|
|
24482
|
+
"format": "double",
|
|
24483
|
+
"example": "29091.57",
|
|
24484
|
+
"description": " replayed price under the request's measure and timing"
|
|
24485
|
+
},
|
|
24486
|
+
"saved_usd": {
|
|
24487
|
+
"type": "number",
|
|
24488
|
+
"format": "double",
|
|
24489
|
+
"example": "53846.19",
|
|
24490
|
+
"description": " the venue's cost minus Lighter's; negative when Lighter cost more"
|
|
24491
|
+
},
|
|
24492
|
+
"saved_bps": {
|
|
24493
|
+
"type": "number",
|
|
24494
|
+
"format": "double",
|
|
24495
|
+
"example": "2.684"
|
|
24496
|
+
},
|
|
24497
|
+
"filled_in_volume_usd": {
|
|
24498
|
+
"type": "number",
|
|
24499
|
+
"format": "double",
|
|
24500
|
+
"example": "901822.4",
|
|
24501
|
+
"description": " the part of volume_usd in markets the venue does not list"
|
|
24502
|
+
},
|
|
24503
|
+
"filled_in_saved_usd": {
|
|
24504
|
+
"type": "number",
|
|
24505
|
+
"format": "double",
|
|
24506
|
+
"example": "310.75",
|
|
24507
|
+
"description": " the part of saved_usd from those markets"
|
|
24508
|
+
}
|
|
24509
|
+
},
|
|
24510
|
+
"title": "SavingsEntryVenue",
|
|
24511
|
+
"required": [
|
|
24512
|
+
"venue",
|
|
24513
|
+
"rank",
|
|
24514
|
+
"trades",
|
|
24515
|
+
"cheaper_trades",
|
|
24516
|
+
"volume_usd",
|
|
24517
|
+
"lighter_fee_usd",
|
|
24518
|
+
"lighter_price_cost_usd",
|
|
24519
|
+
"venue_fee_usd",
|
|
24520
|
+
"venue_price_cost_usd",
|
|
24521
|
+
"saved_usd",
|
|
24522
|
+
"saved_bps",
|
|
24523
|
+
"filled_in_volume_usd",
|
|
24422
24524
|
"filled_in_saved_usd"
|
|
24423
24525
|
]
|
|
24424
24526
|
},
|