@chainstream-io/sdk 0.0.5 → 0.0.7
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi/apis/DefiSolanaMoonshotApi.d.ts +8 -8
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +16 -16
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js.map +1 -1
- package/dist/openapi/apis/DefiSolanaPumpfunApi.d.ts +4 -4
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +8 -8
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js.map +1 -1
- package/dist/openapi/apis/DexApi.d.ts +4 -4
- package/dist/openapi/apis/DexApi.js +37 -37
- package/dist/openapi/apis/DexApi.js.map +1 -1
- package/dist/openapi/apis/RankingApi.d.ts +11 -11
- package/dist/openapi/apis/RankingApi.js +155 -35
- package/dist/openapi/apis/RankingApi.js.map +1 -1
- package/dist/openapi/apis/TokenApi.d.ts +1 -1
- package/dist/openapi/apis/TokenApi.js +1 -1
- package/dist/openapi/apis/TokenApi.js.map +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js.map +1 -1
- package/dist/openapi/models/CreateTokenReply.d.ts +21 -0
- package/dist/openapi/models/CreateTokenReply.js +28 -0
- package/dist/openapi/models/CreateTokenReply.js.map +1 -0
- package/dist/openapi/models/DexCreateTokenInput.d.ts +34 -0
- package/dist/openapi/models/DexCreateTokenInput.js +72 -0
- package/dist/openapi/models/DexCreateTokenInput.js.map +1 -0
- package/dist/openapi/models/FilterCondition.d.ts +19 -1
- package/dist/openapi/models/FilterCondition.js +18 -0
- package/dist/openapi/models/FilterCondition.js.map +1 -1
- package/dist/openapi/models/MoonshotCreateTokenInput.d.ts +39 -0
- package/dist/openapi/models/MoonshotCreateTokenInput.js +92 -0
- package/dist/openapi/models/MoonshotCreateTokenInput.js.map +1 -0
- package/dist/openapi/models/MoonshotCreateTokenReply.d.ts +21 -0
- package/dist/openapi/models/MoonshotCreateTokenReply.js +28 -0
- package/dist/openapi/models/MoonshotCreateTokenReply.js.map +1 -0
- package/dist/openapi/models/MoonshotSubmitCreateToken200Response.d.ts +21 -0
- package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js +28 -0
- package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js.map +1 -0
- package/dist/openapi/models/MoonshotSubmitCreateTokenInput.d.ts +21 -0
- package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js +28 -0
- package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js.map +1 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +8 -11
- package/dist/openapi/models/ObjectSerializer.js +29 -38
- package/dist/openapi/models/ObjectSerializer.js.map +1 -1
- package/dist/openapi/models/PumpCreateTokenInput.d.ts +38 -0
- package/dist/openapi/models/PumpCreateTokenInput.js +97 -0
- package/dist/openapi/models/PumpCreateTokenInput.js.map +1 -0
- package/dist/openapi/models/PumpCreateTokenReply.d.ts +21 -0
- package/dist/openapi/models/PumpCreateTokenReply.js +28 -0
- package/dist/openapi/models/PumpCreateTokenReply.js.map +1 -0
- package/dist/openapi/models/all.d.ts +8 -11
- package/dist/openapi/models/all.js +8 -11
- package/dist/openapi/models/all.js.map +1 -1
- package/dist/openapi/types/ObjectParamAPI.d.ts +67 -48
- package/dist/openapi/types/ObjectParamAPI.js +28 -28
- package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
- package/dist/openapi/types/ObservableAPI.d.ts +28 -29
- package/dist/openapi/types/ObservableAPI.js +45 -45
- package/dist/openapi/types/ObservableAPI.js.map +1 -1
- package/dist/openapi/types/PromiseAPI.d.ts +28 -29
- package/dist/openapi/types/PromiseAPI.js +40 -40
- package/dist/openapi/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/openapi/.openapi-generator/FILES +8 -11
- package/src/openapi/apis/DefiSolanaMoonshotApi.ts +38 -38
- package/src/openapi/apis/DefiSolanaPumpfunApi.ts +19 -19
- package/src/openapi/apis/DexApi.ts +70 -70
- package/src/openapi/apis/RankingApi.ts +266 -66
- package/src/openapi/apis/TokenApi.ts +2 -2
- package/src/openapi/index.ts +1 -1
- package/src/openapi/models/{MintReply.ts → CreateTokenReply.ts} +4 -4
- package/src/openapi/models/{DexMintInput.ts → DexCreateTokenInput.ts} +5 -5
- package/src/openapi/models/FilterCondition.ts +19 -1
- package/src/openapi/models/{MintInput.ts → MoonshotCreateTokenInput.ts} +8 -8
- package/src/openapi/models/{MoonshotMintReply.ts → MoonshotCreateTokenReply.ts} +4 -4
- package/src/openapi/models/{MoonshotSubmitMint200Response.ts → MoonshotSubmitCreateToken200Response.ts} +2 -2
- package/src/openapi/models/{SubmitInput.ts → MoonshotSubmitCreateTokenInput.ts} +4 -4
- package/src/openapi/models/ObjectSerializer.ts +29 -38
- package/src/openapi/models/{PumpMintInput.ts → PumpCreateTokenInput.ts} +8 -8
- package/src/openapi/models/{PumpMintReply.ts → PumpCreateTokenReply.ts} +2 -2
- package/src/openapi/models/all.ts +8 -11
- package/src/openapi/types/ObjectParamAPI.ts +253 -116
- package/src/openapi/types/ObservableAPI.ts +140 -103
- package/src/openapi/types/PromiseAPI.ts +132 -95
- package/src/openapi/models/RankingToken.ts +0 -132
- package/src/openapi/models/RankingTokenMarketData.ts +0 -109
- package/src/openapi/models/RankingTokenStat.ts +0 -329
|
@@ -9,7 +9,7 @@ import {SecurityAuthentication} from '../auth/auth';
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
import { FilterCondition } from '../models/FilterCondition';
|
|
12
|
-
import {
|
|
12
|
+
import { Token } from '../models/Token';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* no description
|
|
@@ -22,10 +22,14 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
22
22
|
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
23
23
|
* @param sortBy DTO.TOKEN.REQUEST.SORT_BY
|
|
24
24
|
* @param sortDirection DTO.TOKEN.REQUEST.SORT_DIRECTION
|
|
25
|
-
* @param
|
|
25
|
+
* @param rangeFilters DTO.TOKEN.REQUEST.FILTER_BY
|
|
26
26
|
* @param tag DTO.TOKEN.REQUEST.TAG
|
|
27
|
+
* @param filters DTO.TOKEN.FILTER.FILTERS
|
|
28
|
+
* @param launchpadPlatform DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
|
|
29
|
+
* @param searchKeywords DTO.TOKEN.FILTER.SEARCH_KEYWORDS
|
|
30
|
+
* @param excludeKeywords DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
|
|
27
31
|
*/
|
|
28
|
-
public async getFinalStretchTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC',
|
|
32
|
+
public async getFinalStretchTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC', rangeFilters?: Array<FilterCondition>, tag?: 'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun', filters?: Array<string>, launchpadPlatform?: Array<string>, searchKeywords?: Array<string>, excludeKeywords?: Array<string>, _options?: Configuration): Promise<RequestContext> {
|
|
29
33
|
let _config = _options || this.configuration;
|
|
30
34
|
|
|
31
35
|
// verify required parameter 'chain' is not null or undefined
|
|
@@ -38,6 +42,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
38
42
|
|
|
39
43
|
|
|
40
44
|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
41
49
|
// Path Params
|
|
42
50
|
const localVarPath = '/v1/ranking/{chain}/finalStretch'
|
|
43
51
|
.replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
|
|
@@ -51,7 +59,7 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
51
59
|
|
|
52
60
|
// Query Params
|
|
53
61
|
if (sortBy !== undefined) {
|
|
54
|
-
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
62
|
+
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
// Query Params
|
|
@@ -60,10 +68,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
60
68
|
}
|
|
61
69
|
|
|
62
70
|
// Query Params
|
|
63
|
-
if (
|
|
64
|
-
const serializedParams = ObjectSerializer.serialize(
|
|
71
|
+
if (rangeFilters !== undefined) {
|
|
72
|
+
const serializedParams = ObjectSerializer.serialize(rangeFilters, "Array<FilterCondition>", "");
|
|
65
73
|
for (const serializedParam of serializedParams) {
|
|
66
|
-
requestContext.appendQueryParam("
|
|
74
|
+
requestContext.appendQueryParam("rangeFilters", serializedParam);
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
77
|
|
|
@@ -72,6 +80,38 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
72
80
|
requestContext.setQueryParam("tag", ObjectSerializer.serialize(tag, "'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun'", ""));
|
|
73
81
|
}
|
|
74
82
|
|
|
83
|
+
// Query Params
|
|
84
|
+
if (filters !== undefined) {
|
|
85
|
+
const serializedParams = ObjectSerializer.serialize(filters, "Array<string>", "");
|
|
86
|
+
for (const serializedParam of serializedParams) {
|
|
87
|
+
requestContext.appendQueryParam("filters", serializedParam);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Query Params
|
|
92
|
+
if (launchpadPlatform !== undefined) {
|
|
93
|
+
const serializedParams = ObjectSerializer.serialize(launchpadPlatform, "Array<string>", "");
|
|
94
|
+
for (const serializedParam of serializedParams) {
|
|
95
|
+
requestContext.appendQueryParam("launchpadPlatform", serializedParam);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Query Params
|
|
100
|
+
if (searchKeywords !== undefined) {
|
|
101
|
+
const serializedParams = ObjectSerializer.serialize(searchKeywords, "Array<string>", "");
|
|
102
|
+
for (const serializedParam of serializedParams) {
|
|
103
|
+
requestContext.appendQueryParam("searchKeywords", serializedParam);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Query Params
|
|
108
|
+
if (excludeKeywords !== undefined) {
|
|
109
|
+
const serializedParams = ObjectSerializer.serialize(excludeKeywords, "Array<string>", "");
|
|
110
|
+
for (const serializedParam of serializedParams) {
|
|
111
|
+
requestContext.appendQueryParam("excludeKeywords", serializedParam);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
75
115
|
|
|
76
116
|
let authMethod: SecurityAuthentication | undefined;
|
|
77
117
|
// Apply auth methods
|
|
@@ -95,10 +135,14 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
95
135
|
* @param duration CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION
|
|
96
136
|
* @param sortBy DTO.TOKEN.REQUEST.SORT_BY
|
|
97
137
|
* @param sortDirection DTO.TOKEN.REQUEST.SORT_DIRECTION
|
|
98
|
-
* @param
|
|
138
|
+
* @param rangeFilters DTO.TOKEN.REQUEST.FILTER_BY
|
|
99
139
|
* @param tag DTO.TOKEN.REQUEST.TAG
|
|
140
|
+
* @param filters DTO.TOKEN.FILTER.FILTERS
|
|
141
|
+
* @param launchpadPlatform DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
|
|
142
|
+
* @param searchKeywords DTO.TOKEN.FILTER.SEARCH_KEYWORDS
|
|
143
|
+
* @param excludeKeywords DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
|
|
100
144
|
*/
|
|
101
|
-
public async getHotTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', duration: '1m' | '5m' | '1h' | '4h' | '24h', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC',
|
|
145
|
+
public async getHotTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', duration: '1m' | '5m' | '1h' | '4h' | '24h', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC', rangeFilters?: Array<FilterCondition>, tag?: 'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun', filters?: Array<string>, launchpadPlatform?: Array<string>, searchKeywords?: Array<string>, excludeKeywords?: Array<string>, _options?: Configuration): Promise<RequestContext> {
|
|
102
146
|
let _config = _options || this.configuration;
|
|
103
147
|
|
|
104
148
|
// verify required parameter 'chain' is not null or undefined
|
|
@@ -117,6 +161,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
117
161
|
|
|
118
162
|
|
|
119
163
|
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
120
168
|
// Path Params
|
|
121
169
|
const localVarPath = '/v1/ranking/{chain}/hotTokens/{duration}'
|
|
122
170
|
.replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
|
|
@@ -131,7 +179,7 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
131
179
|
|
|
132
180
|
// Query Params
|
|
133
181
|
if (sortBy !== undefined) {
|
|
134
|
-
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
182
|
+
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
135
183
|
}
|
|
136
184
|
|
|
137
185
|
// Query Params
|
|
@@ -140,10 +188,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
140
188
|
}
|
|
141
189
|
|
|
142
190
|
// Query Params
|
|
143
|
-
if (
|
|
144
|
-
const serializedParams = ObjectSerializer.serialize(
|
|
191
|
+
if (rangeFilters !== undefined) {
|
|
192
|
+
const serializedParams = ObjectSerializer.serialize(rangeFilters, "Array<FilterCondition>", "");
|
|
145
193
|
for (const serializedParam of serializedParams) {
|
|
146
|
-
requestContext.appendQueryParam("
|
|
194
|
+
requestContext.appendQueryParam("rangeFilters", serializedParam);
|
|
147
195
|
}
|
|
148
196
|
}
|
|
149
197
|
|
|
@@ -152,6 +200,38 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
152
200
|
requestContext.setQueryParam("tag", ObjectSerializer.serialize(tag, "'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun'", ""));
|
|
153
201
|
}
|
|
154
202
|
|
|
203
|
+
// Query Params
|
|
204
|
+
if (filters !== undefined) {
|
|
205
|
+
const serializedParams = ObjectSerializer.serialize(filters, "Array<string>", "");
|
|
206
|
+
for (const serializedParam of serializedParams) {
|
|
207
|
+
requestContext.appendQueryParam("filters", serializedParam);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Query Params
|
|
212
|
+
if (launchpadPlatform !== undefined) {
|
|
213
|
+
const serializedParams = ObjectSerializer.serialize(launchpadPlatform, "Array<string>", "");
|
|
214
|
+
for (const serializedParam of serializedParams) {
|
|
215
|
+
requestContext.appendQueryParam("launchpadPlatform", serializedParam);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Query Params
|
|
220
|
+
if (searchKeywords !== undefined) {
|
|
221
|
+
const serializedParams = ObjectSerializer.serialize(searchKeywords, "Array<string>", "");
|
|
222
|
+
for (const serializedParam of serializedParams) {
|
|
223
|
+
requestContext.appendQueryParam("searchKeywords", serializedParam);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Query Params
|
|
228
|
+
if (excludeKeywords !== undefined) {
|
|
229
|
+
const serializedParams = ObjectSerializer.serialize(excludeKeywords, "Array<string>", "");
|
|
230
|
+
for (const serializedParam of serializedParams) {
|
|
231
|
+
requestContext.appendQueryParam("excludeKeywords", serializedParam);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
155
235
|
|
|
156
236
|
let authMethod: SecurityAuthentication | undefined;
|
|
157
237
|
// Apply auth methods
|
|
@@ -174,10 +254,14 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
174
254
|
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
175
255
|
* @param sortBy DTO.TOKEN.REQUEST.SORT_BY
|
|
176
256
|
* @param sortDirection DTO.TOKEN.REQUEST.SORT_DIRECTION
|
|
177
|
-
* @param
|
|
257
|
+
* @param rangeFilters DTO.TOKEN.REQUEST.FILTER_BY
|
|
178
258
|
* @param tag DTO.TOKEN.REQUEST.TAG
|
|
259
|
+
* @param filters DTO.TOKEN.FILTER.FILTERS
|
|
260
|
+
* @param launchpadPlatform DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
|
|
261
|
+
* @param searchKeywords DTO.TOKEN.FILTER.SEARCH_KEYWORDS
|
|
262
|
+
* @param excludeKeywords DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
|
|
179
263
|
*/
|
|
180
|
-
public async getMigratedTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC',
|
|
264
|
+
public async getMigratedTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC', rangeFilters?: Array<FilterCondition>, tag?: 'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun', filters?: Array<string>, launchpadPlatform?: Array<string>, searchKeywords?: Array<string>, excludeKeywords?: Array<string>, _options?: Configuration): Promise<RequestContext> {
|
|
181
265
|
let _config = _options || this.configuration;
|
|
182
266
|
|
|
183
267
|
// verify required parameter 'chain' is not null or undefined
|
|
@@ -190,6 +274,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
190
274
|
|
|
191
275
|
|
|
192
276
|
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
193
281
|
// Path Params
|
|
194
282
|
const localVarPath = '/v1/ranking/{chain}/migrated'
|
|
195
283
|
.replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
|
|
@@ -203,7 +291,7 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
203
291
|
|
|
204
292
|
// Query Params
|
|
205
293
|
if (sortBy !== undefined) {
|
|
206
|
-
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
294
|
+
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
207
295
|
}
|
|
208
296
|
|
|
209
297
|
// Query Params
|
|
@@ -212,10 +300,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
212
300
|
}
|
|
213
301
|
|
|
214
302
|
// Query Params
|
|
215
|
-
if (
|
|
216
|
-
const serializedParams = ObjectSerializer.serialize(
|
|
303
|
+
if (rangeFilters !== undefined) {
|
|
304
|
+
const serializedParams = ObjectSerializer.serialize(rangeFilters, "Array<FilterCondition>", "");
|
|
217
305
|
for (const serializedParam of serializedParams) {
|
|
218
|
-
requestContext.appendQueryParam("
|
|
306
|
+
requestContext.appendQueryParam("rangeFilters", serializedParam);
|
|
219
307
|
}
|
|
220
308
|
}
|
|
221
309
|
|
|
@@ -224,6 +312,38 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
224
312
|
requestContext.setQueryParam("tag", ObjectSerializer.serialize(tag, "'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun'", ""));
|
|
225
313
|
}
|
|
226
314
|
|
|
315
|
+
// Query Params
|
|
316
|
+
if (filters !== undefined) {
|
|
317
|
+
const serializedParams = ObjectSerializer.serialize(filters, "Array<string>", "");
|
|
318
|
+
for (const serializedParam of serializedParams) {
|
|
319
|
+
requestContext.appendQueryParam("filters", serializedParam);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// Query Params
|
|
324
|
+
if (launchpadPlatform !== undefined) {
|
|
325
|
+
const serializedParams = ObjectSerializer.serialize(launchpadPlatform, "Array<string>", "");
|
|
326
|
+
for (const serializedParam of serializedParams) {
|
|
327
|
+
requestContext.appendQueryParam("launchpadPlatform", serializedParam);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// Query Params
|
|
332
|
+
if (searchKeywords !== undefined) {
|
|
333
|
+
const serializedParams = ObjectSerializer.serialize(searchKeywords, "Array<string>", "");
|
|
334
|
+
for (const serializedParam of serializedParams) {
|
|
335
|
+
requestContext.appendQueryParam("searchKeywords", serializedParam);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Query Params
|
|
340
|
+
if (excludeKeywords !== undefined) {
|
|
341
|
+
const serializedParams = ObjectSerializer.serialize(excludeKeywords, "Array<string>", "");
|
|
342
|
+
for (const serializedParam of serializedParams) {
|
|
343
|
+
requestContext.appendQueryParam("excludeKeywords", serializedParam);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
227
347
|
|
|
228
348
|
let authMethod: SecurityAuthentication | undefined;
|
|
229
349
|
// Apply auth methods
|
|
@@ -246,10 +366,14 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
246
366
|
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
247
367
|
* @param sortBy DTO.TOKEN.REQUEST.SORT_BY
|
|
248
368
|
* @param sortDirection DTO.TOKEN.REQUEST.SORT_DIRECTION
|
|
249
|
-
* @param
|
|
369
|
+
* @param rangeFilters DTO.TOKEN.REQUEST.FILTER_BY
|
|
250
370
|
* @param tag DTO.TOKEN.REQUEST.TAG
|
|
371
|
+
* @param filters DTO.TOKEN.FILTER.FILTERS
|
|
372
|
+
* @param launchpadPlatform DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
|
|
373
|
+
* @param searchKeywords DTO.TOKEN.FILTER.SEARCH_KEYWORDS
|
|
374
|
+
* @param excludeKeywords DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
|
|
251
375
|
*/
|
|
252
|
-
public async getNewTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC',
|
|
376
|
+
public async getNewTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC', rangeFilters?: Array<FilterCondition>, tag?: 'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun', filters?: Array<string>, launchpadPlatform?: Array<string>, searchKeywords?: Array<string>, excludeKeywords?: Array<string>, _options?: Configuration): Promise<RequestContext> {
|
|
253
377
|
let _config = _options || this.configuration;
|
|
254
378
|
|
|
255
379
|
// verify required parameter 'chain' is not null or undefined
|
|
@@ -262,6 +386,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
262
386
|
|
|
263
387
|
|
|
264
388
|
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
265
393
|
// Path Params
|
|
266
394
|
const localVarPath = '/v1/ranking/{chain}/newTokens'
|
|
267
395
|
.replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
|
|
@@ -275,7 +403,7 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
275
403
|
|
|
276
404
|
// Query Params
|
|
277
405
|
if (sortBy !== undefined) {
|
|
278
|
-
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
406
|
+
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
279
407
|
}
|
|
280
408
|
|
|
281
409
|
// Query Params
|
|
@@ -284,10 +412,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
284
412
|
}
|
|
285
413
|
|
|
286
414
|
// Query Params
|
|
287
|
-
if (
|
|
288
|
-
const serializedParams = ObjectSerializer.serialize(
|
|
415
|
+
if (rangeFilters !== undefined) {
|
|
416
|
+
const serializedParams = ObjectSerializer.serialize(rangeFilters, "Array<FilterCondition>", "");
|
|
289
417
|
for (const serializedParam of serializedParams) {
|
|
290
|
-
requestContext.appendQueryParam("
|
|
418
|
+
requestContext.appendQueryParam("rangeFilters", serializedParam);
|
|
291
419
|
}
|
|
292
420
|
}
|
|
293
421
|
|
|
@@ -296,6 +424,38 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
296
424
|
requestContext.setQueryParam("tag", ObjectSerializer.serialize(tag, "'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun'", ""));
|
|
297
425
|
}
|
|
298
426
|
|
|
427
|
+
// Query Params
|
|
428
|
+
if (filters !== undefined) {
|
|
429
|
+
const serializedParams = ObjectSerializer.serialize(filters, "Array<string>", "");
|
|
430
|
+
for (const serializedParam of serializedParams) {
|
|
431
|
+
requestContext.appendQueryParam("filters", serializedParam);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// Query Params
|
|
436
|
+
if (launchpadPlatform !== undefined) {
|
|
437
|
+
const serializedParams = ObjectSerializer.serialize(launchpadPlatform, "Array<string>", "");
|
|
438
|
+
for (const serializedParam of serializedParams) {
|
|
439
|
+
requestContext.appendQueryParam("launchpadPlatform", serializedParam);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// Query Params
|
|
444
|
+
if (searchKeywords !== undefined) {
|
|
445
|
+
const serializedParams = ObjectSerializer.serialize(searchKeywords, "Array<string>", "");
|
|
446
|
+
for (const serializedParam of serializedParams) {
|
|
447
|
+
requestContext.appendQueryParam("searchKeywords", serializedParam);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// Query Params
|
|
452
|
+
if (excludeKeywords !== undefined) {
|
|
453
|
+
const serializedParams = ObjectSerializer.serialize(excludeKeywords, "Array<string>", "");
|
|
454
|
+
for (const serializedParam of serializedParams) {
|
|
455
|
+
requestContext.appendQueryParam("excludeKeywords", serializedParam);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
299
459
|
|
|
300
460
|
let authMethod: SecurityAuthentication | undefined;
|
|
301
461
|
// Apply auth methods
|
|
@@ -318,10 +478,14 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
318
478
|
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
319
479
|
* @param sortBy DTO.TOKEN.REQUEST.SORT_BY
|
|
320
480
|
* @param sortDirection DTO.TOKEN.REQUEST.SORT_DIRECTION
|
|
321
|
-
* @param
|
|
481
|
+
* @param rangeFilters DTO.TOKEN.REQUEST.FILTER_BY
|
|
322
482
|
* @param tag DTO.TOKEN.REQUEST.TAG
|
|
483
|
+
* @param filters DTO.TOKEN.FILTER.FILTERS
|
|
484
|
+
* @param launchpadPlatform DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
|
|
485
|
+
* @param searchKeywords DTO.TOKEN.FILTER.SEARCH_KEYWORDS
|
|
486
|
+
* @param excludeKeywords DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
|
|
323
487
|
*/
|
|
324
|
-
public async getStocksTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC',
|
|
488
|
+
public async getStocksTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt', sortDirection?: 'ASC' | 'DESC', rangeFilters?: Array<FilterCondition>, tag?: 'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun', filters?: Array<string>, launchpadPlatform?: Array<string>, searchKeywords?: Array<string>, excludeKeywords?: Array<string>, _options?: Configuration): Promise<RequestContext> {
|
|
325
489
|
let _config = _options || this.configuration;
|
|
326
490
|
|
|
327
491
|
// verify required parameter 'chain' is not null or undefined
|
|
@@ -334,6 +498,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
334
498
|
|
|
335
499
|
|
|
336
500
|
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
337
505
|
// Path Params
|
|
338
506
|
const localVarPath = '/v1/ranking/{chain}/stocks'
|
|
339
507
|
.replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
|
|
@@ -347,7 +515,7 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
347
515
|
|
|
348
516
|
// Query Params
|
|
349
517
|
if (sortBy !== undefined) {
|
|
350
|
-
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
518
|
+
requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
|
|
351
519
|
}
|
|
352
520
|
|
|
353
521
|
// Query Params
|
|
@@ -356,10 +524,10 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
356
524
|
}
|
|
357
525
|
|
|
358
526
|
// Query Params
|
|
359
|
-
if (
|
|
360
|
-
const serializedParams = ObjectSerializer.serialize(
|
|
527
|
+
if (rangeFilters !== undefined) {
|
|
528
|
+
const serializedParams = ObjectSerializer.serialize(rangeFilters, "Array<FilterCondition>", "");
|
|
361
529
|
for (const serializedParam of serializedParams) {
|
|
362
|
-
requestContext.appendQueryParam("
|
|
530
|
+
requestContext.appendQueryParam("rangeFilters", serializedParam);
|
|
363
531
|
}
|
|
364
532
|
}
|
|
365
533
|
|
|
@@ -368,6 +536,38 @@ export class RankingApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
368
536
|
requestContext.setQueryParam("tag", ObjectSerializer.serialize(tag, "'pump_fun' | 'raydium_launchpad' | 'meteora_dynamic_bounding_curve' | 'bonk_fun' | 'moonit_fun'", ""));
|
|
369
537
|
}
|
|
370
538
|
|
|
539
|
+
// Query Params
|
|
540
|
+
if (filters !== undefined) {
|
|
541
|
+
const serializedParams = ObjectSerializer.serialize(filters, "Array<string>", "");
|
|
542
|
+
for (const serializedParam of serializedParams) {
|
|
543
|
+
requestContext.appendQueryParam("filters", serializedParam);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
// Query Params
|
|
548
|
+
if (launchpadPlatform !== undefined) {
|
|
549
|
+
const serializedParams = ObjectSerializer.serialize(launchpadPlatform, "Array<string>", "");
|
|
550
|
+
for (const serializedParam of serializedParams) {
|
|
551
|
+
requestContext.appendQueryParam("launchpadPlatform", serializedParam);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
// Query Params
|
|
556
|
+
if (searchKeywords !== undefined) {
|
|
557
|
+
const serializedParams = ObjectSerializer.serialize(searchKeywords, "Array<string>", "");
|
|
558
|
+
for (const serializedParam of serializedParams) {
|
|
559
|
+
requestContext.appendQueryParam("searchKeywords", serializedParam);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// Query Params
|
|
564
|
+
if (excludeKeywords !== undefined) {
|
|
565
|
+
const serializedParams = ObjectSerializer.serialize(excludeKeywords, "Array<string>", "");
|
|
566
|
+
for (const serializedParam of serializedParams) {
|
|
567
|
+
requestContext.appendQueryParam("excludeKeywords", serializedParam);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
371
571
|
|
|
372
572
|
let authMethod: SecurityAuthentication | undefined;
|
|
373
573
|
// Apply auth methods
|
|
@@ -395,22 +595,22 @@ export class RankingApiResponseProcessor {
|
|
|
395
595
|
* @params response Response returned by the server for a request to getFinalStretchTokens
|
|
396
596
|
* @throws ApiException if the response code was not in [200, 299]
|
|
397
597
|
*/
|
|
398
|
-
public async getFinalStretchTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<
|
|
598
|
+
public async getFinalStretchTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Token> >> {
|
|
399
599
|
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
400
600
|
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
401
|
-
const body: Array<
|
|
601
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
402
602
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
403
|
-
"Array<
|
|
404
|
-
) as Array<
|
|
603
|
+
"Array<Token>", ""
|
|
604
|
+
) as Array<Token>;
|
|
405
605
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
406
606
|
}
|
|
407
607
|
|
|
408
608
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
409
609
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
410
|
-
const body: Array<
|
|
610
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
411
611
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
412
|
-
"Array<
|
|
413
|
-
) as Array<
|
|
612
|
+
"Array<Token>", ""
|
|
613
|
+
) as Array<Token>;
|
|
414
614
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
415
615
|
}
|
|
416
616
|
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
@@ -423,22 +623,22 @@ export class RankingApiResponseProcessor {
|
|
|
423
623
|
* @params response Response returned by the server for a request to getHotTokens
|
|
424
624
|
* @throws ApiException if the response code was not in [200, 299]
|
|
425
625
|
*/
|
|
426
|
-
public async getHotTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<
|
|
626
|
+
public async getHotTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Token> >> {
|
|
427
627
|
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
428
628
|
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
429
|
-
const body: Array<
|
|
629
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
430
630
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
431
|
-
"Array<
|
|
432
|
-
) as Array<
|
|
631
|
+
"Array<Token>", ""
|
|
632
|
+
) as Array<Token>;
|
|
433
633
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
434
634
|
}
|
|
435
635
|
|
|
436
636
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
437
637
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
438
|
-
const body: Array<
|
|
638
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
439
639
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
440
|
-
"Array<
|
|
441
|
-
) as Array<
|
|
640
|
+
"Array<Token>", ""
|
|
641
|
+
) as Array<Token>;
|
|
442
642
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
443
643
|
}
|
|
444
644
|
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
@@ -451,22 +651,22 @@ export class RankingApiResponseProcessor {
|
|
|
451
651
|
* @params response Response returned by the server for a request to getMigratedTokens
|
|
452
652
|
* @throws ApiException if the response code was not in [200, 299]
|
|
453
653
|
*/
|
|
454
|
-
public async getMigratedTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<
|
|
654
|
+
public async getMigratedTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Token> >> {
|
|
455
655
|
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
456
656
|
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
457
|
-
const body: Array<
|
|
657
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
458
658
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
459
|
-
"Array<
|
|
460
|
-
) as Array<
|
|
659
|
+
"Array<Token>", ""
|
|
660
|
+
) as Array<Token>;
|
|
461
661
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
462
662
|
}
|
|
463
663
|
|
|
464
664
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
465
665
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
466
|
-
const body: Array<
|
|
666
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
467
667
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
468
|
-
"Array<
|
|
469
|
-
) as Array<
|
|
668
|
+
"Array<Token>", ""
|
|
669
|
+
) as Array<Token>;
|
|
470
670
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
471
671
|
}
|
|
472
672
|
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
@@ -479,22 +679,22 @@ export class RankingApiResponseProcessor {
|
|
|
479
679
|
* @params response Response returned by the server for a request to getNewTokens
|
|
480
680
|
* @throws ApiException if the response code was not in [200, 299]
|
|
481
681
|
*/
|
|
482
|
-
public async getNewTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<
|
|
682
|
+
public async getNewTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Token> >> {
|
|
483
683
|
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
484
684
|
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
485
|
-
const body: Array<
|
|
685
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
486
686
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
487
|
-
"Array<
|
|
488
|
-
) as Array<
|
|
687
|
+
"Array<Token>", ""
|
|
688
|
+
) as Array<Token>;
|
|
489
689
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
490
690
|
}
|
|
491
691
|
|
|
492
692
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
493
693
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
494
|
-
const body: Array<
|
|
694
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
495
695
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
496
|
-
"Array<
|
|
497
|
-
) as Array<
|
|
696
|
+
"Array<Token>", ""
|
|
697
|
+
) as Array<Token>;
|
|
498
698
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
499
699
|
}
|
|
500
700
|
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
@@ -507,22 +707,22 @@ export class RankingApiResponseProcessor {
|
|
|
507
707
|
* @params response Response returned by the server for a request to getStocksTokens
|
|
508
708
|
* @throws ApiException if the response code was not in [200, 299]
|
|
509
709
|
*/
|
|
510
|
-
public async getStocksTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<
|
|
710
|
+
public async getStocksTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Token> >> {
|
|
511
711
|
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
512
712
|
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
513
|
-
const body: Array<
|
|
713
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
514
714
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
515
|
-
"Array<
|
|
516
|
-
) as Array<
|
|
715
|
+
"Array<Token>", ""
|
|
716
|
+
) as Array<Token>;
|
|
517
717
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
518
718
|
}
|
|
519
719
|
|
|
520
720
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
521
721
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
522
|
-
const body: Array<
|
|
722
|
+
const body: Array<Token> = ObjectSerializer.deserialize(
|
|
523
723
|
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
524
|
-
"Array<
|
|
525
|
-
) as Array<
|
|
724
|
+
"Array<Token>", ""
|
|
725
|
+
) as Array<Token>;
|
|
526
726
|
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
527
727
|
}
|
|
528
728
|
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|