zklighter-perps 1.0.184 → 1.0.185
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 +6 -0
- package/apis/AccountApi.ts +256 -20
- package/apis/BridgeApi.ts +6 -6
- package/apis/InfoApi.ts +4 -4
- package/apis/OrderApi.ts +20 -20
- package/apis/ReferralApi.ts +8 -8
- package/apis/TransactionApi.ts +26 -26
- package/models/ApiToken.ts +124 -0
- package/models/Auth.ts +61 -0
- package/models/ReqExportData.ts +1 -1
- package/models/ReqGetAccountActiveOrders.ts +8 -8
- package/models/ReqGetAccountPnL.ts +1 -1
- package/models/ReqGetAccountTxs.ts +7 -7
- package/models/ReqGetApiTokens.ts +61 -0
- package/models/ReqGetDepositHistory.ts +8 -8
- package/models/ReqGetFastWithdrawInfo.ts +8 -8
- package/models/ReqGetPositionFunding.ts +1 -1
- package/models/ReqGetPublicPoolsMetadata.ts +1 -1
- package/models/ReqGetTrades.ts +1 -1
- package/models/ReqGetTransferFeeInfo.ts +1 -1
- package/models/ReqGetTransferHistory.ts +8 -8
- package/models/ReqGetWithdrawHistory.ts +8 -8
- package/models/RespGetApiTokens.ts +85 -0
- package/models/RespPostApiToken.ts +141 -0
- package/models/RespRevokeApiToken.ts +87 -0
- package/models/index.ts +6 -0
- package/openapi.json +474 -98
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -29,8 +29,10 @@ models/AccountTradeStats.ts
|
|
|
29
29
|
models/Announcement.ts
|
|
30
30
|
models/Announcements.ts
|
|
31
31
|
models/ApiKey.ts
|
|
32
|
+
models/ApiToken.ts
|
|
32
33
|
models/Asset.ts
|
|
33
34
|
models/AssetDetails.ts
|
|
35
|
+
models/Auth.ts
|
|
34
36
|
models/Block.ts
|
|
35
37
|
models/Blocks.ts
|
|
36
38
|
models/Bridge.ts
|
|
@@ -102,6 +104,7 @@ models/ReqGetAccountLimits.ts
|
|
|
102
104
|
models/ReqGetAccountMetadata.ts
|
|
103
105
|
models/ReqGetAccountPnL.ts
|
|
104
106
|
models/ReqGetAccountTxs.ts
|
|
107
|
+
models/ReqGetApiTokens.ts
|
|
105
108
|
models/ReqGetAssetDetails.ts
|
|
106
109
|
models/ReqGetBlock.ts
|
|
107
110
|
models/ReqGetBlockTxs.ts
|
|
@@ -136,11 +139,14 @@ models/ReqGetTx.ts
|
|
|
136
139
|
models/ReqGetWithdrawHistory.ts
|
|
137
140
|
models/ReqIsWhitelisted.ts
|
|
138
141
|
models/RespChangeAccountTier.ts
|
|
142
|
+
models/RespGetApiTokens.ts
|
|
139
143
|
models/RespGetBridgesByL1Addr.ts
|
|
140
144
|
models/RespGetFastBridgeInfo.ts
|
|
141
145
|
models/RespGetFastwithdrawalInfo.ts
|
|
142
146
|
models/RespGetIsNextBridgeFast.ts
|
|
147
|
+
models/RespPostApiToken.ts
|
|
143
148
|
models/RespPublicPoolsMetadata.ts
|
|
149
|
+
models/RespRevokeApiToken.ts
|
|
144
150
|
models/RespSendTx.ts
|
|
145
151
|
models/RespSendTxBatch.ts
|
|
146
152
|
models/RespUpdateKickback.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -26,7 +26,10 @@ import type {
|
|
|
26
26
|
LiquidationInfos,
|
|
27
27
|
PositionFundings,
|
|
28
28
|
RespChangeAccountTier,
|
|
29
|
+
RespGetApiTokens,
|
|
30
|
+
RespPostApiToken,
|
|
29
31
|
RespPublicPoolsMetadata,
|
|
32
|
+
RespRevokeApiToken,
|
|
30
33
|
ResultCode,
|
|
31
34
|
SubAccounts,
|
|
32
35
|
} from '../models/index';
|
|
@@ -53,8 +56,14 @@ import {
|
|
|
53
56
|
PositionFundingsToJSON,
|
|
54
57
|
RespChangeAccountTierFromJSON,
|
|
55
58
|
RespChangeAccountTierToJSON,
|
|
59
|
+
RespGetApiTokensFromJSON,
|
|
60
|
+
RespGetApiTokensToJSON,
|
|
61
|
+
RespPostApiTokenFromJSON,
|
|
62
|
+
RespPostApiTokenToJSON,
|
|
56
63
|
RespPublicPoolsMetadataFromJSON,
|
|
57
64
|
RespPublicPoolsMetadataToJSON,
|
|
65
|
+
RespRevokeApiTokenFromJSON,
|
|
66
|
+
RespRevokeApiTokenToJSON,
|
|
58
67
|
ResultCodeFromJSON,
|
|
59
68
|
ResultCodeToJSON,
|
|
60
69
|
SubAccountsFromJSON,
|
|
@@ -158,6 +167,26 @@ export interface PublicPoolsMetadataRequest {
|
|
|
158
167
|
account_index?: number;
|
|
159
168
|
}
|
|
160
169
|
|
|
170
|
+
export interface TokensRequest {
|
|
171
|
+
account_index: number;
|
|
172
|
+
authorization?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface TokensCreateRequest {
|
|
176
|
+
name: string;
|
|
177
|
+
account_index: number;
|
|
178
|
+
expiry: number;
|
|
179
|
+
sub_account_access: boolean;
|
|
180
|
+
authorization?: string;
|
|
181
|
+
scopes?: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface TokensRevokeRequest {
|
|
185
|
+
token_id: number;
|
|
186
|
+
account_index: number;
|
|
187
|
+
authorization?: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
161
190
|
/**
|
|
162
191
|
*
|
|
163
192
|
*/
|
|
@@ -231,16 +260,16 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
231
260
|
queryParameters['account_index'] = requestParameters['account_index'];
|
|
232
261
|
}
|
|
233
262
|
|
|
263
|
+
if (requestParameters['authorization'] != null) {
|
|
264
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
265
|
+
}
|
|
266
|
+
|
|
234
267
|
if (requestParameters['auth'] != null) {
|
|
235
268
|
queryParameters['auth'] = requestParameters['auth'];
|
|
236
269
|
}
|
|
237
270
|
|
|
238
271
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
239
272
|
|
|
240
|
-
if (requestParameters['authorization'] != null) {
|
|
241
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
273
|
const response = await this.request({
|
|
245
274
|
path: `/api/v1/accountLimits`,
|
|
246
275
|
method: 'GET',
|
|
@@ -685,6 +714,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
685
714
|
|
|
686
715
|
const queryParameters: any = {};
|
|
687
716
|
|
|
717
|
+
if (requestParameters['authorization'] != null) {
|
|
718
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
719
|
+
}
|
|
720
|
+
|
|
688
721
|
if (requestParameters['auth'] != null) {
|
|
689
722
|
queryParameters['auth'] = requestParameters['auth'];
|
|
690
723
|
}
|
|
@@ -707,10 +740,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
707
740
|
|
|
708
741
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
709
742
|
|
|
710
|
-
if (requestParameters['authorization'] != null) {
|
|
711
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
743
|
const response = await this.request({
|
|
715
744
|
path: `/api/v1/liquidations`,
|
|
716
745
|
method: 'GET',
|
|
@@ -779,6 +808,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
779
808
|
|
|
780
809
|
const queryParameters: any = {};
|
|
781
810
|
|
|
811
|
+
if (requestParameters['authorization'] != null) {
|
|
812
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
813
|
+
}
|
|
814
|
+
|
|
782
815
|
if (requestParameters['auth'] != null) {
|
|
783
816
|
queryParameters['auth'] = requestParameters['auth'];
|
|
784
817
|
}
|
|
@@ -813,10 +846,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
813
846
|
|
|
814
847
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
815
848
|
|
|
816
|
-
if (requestParameters['authorization'] != null) {
|
|
817
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
849
|
const response = await this.request({
|
|
821
850
|
path: `/api/v1/pnl`,
|
|
822
851
|
method: 'GET',
|
|
@@ -857,6 +886,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
857
886
|
|
|
858
887
|
const queryParameters: any = {};
|
|
859
888
|
|
|
889
|
+
if (requestParameters['authorization'] != null) {
|
|
890
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
891
|
+
}
|
|
892
|
+
|
|
860
893
|
if (requestParameters['auth'] != null) {
|
|
861
894
|
queryParameters['auth'] = requestParameters['auth'];
|
|
862
895
|
}
|
|
@@ -883,10 +916,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
883
916
|
|
|
884
917
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
885
918
|
|
|
886
|
-
if (requestParameters['authorization'] != null) {
|
|
887
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
888
|
-
}
|
|
889
|
-
|
|
890
919
|
const response = await this.request({
|
|
891
920
|
path: `/api/v1/positionFunding`,
|
|
892
921
|
method: 'GET',
|
|
@@ -927,6 +956,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
927
956
|
|
|
928
957
|
const queryParameters: any = {};
|
|
929
958
|
|
|
959
|
+
if (requestParameters['authorization'] != null) {
|
|
960
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
961
|
+
}
|
|
962
|
+
|
|
930
963
|
if (requestParameters['auth'] != null) {
|
|
931
964
|
queryParameters['auth'] = requestParameters['auth'];
|
|
932
965
|
}
|
|
@@ -949,10 +982,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
949
982
|
|
|
950
983
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
951
984
|
|
|
952
|
-
if (requestParameters['authorization'] != null) {
|
|
953
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
954
|
-
}
|
|
955
|
-
|
|
956
985
|
const response = await this.request({
|
|
957
986
|
path: `/api/v1/publicPoolsMetadata`,
|
|
958
987
|
method: 'GET',
|
|
@@ -972,6 +1001,213 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
972
1001
|
return await response.value();
|
|
973
1002
|
}
|
|
974
1003
|
|
|
1004
|
+
/**
|
|
1005
|
+
* Get api tokens of an account
|
|
1006
|
+
* tokens
|
|
1007
|
+
*/
|
|
1008
|
+
async tokensRaw(requestParameters: TokensRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetApiTokens>> {
|
|
1009
|
+
if (requestParameters['account_index'] == null) {
|
|
1010
|
+
throw new runtime.RequiredError(
|
|
1011
|
+
'account_index',
|
|
1012
|
+
'Required parameter "account_index" was null or undefined when calling tokens().'
|
|
1013
|
+
);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
const queryParameters: any = {};
|
|
1017
|
+
|
|
1018
|
+
if (requestParameters['account_index'] != null) {
|
|
1019
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1023
|
+
|
|
1024
|
+
if (requestParameters['authorization'] != null) {
|
|
1025
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
const response = await this.request({
|
|
1029
|
+
path: `/api/v1/tokens`,
|
|
1030
|
+
method: 'GET',
|
|
1031
|
+
headers: headerParameters,
|
|
1032
|
+
query: queryParameters,
|
|
1033
|
+
}, initOverrides);
|
|
1034
|
+
|
|
1035
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespGetApiTokensFromJSON(jsonValue));
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Get api tokens of an account
|
|
1040
|
+
* tokens
|
|
1041
|
+
*/
|
|
1042
|
+
async tokens(requestParameters: TokensRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetApiTokens> {
|
|
1043
|
+
const response = await this.tokensRaw(requestParameters, initOverrides);
|
|
1044
|
+
return await response.value();
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Create api token
|
|
1049
|
+
* tokens_create
|
|
1050
|
+
*/
|
|
1051
|
+
async tokensCreateRaw(requestParameters: TokensCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespPostApiToken>> {
|
|
1052
|
+
if (requestParameters['name'] == null) {
|
|
1053
|
+
throw new runtime.RequiredError(
|
|
1054
|
+
'name',
|
|
1055
|
+
'Required parameter "name" was null or undefined when calling tokensCreate().'
|
|
1056
|
+
);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
if (requestParameters['account_index'] == null) {
|
|
1060
|
+
throw new runtime.RequiredError(
|
|
1061
|
+
'account_index',
|
|
1062
|
+
'Required parameter "account_index" was null or undefined when calling tokensCreate().'
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
if (requestParameters['expiry'] == null) {
|
|
1067
|
+
throw new runtime.RequiredError(
|
|
1068
|
+
'expiry',
|
|
1069
|
+
'Required parameter "expiry" was null or undefined when calling tokensCreate().'
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
if (requestParameters['sub_account_access'] == null) {
|
|
1074
|
+
throw new runtime.RequiredError(
|
|
1075
|
+
'sub_account_access',
|
|
1076
|
+
'Required parameter "sub_account_access" was null or undefined when calling tokensCreate().'
|
|
1077
|
+
);
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
const queryParameters: any = {};
|
|
1081
|
+
|
|
1082
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1083
|
+
|
|
1084
|
+
if (requestParameters['authorization'] != null) {
|
|
1085
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
const consumes: runtime.Consume[] = [
|
|
1089
|
+
{ contentType: 'multipart/form-data' },
|
|
1090
|
+
];
|
|
1091
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1092
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1093
|
+
|
|
1094
|
+
let formParams: { append(param: string, value: any): any };
|
|
1095
|
+
let useForm = false;
|
|
1096
|
+
if (useForm) {
|
|
1097
|
+
formParams = new FormData();
|
|
1098
|
+
} else {
|
|
1099
|
+
formParams = new URLSearchParams();
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
if (requestParameters['name'] != null) {
|
|
1103
|
+
formParams.append('name', requestParameters['name'] as any);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
if (requestParameters['account_index'] != null) {
|
|
1107
|
+
formParams.append('account_index', requestParameters['account_index'] as any);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
if (requestParameters['expiry'] != null) {
|
|
1111
|
+
formParams.append('expiry', requestParameters['expiry'] as any);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
if (requestParameters['sub_account_access'] != null) {
|
|
1115
|
+
formParams.append('sub_account_access', requestParameters['sub_account_access'] as any);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
if (requestParameters['scopes'] != null) {
|
|
1119
|
+
formParams.append('scopes', requestParameters['scopes'] as any);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
const response = await this.request({
|
|
1123
|
+
path: `/api/v1/tokens/create`,
|
|
1124
|
+
method: 'POST',
|
|
1125
|
+
headers: headerParameters,
|
|
1126
|
+
query: queryParameters,
|
|
1127
|
+
body: formParams,
|
|
1128
|
+
}, initOverrides);
|
|
1129
|
+
|
|
1130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespPostApiTokenFromJSON(jsonValue));
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Create api token
|
|
1135
|
+
* tokens_create
|
|
1136
|
+
*/
|
|
1137
|
+
async tokensCreate(requestParameters: TokensCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespPostApiToken> {
|
|
1138
|
+
const response = await this.tokensCreateRaw(requestParameters, initOverrides);
|
|
1139
|
+
return await response.value();
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Revoke api token
|
|
1144
|
+
* tokens_revoke
|
|
1145
|
+
*/
|
|
1146
|
+
async tokensRevokeRaw(requestParameters: TokensRevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespRevokeApiToken>> {
|
|
1147
|
+
if (requestParameters['token_id'] == null) {
|
|
1148
|
+
throw new runtime.RequiredError(
|
|
1149
|
+
'token_id',
|
|
1150
|
+
'Required parameter "token_id" was null or undefined when calling tokensRevoke().'
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
if (requestParameters['account_index'] == null) {
|
|
1155
|
+
throw new runtime.RequiredError(
|
|
1156
|
+
'account_index',
|
|
1157
|
+
'Required parameter "account_index" was null or undefined when calling tokensRevoke().'
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
const queryParameters: any = {};
|
|
1162
|
+
|
|
1163
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1164
|
+
|
|
1165
|
+
if (requestParameters['authorization'] != null) {
|
|
1166
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
const consumes: runtime.Consume[] = [
|
|
1170
|
+
{ contentType: 'multipart/form-data' },
|
|
1171
|
+
];
|
|
1172
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1173
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1174
|
+
|
|
1175
|
+
let formParams: { append(param: string, value: any): any };
|
|
1176
|
+
let useForm = false;
|
|
1177
|
+
if (useForm) {
|
|
1178
|
+
formParams = new FormData();
|
|
1179
|
+
} else {
|
|
1180
|
+
formParams = new URLSearchParams();
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
if (requestParameters['token_id'] != null) {
|
|
1184
|
+
formParams.append('token_id', requestParameters['token_id'] as any);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
if (requestParameters['account_index'] != null) {
|
|
1188
|
+
formParams.append('account_index', requestParameters['account_index'] as any);
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
const response = await this.request({
|
|
1192
|
+
path: `/api/v1/tokens/revoke`,
|
|
1193
|
+
method: 'POST',
|
|
1194
|
+
headers: headerParameters,
|
|
1195
|
+
query: queryParameters,
|
|
1196
|
+
body: formParams,
|
|
1197
|
+
}, initOverrides);
|
|
1198
|
+
|
|
1199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespRevokeApiTokenFromJSON(jsonValue));
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Revoke api token
|
|
1204
|
+
* tokens_revoke
|
|
1205
|
+
*/
|
|
1206
|
+
async tokensRevoke(requestParameters: TokensRevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespRevokeApiToken> {
|
|
1207
|
+
const response = await this.tokensRevokeRaw(requestParameters, initOverrides);
|
|
1208
|
+
return await response.value();
|
|
1209
|
+
}
|
|
1210
|
+
|
|
975
1211
|
}
|
|
976
1212
|
|
|
977
1213
|
/**
|
package/apis/BridgeApi.ts
CHANGED
|
@@ -420,20 +420,20 @@ export class BridgeApi extends runtime.BaseAPI {
|
|
|
420
420
|
|
|
421
421
|
const queryParameters: any = {};
|
|
422
422
|
|
|
423
|
-
if (requestParameters['
|
|
424
|
-
queryParameters['
|
|
423
|
+
if (requestParameters['authorization'] != null) {
|
|
424
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
if (requestParameters['auth'] != null) {
|
|
428
428
|
queryParameters['auth'] = requestParameters['auth'];
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
if (requestParameters['authorization'] != null) {
|
|
434
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
431
|
+
if (requestParameters['account_index'] != null) {
|
|
432
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
435
433
|
}
|
|
436
434
|
|
|
435
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
436
|
+
|
|
437
437
|
const response = await this.request({
|
|
438
438
|
path: `/api/v1/fastwithdraw/info`,
|
|
439
439
|
method: 'GET',
|
package/apis/InfoApi.ts
CHANGED
|
@@ -85,6 +85,10 @@ export class InfoApi extends runtime.BaseAPI {
|
|
|
85
85
|
|
|
86
86
|
const queryParameters: any = {};
|
|
87
87
|
|
|
88
|
+
if (requestParameters['authorization'] != null) {
|
|
89
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
90
|
+
}
|
|
91
|
+
|
|
88
92
|
if (requestParameters['auth'] != null) {
|
|
89
93
|
queryParameters['auth'] = requestParameters['auth'];
|
|
90
94
|
}
|
|
@@ -99,10 +103,6 @@ export class InfoApi extends runtime.BaseAPI {
|
|
|
99
103
|
|
|
100
104
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
101
105
|
|
|
102
|
-
if (requestParameters['authorization'] != null) {
|
|
103
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
106
|
const response = await this.request({
|
|
107
107
|
path: `/api/v1/transferFeeInfo`,
|
|
108
108
|
method: 'GET',
|
package/apis/OrderApi.ts
CHANGED
|
@@ -132,6 +132,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
132
132
|
|
|
133
133
|
const queryParameters: any = {};
|
|
134
134
|
|
|
135
|
+
if (requestParameters['authorization'] != null) {
|
|
136
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
137
|
+
}
|
|
138
|
+
|
|
135
139
|
if (requestParameters['auth'] != null) {
|
|
136
140
|
queryParameters['auth'] = requestParameters['auth'];
|
|
137
141
|
}
|
|
@@ -150,10 +154,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
150
154
|
|
|
151
155
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
152
156
|
|
|
153
|
-
if (requestParameters['authorization'] != null) {
|
|
154
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
157
|
const response = await this.request({
|
|
158
158
|
path: `/api/v1/export`,
|
|
159
159
|
method: 'GET',
|
|
@@ -194,6 +194,14 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
194
194
|
|
|
195
195
|
const queryParameters: any = {};
|
|
196
196
|
|
|
197
|
+
if (requestParameters['authorization'] != null) {
|
|
198
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (requestParameters['auth'] != null) {
|
|
202
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
if (requestParameters['account_index'] != null) {
|
|
198
206
|
queryParameters['account_index'] = requestParameters['account_index'];
|
|
199
207
|
}
|
|
@@ -202,16 +210,8 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
202
210
|
queryParameters['market_id'] = requestParameters['market_id'];
|
|
203
211
|
}
|
|
204
212
|
|
|
205
|
-
if (requestParameters['auth'] != null) {
|
|
206
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
207
|
-
}
|
|
208
|
-
|
|
209
213
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
210
214
|
|
|
211
|
-
if (requestParameters['authorization'] != null) {
|
|
212
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
215
|
const response = await this.request({
|
|
216
216
|
path: `/api/v1/accountActiveOrders`,
|
|
217
217
|
method: 'GET',
|
|
@@ -252,6 +252,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
252
252
|
|
|
253
253
|
const queryParameters: any = {};
|
|
254
254
|
|
|
255
|
+
if (requestParameters['authorization'] != null) {
|
|
256
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
257
|
+
}
|
|
258
|
+
|
|
255
259
|
if (requestParameters['auth'] != null) {
|
|
256
260
|
queryParameters['auth'] = requestParameters['auth'];
|
|
257
261
|
}
|
|
@@ -282,10 +286,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
282
286
|
|
|
283
287
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
284
288
|
|
|
285
|
-
if (requestParameters['authorization'] != null) {
|
|
286
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
289
|
const response = await this.request({
|
|
290
290
|
path: `/api/v1/accountInactiveOrders`,
|
|
291
291
|
method: 'GET',
|
|
@@ -558,6 +558,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
558
558
|
|
|
559
559
|
const queryParameters: any = {};
|
|
560
560
|
|
|
561
|
+
if (requestParameters['authorization'] != null) {
|
|
562
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
563
|
+
}
|
|
564
|
+
|
|
561
565
|
if (requestParameters['auth'] != null) {
|
|
562
566
|
queryParameters['auth'] = requestParameters['auth'];
|
|
563
567
|
}
|
|
@@ -612,10 +616,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
612
616
|
|
|
613
617
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
614
618
|
|
|
615
|
-
if (requestParameters['authorization'] != null) {
|
|
616
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
619
|
const response = await this.request({
|
|
620
620
|
path: `/api/v1/trades`,
|
|
621
621
|
method: 'GET',
|
package/apis/ReferralApi.ts
CHANGED
|
@@ -158,6 +158,10 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
158
158
|
|
|
159
159
|
const queryParameters: any = {};
|
|
160
160
|
|
|
161
|
+
if (requestParameters['authorization'] != null) {
|
|
162
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
163
|
+
}
|
|
164
|
+
|
|
161
165
|
if (requestParameters['auth'] != null) {
|
|
162
166
|
queryParameters['auth'] = requestParameters['auth'];
|
|
163
167
|
}
|
|
@@ -168,10 +172,6 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
168
172
|
|
|
169
173
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
170
174
|
|
|
171
|
-
if (requestParameters['authorization'] != null) {
|
|
172
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
175
|
const response = await this.request({
|
|
176
176
|
path: `/api/v1/referral/get`,
|
|
177
177
|
method: 'GET',
|
|
@@ -278,6 +278,10 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
278
278
|
|
|
279
279
|
const queryParameters: any = {};
|
|
280
280
|
|
|
281
|
+
if (requestParameters['authorization'] != null) {
|
|
282
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
283
|
+
}
|
|
284
|
+
|
|
281
285
|
if (requestParameters['auth'] != null) {
|
|
282
286
|
queryParameters['auth'] = requestParameters['auth'];
|
|
283
287
|
}
|
|
@@ -288,10 +292,6 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
288
292
|
|
|
289
293
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
290
294
|
|
|
291
|
-
if (requestParameters['authorization'] != null) {
|
|
292
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
295
|
const response = await this.request({
|
|
296
296
|
path: `/api/v1/referral/points`,
|
|
297
297
|
method: 'GET',
|