@chainstream-io/sdk 0.1.8 → 0.1.9
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/README.md +2 -2
- package/dist/esm/index.js +73 -74
- package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
- package/dist/esm/openapi/apis/DexApi.js +205 -176
- package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
- package/dist/esm/openapi/apis/EndpointApi.js +212 -175
- package/dist/esm/openapi/apis/IpfsApi.js +38 -25
- package/dist/esm/openapi/apis/JobsApi.js +65 -48
- package/dist/esm/openapi/apis/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
- package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
- package/dist/esm/openapi/apis/TradeApi.js +233 -208
- package/dist/esm/openapi/apis/TransactionApi.js +42 -29
- package/dist/esm/openapi/apis/WalletApi.js +148 -123
- package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
- package/dist/esm/openapi/runtime.js +119 -118
- package/dist/esm/stream/stream.js +36 -34
- package/dist/index.js +99 -96
- package/dist/openapi/apis/BlockchainApi.js +69 -48
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +74 -53
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +45 -28
- package/dist/openapi/apis/DexApi.js +217 -184
- package/dist/openapi/apis/DexPoolApi.js +49 -32
- package/dist/openapi/apis/EndpointApi.js +220 -179
- package/dist/openapi/apis/IpfsApi.js +44 -27
- package/dist/openapi/apis/JobsApi.js +72 -51
- package/dist/openapi/apis/RankingApi.js +306 -273
- package/dist/openapi/apis/RedPacketApi.js +305 -260
- package/dist/openapi/apis/TokenApi.js +1182 -1089
- package/dist/openapi/apis/TradeApi.js +256 -227
- package/dist/openapi/apis/TransactionApi.js +49 -32
- package/dist/openapi/apis/WalletApi.js +159 -130
- package/dist/openapi/apis/WatchlistApi.js +49 -32
- package/dist/openapi/apis/index.js +31 -15
- package/dist/openapi/index.js +19 -3
- package/dist/openapi/models/BlockchainDTO.js +12 -5
- package/dist/openapi/models/BlockchainLatestBlockDTO.js +12 -5
- package/dist/openapi/models/BooleanResultDTO.js +12 -5
- package/dist/openapi/models/CalculatePnlInput.js +12 -5
- package/dist/openapi/models/Candle.js +15 -8
- package/dist/openapi/models/ClaimRedPacketInput.js +12 -5
- package/dist/openapi/models/CreateEndpointInput.js +12 -5
- package/dist/openapi/models/CreateRedPacketInput.js +12 -5
- package/dist/openapi/models/CreateRedPacketReply.js +12 -5
- package/dist/openapi/models/CreateTokenInput.js +14 -6
- package/dist/openapi/models/CreateTokenReply.js +12 -5
- package/dist/openapi/models/DexDTO.js +12 -5
- package/dist/openapi/models/DexPage.js +15 -8
- package/dist/openapi/models/DexPoolDTO.js +12 -5
- package/dist/openapi/models/EndpointListResponse.js +15 -8
- package/dist/openapi/models/EndpointOperationResponse.js +12 -5
- package/dist/openapi/models/EndpointResponse.js +12 -5
- package/dist/openapi/models/EndpointSecretResponse.js +12 -5
- package/dist/openapi/models/FilterCondition.js +14 -6
- package/dist/openapi/models/GainersAndLosersDTO.js +12 -5
- package/dist/openapi/models/GainersAndLosersPage.js +15 -8
- package/dist/openapi/models/JobDTO.js +12 -5
- package/dist/openapi/models/JobStreamingDTO.js +12 -5
- package/dist/openapi/models/Link.js +14 -6
- package/dist/openapi/models/MoonshotCreateTokenInput.js +18 -10
- package/dist/openapi/models/MoonshotCreateTokenReply.js +12 -5
- package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js +12 -5
- package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js +12 -5
- package/dist/openapi/models/PumpCreateTokenInput.js +15 -7
- package/dist/openapi/models/PumpCreateTokenReply.js +12 -5
- package/dist/openapi/models/QuoteResponse.js +12 -5
- package/dist/openapi/models/RedPacketClaimDTO.js +14 -6
- package/dist/openapi/models/RedPacketClaimsPage.js +15 -8
- package/dist/openapi/models/RedPacketDTO.js +14 -6
- package/dist/openapi/models/RedPacketReply.js +12 -5
- package/dist/openapi/models/RedPacketSendTxInput.js +12 -5
- package/dist/openapi/models/RedPacketSendTxResponse.js +12 -5
- package/dist/openapi/models/RedPacketsPage.js +15 -8
- package/dist/openapi/models/Resolution.js +17 -9
- package/dist/openapi/models/SendTxInput.js +14 -6
- package/dist/openapi/models/SendTxResponse.js +12 -5
- package/dist/openapi/models/SwapInput.js +15 -7
- package/dist/openapi/models/SwapReply.js +12 -5
- package/dist/openapi/models/SwapRouteInput.js +15 -7
- package/dist/openapi/models/SwapRouteResponse.js +15 -8
- package/dist/openapi/models/Token.js +30 -23
- package/dist/openapi/models/TokenCreationDTO.js +14 -6
- package/dist/openapi/models/TokenCreationPage.js +15 -8
- package/dist/openapi/models/TokenCreatorsDTO.js +12 -5
- package/dist/openapi/models/TokenExtraDTO.js +12 -5
- package/dist/openapi/models/TokenHolder.js +12 -5
- package/dist/openapi/models/TokenHolderPage.js +15 -8
- package/dist/openapi/models/TokenListPage.js +15 -8
- package/dist/openapi/models/TokenMarketData.js +12 -5
- package/dist/openapi/models/TokenMetadata.js +21 -14
- package/dist/openapi/models/TokenPage.js +15 -8
- package/dist/openapi/models/TokenPriceDTO.js +12 -5
- package/dist/openapi/models/TokenPricePage.js +15 -8
- package/dist/openapi/models/TokenSocialMediasDTO.js +12 -5
- package/dist/openapi/models/TokenStat.js +12 -5
- package/dist/openapi/models/TopTradersDTO.js +12 -5
- package/dist/openapi/models/TopTradersPage.js +15 -8
- package/dist/openapi/models/TradeDetailDTO.js +12 -5
- package/dist/openapi/models/TradeEvent.js +15 -8
- package/dist/openapi/models/TradePage.js +15 -8
- package/dist/openapi/models/TradeType.js +17 -9
- package/dist/openapi/models/UpdateEndpointInput.js +12 -5
- package/dist/openapi/models/WalletBalanceDetailDTO.js +12 -5
- package/dist/openapi/models/WalletBalancesDTO.js +15 -8
- package/dist/openapi/models/WalletPnlDTO.js +12 -5
- package/dist/openapi/models/index.js +86 -70
- package/dist/openapi/runtime.js +153 -136
- package/dist/stream/index.js +19 -3
- package/dist/stream/stream.fields.js +11 -5
- package/dist/stream/stream.js +45 -39
- package/dist/stream/stream.model.js +13 -10
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,1273 +12,1365 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.SearchSortByEnum = exports.SearchSortEnum = exports.ListTokenSortByEnum = exports.ListTokenSortEnum = exports.ListTokenDirectionEnum = exports.ListTokenChainEnum = exports.GetTopHoldersChainEnum = exports.GetTokensSortDirectionEnum = exports.GetTokensSortByEnum = exports.GetTokensChainEnum = exports.GetTokenChainEnum = exports.GetStatsMultiChainEnum = exports.GetStatsChainEnum = exports.GetSecurityChainEnum = exports.GetPricesDirectionEnum = exports.GetPricesChainEnum = exports.GetPriceByTimeChainEnum = exports.GetPoolsChainEnum = exports.GetMintAndBurnTypeEnum = exports.GetMintAndBurnDirectionEnum = exports.GetMintAndBurnChainEnum = exports.GetMetadataMultiChainEnum = exports.GetMetadataChainEnum = exports.GetMarketDataMultiChainEnum = exports.GetMarketDataChainEnum = exports.GetHoldersMultiChainEnum = exports.GetHoldersDirectionEnum = exports.GetHoldersChainEnum = exports.GetCreationChainEnum = exports.GetCandlesChainEnum = exports.TokenApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
16
28
|
/**
|
|
17
29
|
*
|
|
18
30
|
*/
|
|
19
|
-
|
|
31
|
+
class TokenApi extends runtime.BaseAPI {
|
|
20
32
|
/**
|
|
21
33
|
* CONTROLLER.TOKEN.GET_CANDLES.DESCRIPTION
|
|
22
34
|
* CONTROLLER.TOKEN.GET_CANDLES.SUMMARY
|
|
23
35
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
36
|
+
getCandlesRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['chain'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getCandles().');
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
42
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getCandles().');
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['resolution'] == null) {
|
|
45
|
+
throw new runtime.RequiredError('resolution', 'Required parameter "resolution" was null or undefined when calling getCandles().');
|
|
46
|
+
}
|
|
47
|
+
const queryParameters = {};
|
|
48
|
+
if (requestParameters['resolution'] != null) {
|
|
49
|
+
queryParameters['resolution'] = requestParameters['resolution'];
|
|
50
|
+
}
|
|
51
|
+
if (requestParameters['from'] != null) {
|
|
52
|
+
queryParameters['from'] = requestParameters['from'];
|
|
53
|
+
}
|
|
54
|
+
if (requestParameters['to'] != null) {
|
|
55
|
+
queryParameters['to'] = requestParameters['to'];
|
|
56
|
+
}
|
|
57
|
+
if (requestParameters['limit'] != null) {
|
|
58
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
59
|
+
}
|
|
60
|
+
const headerParameters = {};
|
|
61
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
62
|
+
const token = this.configuration.accessToken;
|
|
63
|
+
const tokenString = yield token("bearer", []);
|
|
64
|
+
if (tokenString) {
|
|
65
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/candles`;
|
|
69
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
70
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
71
|
+
const response = yield this.request({
|
|
72
|
+
path: urlPath,
|
|
73
|
+
method: 'GET',
|
|
74
|
+
headers: headerParameters,
|
|
75
|
+
query: queryParameters,
|
|
76
|
+
}, initOverrides);
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.CandleFromJSON));
|
|
78
|
+
});
|
|
65
79
|
}
|
|
66
80
|
/**
|
|
67
81
|
* CONTROLLER.TOKEN.GET_CANDLES.DESCRIPTION
|
|
68
82
|
* CONTROLLER.TOKEN.GET_CANDLES.SUMMARY
|
|
69
83
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
getCandles(requestParameters, initOverrides) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const response = yield this.getCandlesRaw(requestParameters, initOverrides);
|
|
87
|
+
return yield response.value();
|
|
88
|
+
});
|
|
73
89
|
}
|
|
74
90
|
/**
|
|
75
91
|
* CONTROLLER.TOKEN.GET_CREATION.DESCRIPTION
|
|
76
92
|
* CONTROLLER.TOKEN.GET_CREATION.SUMMARY
|
|
77
93
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
getCreationRaw(requestParameters, initOverrides) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
if (requestParameters['chain'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getCreation().');
|
|
98
|
+
}
|
|
99
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
100
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getCreation().');
|
|
101
|
+
}
|
|
102
|
+
const queryParameters = {};
|
|
103
|
+
const headerParameters = {};
|
|
104
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
+
const token = this.configuration.accessToken;
|
|
106
|
+
const tokenString = yield token("bearer", []);
|
|
107
|
+
if (tokenString) {
|
|
108
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/creation`;
|
|
112
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
113
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
114
|
+
const response = yield this.request({
|
|
115
|
+
path: urlPath,
|
|
116
|
+
method: 'GET',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenCreationDTOFromJSON)(jsonValue));
|
|
121
|
+
});
|
|
104
122
|
}
|
|
105
123
|
/**
|
|
106
124
|
* CONTROLLER.TOKEN.GET_CREATION.DESCRIPTION
|
|
107
125
|
* CONTROLLER.TOKEN.GET_CREATION.SUMMARY
|
|
108
126
|
*/
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
127
|
+
getCreation(requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const response = yield this.getCreationRaw(requestParameters, initOverrides);
|
|
130
|
+
return yield response.value();
|
|
131
|
+
});
|
|
112
132
|
}
|
|
113
133
|
/**
|
|
114
134
|
* CONTROLLER.TOKEN.GET_HOLDERS.DESCRIPTION
|
|
115
135
|
* CONTROLLER.TOKEN.GET_HOLDERS.SUMMARY
|
|
116
136
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
137
|
+
getHoldersRaw(requestParameters, initOverrides) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
if (requestParameters['chain'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getHolders().');
|
|
141
|
+
}
|
|
142
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
143
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getHolders().');
|
|
144
|
+
}
|
|
145
|
+
const queryParameters = {};
|
|
146
|
+
if (requestParameters['cursor'] != null) {
|
|
147
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
148
|
+
}
|
|
149
|
+
if (requestParameters['limit'] != null) {
|
|
150
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
151
|
+
}
|
|
152
|
+
if (requestParameters['direction'] != null) {
|
|
153
|
+
queryParameters['direction'] = requestParameters['direction'];
|
|
154
|
+
}
|
|
155
|
+
const headerParameters = {};
|
|
156
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
157
|
+
const token = this.configuration.accessToken;
|
|
158
|
+
const tokenString = yield token("bearer", []);
|
|
159
|
+
if (tokenString) {
|
|
160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/holders`;
|
|
164
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
165
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
166
|
+
const response = yield this.request({
|
|
167
|
+
path: urlPath,
|
|
168
|
+
method: 'GET',
|
|
169
|
+
headers: headerParameters,
|
|
170
|
+
query: queryParameters,
|
|
171
|
+
}, initOverrides);
|
|
172
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenHolderPageFromJSON)(jsonValue));
|
|
173
|
+
});
|
|
152
174
|
}
|
|
153
175
|
/**
|
|
154
176
|
* CONTROLLER.TOKEN.GET_HOLDERS.DESCRIPTION
|
|
155
177
|
* CONTROLLER.TOKEN.GET_HOLDERS.SUMMARY
|
|
156
178
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
179
|
+
getHolders(requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
const response = yield this.getHoldersRaw(requestParameters, initOverrides);
|
|
182
|
+
return yield response.value();
|
|
183
|
+
});
|
|
160
184
|
}
|
|
161
185
|
/**
|
|
162
186
|
* CONTROLLER.TOKEN.GET_HOLDERS_MULTI.DESCRIPTION
|
|
163
187
|
* CONTROLLER.TOKEN.GET_HOLDERS_MULTI.SUMMARY
|
|
164
188
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
getHoldersMultiRaw(requestParameters, initOverrides) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
if (requestParameters['chain'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getHoldersMulti().');
|
|
193
|
+
}
|
|
194
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
195
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getHoldersMulti().');
|
|
196
|
+
}
|
|
197
|
+
if (requestParameters['walletAddresses'] == null) {
|
|
198
|
+
throw new runtime.RequiredError('walletAddresses', 'Required parameter "walletAddresses" was null or undefined when calling getHoldersMulti().');
|
|
199
|
+
}
|
|
200
|
+
const queryParameters = {};
|
|
201
|
+
if (requestParameters['walletAddresses'] != null) {
|
|
202
|
+
queryParameters['walletAddresses'] = requestParameters['walletAddresses'];
|
|
203
|
+
}
|
|
204
|
+
const headerParameters = {};
|
|
205
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
206
|
+
const token = this.configuration.accessToken;
|
|
207
|
+
const tokenString = yield token("bearer", []);
|
|
208
|
+
if (tokenString) {
|
|
209
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/holders/multi`;
|
|
213
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
214
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
215
|
+
const response = yield this.request({
|
|
216
|
+
path: urlPath,
|
|
217
|
+
method: 'GET',
|
|
218
|
+
headers: headerParameters,
|
|
219
|
+
query: queryParameters,
|
|
220
|
+
}, initOverrides);
|
|
221
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TokenHolderFromJSON));
|
|
222
|
+
});
|
|
197
223
|
}
|
|
198
224
|
/**
|
|
199
225
|
* CONTROLLER.TOKEN.GET_HOLDERS_MULTI.DESCRIPTION
|
|
200
226
|
* CONTROLLER.TOKEN.GET_HOLDERS_MULTI.SUMMARY
|
|
201
227
|
*/
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
228
|
+
getHoldersMulti(requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
const response = yield this.getHoldersMultiRaw(requestParameters, initOverrides);
|
|
231
|
+
return yield response.value();
|
|
232
|
+
});
|
|
205
233
|
}
|
|
206
234
|
/**
|
|
207
235
|
* CONTROLLER.TOKEN.GET_MARKET_CAP.DESCRIPTION
|
|
208
236
|
* CONTROLLER.TOKEN.GET_MARKET_CAP.SUMMARY
|
|
209
237
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
getMarketDataRaw(requestParameters, initOverrides) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
if (requestParameters['chain'] == null) {
|
|
241
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getMarketData().');
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
244
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getMarketData().');
|
|
245
|
+
}
|
|
246
|
+
const queryParameters = {};
|
|
247
|
+
const headerParameters = {};
|
|
248
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
249
|
+
const token = this.configuration.accessToken;
|
|
250
|
+
const tokenString = yield token("bearer", []);
|
|
251
|
+
if (tokenString) {
|
|
252
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/marketData`;
|
|
256
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
257
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
258
|
+
const response = yield this.request({
|
|
259
|
+
path: urlPath,
|
|
260
|
+
method: 'GET',
|
|
261
|
+
headers: headerParameters,
|
|
262
|
+
query: queryParameters,
|
|
263
|
+
}, initOverrides);
|
|
264
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenMarketDataFromJSON)(jsonValue));
|
|
265
|
+
});
|
|
236
266
|
}
|
|
237
267
|
/**
|
|
238
268
|
* CONTROLLER.TOKEN.GET_MARKET_CAP.DESCRIPTION
|
|
239
269
|
* CONTROLLER.TOKEN.GET_MARKET_CAP.SUMMARY
|
|
240
270
|
*/
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
271
|
+
getMarketData(requestParameters, initOverrides) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
const response = yield this.getMarketDataRaw(requestParameters, initOverrides);
|
|
274
|
+
return yield response.value();
|
|
275
|
+
});
|
|
244
276
|
}
|
|
245
277
|
/**
|
|
246
278
|
* CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.DESCRIPTION
|
|
247
279
|
* CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.SUMMARY
|
|
248
280
|
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
281
|
+
getMarketDataMultiRaw(requestParameters, initOverrides) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
if (requestParameters['chain'] == null) {
|
|
284
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getMarketDataMulti().');
|
|
285
|
+
}
|
|
286
|
+
if (requestParameters['tokenAddresses'] == null) {
|
|
287
|
+
throw new runtime.RequiredError('tokenAddresses', 'Required parameter "tokenAddresses" was null or undefined when calling getMarketDataMulti().');
|
|
288
|
+
}
|
|
289
|
+
const queryParameters = {};
|
|
290
|
+
if (requestParameters['tokenAddresses'] != null) {
|
|
291
|
+
queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
|
|
292
|
+
}
|
|
293
|
+
const headerParameters = {};
|
|
294
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
295
|
+
const token = this.configuration.accessToken;
|
|
296
|
+
const tokenString = yield token("bearer", []);
|
|
297
|
+
if (tokenString) {
|
|
298
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
let urlPath = `/v1/token/{chain}/marketData/multi`;
|
|
302
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
303
|
+
const response = yield this.request({
|
|
304
|
+
path: urlPath,
|
|
305
|
+
method: 'GET',
|
|
306
|
+
headers: headerParameters,
|
|
307
|
+
query: queryParameters,
|
|
308
|
+
}, initOverrides);
|
|
309
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, index_1.TokenMarketDataFromJSON));
|
|
310
|
+
});
|
|
277
311
|
}
|
|
278
312
|
/**
|
|
279
313
|
* CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.DESCRIPTION
|
|
280
314
|
* CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.SUMMARY
|
|
281
315
|
*/
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
316
|
+
getMarketDataMulti(requestParameters, initOverrides) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
const response = yield this.getMarketDataMultiRaw(requestParameters, initOverrides);
|
|
319
|
+
return yield response.value();
|
|
320
|
+
});
|
|
285
321
|
}
|
|
286
322
|
/**
|
|
287
323
|
* CONTROLLER.TOKEN.GET_METADATA.DESCRIPTION
|
|
288
324
|
* CONTROLLER.TOKEN.GET_METADATA.SUMMARY
|
|
289
325
|
*/
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
326
|
+
getMetadataRaw(requestParameters, initOverrides) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
if (requestParameters['chain'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getMetadata().');
|
|
330
|
+
}
|
|
331
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
332
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getMetadata().');
|
|
333
|
+
}
|
|
334
|
+
const queryParameters = {};
|
|
335
|
+
const headerParameters = {};
|
|
336
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
337
|
+
const token = this.configuration.accessToken;
|
|
338
|
+
const tokenString = yield token("bearer", []);
|
|
339
|
+
if (tokenString) {
|
|
340
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/metadata`;
|
|
344
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
345
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
346
|
+
const response = yield this.request({
|
|
347
|
+
path: urlPath,
|
|
348
|
+
method: 'GET',
|
|
349
|
+
headers: headerParameters,
|
|
350
|
+
query: queryParameters,
|
|
351
|
+
}, initOverrides);
|
|
352
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenMetadataFromJSON)(jsonValue));
|
|
353
|
+
});
|
|
316
354
|
}
|
|
317
355
|
/**
|
|
318
356
|
* CONTROLLER.TOKEN.GET_METADATA.DESCRIPTION
|
|
319
357
|
* CONTROLLER.TOKEN.GET_METADATA.SUMMARY
|
|
320
358
|
*/
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
359
|
+
getMetadata(requestParameters, initOverrides) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const response = yield this.getMetadataRaw(requestParameters, initOverrides);
|
|
362
|
+
return yield response.value();
|
|
363
|
+
});
|
|
324
364
|
}
|
|
325
365
|
/**
|
|
326
366
|
* CONTROLLER.TOKEN.GET_METADATA_MULTI.DESCRIPTION
|
|
327
367
|
* CONTROLLER.TOKEN.GET_METADATA_MULTI.SUMMARY
|
|
328
368
|
*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
369
|
+
getMetadataMultiRaw(requestParameters, initOverrides) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
if (requestParameters['chain'] == null) {
|
|
372
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getMetadataMulti().');
|
|
373
|
+
}
|
|
374
|
+
if (requestParameters['tokenAddresses'] == null) {
|
|
375
|
+
throw new runtime.RequiredError('tokenAddresses', 'Required parameter "tokenAddresses" was null or undefined when calling getMetadataMulti().');
|
|
376
|
+
}
|
|
377
|
+
const queryParameters = {};
|
|
378
|
+
if (requestParameters['tokenAddresses'] != null) {
|
|
379
|
+
queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
|
|
380
|
+
}
|
|
381
|
+
const headerParameters = {};
|
|
382
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
383
|
+
const token = this.configuration.accessToken;
|
|
384
|
+
const tokenString = yield token("bearer", []);
|
|
385
|
+
if (tokenString) {
|
|
386
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
let urlPath = `/v1/token/{chain}/metadata/multi`;
|
|
390
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
391
|
+
const response = yield this.request({
|
|
392
|
+
path: urlPath,
|
|
393
|
+
method: 'GET',
|
|
394
|
+
headers: headerParameters,
|
|
395
|
+
query: queryParameters,
|
|
396
|
+
}, initOverrides);
|
|
397
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, index_1.TokenMetadataFromJSON));
|
|
398
|
+
});
|
|
357
399
|
}
|
|
358
400
|
/**
|
|
359
401
|
* CONTROLLER.TOKEN.GET_METADATA_MULTI.DESCRIPTION
|
|
360
402
|
* CONTROLLER.TOKEN.GET_METADATA_MULTI.SUMMARY
|
|
361
403
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
404
|
+
getMetadataMulti(requestParameters, initOverrides) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
const response = yield this.getMetadataMultiRaw(requestParameters, initOverrides);
|
|
407
|
+
return yield response.value();
|
|
408
|
+
});
|
|
365
409
|
}
|
|
366
410
|
/**
|
|
367
411
|
* CONTROLLER.TOKEN.GET_MINT_AND_BURN.DESCRIPTION
|
|
368
412
|
* CONTROLLER.TOKEN.GET_MINT_AND_BURN.SUMMARY
|
|
369
413
|
*/
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
414
|
+
getMintAndBurnRaw(requestParameters, initOverrides) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
if (requestParameters['chain'] == null) {
|
|
417
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getMintAndBurn().');
|
|
418
|
+
}
|
|
419
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
420
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getMintAndBurn().');
|
|
421
|
+
}
|
|
422
|
+
const queryParameters = {};
|
|
423
|
+
if (requestParameters['cursor'] != null) {
|
|
424
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
425
|
+
}
|
|
426
|
+
if (requestParameters['limit'] != null) {
|
|
427
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
428
|
+
}
|
|
429
|
+
if (requestParameters['direction'] != null) {
|
|
430
|
+
queryParameters['direction'] = requestParameters['direction'];
|
|
431
|
+
}
|
|
432
|
+
if (requestParameters['type'] != null) {
|
|
433
|
+
queryParameters['type'] = requestParameters['type'];
|
|
434
|
+
}
|
|
435
|
+
const headerParameters = {};
|
|
436
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
437
|
+
const token = this.configuration.accessToken;
|
|
438
|
+
const tokenString = yield token("bearer", []);
|
|
439
|
+
if (tokenString) {
|
|
440
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/mintAndBurn`;
|
|
444
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
445
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
446
|
+
const response = yield this.request({
|
|
447
|
+
path: urlPath,
|
|
448
|
+
method: 'GET',
|
|
449
|
+
headers: headerParameters,
|
|
450
|
+
query: queryParameters,
|
|
451
|
+
}, initOverrides);
|
|
452
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenCreationPageFromJSON)(jsonValue));
|
|
453
|
+
});
|
|
408
454
|
}
|
|
409
455
|
/**
|
|
410
456
|
* CONTROLLER.TOKEN.GET_MINT_AND_BURN.DESCRIPTION
|
|
411
457
|
* CONTROLLER.TOKEN.GET_MINT_AND_BURN.SUMMARY
|
|
412
458
|
*/
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
459
|
+
getMintAndBurn(requestParameters, initOverrides) {
|
|
460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
461
|
+
const response = yield this.getMintAndBurnRaw(requestParameters, initOverrides);
|
|
462
|
+
return yield response.value();
|
|
463
|
+
});
|
|
416
464
|
}
|
|
417
465
|
/**
|
|
418
466
|
* CONTROLLER.TOKEN.GET_POOLS.DESCRIPTION
|
|
419
467
|
* CONTROLLER.TOKEN.GET_POOLS.SUMMARY
|
|
420
468
|
*/
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
469
|
+
getPoolsRaw(requestParameters, initOverrides) {
|
|
470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
+
if (requestParameters['chain'] == null) {
|
|
472
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getPools().');
|
|
473
|
+
}
|
|
474
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
475
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getPools().');
|
|
476
|
+
}
|
|
477
|
+
const queryParameters = {};
|
|
478
|
+
const headerParameters = {};
|
|
479
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
480
|
+
const token = this.configuration.accessToken;
|
|
481
|
+
const tokenString = yield token("bearer", []);
|
|
482
|
+
if (tokenString) {
|
|
483
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/pools`;
|
|
487
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
488
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
489
|
+
const response = yield this.request({
|
|
490
|
+
path: urlPath,
|
|
491
|
+
method: 'GET',
|
|
492
|
+
headers: headerParameters,
|
|
493
|
+
query: queryParameters,
|
|
494
|
+
}, initOverrides);
|
|
495
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.DexPoolDTOFromJSON));
|
|
496
|
+
});
|
|
447
497
|
}
|
|
448
498
|
/**
|
|
449
499
|
* CONTROLLER.TOKEN.GET_POOLS.DESCRIPTION
|
|
450
500
|
* CONTROLLER.TOKEN.GET_POOLS.SUMMARY
|
|
451
501
|
*/
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
502
|
+
getPools(requestParameters, initOverrides) {
|
|
503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
const response = yield this.getPoolsRaw(requestParameters, initOverrides);
|
|
505
|
+
return yield response.value();
|
|
506
|
+
});
|
|
455
507
|
}
|
|
456
508
|
/**
|
|
457
509
|
* CONTROLLER.TOKEN.GET_PRICE_BY_TIME.DESCRIPTION
|
|
458
510
|
* CONTROLLER.TOKEN.GET_PRICE_BY_TIME.SUMMARY
|
|
459
511
|
*/
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
512
|
+
getPriceByTimeRaw(requestParameters, initOverrides) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
if (requestParameters['chain'] == null) {
|
|
515
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getPriceByTime().');
|
|
516
|
+
}
|
|
517
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
518
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getPriceByTime().');
|
|
519
|
+
}
|
|
520
|
+
if (requestParameters['timestamp'] == null) {
|
|
521
|
+
throw new runtime.RequiredError('timestamp', 'Required parameter "timestamp" was null or undefined when calling getPriceByTime().');
|
|
522
|
+
}
|
|
523
|
+
const queryParameters = {};
|
|
524
|
+
if (requestParameters['timestamp'] != null) {
|
|
525
|
+
queryParameters['timestamp'] = requestParameters['timestamp'];
|
|
526
|
+
}
|
|
527
|
+
const headerParameters = {};
|
|
528
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
529
|
+
const token = this.configuration.accessToken;
|
|
530
|
+
const tokenString = yield token("bearer", []);
|
|
531
|
+
if (tokenString) {
|
|
532
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/price`;
|
|
536
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
537
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
538
|
+
const response = yield this.request({
|
|
539
|
+
path: urlPath,
|
|
540
|
+
method: 'GET',
|
|
541
|
+
headers: headerParameters,
|
|
542
|
+
query: queryParameters,
|
|
543
|
+
}, initOverrides);
|
|
544
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenPriceDTOFromJSON)(jsonValue));
|
|
545
|
+
});
|
|
492
546
|
}
|
|
493
547
|
/**
|
|
494
548
|
* CONTROLLER.TOKEN.GET_PRICE_BY_TIME.DESCRIPTION
|
|
495
549
|
* CONTROLLER.TOKEN.GET_PRICE_BY_TIME.SUMMARY
|
|
496
550
|
*/
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
551
|
+
getPriceByTime(requestParameters, initOverrides) {
|
|
552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
+
const response = yield this.getPriceByTimeRaw(requestParameters, initOverrides);
|
|
554
|
+
return yield response.value();
|
|
555
|
+
});
|
|
500
556
|
}
|
|
501
557
|
/**
|
|
502
558
|
* CONTROLLER.TOKEN.GET_PRICES.DESCRIPTION
|
|
503
559
|
* CONTROLLER.TOKEN.GET_PRICES.SUMMARY
|
|
504
560
|
*/
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
561
|
+
getPricesRaw(requestParameters, initOverrides) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
+
if (requestParameters['chain'] == null) {
|
|
564
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getPrices().');
|
|
565
|
+
}
|
|
566
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
567
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getPrices().');
|
|
568
|
+
}
|
|
569
|
+
const queryParameters = {};
|
|
570
|
+
if (requestParameters['cursor'] != null) {
|
|
571
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
572
|
+
}
|
|
573
|
+
if (requestParameters['limit'] != null) {
|
|
574
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
575
|
+
}
|
|
576
|
+
if (requestParameters['direction'] != null) {
|
|
577
|
+
queryParameters['direction'] = requestParameters['direction'];
|
|
578
|
+
}
|
|
579
|
+
const headerParameters = {};
|
|
580
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
581
|
+
const token = this.configuration.accessToken;
|
|
582
|
+
const tokenString = yield token("bearer", []);
|
|
583
|
+
if (tokenString) {
|
|
584
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/prices`;
|
|
588
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
589
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
590
|
+
const response = yield this.request({
|
|
591
|
+
path: urlPath,
|
|
592
|
+
method: 'GET',
|
|
593
|
+
headers: headerParameters,
|
|
594
|
+
query: queryParameters,
|
|
595
|
+
}, initOverrides);
|
|
596
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenPricePageFromJSON)(jsonValue));
|
|
597
|
+
});
|
|
540
598
|
}
|
|
541
599
|
/**
|
|
542
600
|
* CONTROLLER.TOKEN.GET_PRICES.DESCRIPTION
|
|
543
601
|
* CONTROLLER.TOKEN.GET_PRICES.SUMMARY
|
|
544
602
|
*/
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
603
|
+
getPrices(requestParameters, initOverrides) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
605
|
+
const response = yield this.getPricesRaw(requestParameters, initOverrides);
|
|
606
|
+
return yield response.value();
|
|
607
|
+
});
|
|
548
608
|
}
|
|
549
609
|
/**
|
|
550
610
|
* CONTROLLER.TOKEN.GET_SECURITY.DESCRIPTION
|
|
551
611
|
* CONTROLLER.TOKEN.GET_SECURITY.SUMMARY
|
|
552
612
|
*/
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
613
|
+
getSecurityRaw(requestParameters, initOverrides) {
|
|
614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
615
|
+
if (requestParameters['chain'] == null) {
|
|
616
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getSecurity().');
|
|
617
|
+
}
|
|
618
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
619
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getSecurity().');
|
|
620
|
+
}
|
|
621
|
+
const queryParameters = {};
|
|
622
|
+
const headerParameters = {};
|
|
623
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
624
|
+
const token = this.configuration.accessToken;
|
|
625
|
+
const tokenString = yield token("bearer", []);
|
|
626
|
+
if (tokenString) {
|
|
627
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/security`;
|
|
631
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
632
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
633
|
+
const response = yield this.request({
|
|
634
|
+
path: urlPath,
|
|
635
|
+
method: 'GET',
|
|
636
|
+
headers: headerParameters,
|
|
637
|
+
query: queryParameters,
|
|
638
|
+
}, initOverrides);
|
|
639
|
+
return new runtime.JSONApiResponse(response);
|
|
640
|
+
});
|
|
579
641
|
}
|
|
580
642
|
/**
|
|
581
643
|
* CONTROLLER.TOKEN.GET_SECURITY.DESCRIPTION
|
|
582
644
|
* CONTROLLER.TOKEN.GET_SECURITY.SUMMARY
|
|
583
645
|
*/
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
646
|
+
getSecurity(requestParameters, initOverrides) {
|
|
647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
648
|
+
const response = yield this.getSecurityRaw(requestParameters, initOverrides);
|
|
649
|
+
return yield response.value();
|
|
650
|
+
});
|
|
587
651
|
}
|
|
588
652
|
/**
|
|
589
653
|
* CONTROLLER.TOKEN.GET_STATS.DESCRIPTION
|
|
590
654
|
* CONTROLLER.TOKEN.GET_STATS.SUMMARY
|
|
591
655
|
*/
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
656
|
+
getStatsRaw(requestParameters, initOverrides) {
|
|
657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
658
|
+
if (requestParameters['chain'] == null) {
|
|
659
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getStats().');
|
|
660
|
+
}
|
|
661
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
662
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getStats().');
|
|
663
|
+
}
|
|
664
|
+
const queryParameters = {};
|
|
665
|
+
const headerParameters = {};
|
|
666
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
667
|
+
const token = this.configuration.accessToken;
|
|
668
|
+
const tokenString = yield token("bearer", []);
|
|
669
|
+
if (tokenString) {
|
|
670
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/stats`;
|
|
674
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
675
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
676
|
+
const response = yield this.request({
|
|
677
|
+
path: urlPath,
|
|
678
|
+
method: 'GET',
|
|
679
|
+
headers: headerParameters,
|
|
680
|
+
query: queryParameters,
|
|
681
|
+
}, initOverrides);
|
|
682
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenStatFromJSON)(jsonValue));
|
|
683
|
+
});
|
|
618
684
|
}
|
|
619
685
|
/**
|
|
620
686
|
* CONTROLLER.TOKEN.GET_STATS.DESCRIPTION
|
|
621
687
|
* CONTROLLER.TOKEN.GET_STATS.SUMMARY
|
|
622
688
|
*/
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
689
|
+
getStats(requestParameters, initOverrides) {
|
|
690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
691
|
+
const response = yield this.getStatsRaw(requestParameters, initOverrides);
|
|
692
|
+
return yield response.value();
|
|
693
|
+
});
|
|
626
694
|
}
|
|
627
695
|
/**
|
|
628
696
|
* CONTROLLER.TOKEN.GET_STATS_MULTI.DESCRIPTION
|
|
629
697
|
* CONTROLLER.TOKEN.GET_STATS_MULTI.SUMMARY
|
|
630
698
|
*/
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
699
|
+
getStatsMultiRaw(requestParameters, initOverrides) {
|
|
700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
701
|
+
if (requestParameters['chain'] == null) {
|
|
702
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getStatsMulti().');
|
|
703
|
+
}
|
|
704
|
+
if (requestParameters['tokenAddresses'] == null) {
|
|
705
|
+
throw new runtime.RequiredError('tokenAddresses', 'Required parameter "tokenAddresses" was null or undefined when calling getStatsMulti().');
|
|
706
|
+
}
|
|
707
|
+
const queryParameters = {};
|
|
708
|
+
if (requestParameters['tokenAddresses'] != null) {
|
|
709
|
+
queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
|
|
710
|
+
}
|
|
711
|
+
const headerParameters = {};
|
|
712
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
713
|
+
const token = this.configuration.accessToken;
|
|
714
|
+
const tokenString = yield token("bearer", []);
|
|
715
|
+
if (tokenString) {
|
|
716
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
let urlPath = `/v1/token/{chain}/stats/multi`;
|
|
720
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
721
|
+
const response = yield this.request({
|
|
722
|
+
path: urlPath,
|
|
723
|
+
method: 'GET',
|
|
724
|
+
headers: headerParameters,
|
|
725
|
+
query: queryParameters,
|
|
726
|
+
}, initOverrides);
|
|
727
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, index_1.TokenStatFromJSON));
|
|
728
|
+
});
|
|
659
729
|
}
|
|
660
730
|
/**
|
|
661
731
|
* CONTROLLER.TOKEN.GET_STATS_MULTI.DESCRIPTION
|
|
662
732
|
* CONTROLLER.TOKEN.GET_STATS_MULTI.SUMMARY
|
|
663
733
|
*/
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
734
|
+
getStatsMulti(requestParameters, initOverrides) {
|
|
735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
const response = yield this.getStatsMultiRaw(requestParameters, initOverrides);
|
|
737
|
+
return yield response.value();
|
|
738
|
+
});
|
|
667
739
|
}
|
|
668
740
|
/**
|
|
669
741
|
* CONTROLLER.TOKEN.GET.DESCRIPTION
|
|
670
742
|
* CONTROLLER.TOKEN.GET.SUMMARY
|
|
671
743
|
*/
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
744
|
+
getTokenRaw(requestParameters, initOverrides) {
|
|
745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
746
|
+
if (requestParameters['chain'] == null) {
|
|
747
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getToken().');
|
|
748
|
+
}
|
|
749
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
750
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getToken().');
|
|
751
|
+
}
|
|
752
|
+
const queryParameters = {};
|
|
753
|
+
const headerParameters = {};
|
|
754
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
755
|
+
const token = this.configuration.accessToken;
|
|
756
|
+
const tokenString = yield token("bearer", []);
|
|
757
|
+
if (tokenString) {
|
|
758
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}`;
|
|
762
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
763
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
764
|
+
const response = yield this.request({
|
|
765
|
+
path: urlPath,
|
|
766
|
+
method: 'GET',
|
|
767
|
+
headers: headerParameters,
|
|
768
|
+
query: queryParameters,
|
|
769
|
+
}, initOverrides);
|
|
770
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenFromJSON)(jsonValue));
|
|
771
|
+
});
|
|
698
772
|
}
|
|
699
773
|
/**
|
|
700
774
|
* CONTROLLER.TOKEN.GET.DESCRIPTION
|
|
701
775
|
* CONTROLLER.TOKEN.GET.SUMMARY
|
|
702
776
|
*/
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
777
|
+
getToken(requestParameters, initOverrides) {
|
|
778
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
779
|
+
const response = yield this.getTokenRaw(requestParameters, initOverrides);
|
|
780
|
+
return yield response.value();
|
|
781
|
+
});
|
|
706
782
|
}
|
|
707
783
|
/**
|
|
708
784
|
* CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
|
|
709
785
|
* CONTROLLER.TOKEN.GET_TOKENS.SUMMARY
|
|
710
786
|
*/
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
787
|
+
getTokensRaw(requestParameters, initOverrides) {
|
|
788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
789
|
+
if (requestParameters['chain'] == null) {
|
|
790
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getTokens().');
|
|
791
|
+
}
|
|
792
|
+
if (requestParameters['tokenAddresses'] == null) {
|
|
793
|
+
throw new runtime.RequiredError('tokenAddresses', 'Required parameter "tokenAddresses" was null or undefined when calling getTokens().');
|
|
794
|
+
}
|
|
795
|
+
const queryParameters = {};
|
|
796
|
+
if (requestParameters['tokenAddresses'] != null) {
|
|
797
|
+
queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
|
|
798
|
+
}
|
|
799
|
+
if (requestParameters['sortBy'] != null) {
|
|
800
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
801
|
+
}
|
|
802
|
+
if (requestParameters['sortDirection'] != null) {
|
|
803
|
+
queryParameters['sortDirection'] = requestParameters['sortDirection'];
|
|
804
|
+
}
|
|
805
|
+
if (requestParameters['filterBy'] != null) {
|
|
806
|
+
queryParameters['filterBy'] = requestParameters['filterBy'];
|
|
807
|
+
}
|
|
808
|
+
const headerParameters = {};
|
|
809
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
810
|
+
const token = this.configuration.accessToken;
|
|
811
|
+
const tokenString = yield token("bearer", []);
|
|
812
|
+
if (tokenString) {
|
|
813
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
let urlPath = `/v1/token/{chain}/multi`;
|
|
817
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
818
|
+
const response = yield this.request({
|
|
819
|
+
path: urlPath,
|
|
820
|
+
method: 'GET',
|
|
821
|
+
headers: headerParameters,
|
|
822
|
+
query: queryParameters,
|
|
823
|
+
}, initOverrides);
|
|
824
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.TokenFromJSON));
|
|
825
|
+
});
|
|
748
826
|
}
|
|
749
827
|
/**
|
|
750
828
|
* CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
|
|
751
829
|
* CONTROLLER.TOKEN.GET_TOKENS.SUMMARY
|
|
752
830
|
*/
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
831
|
+
getTokens(requestParameters, initOverrides) {
|
|
832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
833
|
+
const response = yield this.getTokensRaw(requestParameters, initOverrides);
|
|
834
|
+
return yield response.value();
|
|
835
|
+
});
|
|
756
836
|
}
|
|
757
837
|
/**
|
|
758
838
|
* CONTROLLER.TOKEN.GET_TOP_HOLDERS.DESCRIPTION
|
|
759
839
|
* CONTROLLER.TOKEN.GET_TOP_HOLDERS.SUMMARY
|
|
760
840
|
*/
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
841
|
+
getTopHoldersRaw(requestParameters, initOverrides) {
|
|
842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
843
|
+
if (requestParameters['chain'] == null) {
|
|
844
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling getTopHolders().');
|
|
845
|
+
}
|
|
846
|
+
if (requestParameters['tokenAddress'] == null) {
|
|
847
|
+
throw new runtime.RequiredError('tokenAddress', 'Required parameter "tokenAddress" was null or undefined when calling getTopHolders().');
|
|
848
|
+
}
|
|
849
|
+
const queryParameters = {};
|
|
850
|
+
const headerParameters = {};
|
|
851
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
852
|
+
const token = this.configuration.accessToken;
|
|
853
|
+
const tokenString = yield token("bearer", []);
|
|
854
|
+
if (tokenString) {
|
|
855
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
let urlPath = `/v1/token/{chain}/{tokenAddress}/topHolders`;
|
|
859
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
860
|
+
urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
|
|
861
|
+
const response = yield this.request({
|
|
862
|
+
path: urlPath,
|
|
863
|
+
method: 'GET',
|
|
864
|
+
headers: headerParameters,
|
|
865
|
+
query: queryParameters,
|
|
866
|
+
}, initOverrides);
|
|
867
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenHolderPageFromJSON)(jsonValue));
|
|
868
|
+
});
|
|
787
869
|
}
|
|
788
870
|
/**
|
|
789
871
|
* CONTROLLER.TOKEN.GET_TOP_HOLDERS.DESCRIPTION
|
|
790
872
|
* CONTROLLER.TOKEN.GET_TOP_HOLDERS.SUMMARY
|
|
791
873
|
*/
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
874
|
+
getTopHolders(requestParameters, initOverrides) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
+
const response = yield this.getTopHoldersRaw(requestParameters, initOverrides);
|
|
877
|
+
return yield response.value();
|
|
878
|
+
});
|
|
795
879
|
}
|
|
796
880
|
/**
|
|
797
881
|
* CONTROLLER.TOKEN.GET_TOKEN_LIST.DESCRIPTION
|
|
798
882
|
* CONTROLLER.TOKEN.GET_TOKEN_LIST.SUMMARY
|
|
799
883
|
*/
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
884
|
+
listTokenRaw(requestParameters, initOverrides) {
|
|
885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
886
|
+
if (requestParameters['chain'] == null) {
|
|
887
|
+
throw new runtime.RequiredError('chain', 'Required parameter "chain" was null or undefined when calling listToken().');
|
|
888
|
+
}
|
|
889
|
+
const queryParameters = {};
|
|
890
|
+
if (requestParameters['cursor'] != null) {
|
|
891
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
892
|
+
}
|
|
893
|
+
if (requestParameters['limit'] != null) {
|
|
894
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
895
|
+
}
|
|
896
|
+
if (requestParameters['direction'] != null) {
|
|
897
|
+
queryParameters['direction'] = requestParameters['direction'];
|
|
898
|
+
}
|
|
899
|
+
if (requestParameters['sort'] != null) {
|
|
900
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
901
|
+
}
|
|
902
|
+
if (requestParameters['sortBy'] != null) {
|
|
903
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
904
|
+
}
|
|
905
|
+
if (requestParameters['minH24VolumeInUsd'] != null) {
|
|
906
|
+
queryParameters['min_h24_volume_in_usd'] = requestParameters['minH24VolumeInUsd'];
|
|
907
|
+
}
|
|
908
|
+
if (requestParameters['maxH24VolumeInUsd'] != null) {
|
|
909
|
+
queryParameters['max_h24_volume_in_usd'] = requestParameters['maxH24VolumeInUsd'];
|
|
910
|
+
}
|
|
911
|
+
if (requestParameters['minH24PriceChangeRatio'] != null) {
|
|
912
|
+
queryParameters['min_h24_price_change_ratio'] = requestParameters['minH24PriceChangeRatio'];
|
|
913
|
+
}
|
|
914
|
+
if (requestParameters['maxH24PriceChangeRatio'] != null) {
|
|
915
|
+
queryParameters['max_h24_price_change_ratio'] = requestParameters['maxH24PriceChangeRatio'];
|
|
916
|
+
}
|
|
917
|
+
if (requestParameters['minH24Buys'] != null) {
|
|
918
|
+
queryParameters['min_h24_buys'] = requestParameters['minH24Buys'];
|
|
919
|
+
}
|
|
920
|
+
if (requestParameters['maxH24Buys'] != null) {
|
|
921
|
+
queryParameters['max_h24_buys'] = requestParameters['maxH24Buys'];
|
|
922
|
+
}
|
|
923
|
+
if (requestParameters['minH24Sells'] != null) {
|
|
924
|
+
queryParameters['min_h24_sells'] = requestParameters['minH24Sells'];
|
|
925
|
+
}
|
|
926
|
+
if (requestParameters['maxH24Sells'] != null) {
|
|
927
|
+
queryParameters['max_h24_sells'] = requestParameters['maxH24Sells'];
|
|
928
|
+
}
|
|
929
|
+
if (requestParameters['minH24Trades'] != null) {
|
|
930
|
+
queryParameters['min_h24_trades'] = requestParameters['minH24Trades'];
|
|
931
|
+
}
|
|
932
|
+
if (requestParameters['maxH24Trades'] != null) {
|
|
933
|
+
queryParameters['max_h24_trades'] = requestParameters['maxH24Trades'];
|
|
934
|
+
}
|
|
935
|
+
if (requestParameters['minH24Buyers'] != null) {
|
|
936
|
+
queryParameters['min_h24_buyers'] = requestParameters['minH24Buyers'];
|
|
937
|
+
}
|
|
938
|
+
if (requestParameters['maxH24Buyers'] != null) {
|
|
939
|
+
queryParameters['max_h24_buyers'] = requestParameters['maxH24Buyers'];
|
|
940
|
+
}
|
|
941
|
+
if (requestParameters['minH24Sellers'] != null) {
|
|
942
|
+
queryParameters['min_h24_sellers'] = requestParameters['minH24Sellers'];
|
|
943
|
+
}
|
|
944
|
+
if (requestParameters['maxH24Sellers'] != null) {
|
|
945
|
+
queryParameters['max_h24_sellers'] = requestParameters['maxH24Sellers'];
|
|
946
|
+
}
|
|
947
|
+
if (requestParameters['minH24BuyVolumeInUsd'] != null) {
|
|
948
|
+
queryParameters['min_h24_buy_volume_in_usd'] = requestParameters['minH24BuyVolumeInUsd'];
|
|
949
|
+
}
|
|
950
|
+
if (requestParameters['maxH24BuyVolumeInUsd'] != null) {
|
|
951
|
+
queryParameters['max_h24_buy_volume_in_usd'] = requestParameters['maxH24BuyVolumeInUsd'];
|
|
952
|
+
}
|
|
953
|
+
if (requestParameters['minH24SellVolumeInUsd'] != null) {
|
|
954
|
+
queryParameters['min_h24_sell_volume_in_usd'] = requestParameters['minH24SellVolumeInUsd'];
|
|
955
|
+
}
|
|
956
|
+
if (requestParameters['maxH24SellVolumeInUsd'] != null) {
|
|
957
|
+
queryParameters['max_h24_sell_volume_in_usd'] = requestParameters['maxH24SellVolumeInUsd'];
|
|
958
|
+
}
|
|
959
|
+
if (requestParameters['minH4VolumeInUsd'] != null) {
|
|
960
|
+
queryParameters['min_h4_volume_in_usd'] = requestParameters['minH4VolumeInUsd'];
|
|
961
|
+
}
|
|
962
|
+
if (requestParameters['maxH4VolumeInUsd'] != null) {
|
|
963
|
+
queryParameters['max_h4_volume_in_usd'] = requestParameters['maxH4VolumeInUsd'];
|
|
964
|
+
}
|
|
965
|
+
if (requestParameters['minH4PriceChangeRatio'] != null) {
|
|
966
|
+
queryParameters['min_h4_price_change_ratio'] = requestParameters['minH4PriceChangeRatio'];
|
|
967
|
+
}
|
|
968
|
+
if (requestParameters['maxH4PriceChangeRatio'] != null) {
|
|
969
|
+
queryParameters['max_h4_price_change_ratio'] = requestParameters['maxH4PriceChangeRatio'];
|
|
970
|
+
}
|
|
971
|
+
if (requestParameters['minH4Buys'] != null) {
|
|
972
|
+
queryParameters['min_h4_buys'] = requestParameters['minH4Buys'];
|
|
973
|
+
}
|
|
974
|
+
if (requestParameters['maxH4Buys'] != null) {
|
|
975
|
+
queryParameters['max_h4_buys'] = requestParameters['maxH4Buys'];
|
|
976
|
+
}
|
|
977
|
+
if (requestParameters['minH4Sells'] != null) {
|
|
978
|
+
queryParameters['min_h4_sells'] = requestParameters['minH4Sells'];
|
|
979
|
+
}
|
|
980
|
+
if (requestParameters['maxH4Sells'] != null) {
|
|
981
|
+
queryParameters['max_h4_sells'] = requestParameters['maxH4Sells'];
|
|
982
|
+
}
|
|
983
|
+
if (requestParameters['minH4Trades'] != null) {
|
|
984
|
+
queryParameters['min_h4_trades'] = requestParameters['minH4Trades'];
|
|
985
|
+
}
|
|
986
|
+
if (requestParameters['maxH4Trades'] != null) {
|
|
987
|
+
queryParameters['max_h4_trades'] = requestParameters['maxH4Trades'];
|
|
988
|
+
}
|
|
989
|
+
if (requestParameters['minH4Buyers'] != null) {
|
|
990
|
+
queryParameters['min_h4_buyers'] = requestParameters['minH4Buyers'];
|
|
991
|
+
}
|
|
992
|
+
if (requestParameters['maxH4Buyers'] != null) {
|
|
993
|
+
queryParameters['max_h4_buyers'] = requestParameters['maxH4Buyers'];
|
|
994
|
+
}
|
|
995
|
+
if (requestParameters['minH4Sellers'] != null) {
|
|
996
|
+
queryParameters['min_h4_sellers'] = requestParameters['minH4Sellers'];
|
|
997
|
+
}
|
|
998
|
+
if (requestParameters['maxH4Sellers'] != null) {
|
|
999
|
+
queryParameters['max_h4_sellers'] = requestParameters['maxH4Sellers'];
|
|
1000
|
+
}
|
|
1001
|
+
if (requestParameters['minH4BuyVolumeInUsd'] != null) {
|
|
1002
|
+
queryParameters['min_h4_buy_volume_in_usd'] = requestParameters['minH4BuyVolumeInUsd'];
|
|
1003
|
+
}
|
|
1004
|
+
if (requestParameters['maxH4BuyVolumeInUsd'] != null) {
|
|
1005
|
+
queryParameters['max_h4_buy_volume_in_usd'] = requestParameters['maxH4BuyVolumeInUsd'];
|
|
1006
|
+
}
|
|
1007
|
+
if (requestParameters['minH4SellVolumeInUsd'] != null) {
|
|
1008
|
+
queryParameters['min_h4_sell_volume_in_usd'] = requestParameters['minH4SellVolumeInUsd'];
|
|
1009
|
+
}
|
|
1010
|
+
if (requestParameters['maxH4SellVolumeInUsd'] != null) {
|
|
1011
|
+
queryParameters['max_h4_sell_volume_in_usd'] = requestParameters['maxH4SellVolumeInUsd'];
|
|
1012
|
+
}
|
|
1013
|
+
if (requestParameters['minH1VolumeInUsd'] != null) {
|
|
1014
|
+
queryParameters['min_h1_volume_in_usd'] = requestParameters['minH1VolumeInUsd'];
|
|
1015
|
+
}
|
|
1016
|
+
if (requestParameters['maxH1VolumeInUsd'] != null) {
|
|
1017
|
+
queryParameters['max_h1_volume_in_usd'] = requestParameters['maxH1VolumeInUsd'];
|
|
1018
|
+
}
|
|
1019
|
+
if (requestParameters['minH1PriceChangeRatio'] != null) {
|
|
1020
|
+
queryParameters['min_h1_price_change_ratio'] = requestParameters['minH1PriceChangeRatio'];
|
|
1021
|
+
}
|
|
1022
|
+
if (requestParameters['maxH1PriceChangeRatio'] != null) {
|
|
1023
|
+
queryParameters['max_h1_price_change_ratio'] = requestParameters['maxH1PriceChangeRatio'];
|
|
1024
|
+
}
|
|
1025
|
+
if (requestParameters['minH1Buys'] != null) {
|
|
1026
|
+
queryParameters['min_h1_buys'] = requestParameters['minH1Buys'];
|
|
1027
|
+
}
|
|
1028
|
+
if (requestParameters['maxH1Buys'] != null) {
|
|
1029
|
+
queryParameters['max_h1_buys'] = requestParameters['maxH1Buys'];
|
|
1030
|
+
}
|
|
1031
|
+
if (requestParameters['minH1Sells'] != null) {
|
|
1032
|
+
queryParameters['min_h1_sells'] = requestParameters['minH1Sells'];
|
|
1033
|
+
}
|
|
1034
|
+
if (requestParameters['maxH1Sells'] != null) {
|
|
1035
|
+
queryParameters['max_h1_sells'] = requestParameters['maxH1Sells'];
|
|
1036
|
+
}
|
|
1037
|
+
if (requestParameters['minH1Trades'] != null) {
|
|
1038
|
+
queryParameters['min_h1_trades'] = requestParameters['minH1Trades'];
|
|
1039
|
+
}
|
|
1040
|
+
if (requestParameters['maxH1Trades'] != null) {
|
|
1041
|
+
queryParameters['max_h1_trades'] = requestParameters['maxH1Trades'];
|
|
1042
|
+
}
|
|
1043
|
+
if (requestParameters['minH1Buyers'] != null) {
|
|
1044
|
+
queryParameters['min_h1_buyers'] = requestParameters['minH1Buyers'];
|
|
1045
|
+
}
|
|
1046
|
+
if (requestParameters['maxH1Buyers'] != null) {
|
|
1047
|
+
queryParameters['max_h1_buyers'] = requestParameters['maxH1Buyers'];
|
|
1048
|
+
}
|
|
1049
|
+
if (requestParameters['minH1Sellers'] != null) {
|
|
1050
|
+
queryParameters['min_h1_sellers'] = requestParameters['minH1Sellers'];
|
|
1051
|
+
}
|
|
1052
|
+
if (requestParameters['maxH1Sellers'] != null) {
|
|
1053
|
+
queryParameters['max_h1_sellers'] = requestParameters['maxH1Sellers'];
|
|
1054
|
+
}
|
|
1055
|
+
if (requestParameters['minH1BuyVolumeInUsd'] != null) {
|
|
1056
|
+
queryParameters['min_h1_buy_volume_in_usd'] = requestParameters['minH1BuyVolumeInUsd'];
|
|
1057
|
+
}
|
|
1058
|
+
if (requestParameters['maxH1BuyVolumeInUsd'] != null) {
|
|
1059
|
+
queryParameters['max_h1_buy_volume_in_usd'] = requestParameters['maxH1BuyVolumeInUsd'];
|
|
1060
|
+
}
|
|
1061
|
+
if (requestParameters['minH1SellVolumeInUsd'] != null) {
|
|
1062
|
+
queryParameters['min_h1_sell_volume_in_usd'] = requestParameters['minH1SellVolumeInUsd'];
|
|
1063
|
+
}
|
|
1064
|
+
if (requestParameters['maxH1SellVolumeInUsd'] != null) {
|
|
1065
|
+
queryParameters['max_h1_sell_volume_in_usd'] = requestParameters['maxH1SellVolumeInUsd'];
|
|
1066
|
+
}
|
|
1067
|
+
if (requestParameters['minM30VolumeInUsd'] != null) {
|
|
1068
|
+
queryParameters['min_m30_volume_in_usd'] = requestParameters['minM30VolumeInUsd'];
|
|
1069
|
+
}
|
|
1070
|
+
if (requestParameters['maxM30VolumeInUsd'] != null) {
|
|
1071
|
+
queryParameters['max_m30_volume_in_usd'] = requestParameters['maxM30VolumeInUsd'];
|
|
1072
|
+
}
|
|
1073
|
+
if (requestParameters['minM30PriceChangeRatio'] != null) {
|
|
1074
|
+
queryParameters['min_m30_price_change_ratio'] = requestParameters['minM30PriceChangeRatio'];
|
|
1075
|
+
}
|
|
1076
|
+
if (requestParameters['maxM30PriceChangeRatio'] != null) {
|
|
1077
|
+
queryParameters['max_m30_price_change_ratio'] = requestParameters['maxM30PriceChangeRatio'];
|
|
1078
|
+
}
|
|
1079
|
+
if (requestParameters['minM30Buys'] != null) {
|
|
1080
|
+
queryParameters['min_m30_buys'] = requestParameters['minM30Buys'];
|
|
1081
|
+
}
|
|
1082
|
+
if (requestParameters['maxM30Buys'] != null) {
|
|
1083
|
+
queryParameters['max_m30_buys'] = requestParameters['maxM30Buys'];
|
|
1084
|
+
}
|
|
1085
|
+
if (requestParameters['minM30Sells'] != null) {
|
|
1086
|
+
queryParameters['min_m30_sells'] = requestParameters['minM30Sells'];
|
|
1087
|
+
}
|
|
1088
|
+
if (requestParameters['maxM30Sells'] != null) {
|
|
1089
|
+
queryParameters['max_m30_sells'] = requestParameters['maxM30Sells'];
|
|
1090
|
+
}
|
|
1091
|
+
if (requestParameters['minM30Trades'] != null) {
|
|
1092
|
+
queryParameters['min_m30_trades'] = requestParameters['minM30Trades'];
|
|
1093
|
+
}
|
|
1094
|
+
if (requestParameters['maxM30Trades'] != null) {
|
|
1095
|
+
queryParameters['max_m30_trades'] = requestParameters['maxM30Trades'];
|
|
1096
|
+
}
|
|
1097
|
+
if (requestParameters['minM30Buyers'] != null) {
|
|
1098
|
+
queryParameters['min_m30_buyers'] = requestParameters['minM30Buyers'];
|
|
1099
|
+
}
|
|
1100
|
+
if (requestParameters['maxM30Buyers'] != null) {
|
|
1101
|
+
queryParameters['max_m30_buyers'] = requestParameters['maxM30Buyers'];
|
|
1102
|
+
}
|
|
1103
|
+
if (requestParameters['minM30Sellers'] != null) {
|
|
1104
|
+
queryParameters['min_m30_sellers'] = requestParameters['minM30Sellers'];
|
|
1105
|
+
}
|
|
1106
|
+
if (requestParameters['maxM30Sellers'] != null) {
|
|
1107
|
+
queryParameters['max_m30_sellers'] = requestParameters['maxM30Sellers'];
|
|
1108
|
+
}
|
|
1109
|
+
if (requestParameters['minM30BuyVolumeInUsd'] != null) {
|
|
1110
|
+
queryParameters['min_m30_buy_volume_in_usd'] = requestParameters['minM30BuyVolumeInUsd'];
|
|
1111
|
+
}
|
|
1112
|
+
if (requestParameters['maxM30BuyVolumeInUsd'] != null) {
|
|
1113
|
+
queryParameters['max_m30_buy_volume_in_usd'] = requestParameters['maxM30BuyVolumeInUsd'];
|
|
1114
|
+
}
|
|
1115
|
+
if (requestParameters['minM30SellVolumeInUsd'] != null) {
|
|
1116
|
+
queryParameters['min_m30_sell_volume_in_usd'] = requestParameters['minM30SellVolumeInUsd'];
|
|
1117
|
+
}
|
|
1118
|
+
if (requestParameters['maxM30SellVolumeInUsd'] != null) {
|
|
1119
|
+
queryParameters['max_m30_sell_volume_in_usd'] = requestParameters['maxM30SellVolumeInUsd'];
|
|
1120
|
+
}
|
|
1121
|
+
if (requestParameters['minM15VolumeInUsd'] != null) {
|
|
1122
|
+
queryParameters['min_m15_volume_in_usd'] = requestParameters['minM15VolumeInUsd'];
|
|
1123
|
+
}
|
|
1124
|
+
if (requestParameters['maxM15VolumeInUsd'] != null) {
|
|
1125
|
+
queryParameters['max_m15_volume_in_usd'] = requestParameters['maxM15VolumeInUsd'];
|
|
1126
|
+
}
|
|
1127
|
+
if (requestParameters['minM15PriceChangeRatio'] != null) {
|
|
1128
|
+
queryParameters['min_m15_price_change_ratio'] = requestParameters['minM15PriceChangeRatio'];
|
|
1129
|
+
}
|
|
1130
|
+
if (requestParameters['maxM15PriceChangeRatio'] != null) {
|
|
1131
|
+
queryParameters['max_m15_price_change_ratio'] = requestParameters['maxM15PriceChangeRatio'];
|
|
1132
|
+
}
|
|
1133
|
+
if (requestParameters['minM15Buys'] != null) {
|
|
1134
|
+
queryParameters['min_m15_buys'] = requestParameters['minM15Buys'];
|
|
1135
|
+
}
|
|
1136
|
+
if (requestParameters['maxM15Buys'] != null) {
|
|
1137
|
+
queryParameters['max_m15_buys'] = requestParameters['maxM15Buys'];
|
|
1138
|
+
}
|
|
1139
|
+
if (requestParameters['minM15Sells'] != null) {
|
|
1140
|
+
queryParameters['min_m15_sells'] = requestParameters['minM15Sells'];
|
|
1141
|
+
}
|
|
1142
|
+
if (requestParameters['maxM15Sells'] != null) {
|
|
1143
|
+
queryParameters['max_m15_sells'] = requestParameters['maxM15Sells'];
|
|
1144
|
+
}
|
|
1145
|
+
if (requestParameters['minM15Trades'] != null) {
|
|
1146
|
+
queryParameters['min_m15_trades'] = requestParameters['minM15Trades'];
|
|
1147
|
+
}
|
|
1148
|
+
if (requestParameters['maxM15Trades'] != null) {
|
|
1149
|
+
queryParameters['max_m15_trades'] = requestParameters['maxM15Trades'];
|
|
1150
|
+
}
|
|
1151
|
+
if (requestParameters['minM15Buyers'] != null) {
|
|
1152
|
+
queryParameters['min_m15_buyers'] = requestParameters['minM15Buyers'];
|
|
1153
|
+
}
|
|
1154
|
+
if (requestParameters['maxM15Buyers'] != null) {
|
|
1155
|
+
queryParameters['max_m15_buyers'] = requestParameters['maxM15Buyers'];
|
|
1156
|
+
}
|
|
1157
|
+
if (requestParameters['minM15Sellers'] != null) {
|
|
1158
|
+
queryParameters['min_m15_sellers'] = requestParameters['minM15Sellers'];
|
|
1159
|
+
}
|
|
1160
|
+
if (requestParameters['maxM15Sellers'] != null) {
|
|
1161
|
+
queryParameters['max_m15_sellers'] = requestParameters['maxM15Sellers'];
|
|
1162
|
+
}
|
|
1163
|
+
if (requestParameters['minM15BuyVolumeInUsd'] != null) {
|
|
1164
|
+
queryParameters['min_m15_buy_volume_in_usd'] = requestParameters['minM15BuyVolumeInUsd'];
|
|
1165
|
+
}
|
|
1166
|
+
if (requestParameters['maxM15BuyVolumeInUsd'] != null) {
|
|
1167
|
+
queryParameters['max_m15_buy_volume_in_usd'] = requestParameters['maxM15BuyVolumeInUsd'];
|
|
1168
|
+
}
|
|
1169
|
+
if (requestParameters['minM15SellVolumeInUsd'] != null) {
|
|
1170
|
+
queryParameters['min_m15_sell_volume_in_usd'] = requestParameters['minM15SellVolumeInUsd'];
|
|
1171
|
+
}
|
|
1172
|
+
if (requestParameters['maxM15SellVolumeInUsd'] != null) {
|
|
1173
|
+
queryParameters['max_m15_sell_volume_in_usd'] = requestParameters['maxM15SellVolumeInUsd'];
|
|
1174
|
+
}
|
|
1175
|
+
if (requestParameters['minM5VolumeInUsd'] != null) {
|
|
1176
|
+
queryParameters['min_m5_volume_in_usd'] = requestParameters['minM5VolumeInUsd'];
|
|
1177
|
+
}
|
|
1178
|
+
if (requestParameters['maxM5VolumeInUsd'] != null) {
|
|
1179
|
+
queryParameters['max_m5_volume_in_usd'] = requestParameters['maxM5VolumeInUsd'];
|
|
1180
|
+
}
|
|
1181
|
+
if (requestParameters['minM5PriceChangeRatio'] != null) {
|
|
1182
|
+
queryParameters['min_m5_price_change_ratio'] = requestParameters['minM5PriceChangeRatio'];
|
|
1183
|
+
}
|
|
1184
|
+
if (requestParameters['maxM5PriceChangeRatio'] != null) {
|
|
1185
|
+
queryParameters['max_m5_price_change_ratio'] = requestParameters['maxM5PriceChangeRatio'];
|
|
1186
|
+
}
|
|
1187
|
+
if (requestParameters['minM5Buys'] != null) {
|
|
1188
|
+
queryParameters['min_m5_buys'] = requestParameters['minM5Buys'];
|
|
1189
|
+
}
|
|
1190
|
+
if (requestParameters['maxM5Buys'] != null) {
|
|
1191
|
+
queryParameters['max_m5_buys'] = requestParameters['maxM5Buys'];
|
|
1192
|
+
}
|
|
1193
|
+
if (requestParameters['minM5Sells'] != null) {
|
|
1194
|
+
queryParameters['min_m5_sells'] = requestParameters['minM5Sells'];
|
|
1195
|
+
}
|
|
1196
|
+
if (requestParameters['maxM5Sells'] != null) {
|
|
1197
|
+
queryParameters['max_m5_sells'] = requestParameters['maxM5Sells'];
|
|
1198
|
+
}
|
|
1199
|
+
if (requestParameters['minM5Trades'] != null) {
|
|
1200
|
+
queryParameters['min_m5_trades'] = requestParameters['minM5Trades'];
|
|
1201
|
+
}
|
|
1202
|
+
if (requestParameters['maxM5Trades'] != null) {
|
|
1203
|
+
queryParameters['max_m5_trades'] = requestParameters['maxM5Trades'];
|
|
1204
|
+
}
|
|
1205
|
+
if (requestParameters['minM5Buyers'] != null) {
|
|
1206
|
+
queryParameters['min_m5_buyers'] = requestParameters['minM5Buyers'];
|
|
1207
|
+
}
|
|
1208
|
+
if (requestParameters['maxM5Buyers'] != null) {
|
|
1209
|
+
queryParameters['max_m5_buyers'] = requestParameters['maxM5Buyers'];
|
|
1210
|
+
}
|
|
1211
|
+
if (requestParameters['minM5Sellers'] != null) {
|
|
1212
|
+
queryParameters['min_m5_sellers'] = requestParameters['minM5Sellers'];
|
|
1213
|
+
}
|
|
1214
|
+
if (requestParameters['maxM5Sellers'] != null) {
|
|
1215
|
+
queryParameters['max_m5_sellers'] = requestParameters['maxM5Sellers'];
|
|
1216
|
+
}
|
|
1217
|
+
if (requestParameters['minM5BuyVolumeInUsd'] != null) {
|
|
1218
|
+
queryParameters['min_m5_buy_volume_in_usd'] = requestParameters['minM5BuyVolumeInUsd'];
|
|
1219
|
+
}
|
|
1220
|
+
if (requestParameters['maxM5BuyVolumeInUsd'] != null) {
|
|
1221
|
+
queryParameters['max_m5_buy_volume_in_usd'] = requestParameters['maxM5BuyVolumeInUsd'];
|
|
1222
|
+
}
|
|
1223
|
+
if (requestParameters['minM5SellVolumeInUsd'] != null) {
|
|
1224
|
+
queryParameters['min_m5_sell_volume_in_usd'] = requestParameters['minM5SellVolumeInUsd'];
|
|
1225
|
+
}
|
|
1226
|
+
if (requestParameters['maxM5SellVolumeInUsd'] != null) {
|
|
1227
|
+
queryParameters['max_m5_sell_volume_in_usd'] = requestParameters['maxM5SellVolumeInUsd'];
|
|
1228
|
+
}
|
|
1229
|
+
if (requestParameters['minM1VolumeInUsd'] != null) {
|
|
1230
|
+
queryParameters['min_m1_volume_in_usd'] = requestParameters['minM1VolumeInUsd'];
|
|
1231
|
+
}
|
|
1232
|
+
if (requestParameters['maxM1VolumeInUsd'] != null) {
|
|
1233
|
+
queryParameters['max_m1_volume_in_usd'] = requestParameters['maxM1VolumeInUsd'];
|
|
1234
|
+
}
|
|
1235
|
+
if (requestParameters['minM1PriceChangeRatio'] != null) {
|
|
1236
|
+
queryParameters['min_m1_price_change_ratio'] = requestParameters['minM1PriceChangeRatio'];
|
|
1237
|
+
}
|
|
1238
|
+
if (requestParameters['maxM1PriceChangeRatio'] != null) {
|
|
1239
|
+
queryParameters['max_m1_price_change_ratio'] = requestParameters['maxM1PriceChangeRatio'];
|
|
1240
|
+
}
|
|
1241
|
+
if (requestParameters['minM1Buys'] != null) {
|
|
1242
|
+
queryParameters['min_m1_buys'] = requestParameters['minM1Buys'];
|
|
1243
|
+
}
|
|
1244
|
+
if (requestParameters['maxM1Buys'] != null) {
|
|
1245
|
+
queryParameters['max_m1_buys'] = requestParameters['maxM1Buys'];
|
|
1246
|
+
}
|
|
1247
|
+
if (requestParameters['minM1Sells'] != null) {
|
|
1248
|
+
queryParameters['min_m1_sells'] = requestParameters['minM1Sells'];
|
|
1249
|
+
}
|
|
1250
|
+
if (requestParameters['maxM1Sells'] != null) {
|
|
1251
|
+
queryParameters['max_m1_sells'] = requestParameters['maxM1Sells'];
|
|
1252
|
+
}
|
|
1253
|
+
if (requestParameters['minM1Trades'] != null) {
|
|
1254
|
+
queryParameters['min_m1_trades'] = requestParameters['minM1Trades'];
|
|
1255
|
+
}
|
|
1256
|
+
if (requestParameters['maxM1Trades'] != null) {
|
|
1257
|
+
queryParameters['max_m1_trades'] = requestParameters['maxM1Trades'];
|
|
1258
|
+
}
|
|
1259
|
+
if (requestParameters['minM1Buyers'] != null) {
|
|
1260
|
+
queryParameters['min_m1_buyers'] = requestParameters['minM1Buyers'];
|
|
1261
|
+
}
|
|
1262
|
+
if (requestParameters['maxM1Buyers'] != null) {
|
|
1263
|
+
queryParameters['max_m1_buyers'] = requestParameters['maxM1Buyers'];
|
|
1264
|
+
}
|
|
1265
|
+
if (requestParameters['minM1Sellers'] != null) {
|
|
1266
|
+
queryParameters['min_m1_sellers'] = requestParameters['minM1Sellers'];
|
|
1267
|
+
}
|
|
1268
|
+
if (requestParameters['maxM1Sellers'] != null) {
|
|
1269
|
+
queryParameters['max_m1_sellers'] = requestParameters['maxM1Sellers'];
|
|
1270
|
+
}
|
|
1271
|
+
if (requestParameters['minM1BuyVolumeInUsd'] != null) {
|
|
1272
|
+
queryParameters['min_m1_buy_volume_in_usd'] = requestParameters['minM1BuyVolumeInUsd'];
|
|
1273
|
+
}
|
|
1274
|
+
if (requestParameters['maxM1BuyVolumeInUsd'] != null) {
|
|
1275
|
+
queryParameters['max_m1_buy_volume_in_usd'] = requestParameters['maxM1BuyVolumeInUsd'];
|
|
1276
|
+
}
|
|
1277
|
+
if (requestParameters['minM1SellVolumeInUsd'] != null) {
|
|
1278
|
+
queryParameters['min_m1_sell_volume_in_usd'] = requestParameters['minM1SellVolumeInUsd'];
|
|
1279
|
+
}
|
|
1280
|
+
if (requestParameters['maxM1SellVolumeInUsd'] != null) {
|
|
1281
|
+
queryParameters['max_m1_sell_volume_in_usd'] = requestParameters['maxM1SellVolumeInUsd'];
|
|
1282
|
+
}
|
|
1283
|
+
const headerParameters = {};
|
|
1284
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1285
|
+
const token = this.configuration.accessToken;
|
|
1286
|
+
const tokenString = yield token("bearer", []);
|
|
1287
|
+
if (tokenString) {
|
|
1288
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
let urlPath = `/v1/token/{chain}/list`;
|
|
1292
|
+
urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
|
|
1293
|
+
const response = yield this.request({
|
|
1294
|
+
path: urlPath,
|
|
1295
|
+
method: 'GET',
|
|
1296
|
+
headers: headerParameters,
|
|
1297
|
+
query: queryParameters,
|
|
1298
|
+
}, initOverrides);
|
|
1299
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenListPageFromJSON)(jsonValue));
|
|
1300
|
+
});
|
|
1215
1301
|
}
|
|
1216
1302
|
/**
|
|
1217
1303
|
* CONTROLLER.TOKEN.GET_TOKEN_LIST.DESCRIPTION
|
|
1218
1304
|
* CONTROLLER.TOKEN.GET_TOKEN_LIST.SUMMARY
|
|
1219
1305
|
*/
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1306
|
+
listToken(requestParameters, initOverrides) {
|
|
1307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1308
|
+
const response = yield this.listTokenRaw(requestParameters, initOverrides);
|
|
1309
|
+
return yield response.value();
|
|
1310
|
+
});
|
|
1223
1311
|
}
|
|
1224
1312
|
/**
|
|
1225
1313
|
* CONTROLLER.TOKEN.SEARCH.DESCRIPTION
|
|
1226
1314
|
* CONTROLLER.TOKEN.SEARCH.SUMMARY
|
|
1227
1315
|
*/
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1316
|
+
searchRaw(requestParameters, initOverrides) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1318
|
+
const queryParameters = {};
|
|
1319
|
+
if (requestParameters['chains'] != null) {
|
|
1320
|
+
queryParameters['chains'] = requestParameters['chains'];
|
|
1321
|
+
}
|
|
1322
|
+
if (requestParameters['q'] != null) {
|
|
1323
|
+
queryParameters['q'] = requestParameters['q'];
|
|
1324
|
+
}
|
|
1325
|
+
if (requestParameters['limit'] != null) {
|
|
1326
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1327
|
+
}
|
|
1328
|
+
if (requestParameters['sort'] != null) {
|
|
1329
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1330
|
+
}
|
|
1331
|
+
if (requestParameters['protocols'] != null) {
|
|
1332
|
+
queryParameters['protocols'] = requestParameters['protocols'];
|
|
1333
|
+
}
|
|
1334
|
+
if (requestParameters['cursor'] != null) {
|
|
1335
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
1336
|
+
}
|
|
1337
|
+
if (requestParameters['sortBy'] != null) {
|
|
1338
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1339
|
+
}
|
|
1340
|
+
const headerParameters = {};
|
|
1341
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1342
|
+
const token = this.configuration.accessToken;
|
|
1343
|
+
const tokenString = yield token("bearer", []);
|
|
1344
|
+
if (tokenString) {
|
|
1345
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
let urlPath = `/v1/token/search`;
|
|
1349
|
+
const response = yield this.request({
|
|
1350
|
+
path: urlPath,
|
|
1351
|
+
method: 'GET',
|
|
1352
|
+
headers: headerParameters,
|
|
1353
|
+
query: queryParameters,
|
|
1354
|
+
}, initOverrides);
|
|
1355
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TokenPageFromJSON)(jsonValue));
|
|
1356
|
+
});
|
|
1267
1357
|
}
|
|
1268
1358
|
/**
|
|
1269
1359
|
* CONTROLLER.TOKEN.SEARCH.DESCRIPTION
|
|
1270
1360
|
* CONTROLLER.TOKEN.SEARCH.SUMMARY
|
|
1271
1361
|
*/
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1362
|
+
search() {
|
|
1363
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1364
|
+
const response = yield this.searchRaw(requestParameters, initOverrides);
|
|
1365
|
+
return yield response.value();
|
|
1366
|
+
});
|
|
1275
1367
|
}
|
|
1276
1368
|
}
|
|
1369
|
+
exports.TokenApi = TokenApi;
|
|
1277
1370
|
/**
|
|
1278
1371
|
* @export
|
|
1279
1372
|
*/
|
|
1280
|
-
|
|
1373
|
+
exports.GetCandlesChainEnum = {
|
|
1281
1374
|
Sol: 'sol',
|
|
1282
1375
|
Base: 'base',
|
|
1283
1376
|
Bsc: 'bsc',
|
|
@@ -1292,7 +1385,7 @@ export const GetCandlesChainEnum = {
|
|
|
1292
1385
|
/**
|
|
1293
1386
|
* @export
|
|
1294
1387
|
*/
|
|
1295
|
-
|
|
1388
|
+
exports.GetCreationChainEnum = {
|
|
1296
1389
|
Sol: 'sol',
|
|
1297
1390
|
Base: 'base',
|
|
1298
1391
|
Bsc: 'bsc',
|
|
@@ -1307,7 +1400,7 @@ export const GetCreationChainEnum = {
|
|
|
1307
1400
|
/**
|
|
1308
1401
|
* @export
|
|
1309
1402
|
*/
|
|
1310
|
-
|
|
1403
|
+
exports.GetHoldersChainEnum = {
|
|
1311
1404
|
Sol: 'sol',
|
|
1312
1405
|
Base: 'base',
|
|
1313
1406
|
Bsc: 'bsc',
|
|
@@ -1322,14 +1415,14 @@ export const GetHoldersChainEnum = {
|
|
|
1322
1415
|
/**
|
|
1323
1416
|
* @export
|
|
1324
1417
|
*/
|
|
1325
|
-
|
|
1418
|
+
exports.GetHoldersDirectionEnum = {
|
|
1326
1419
|
Next: 'next',
|
|
1327
1420
|
Prev: 'prev'
|
|
1328
1421
|
};
|
|
1329
1422
|
/**
|
|
1330
1423
|
* @export
|
|
1331
1424
|
*/
|
|
1332
|
-
|
|
1425
|
+
exports.GetHoldersMultiChainEnum = {
|
|
1333
1426
|
Sol: 'sol',
|
|
1334
1427
|
Base: 'base',
|
|
1335
1428
|
Bsc: 'bsc',
|
|
@@ -1344,7 +1437,7 @@ export const GetHoldersMultiChainEnum = {
|
|
|
1344
1437
|
/**
|
|
1345
1438
|
* @export
|
|
1346
1439
|
*/
|
|
1347
|
-
|
|
1440
|
+
exports.GetMarketDataChainEnum = {
|
|
1348
1441
|
Sol: 'sol',
|
|
1349
1442
|
Base: 'base',
|
|
1350
1443
|
Bsc: 'bsc',
|
|
@@ -1359,7 +1452,7 @@ export const GetMarketDataChainEnum = {
|
|
|
1359
1452
|
/**
|
|
1360
1453
|
* @export
|
|
1361
1454
|
*/
|
|
1362
|
-
|
|
1455
|
+
exports.GetMarketDataMultiChainEnum = {
|
|
1363
1456
|
Sol: 'sol',
|
|
1364
1457
|
Base: 'base',
|
|
1365
1458
|
Bsc: 'bsc',
|
|
@@ -1374,7 +1467,7 @@ export const GetMarketDataMultiChainEnum = {
|
|
|
1374
1467
|
/**
|
|
1375
1468
|
* @export
|
|
1376
1469
|
*/
|
|
1377
|
-
|
|
1470
|
+
exports.GetMetadataChainEnum = {
|
|
1378
1471
|
Sol: 'sol',
|
|
1379
1472
|
Base: 'base',
|
|
1380
1473
|
Bsc: 'bsc',
|
|
@@ -1389,7 +1482,7 @@ export const GetMetadataChainEnum = {
|
|
|
1389
1482
|
/**
|
|
1390
1483
|
* @export
|
|
1391
1484
|
*/
|
|
1392
|
-
|
|
1485
|
+
exports.GetMetadataMultiChainEnum = {
|
|
1393
1486
|
Sol: 'sol',
|
|
1394
1487
|
Base: 'base',
|
|
1395
1488
|
Bsc: 'bsc',
|
|
@@ -1404,7 +1497,7 @@ export const GetMetadataMultiChainEnum = {
|
|
|
1404
1497
|
/**
|
|
1405
1498
|
* @export
|
|
1406
1499
|
*/
|
|
1407
|
-
|
|
1500
|
+
exports.GetMintAndBurnChainEnum = {
|
|
1408
1501
|
Sol: 'sol',
|
|
1409
1502
|
Base: 'base',
|
|
1410
1503
|
Bsc: 'bsc',
|
|
@@ -1419,14 +1512,14 @@ export const GetMintAndBurnChainEnum = {
|
|
|
1419
1512
|
/**
|
|
1420
1513
|
* @export
|
|
1421
1514
|
*/
|
|
1422
|
-
|
|
1515
|
+
exports.GetMintAndBurnDirectionEnum = {
|
|
1423
1516
|
Next: 'next',
|
|
1424
1517
|
Prev: 'prev'
|
|
1425
1518
|
};
|
|
1426
1519
|
/**
|
|
1427
1520
|
* @export
|
|
1428
1521
|
*/
|
|
1429
|
-
|
|
1522
|
+
exports.GetMintAndBurnTypeEnum = {
|
|
1430
1523
|
All: 'all',
|
|
1431
1524
|
Mint: 'mint',
|
|
1432
1525
|
Burn: 'burn'
|
|
@@ -1434,7 +1527,7 @@ export const GetMintAndBurnTypeEnum = {
|
|
|
1434
1527
|
/**
|
|
1435
1528
|
* @export
|
|
1436
1529
|
*/
|
|
1437
|
-
|
|
1530
|
+
exports.GetPoolsChainEnum = {
|
|
1438
1531
|
Sol: 'sol',
|
|
1439
1532
|
Base: 'base',
|
|
1440
1533
|
Bsc: 'bsc',
|
|
@@ -1449,7 +1542,7 @@ export const GetPoolsChainEnum = {
|
|
|
1449
1542
|
/**
|
|
1450
1543
|
* @export
|
|
1451
1544
|
*/
|
|
1452
|
-
|
|
1545
|
+
exports.GetPriceByTimeChainEnum = {
|
|
1453
1546
|
Sol: 'sol',
|
|
1454
1547
|
Base: 'base',
|
|
1455
1548
|
Bsc: 'bsc',
|
|
@@ -1464,7 +1557,7 @@ export const GetPriceByTimeChainEnum = {
|
|
|
1464
1557
|
/**
|
|
1465
1558
|
* @export
|
|
1466
1559
|
*/
|
|
1467
|
-
|
|
1560
|
+
exports.GetPricesChainEnum = {
|
|
1468
1561
|
Sol: 'sol',
|
|
1469
1562
|
Base: 'base',
|
|
1470
1563
|
Bsc: 'bsc',
|
|
@@ -1479,14 +1572,14 @@ export const GetPricesChainEnum = {
|
|
|
1479
1572
|
/**
|
|
1480
1573
|
* @export
|
|
1481
1574
|
*/
|
|
1482
|
-
|
|
1575
|
+
exports.GetPricesDirectionEnum = {
|
|
1483
1576
|
Next: 'next',
|
|
1484
1577
|
Prev: 'prev'
|
|
1485
1578
|
};
|
|
1486
1579
|
/**
|
|
1487
1580
|
* @export
|
|
1488
1581
|
*/
|
|
1489
|
-
|
|
1582
|
+
exports.GetSecurityChainEnum = {
|
|
1490
1583
|
Sol: 'sol',
|
|
1491
1584
|
Base: 'base',
|
|
1492
1585
|
Bsc: 'bsc',
|
|
@@ -1501,7 +1594,7 @@ export const GetSecurityChainEnum = {
|
|
|
1501
1594
|
/**
|
|
1502
1595
|
* @export
|
|
1503
1596
|
*/
|
|
1504
|
-
|
|
1597
|
+
exports.GetStatsChainEnum = {
|
|
1505
1598
|
Sol: 'sol',
|
|
1506
1599
|
Base: 'base',
|
|
1507
1600
|
Bsc: 'bsc',
|
|
@@ -1516,7 +1609,7 @@ export const GetStatsChainEnum = {
|
|
|
1516
1609
|
/**
|
|
1517
1610
|
* @export
|
|
1518
1611
|
*/
|
|
1519
|
-
|
|
1612
|
+
exports.GetStatsMultiChainEnum = {
|
|
1520
1613
|
Sol: 'sol',
|
|
1521
1614
|
Base: 'base',
|
|
1522
1615
|
Bsc: 'bsc',
|
|
@@ -1531,7 +1624,7 @@ export const GetStatsMultiChainEnum = {
|
|
|
1531
1624
|
/**
|
|
1532
1625
|
* @export
|
|
1533
1626
|
*/
|
|
1534
|
-
|
|
1627
|
+
exports.GetTokenChainEnum = {
|
|
1535
1628
|
Sol: 'sol',
|
|
1536
1629
|
Base: 'base',
|
|
1537
1630
|
Bsc: 'bsc',
|
|
@@ -1546,7 +1639,7 @@ export const GetTokenChainEnum = {
|
|
|
1546
1639
|
/**
|
|
1547
1640
|
* @export
|
|
1548
1641
|
*/
|
|
1549
|
-
|
|
1642
|
+
exports.GetTokensChainEnum = {
|
|
1550
1643
|
Sol: 'sol',
|
|
1551
1644
|
Base: 'base',
|
|
1552
1645
|
Bsc: 'bsc',
|
|
@@ -1561,7 +1654,7 @@ export const GetTokensChainEnum = {
|
|
|
1561
1654
|
/**
|
|
1562
1655
|
* @export
|
|
1563
1656
|
*/
|
|
1564
|
-
|
|
1657
|
+
exports.GetTokensSortByEnum = {
|
|
1565
1658
|
MarketDataPriceInUsd: 'marketData.priceInUsd',
|
|
1566
1659
|
StatsPriceChangeRatioInUsd1m: 'stats.priceChangeRatioInUsd1m',
|
|
1567
1660
|
StatsPriceChangeRatioInUsd5m: 'stats.priceChangeRatioInUsd5m',
|
|
@@ -1611,14 +1704,14 @@ export const GetTokensSortByEnum = {
|
|
|
1611
1704
|
/**
|
|
1612
1705
|
* @export
|
|
1613
1706
|
*/
|
|
1614
|
-
|
|
1707
|
+
exports.GetTokensSortDirectionEnum = {
|
|
1615
1708
|
Asc: 'ASC',
|
|
1616
1709
|
Desc: 'DESC'
|
|
1617
1710
|
};
|
|
1618
1711
|
/**
|
|
1619
1712
|
* @export
|
|
1620
1713
|
*/
|
|
1621
|
-
|
|
1714
|
+
exports.GetTopHoldersChainEnum = {
|
|
1622
1715
|
Sol: 'sol',
|
|
1623
1716
|
Base: 'base',
|
|
1624
1717
|
Bsc: 'bsc',
|
|
@@ -1633,7 +1726,7 @@ export const GetTopHoldersChainEnum = {
|
|
|
1633
1726
|
/**
|
|
1634
1727
|
* @export
|
|
1635
1728
|
*/
|
|
1636
|
-
|
|
1729
|
+
exports.ListTokenChainEnum = {
|
|
1637
1730
|
Sol: 'sol',
|
|
1638
1731
|
Base: 'base',
|
|
1639
1732
|
Bsc: 'bsc',
|
|
@@ -1648,21 +1741,21 @@ export const ListTokenChainEnum = {
|
|
|
1648
1741
|
/**
|
|
1649
1742
|
* @export
|
|
1650
1743
|
*/
|
|
1651
|
-
|
|
1744
|
+
exports.ListTokenDirectionEnum = {
|
|
1652
1745
|
Next: 'next',
|
|
1653
1746
|
Prev: 'prev'
|
|
1654
1747
|
};
|
|
1655
1748
|
/**
|
|
1656
1749
|
* @export
|
|
1657
1750
|
*/
|
|
1658
|
-
|
|
1751
|
+
exports.ListTokenSortEnum = {
|
|
1659
1752
|
Asc: 'asc',
|
|
1660
1753
|
Desc: 'desc'
|
|
1661
1754
|
};
|
|
1662
1755
|
/**
|
|
1663
1756
|
* @export
|
|
1664
1757
|
*/
|
|
1665
|
-
|
|
1758
|
+
exports.ListTokenSortByEnum = {
|
|
1666
1759
|
H24VolumeInUsd: 'h24VolumeInUsd',
|
|
1667
1760
|
H24PriceChangeRatio: 'h24PriceChangeRatio',
|
|
1668
1761
|
H24Buys: 'h24Buys',
|
|
@@ -1730,14 +1823,14 @@ export const ListTokenSortByEnum = {
|
|
|
1730
1823
|
/**
|
|
1731
1824
|
* @export
|
|
1732
1825
|
*/
|
|
1733
|
-
|
|
1826
|
+
exports.SearchSortEnum = {
|
|
1734
1827
|
Asc: 'asc',
|
|
1735
1828
|
Desc: 'desc'
|
|
1736
1829
|
};
|
|
1737
1830
|
/**
|
|
1738
1831
|
* @export
|
|
1739
1832
|
*/
|
|
1740
|
-
|
|
1833
|
+
exports.SearchSortByEnum = {
|
|
1741
1834
|
MarketCapInUsd: 'marketCapInUsd',
|
|
1742
1835
|
LiquidityInUsd: 'liquidityInUsd',
|
|
1743
1836
|
PriceInUsd: 'priceInUsd',
|