zklighter-perps 1.0.366 → 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/apis/AccountApi.ts +9 -16
- package/models/SavingsEntry.ts +16 -0
- package/models/SavingsEntryVenue.ts +169 -0
- package/models/index.ts +1 -0
- package/openapi.json +108 -11
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/AccountApi.ts
CHANGED
|
@@ -175,11 +175,11 @@ export interface ApikeysRequest {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
export interface BuyVolumeQuotaRequest {
|
|
178
|
-
quota: number;
|
|
179
|
-
authorization?: string;
|
|
180
178
|
tx_info?: string;
|
|
181
179
|
tx_hash?: string;
|
|
180
|
+
quota?: number;
|
|
182
181
|
destination_l1_address?: string;
|
|
182
|
+
auth?: string;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export interface ChangeAccountTierRequest {
|
|
@@ -810,21 +810,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
810
810
|
* buyVolumeQuota
|
|
811
811
|
*/
|
|
812
812
|
async buyVolumeQuotaRaw(requestParameters: BuyVolumeQuotaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespBuyVolumeQuota>> {
|
|
813
|
-
if (requestParameters['quota'] == null) {
|
|
814
|
-
throw new runtime.RequiredError(
|
|
815
|
-
'quota',
|
|
816
|
-
'Required parameter "quota" was null or undefined when calling buyVolumeQuota().'
|
|
817
|
-
);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
813
|
const queryParameters: any = {};
|
|
821
814
|
|
|
822
815
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
823
816
|
|
|
824
|
-
if (requestParameters['authorization'] != null) {
|
|
825
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
826
|
-
}
|
|
827
|
-
|
|
828
817
|
const consumes: runtime.Consume[] = [
|
|
829
818
|
{ contentType: 'multipart/form-data' },
|
|
830
819
|
];
|
|
@@ -855,6 +844,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
855
844
|
formParams.append('destination_l1_address', requestParameters['destination_l1_address'] as any);
|
|
856
845
|
}
|
|
857
846
|
|
|
847
|
+
if (requestParameters['auth'] != null) {
|
|
848
|
+
formParams.append('auth', requestParameters['auth'] as any);
|
|
849
|
+
}
|
|
850
|
+
|
|
858
851
|
const response = await this.request({
|
|
859
852
|
path: `/api/v1/buyVolumeQuota`,
|
|
860
853
|
method: 'POST',
|
|
@@ -870,7 +863,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
870
863
|
* Buy volume quota with USDC
|
|
871
864
|
* buyVolumeQuota
|
|
872
865
|
*/
|
|
873
|
-
async buyVolumeQuota(requestParameters: BuyVolumeQuotaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBuyVolumeQuota> {
|
|
866
|
+
async buyVolumeQuota(requestParameters: BuyVolumeQuotaRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespBuyVolumeQuota> {
|
|
874
867
|
const response = await this.buyVolumeQuotaRaw(requestParameters, initOverrides);
|
|
875
868
|
return await response.value();
|
|
876
869
|
}
|
|
@@ -2515,7 +2508,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
2515
2508
|
}
|
|
2516
2509
|
|
|
2517
2510
|
/**
|
|
2518
|
-
* Replace an API key\'s restrictions. They apply to every transaction the key signs except ChangePubKey and ChangeECDSAPubKey, which the L1 wallet signs. With a market whitelist, the key can only place, modify and cancel orders and change leverage or margin in those markets and in binary options markets of those series (event creator and tag). With an IP whitelist, the key can only send from those IPs. An expired key can sign nothing else. Restrictions belong to the key\'s public key. The account\'s L1 wallet personal_signs these lines: \'Set API Key Restrictions\', a blank line, \'account index: N\', \'api key index: N\', \'pubkey: 0x<public_key>\', \'market ids: <market_ids>\', \'series: <series>\', \'allowed ips: <allowed_ips>\', \'valid until: N\', \'timestamp: N\', \'chainId: N\', \'Only sign this message for a trusted client!\'. Each N is 0x plus 16 lowercase hex digits, public_key is lowercase hex, and lists are the exact strings sent, with an omitted series or allowed_ips signed as [].
|
|
2511
|
+
* Replace an API key\'s restrictions. They apply to every transaction the key signs except ChangePubKey and ChangeECDSAPubKey, which the L1 wallet signs to replace the key. With a market whitelist, the key can only place, modify and cancel orders and change leverage or margin in those markets and in binary options markets of those series (event creator and tag). With an IP whitelist, the key can only send from those IPs. An expired key can sign nothing else. Restrictions belong to the key\'s public key. The account\'s L1 wallet personal_signs these lines: \'Set API Key Restrictions\', a blank line, \'account index: N\', \'api key index: N\', \'pubkey: 0x<public_key>\', \'market ids: <market_ids>\', \'series: <series>\', \'allowed ips: <allowed_ips>\', \'valid until: N\', \'timestamp: N\', \'chainId: N\', \'Only sign this message for a trusted client!\'. Each N is 0x plus 16 lowercase hex digits, public_key is lowercase hex, and lists are the exact strings sent, with an omitted series or allowed_ips signed as [].
|
|
2519
2512
|
* setApiKeyRestrictions
|
|
2520
2513
|
*/
|
|
2521
2514
|
async setApiKeyRestrictionsRaw(requestParameters: SetApiKeyRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResultCode>> {
|
|
@@ -2634,7 +2627,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
2634
2627
|
}
|
|
2635
2628
|
|
|
2636
2629
|
/**
|
|
2637
|
-
* Replace an API key\'s restrictions. They apply to every transaction the key signs except ChangePubKey and ChangeECDSAPubKey, which the L1 wallet signs. With a market whitelist, the key can only place, modify and cancel orders and change leverage or margin in those markets and in binary options markets of those series (event creator and tag). With an IP whitelist, the key can only send from those IPs. An expired key can sign nothing else. Restrictions belong to the key\'s public key. The account\'s L1 wallet personal_signs these lines: \'Set API Key Restrictions\', a blank line, \'account index: N\', \'api key index: N\', \'pubkey: 0x<public_key>\', \'market ids: <market_ids>\', \'series: <series>\', \'allowed ips: <allowed_ips>\', \'valid until: N\', \'timestamp: N\', \'chainId: N\', \'Only sign this message for a trusted client!\'. Each N is 0x plus 16 lowercase hex digits, public_key is lowercase hex, and lists are the exact strings sent, with an omitted series or allowed_ips signed as [].
|
|
2630
|
+
* Replace an API key\'s restrictions. They apply to every transaction the key signs except ChangePubKey and ChangeECDSAPubKey, which the L1 wallet signs to replace the key. With a market whitelist, the key can only place, modify and cancel orders and change leverage or margin in those markets and in binary options markets of those series (event creator and tag). With an IP whitelist, the key can only send from those IPs. An expired key can sign nothing else. Restrictions belong to the key\'s public key. The account\'s L1 wallet personal_signs these lines: \'Set API Key Restrictions\', a blank line, \'account index: N\', \'api key index: N\', \'pubkey: 0x<public_key>\', \'market ids: <market_ids>\', \'series: <series>\', \'allowed ips: <allowed_ips>\', \'valid until: N\', \'timestamp: N\', \'chainId: N\', \'Only sign this message for a trusted client!\'. Each N is 0x plus 16 lowercase hex digits, public_key is lowercase hex, and lists are the exact strings sent, with an omitted series or allowed_ips signed as [].
|
|
2638
2631
|
* setApiKeyRestrictions
|
|
2639
2632
|
*/
|
|
2640
2633
|
async setApiKeyRestrictions(requestParameters: SetApiKeyRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResultCode> {
|
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
|
@@ -1449,12 +1449,6 @@
|
|
|
1449
1449
|
}
|
|
1450
1450
|
},
|
|
1451
1451
|
"parameters": [
|
|
1452
|
-
{
|
|
1453
|
-
"name": "authorization",
|
|
1454
|
-
"in": "header",
|
|
1455
|
-
"required": false,
|
|
1456
|
-
"type": "string"
|
|
1457
|
-
},
|
|
1458
1452
|
{
|
|
1459
1453
|
"name": "body",
|
|
1460
1454
|
"in": "body",
|
|
@@ -7430,7 +7424,7 @@
|
|
|
7430
7424
|
"consumes": [
|
|
7431
7425
|
"multipart/form-data"
|
|
7432
7426
|
],
|
|
7433
|
-
"description": "Replace an API key's restrictions. They apply to every transaction the key signs except ChangePubKey and ChangeECDSAPubKey, which the L1 wallet signs. With a market whitelist, the key can only place, modify and cancel orders and change leverage or margin in those markets and in binary options markets of those series (event creator and tag). With an IP whitelist, the key can only send from those IPs. An expired key can sign nothing else. Restrictions belong to the key's public key. The account's L1 wallet personal_signs these lines: 'Set API Key Restrictions', a blank line, 'account index: N', 'api key index: N', 'pubkey: 0x<public_key>', 'market ids: <market_ids>', 'series: <series>', 'allowed ips: <allowed_ips>', 'valid until: N', 'timestamp: N', 'chainId: N', 'Only sign this message for a trusted client!'. Each N is 0x plus 16 lowercase hex digits, public_key is lowercase hex, and lists are the exact strings sent, with an omitted series or allowed_ips signed as []."
|
|
7427
|
+
"description": "Replace an API key's restrictions. They apply to every transaction the key signs except ChangePubKey and ChangeECDSAPubKey, which the L1 wallet signs to replace the key. With a market whitelist, the key can only place, modify and cancel orders and change leverage or margin in those markets and in binary options markets of those series (event creator and tag). With an IP whitelist, the key can only send from those IPs. An expired key can sign nothing else. Restrictions belong to the key's public key. The account's L1 wallet personal_signs these lines: 'Set API Key Restrictions', a blank line, 'account index: N', 'api key index: N', 'pubkey: 0x<public_key>', 'market ids: <market_ids>', 'series: <series>', 'allowed ips: <allowed_ips>', 'valid until: N', 'timestamp: N', 'chainId: N', 'Only sign this message for a trusted client!'. Each N is 0x plus 16 lowercase hex digits, public_key is lowercase hex, and lists are the exact strings sent, with an omitted series or allowed_ips signed as []."
|
|
7434
7428
|
}
|
|
7435
7429
|
},
|
|
7436
7430
|
"/api/v1/setMakerOnlyApiKeys": {
|
|
@@ -17775,12 +17769,13 @@
|
|
|
17775
17769
|
},
|
|
17776
17770
|
"destination_l1_address": {
|
|
17777
17771
|
"type": "string"
|
|
17772
|
+
},
|
|
17773
|
+
"auth": {
|
|
17774
|
+
"type": "string",
|
|
17775
|
+
"description": " made optional to support header auth clients"
|
|
17778
17776
|
}
|
|
17779
17777
|
},
|
|
17780
|
-
"title": "ReqBuyVolumeQuota"
|
|
17781
|
-
"required": [
|
|
17782
|
-
"quota"
|
|
17783
|
-
]
|
|
17778
|
+
"title": "ReqBuyVolumeQuota"
|
|
17784
17779
|
},
|
|
17785
17780
|
"ReqChangeAccountTier": {
|
|
17786
17781
|
"type": "object",
|
|
@@ -24408,6 +24403,13 @@
|
|
|
24408
24403
|
"format": "double",
|
|
24409
24404
|
"example": "310.75",
|
|
24410
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"
|
|
24411
24413
|
}
|
|
24412
24414
|
},
|
|
24413
24415
|
"title": "SavingsEntry",
|
|
@@ -24424,6 +24426,101 @@
|
|
|
24424
24426
|
"saved_usd",
|
|
24425
24427
|
"saved_bps",
|
|
24426
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",
|
|
24427
24524
|
"filled_in_saved_usd"
|
|
24428
24525
|
]
|
|
24429
24526
|
},
|