zklighter-perps 1.0.118 → 1.0.120
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 -3
- package/apis/AccountApi.ts +0 -46
- package/apis/OrderApi.ts +0 -85
- package/models/ReqGetTrades.ts +0 -1
- package/models/RespGetFastwithdrawalInfo.ts +9 -0
- package/models/Trade.ts +90 -0
- package/models/index.ts +0 -3
- package/openapi.json +64 -174
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -43,7 +43,6 @@ models/DetailedAccounts.ts
|
|
|
43
43
|
models/DetailedCandlestick.ts
|
|
44
44
|
models/EnrichedTx.ts
|
|
45
45
|
models/ExchangeStats.ts
|
|
46
|
-
models/FeeBucket.ts
|
|
47
46
|
models/Funding.ts
|
|
48
47
|
models/FundingRate.ts
|
|
49
48
|
models/FundingRates.ts
|
|
@@ -82,7 +81,6 @@ models/ReqGetAccountApiKeys.ts
|
|
|
82
81
|
models/ReqGetAccountByL1Address.ts
|
|
83
82
|
models/ReqGetAccountInactiveOrders.ts
|
|
84
83
|
models/ReqGetAccountLimits.ts
|
|
85
|
-
models/ReqGetAccountOrders.ts
|
|
86
84
|
models/ReqGetAccountPendingTxs.ts
|
|
87
85
|
models/ReqGetAccountPnL.ts
|
|
88
86
|
models/ReqGetAccountTxs.ts
|
|
@@ -92,7 +90,6 @@ models/ReqGetByAccount.ts
|
|
|
92
90
|
models/ReqGetCandlesticks.ts
|
|
93
91
|
models/ReqGetDepositHistory.ts
|
|
94
92
|
models/ReqGetFastWithdrawInfo.ts
|
|
95
|
-
models/ReqGetFeeBucket.ts
|
|
96
93
|
models/ReqGetFundings.ts
|
|
97
94
|
models/ReqGetL1Tx.ts
|
|
98
95
|
models/ReqGetLatestDeposit.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
AccountLimits,
|
|
20
20
|
AccountPnL,
|
|
21
21
|
DetailedAccounts,
|
|
22
|
-
FeeBucket,
|
|
23
22
|
IsWhitelisted,
|
|
24
23
|
Leaderboard,
|
|
25
24
|
PositionFundings,
|
|
@@ -36,8 +35,6 @@ import {
|
|
|
36
35
|
AccountPnLToJSON,
|
|
37
36
|
DetailedAccountsFromJSON,
|
|
38
37
|
DetailedAccountsToJSON,
|
|
39
|
-
FeeBucketFromJSON,
|
|
40
|
-
FeeBucketToJSON,
|
|
41
38
|
IsWhitelistedFromJSON,
|
|
42
39
|
IsWhitelistedToJSON,
|
|
43
40
|
LeaderboardFromJSON,
|
|
@@ -75,10 +72,6 @@ export interface FaucetRequest {
|
|
|
75
72
|
l1_address: string;
|
|
76
73
|
}
|
|
77
74
|
|
|
78
|
-
export interface FeeBucketRequest {
|
|
79
|
-
account_index: number;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
75
|
export interface IsWhitelistedRequest {
|
|
83
76
|
l1_address: string;
|
|
84
77
|
}
|
|
@@ -342,45 +335,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
342
335
|
return await response.value();
|
|
343
336
|
}
|
|
344
337
|
|
|
345
|
-
/**
|
|
346
|
-
* Get account fee bucket
|
|
347
|
-
* feeBucket
|
|
348
|
-
*/
|
|
349
|
-
async feeBucketRaw(requestParameters: FeeBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeeBucket>> {
|
|
350
|
-
if (requestParameters['account_index'] == null) {
|
|
351
|
-
throw new runtime.RequiredError(
|
|
352
|
-
'account_index',
|
|
353
|
-
'Required parameter "account_index" was null or undefined when calling feeBucket().'
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
const queryParameters: any = {};
|
|
358
|
-
|
|
359
|
-
if (requestParameters['account_index'] != null) {
|
|
360
|
-
queryParameters['account_index'] = requestParameters['account_index'];
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
364
|
-
|
|
365
|
-
const response = await this.request({
|
|
366
|
-
path: `/api/v1/feeBucket`,
|
|
367
|
-
method: 'GET',
|
|
368
|
-
headers: headerParameters,
|
|
369
|
-
query: queryParameters,
|
|
370
|
-
}, initOverrides);
|
|
371
|
-
|
|
372
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => FeeBucketFromJSON(jsonValue));
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Get account fee bucket
|
|
377
|
-
* feeBucket
|
|
378
|
-
*/
|
|
379
|
-
async feeBucket(requestParameters: FeeBucketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeeBucket> {
|
|
380
|
-
const response = await this.feeBucketRaw(requestParameters, initOverrides);
|
|
381
|
-
return await response.value();
|
|
382
|
-
}
|
|
383
|
-
|
|
384
338
|
/**
|
|
385
339
|
* Get is account whitelisted
|
|
386
340
|
* isWhitelisted
|
package/apis/OrderApi.ts
CHANGED
|
@@ -56,14 +56,6 @@ export interface AccountInactiveOrdersRequest {
|
|
|
56
56
|
cursor?: string;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export interface AccountOrdersRequest {
|
|
60
|
-
auth: string;
|
|
61
|
-
account_index: number;
|
|
62
|
-
market_id: number;
|
|
63
|
-
limit: number;
|
|
64
|
-
cursor?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
59
|
export interface OrderBookDetailsRequest {
|
|
68
60
|
market_id?: number;
|
|
69
61
|
}
|
|
@@ -238,82 +230,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
238
230
|
return await response.value();
|
|
239
231
|
}
|
|
240
232
|
|
|
241
|
-
/**
|
|
242
|
-
* Get account orders
|
|
243
|
-
* accountOrders
|
|
244
|
-
*/
|
|
245
|
-
async accountOrdersRaw(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
|
|
246
|
-
if (requestParameters['auth'] == null) {
|
|
247
|
-
throw new runtime.RequiredError(
|
|
248
|
-
'auth',
|
|
249
|
-
'Required parameter "auth" was null or undefined when calling accountOrders().'
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
if (requestParameters['account_index'] == null) {
|
|
254
|
-
throw new runtime.RequiredError(
|
|
255
|
-
'account_index',
|
|
256
|
-
'Required parameter "account_index" was null or undefined when calling accountOrders().'
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
if (requestParameters['market_id'] == null) {
|
|
261
|
-
throw new runtime.RequiredError(
|
|
262
|
-
'market_id',
|
|
263
|
-
'Required parameter "market_id" was null or undefined when calling accountOrders().'
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (requestParameters['limit'] == null) {
|
|
268
|
-
throw new runtime.RequiredError(
|
|
269
|
-
'limit',
|
|
270
|
-
'Required parameter "limit" was null or undefined when calling accountOrders().'
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
const queryParameters: any = {};
|
|
275
|
-
|
|
276
|
-
if (requestParameters['auth'] != null) {
|
|
277
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (requestParameters['account_index'] != null) {
|
|
281
|
-
queryParameters['account_index'] = requestParameters['account_index'];
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
if (requestParameters['market_id'] != null) {
|
|
285
|
-
queryParameters['market_id'] = requestParameters['market_id'];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (requestParameters['cursor'] != null) {
|
|
289
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
if (requestParameters['limit'] != null) {
|
|
293
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
297
|
-
|
|
298
|
-
const response = await this.request({
|
|
299
|
-
path: `/api/v1/accountOrders`,
|
|
300
|
-
method: 'GET',
|
|
301
|
-
headers: headerParameters,
|
|
302
|
-
query: queryParameters,
|
|
303
|
-
}, initOverrides);
|
|
304
|
-
|
|
305
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrdersFromJSON(jsonValue));
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Get account orders
|
|
310
|
-
* accountOrders
|
|
311
|
-
*/
|
|
312
|
-
async accountOrders(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Orders> {
|
|
313
|
-
const response = await this.accountOrdersRaw(requestParameters, initOverrides);
|
|
314
|
-
return await response.value();
|
|
315
|
-
}
|
|
316
|
-
|
|
317
233
|
/**
|
|
318
234
|
* Get exchange stats
|
|
319
235
|
* exchangeStats
|
|
@@ -603,7 +519,6 @@ export type TradesSortByEnum = typeof TradesSortByEnum[keyof typeof TradesSortBy
|
|
|
603
519
|
* @export
|
|
604
520
|
*/
|
|
605
521
|
export const TradesSortDirEnum = {
|
|
606
|
-
Asc: 'asc',
|
|
607
522
|
Desc: 'desc'
|
|
608
523
|
} as const;
|
|
609
524
|
export type TradesSortDirEnum = typeof TradesSortDirEnum[keyof typeof TradesSortDirEnum];
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -96,7 +96,6 @@ export type ReqGetTradesSortByEnum = typeof ReqGetTradesSortByEnum[keyof typeof
|
|
|
96
96
|
* @export
|
|
97
97
|
*/
|
|
98
98
|
export const ReqGetTradesSortDirEnum = {
|
|
99
|
-
Asc: 'asc',
|
|
100
99
|
Desc: 'desc'
|
|
101
100
|
} as const;
|
|
102
101
|
export type ReqGetTradesSortDirEnum = typeof ReqGetTradesSortDirEnum[keyof typeof ReqGetTradesSortDirEnum];
|
|
@@ -43,6 +43,12 @@ export interface RespGetFastwithdrawalInfo {
|
|
|
43
43
|
* @memberof RespGetFastwithdrawalInfo
|
|
44
44
|
*/
|
|
45
45
|
withdraw_limit: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof RespGetFastwithdrawalInfo
|
|
50
|
+
*/
|
|
51
|
+
max_withdrawal_amount: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -52,6 +58,7 @@ export function instanceOfRespGetFastwithdrawalInfo(value: object): value is Res
|
|
|
52
58
|
if (!('code' in value) || value['code'] === undefined) return false;
|
|
53
59
|
if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false;
|
|
54
60
|
if (!('withdraw_limit' in value) || value['withdraw_limit'] === undefined) return false;
|
|
61
|
+
if (!('max_withdrawal_amount' in value) || value['max_withdrawal_amount'] === undefined) return false;
|
|
55
62
|
return true;
|
|
56
63
|
}
|
|
57
64
|
|
|
@@ -69,6 +76,7 @@ export function RespGetFastwithdrawalInfoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
69
76
|
'message': json['message'] == null ? undefined : json['message'],
|
|
70
77
|
'to_account_index': json['to_account_index'],
|
|
71
78
|
'withdraw_limit': json['withdraw_limit'],
|
|
79
|
+
'max_withdrawal_amount': json['max_withdrawal_amount'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
|
|
@@ -82,6 +90,7 @@ export function RespGetFastwithdrawalInfoToJSON(value?: RespGetFastwithdrawalInf
|
|
|
82
90
|
'message': value['message'],
|
|
83
91
|
'to_account_index': value['to_account_index'],
|
|
84
92
|
'withdraw_limit': value['withdraw_limit'],
|
|
93
|
+
'max_withdrawal_amount': value['max_withdrawal_amount'],
|
|
85
94
|
};
|
|
86
95
|
}
|
|
87
96
|
|
package/models/Trade.ts
CHANGED
|
@@ -103,6 +103,66 @@ export interface Trade {
|
|
|
103
103
|
* @memberof Trade
|
|
104
104
|
*/
|
|
105
105
|
timestamp: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof Trade
|
|
110
|
+
*/
|
|
111
|
+
taker_fee: number;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof Trade
|
|
116
|
+
*/
|
|
117
|
+
taker_position_size_before: string;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof Trade
|
|
122
|
+
*/
|
|
123
|
+
taker_entry_quote_before: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof Trade
|
|
128
|
+
*/
|
|
129
|
+
taker_initial_margin_fraction_before: number;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {boolean}
|
|
133
|
+
* @memberof Trade
|
|
134
|
+
*/
|
|
135
|
+
taker_position_sign_changed: boolean;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof Trade
|
|
140
|
+
*/
|
|
141
|
+
maker_fee: number;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof Trade
|
|
146
|
+
*/
|
|
147
|
+
maker_position_size_before: string;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof Trade
|
|
152
|
+
*/
|
|
153
|
+
maker_entry_quote_before: string;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {number}
|
|
157
|
+
* @memberof Trade
|
|
158
|
+
*/
|
|
159
|
+
maker_initial_margin_fraction_before: number;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {boolean}
|
|
163
|
+
* @memberof Trade
|
|
164
|
+
*/
|
|
165
|
+
maker_position_sign_changed: boolean;
|
|
106
166
|
}
|
|
107
167
|
|
|
108
168
|
|
|
@@ -135,6 +195,16 @@ export function instanceOfTrade(value: object): value is Trade {
|
|
|
135
195
|
if (!('is_maker_ask' in value) || value['is_maker_ask'] === undefined) return false;
|
|
136
196
|
if (!('block_height' in value) || value['block_height'] === undefined) return false;
|
|
137
197
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
198
|
+
if (!('taker_fee' in value) || value['taker_fee'] === undefined) return false;
|
|
199
|
+
if (!('taker_position_size_before' in value) || value['taker_position_size_before'] === undefined) return false;
|
|
200
|
+
if (!('taker_entry_quote_before' in value) || value['taker_entry_quote_before'] === undefined) return false;
|
|
201
|
+
if (!('taker_initial_margin_fraction_before' in value) || value['taker_initial_margin_fraction_before'] === undefined) return false;
|
|
202
|
+
if (!('taker_position_sign_changed' in value) || value['taker_position_sign_changed'] === undefined) return false;
|
|
203
|
+
if (!('maker_fee' in value) || value['maker_fee'] === undefined) return false;
|
|
204
|
+
if (!('maker_position_size_before' in value) || value['maker_position_size_before'] === undefined) return false;
|
|
205
|
+
if (!('maker_entry_quote_before' in value) || value['maker_entry_quote_before'] === undefined) return false;
|
|
206
|
+
if (!('maker_initial_margin_fraction_before' in value) || value['maker_initial_margin_fraction_before'] === undefined) return false;
|
|
207
|
+
if (!('maker_position_sign_changed' in value) || value['maker_position_sign_changed'] === undefined) return false;
|
|
138
208
|
return true;
|
|
139
209
|
}
|
|
140
210
|
|
|
@@ -162,6 +232,16 @@ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
|
|
|
162
232
|
'is_maker_ask': json['is_maker_ask'],
|
|
163
233
|
'block_height': json['block_height'],
|
|
164
234
|
'timestamp': json['timestamp'],
|
|
235
|
+
'taker_fee': json['taker_fee'],
|
|
236
|
+
'taker_position_size_before': json['taker_position_size_before'],
|
|
237
|
+
'taker_entry_quote_before': json['taker_entry_quote_before'],
|
|
238
|
+
'taker_initial_margin_fraction_before': json['taker_initial_margin_fraction_before'],
|
|
239
|
+
'taker_position_sign_changed': json['taker_position_sign_changed'],
|
|
240
|
+
'maker_fee': json['maker_fee'],
|
|
241
|
+
'maker_position_size_before': json['maker_position_size_before'],
|
|
242
|
+
'maker_entry_quote_before': json['maker_entry_quote_before'],
|
|
243
|
+
'maker_initial_margin_fraction_before': json['maker_initial_margin_fraction_before'],
|
|
244
|
+
'maker_position_sign_changed': json['maker_position_sign_changed'],
|
|
165
245
|
};
|
|
166
246
|
}
|
|
167
247
|
|
|
@@ -185,6 +265,16 @@ export function TradeToJSON(value?: Trade | null): any {
|
|
|
185
265
|
'is_maker_ask': value['is_maker_ask'],
|
|
186
266
|
'block_height': value['block_height'],
|
|
187
267
|
'timestamp': value['timestamp'],
|
|
268
|
+
'taker_fee': value['taker_fee'],
|
|
269
|
+
'taker_position_size_before': value['taker_position_size_before'],
|
|
270
|
+
'taker_entry_quote_before': value['taker_entry_quote_before'],
|
|
271
|
+
'taker_initial_margin_fraction_before': value['taker_initial_margin_fraction_before'],
|
|
272
|
+
'taker_position_sign_changed': value['taker_position_sign_changed'],
|
|
273
|
+
'maker_fee': value['maker_fee'],
|
|
274
|
+
'maker_position_size_before': value['maker_position_size_before'],
|
|
275
|
+
'maker_entry_quote_before': value['maker_entry_quote_before'],
|
|
276
|
+
'maker_initial_margin_fraction_before': value['maker_initial_margin_fraction_before'],
|
|
277
|
+
'maker_position_sign_changed': value['maker_position_sign_changed'],
|
|
188
278
|
};
|
|
189
279
|
}
|
|
190
280
|
|
package/models/index.ts
CHANGED
|
@@ -31,7 +31,6 @@ export * from './DetailedAccounts';
|
|
|
31
31
|
export * from './DetailedCandlestick';
|
|
32
32
|
export * from './EnrichedTx';
|
|
33
33
|
export * from './ExchangeStats';
|
|
34
|
-
export * from './FeeBucket';
|
|
35
34
|
export * from './Funding';
|
|
36
35
|
export * from './FundingRate';
|
|
37
36
|
export * from './FundingRates';
|
|
@@ -70,7 +69,6 @@ export * from './ReqGetAccountApiKeys';
|
|
|
70
69
|
export * from './ReqGetAccountByL1Address';
|
|
71
70
|
export * from './ReqGetAccountInactiveOrders';
|
|
72
71
|
export * from './ReqGetAccountLimits';
|
|
73
|
-
export * from './ReqGetAccountOrders';
|
|
74
72
|
export * from './ReqGetAccountPendingTxs';
|
|
75
73
|
export * from './ReqGetAccountPnL';
|
|
76
74
|
export * from './ReqGetAccountTxs';
|
|
@@ -80,7 +78,6 @@ export * from './ReqGetByAccount';
|
|
|
80
78
|
export * from './ReqGetCandlesticks';
|
|
81
79
|
export * from './ReqGetDepositHistory';
|
|
82
80
|
export * from './ReqGetFastWithdrawInfo';
|
|
83
|
-
export * from './ReqGetFeeBucket';
|
|
84
81
|
export * from './ReqGetFundings';
|
|
85
82
|
export * from './ReqGetL1Tx';
|
|
86
83
|
export * from './ReqGetLatestDeposit';
|
package/openapi.json
CHANGED
|
@@ -254,70 +254,6 @@
|
|
|
254
254
|
"description": "Get account limits"
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
|
-
"/api/v1/accountOrders": {
|
|
258
|
-
"get": {
|
|
259
|
-
"summary": "accountOrders",
|
|
260
|
-
"operationId": "accountOrders",
|
|
261
|
-
"responses": {
|
|
262
|
-
"200": {
|
|
263
|
-
"description": "A successful response.",
|
|
264
|
-
"schema": {
|
|
265
|
-
"$ref": "#/definitions/Orders"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"400": {
|
|
269
|
-
"description": "Bad request",
|
|
270
|
-
"schema": {
|
|
271
|
-
"$ref": "#/definitions/ResultCode"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
"parameters": [
|
|
276
|
-
{
|
|
277
|
-
"name": "auth",
|
|
278
|
-
"in": "query",
|
|
279
|
-
"required": true,
|
|
280
|
-
"type": "string"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"name": "account_index",
|
|
284
|
-
"in": "query",
|
|
285
|
-
"required": true,
|
|
286
|
-
"type": "integer",
|
|
287
|
-
"format": "int64"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "market_id",
|
|
291
|
-
"in": "query",
|
|
292
|
-
"required": true,
|
|
293
|
-
"type": "integer",
|
|
294
|
-
"format": "uint8"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"name": "cursor",
|
|
298
|
-
"in": "query",
|
|
299
|
-
"required": false,
|
|
300
|
-
"type": "string"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"name": "limit",
|
|
304
|
-
"in": "query",
|
|
305
|
-
"required": true,
|
|
306
|
-
"type": "integer",
|
|
307
|
-
"format": "int64",
|
|
308
|
-
"minimum": 1,
|
|
309
|
-
"maximum": 100
|
|
310
|
-
}
|
|
311
|
-
],
|
|
312
|
-
"tags": [
|
|
313
|
-
"order"
|
|
314
|
-
],
|
|
315
|
-
"consumes": [
|
|
316
|
-
"multipart/form-data"
|
|
317
|
-
],
|
|
318
|
-
"description": "Get account orders"
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
257
|
"/api/v1/accountPendingTxs": {
|
|
322
258
|
"get": {
|
|
323
259
|
"summary": "accountPendingTxs",
|
|
@@ -1158,42 +1094,6 @@
|
|
|
1158
1094
|
"description": "Request funds from faucet"
|
|
1159
1095
|
}
|
|
1160
1096
|
},
|
|
1161
|
-
"/api/v1/feeBucket": {
|
|
1162
|
-
"get": {
|
|
1163
|
-
"summary": "feeBucket",
|
|
1164
|
-
"operationId": "feeBucket",
|
|
1165
|
-
"responses": {
|
|
1166
|
-
"200": {
|
|
1167
|
-
"description": "A successful response.",
|
|
1168
|
-
"schema": {
|
|
1169
|
-
"$ref": "#/definitions/FeeBucket"
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
"400": {
|
|
1173
|
-
"description": "Bad request",
|
|
1174
|
-
"schema": {
|
|
1175
|
-
"$ref": "#/definitions/ResultCode"
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
},
|
|
1179
|
-
"parameters": [
|
|
1180
|
-
{
|
|
1181
|
-
"name": "account_index",
|
|
1182
|
-
"in": "query",
|
|
1183
|
-
"required": true,
|
|
1184
|
-
"type": "integer",
|
|
1185
|
-
"format": "int64"
|
|
1186
|
-
}
|
|
1187
|
-
],
|
|
1188
|
-
"tags": [
|
|
1189
|
-
"account"
|
|
1190
|
-
],
|
|
1191
|
-
"consumes": [
|
|
1192
|
-
"multipart/form-data"
|
|
1193
|
-
],
|
|
1194
|
-
"description": "Get account fee bucket"
|
|
1195
|
-
}
|
|
1196
|
-
},
|
|
1197
1097
|
"/api/v1/funding-rates": {
|
|
1198
1098
|
"get": {
|
|
1199
1099
|
"summary": "funding-rates",
|
|
@@ -2259,10 +2159,9 @@
|
|
|
2259
2159
|
"required": false,
|
|
2260
2160
|
"type": "string",
|
|
2261
2161
|
"enum": [
|
|
2262
|
-
"asc",
|
|
2263
2162
|
"desc"
|
|
2264
2163
|
],
|
|
2265
|
-
"default": "
|
|
2164
|
+
"default": "desc"
|
|
2266
2165
|
},
|
|
2267
2166
|
{
|
|
2268
2167
|
"name": "cursor",
|
|
@@ -3839,29 +3738,6 @@
|
|
|
3839
3738
|
"daily_trades_count"
|
|
3840
3739
|
]
|
|
3841
3740
|
},
|
|
3842
|
-
"FeeBucket": {
|
|
3843
|
-
"type": "object",
|
|
3844
|
-
"properties": {
|
|
3845
|
-
"vip_tier": {
|
|
3846
|
-
"type": "integer",
|
|
3847
|
-
"format": "uint8"
|
|
3848
|
-
},
|
|
3849
|
-
"taker_fee": {
|
|
3850
|
-
"type": "integer",
|
|
3851
|
-
"format": "int32"
|
|
3852
|
-
},
|
|
3853
|
-
"maker_fee": {
|
|
3854
|
-
"type": "integer",
|
|
3855
|
-
"format": "int32"
|
|
3856
|
-
}
|
|
3857
|
-
},
|
|
3858
|
-
"title": "FeeBucket",
|
|
3859
|
-
"required": [
|
|
3860
|
-
"vip_tier",
|
|
3861
|
-
"taker_fee",
|
|
3862
|
-
"maker_fee"
|
|
3863
|
-
]
|
|
3864
|
-
},
|
|
3865
3741
|
"Funding": {
|
|
3866
3742
|
"type": "object",
|
|
3867
3743
|
"properties": {
|
|
@@ -5625,38 +5501,6 @@
|
|
|
5625
5501
|
"auth"
|
|
5626
5502
|
]
|
|
5627
5503
|
},
|
|
5628
|
-
"ReqGetAccountOrders": {
|
|
5629
|
-
"type": "object",
|
|
5630
|
-
"properties": {
|
|
5631
|
-
"auth": {
|
|
5632
|
-
"type": "string"
|
|
5633
|
-
},
|
|
5634
|
-
"account_index": {
|
|
5635
|
-
"type": "integer",
|
|
5636
|
-
"format": "int64"
|
|
5637
|
-
},
|
|
5638
|
-
"market_id": {
|
|
5639
|
-
"type": "integer",
|
|
5640
|
-
"format": "uint8"
|
|
5641
|
-
},
|
|
5642
|
-
"cursor": {
|
|
5643
|
-
"type": "string"
|
|
5644
|
-
},
|
|
5645
|
-
"limit": {
|
|
5646
|
-
"type": "integer",
|
|
5647
|
-
"format": "int64",
|
|
5648
|
-
"maximum": 100,
|
|
5649
|
-
"minimum": 1
|
|
5650
|
-
}
|
|
5651
|
-
},
|
|
5652
|
-
"title": "ReqGetAccountOrders",
|
|
5653
|
-
"required": [
|
|
5654
|
-
"auth",
|
|
5655
|
-
"account_index",
|
|
5656
|
-
"market_id",
|
|
5657
|
-
"limit"
|
|
5658
|
-
]
|
|
5659
|
-
},
|
|
5660
5504
|
"ReqGetAccountPendingTxs": {
|
|
5661
5505
|
"type": "object",
|
|
5662
5506
|
"properties": {
|
|
@@ -5926,19 +5770,6 @@
|
|
|
5926
5770
|
"auth"
|
|
5927
5771
|
]
|
|
5928
5772
|
},
|
|
5929
|
-
"ReqGetFeeBucket": {
|
|
5930
|
-
"type": "object",
|
|
5931
|
-
"properties": {
|
|
5932
|
-
"account_index": {
|
|
5933
|
-
"type": "integer",
|
|
5934
|
-
"format": "int64"
|
|
5935
|
-
}
|
|
5936
|
-
},
|
|
5937
|
-
"title": "ReqGetFeeBucket",
|
|
5938
|
-
"required": [
|
|
5939
|
-
"account_index"
|
|
5940
|
-
]
|
|
5941
|
-
},
|
|
5942
5773
|
"ReqGetFundings": {
|
|
5943
5774
|
"type": "object",
|
|
5944
5775
|
"properties": {
|
|
@@ -6301,10 +6132,9 @@
|
|
|
6301
6132
|
"sort_dir": {
|
|
6302
6133
|
"type": "string",
|
|
6303
6134
|
"enum": [
|
|
6304
|
-
"asc",
|
|
6305
6135
|
"desc"
|
|
6306
6136
|
],
|
|
6307
|
-
"default": "
|
|
6137
|
+
"default": "desc"
|
|
6308
6138
|
},
|
|
6309
6139
|
"cursor": {
|
|
6310
6140
|
"type": "string"
|
|
@@ -6525,13 +6355,17 @@
|
|
|
6525
6355
|
},
|
|
6526
6356
|
"withdraw_limit": {
|
|
6527
6357
|
"type": "string"
|
|
6358
|
+
},
|
|
6359
|
+
"max_withdrawal_amount": {
|
|
6360
|
+
"type": "string"
|
|
6528
6361
|
}
|
|
6529
6362
|
},
|
|
6530
6363
|
"title": "RespGetFastwithdrawalInfo",
|
|
6531
6364
|
"required": [
|
|
6532
6365
|
"code",
|
|
6533
6366
|
"to_account_index",
|
|
6534
|
-
"withdraw_limit"
|
|
6367
|
+
"withdraw_limit",
|
|
6368
|
+
"max_withdrawal_amount"
|
|
6535
6369
|
]
|
|
6536
6370
|
},
|
|
6537
6371
|
"ResultCode": {
|
|
@@ -6746,6 +6580,52 @@
|
|
|
6746
6580
|
"type": "integer",
|
|
6747
6581
|
"format": "int64",
|
|
6748
6582
|
"example": "1640995200"
|
|
6583
|
+
},
|
|
6584
|
+
"taker_fee": {
|
|
6585
|
+
"type": "integer",
|
|
6586
|
+
"format": "int32",
|
|
6587
|
+
"example": "0"
|
|
6588
|
+
},
|
|
6589
|
+
"taker_position_size_before": {
|
|
6590
|
+
"type": "string",
|
|
6591
|
+
"example": "0"
|
|
6592
|
+
},
|
|
6593
|
+
"taker_entry_quote_before": {
|
|
6594
|
+
"type": "string",
|
|
6595
|
+
"example": "0"
|
|
6596
|
+
},
|
|
6597
|
+
"taker_initial_margin_fraction_before": {
|
|
6598
|
+
"type": "integer",
|
|
6599
|
+
"format": "uin16",
|
|
6600
|
+
"example": "0"
|
|
6601
|
+
},
|
|
6602
|
+
"taker_position_sign_changed": {
|
|
6603
|
+
"type": "boolean",
|
|
6604
|
+
"format": "boolean",
|
|
6605
|
+
"example": "true"
|
|
6606
|
+
},
|
|
6607
|
+
"maker_fee": {
|
|
6608
|
+
"type": "integer",
|
|
6609
|
+
"format": "int32",
|
|
6610
|
+
"example": "0"
|
|
6611
|
+
},
|
|
6612
|
+
"maker_position_size_before": {
|
|
6613
|
+
"type": "string",
|
|
6614
|
+
"example": "0"
|
|
6615
|
+
},
|
|
6616
|
+
"maker_entry_quote_before": {
|
|
6617
|
+
"type": "string",
|
|
6618
|
+
"example": "0"
|
|
6619
|
+
},
|
|
6620
|
+
"maker_initial_margin_fraction_before": {
|
|
6621
|
+
"type": "integer",
|
|
6622
|
+
"format": "uin16",
|
|
6623
|
+
"example": "0"
|
|
6624
|
+
},
|
|
6625
|
+
"maker_position_sign_changed": {
|
|
6626
|
+
"type": "boolean",
|
|
6627
|
+
"format": "boolean",
|
|
6628
|
+
"example": "true"
|
|
6749
6629
|
}
|
|
6750
6630
|
},
|
|
6751
6631
|
"title": "Trade",
|
|
@@ -6763,7 +6643,17 @@
|
|
|
6763
6643
|
"bid_account_id",
|
|
6764
6644
|
"is_maker_ask",
|
|
6765
6645
|
"block_height",
|
|
6766
|
-
"timestamp"
|
|
6646
|
+
"timestamp",
|
|
6647
|
+
"taker_fee",
|
|
6648
|
+
"taker_position_size_before",
|
|
6649
|
+
"taker_entry_quote_before",
|
|
6650
|
+
"taker_initial_margin_fraction_before",
|
|
6651
|
+
"taker_position_sign_changed",
|
|
6652
|
+
"maker_fee",
|
|
6653
|
+
"maker_position_size_before",
|
|
6654
|
+
"maker_entry_quote_before",
|
|
6655
|
+
"maker_initial_margin_fraction_before",
|
|
6656
|
+
"maker_position_sign_changed"
|
|
6767
6657
|
]
|
|
6768
6658
|
},
|
|
6769
6659
|
"Trades": {
|