@chainstream-io/sdk 0.0.2 → 0.0.4
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/api/stream.d.ts +44 -43
- package/dist/api/stream.js +206 -196
- package/dist/api/stream.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi/apis/DexPoolApi.d.ts +0 -2
- package/dist/openapi/apis/DexPoolApi.js +0 -47
- package/dist/openapi/apis/DexPoolApi.js.map +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js.map +1 -1
- package/dist/openapi/models/ObjectSerializer.d.ts +3 -1
- package/dist/openapi/models/ObjectSerializer.js +9 -3
- package/dist/openapi/models/ObjectSerializer.js.map +1 -1
- package/dist/openapi/models/RankingToken.d.ts +2 -0
- package/dist/openapi/models/RankingToken.js +6 -0
- package/dist/openapi/models/RankingToken.js.map +1 -1
- package/dist/openapi/models/RankingTokenStat.d.ts +10 -0
- package/dist/openapi/models/RankingTokenStat.js +60 -0
- package/dist/openapi/models/RankingTokenStat.js.map +1 -1
- package/dist/openapi/models/Token.d.ts +6 -4
- package/dist/openapi/models/Token.js +5 -5
- package/dist/openapi/models/Token.js.map +1 -1
- package/dist/openapi/models/TokenCreatorsDTO.d.ts +22 -0
- package/dist/openapi/models/TokenCreatorsDTO.js +34 -0
- package/dist/openapi/models/TokenCreatorsDTO.js.map +1 -0
- package/dist/openapi/models/TokenExtraDTO.d.ts +35 -0
- package/dist/openapi/models/TokenExtraDTO.js +112 -0
- package/dist/openapi/models/TokenExtraDTO.js.map +1 -0
- package/dist/openapi/models/TokenMarketData.d.ts +2 -2
- package/dist/openapi/models/TokenMarketData.js +4 -4
- package/dist/openapi/models/TokenMarketData.js.map +1 -1
- package/dist/openapi/models/TokenMetadata.d.ts +6 -4
- package/dist/openapi/models/TokenMetadata.js +5 -5
- package/dist/openapi/models/TokenMetadata.js.map +1 -1
- package/dist/openapi/models/TokenSocialMediasDTO.d.ts +32 -0
- package/dist/openapi/models/TokenSocialMediasDTO.js +94 -0
- package/dist/openapi/models/TokenSocialMediasDTO.js.map +1 -0
- package/dist/openapi/models/all.d.ts +3 -1
- package/dist/openapi/models/all.js +3 -1
- package/dist/openapi/models/all.js.map +1 -1
- package/dist/openapi/types/ObjectParamAPI.d.ts +0 -7
- package/dist/openapi/types/ObjectParamAPI.js +0 -6
- package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
- package/dist/openapi/types/ObservableAPI.d.ts +0 -2
- package/dist/openapi/types/ObservableAPI.js +0 -18
- package/dist/openapi/types/ObservableAPI.js.map +1 -1
- package/dist/openapi/types/PromiseAPI.d.ts +0 -2
- package/dist/openapi/types/PromiseAPI.js +0 -8
- package/dist/openapi/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/src/api/stream.ts +441 -422
- package/src/index.ts +7 -1
- package/src/openapi/.openapi-generator/FILES +3 -1
- package/src/openapi/apis/DexPoolApi.ts +0 -85
- package/src/openapi/index.ts +1 -1
- package/src/openapi/models/ObjectSerializer.ts +9 -3
- package/src/openapi/models/RankingToken.ts +11 -0
- package/src/openapi/models/RankingTokenStat.ts +100 -0
- package/src/openapi/models/Token.ts +11 -9
- package/src/openapi/models/TokenCreatorsDTO.ts +59 -0
- package/src/openapi/models/{TokenExtraJsonDTO.ts → TokenExtraDTO.ts} +2 -2
- package/src/openapi/models/TokenMarketData.ts +6 -6
- package/src/openapi/models/TokenMetadata.ts +11 -9
- package/src/openapi/models/TokenSocialMediasDTO.ts +159 -0
- package/src/openapi/models/all.ts +3 -1
- package/src/openapi/types/ObjectParamAPI.ts +3 -43
- package/src/openapi/types/ObservableAPI.ts +3 -38
- package/src/openapi/types/PromiseAPI.ts +3 -25
package/src/index.ts
CHANGED
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
BearerAuthentication,
|
|
19
19
|
RedPacketApi,
|
|
20
20
|
IpfsApi,
|
|
21
|
+
WatchlistApi,
|
|
22
|
+
BlockchainApi,
|
|
21
23
|
} from "./openapi";
|
|
22
24
|
import { EventSourcePolyfill } from "event-source-polyfill";
|
|
23
25
|
|
|
@@ -37,7 +39,7 @@ export interface DexAggregatorOptions {
|
|
|
37
39
|
streamUrl?: string;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
export const LIB_VERSION = "0.0.
|
|
42
|
+
export const LIB_VERSION = "0.0.4";
|
|
41
43
|
|
|
42
44
|
class UserAgentMiddleware implements Middleware {
|
|
43
45
|
public pre(context: RequestContext): Promise<RequestContext> {
|
|
@@ -65,6 +67,8 @@ export class DexClient {
|
|
|
65
67
|
public readonly stream: StreamApi;
|
|
66
68
|
public readonly redPacket: RedPacketApi;
|
|
67
69
|
public readonly ipfs: IpfsApi;
|
|
70
|
+
public readonly blockchain: BlockchainApi;
|
|
71
|
+
public readonly watchlist: WatchlistApi;
|
|
68
72
|
public constructor(
|
|
69
73
|
accessToken: string | TokenProvider,
|
|
70
74
|
options: DexAggregatorOptions = {}
|
|
@@ -104,6 +108,8 @@ export class DexClient {
|
|
|
104
108
|
this.wallet = new WalletApi(config);
|
|
105
109
|
this.redPacket = new RedPacketApi(config);
|
|
106
110
|
this.ipfs = new IpfsApi(config);
|
|
111
|
+
this.blockchain = new BlockchainApi(config);
|
|
112
|
+
this.watchlist = new WatchlistApi(config);
|
|
107
113
|
this.stream.connect();
|
|
108
114
|
}
|
|
109
115
|
|
|
@@ -67,7 +67,8 @@ models/SwapRouteResponse.ts
|
|
|
67
67
|
models/Token.ts
|
|
68
68
|
models/TokenCreationDTO.ts
|
|
69
69
|
models/TokenCreationPage.ts
|
|
70
|
-
models/
|
|
70
|
+
models/TokenCreatorsDTO.ts
|
|
71
|
+
models/TokenExtraDTO.ts
|
|
71
72
|
models/TokenHolder.ts
|
|
72
73
|
models/TokenHolderPage.ts
|
|
73
74
|
models/TokenListPage.ts
|
|
@@ -76,6 +77,7 @@ models/TokenMetadata.ts
|
|
|
76
77
|
models/TokenPage.ts
|
|
77
78
|
models/TokenPriceDTO.ts
|
|
78
79
|
models/TokenPricePage.ts
|
|
80
|
+
models/TokenSocialMediasDTO.ts
|
|
79
81
|
models/TokenStat.ts
|
|
80
82
|
models/TopTradersDTO.ts
|
|
81
83
|
models/TopTradersPage.ts
|
|
@@ -49,63 +49,6 @@ export class DexPoolApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
53
|
-
// Apply auth methods
|
|
54
|
-
authMethod = _config.authMethods["bearer"]
|
|
55
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
56
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
60
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
61
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return requestContext;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* CONTROLLER.DEXPOOL.STATS.DESCRIPTION
|
|
69
|
-
* CONTROLLER.DEXPOOL.STATS.SUMMARY
|
|
70
|
-
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
71
|
-
* @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
|
|
72
|
-
* @param poolAddress GLOBAL.POOLADDRESS.DESCRIPTION
|
|
73
|
-
*/
|
|
74
|
-
public async getDexpoolStats(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, poolAddress: string, _options?: Configuration): Promise<RequestContext> {
|
|
75
|
-
let _config = _options || this.configuration;
|
|
76
|
-
|
|
77
|
-
// verify required parameter 'chain' is not null or undefined
|
|
78
|
-
if (chain === null || chain === undefined) {
|
|
79
|
-
throw new RequiredError("DexPoolApi", "getDexpoolStats", "chain");
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
// verify required parameter 'tokenAddress' is not null or undefined
|
|
84
|
-
if (tokenAddress === null || tokenAddress === undefined) {
|
|
85
|
-
throw new RequiredError("DexPoolApi", "getDexpoolStats", "tokenAddress");
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// verify required parameter 'poolAddress' is not null or undefined
|
|
90
|
-
if (poolAddress === null || poolAddress === undefined) {
|
|
91
|
-
throw new RequiredError("DexPoolApi", "getDexpoolStats", "poolAddress");
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
// Path Params
|
|
96
|
-
const localVarPath = '/v1/dexpools/{chain}/{tokenAddress}/{poolAddress}/stats'
|
|
97
|
-
.replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
|
|
98
|
-
.replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)))
|
|
99
|
-
.replace('{' + 'poolAddress' + '}', encodeURIComponent(String(poolAddress)));
|
|
100
|
-
|
|
101
|
-
// Make Request Context
|
|
102
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
103
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
104
|
-
const randomId = Math.floor(Math.random() * Math.pow(2, 32))
|
|
105
|
-
requestContext.setHeaderParam("x-req-id", randomId.toString())
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
52
|
let authMethod: SecurityAuthentication | undefined;
|
|
110
53
|
// Apply auth methods
|
|
111
54
|
authMethod = _config.authMethods["bearer"]
|
|
@@ -153,32 +96,4 @@ export class DexPoolApiResponseProcessor {
|
|
|
153
96
|
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
154
97
|
}
|
|
155
98
|
|
|
156
|
-
/**
|
|
157
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
158
|
-
* to the expected objects
|
|
159
|
-
*
|
|
160
|
-
* @params response Response returned by the server for a request to getDexpoolStats
|
|
161
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
162
|
-
*/
|
|
163
|
-
public async getDexpoolStatsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<any >> {
|
|
164
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
165
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
166
|
-
const body: any = ObjectSerializer.deserialize(
|
|
167
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
168
|
-
"any", ""
|
|
169
|
-
) as any;
|
|
170
|
-
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
174
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
175
|
-
const body: any = ObjectSerializer.deserialize(
|
|
176
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
177
|
-
"any", ""
|
|
178
|
-
) as any;
|
|
179
|
-
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
|
|
180
|
-
}
|
|
181
|
-
throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
99
|
}
|
package/src/openapi/index.ts
CHANGED
|
@@ -8,5 +8,5 @@ export * from "./servers";
|
|
|
8
8
|
export { RequiredError } from "./apis/baseapi";
|
|
9
9
|
|
|
10
10
|
export type { PromiseMiddleware as Middleware } from './middleware';
|
|
11
|
-
export { type BlockchainApiGetLatestBlockRequest, type BlockchainApiGetSupportedBlockchainsRequest, ObjectBlockchainApi as BlockchainApi, type DefiSolanaMoonshotApiMoonshotMintRequest, type DefiSolanaMoonshotApiMoonshotSubmitMintRequest, ObjectDefiSolanaMoonshotApi as DefiSolanaMoonshotApi, type DefiSolanaPumpfunApiPumpfunMintRequest, ObjectDefiSolanaPumpfunApi as DefiSolanaPumpfunApi, type DexApiListRequest, type DexApiMintRequest, type DexApiRouteRequest, type DexApiSwapRequest, ObjectDexApi as DexApi, type DexPoolApiGetDexpoolRequest,
|
|
11
|
+
export { type BlockchainApiGetLatestBlockRequest, type BlockchainApiGetSupportedBlockchainsRequest, ObjectBlockchainApi as BlockchainApi, type DefiSolanaMoonshotApiMoonshotMintRequest, type DefiSolanaMoonshotApiMoonshotSubmitMintRequest, ObjectDefiSolanaMoonshotApi as DefiSolanaMoonshotApi, type DefiSolanaPumpfunApiPumpfunMintRequest, ObjectDefiSolanaPumpfunApi as DefiSolanaPumpfunApi, type DexApiListRequest, type DexApiMintRequest, type DexApiRouteRequest, type DexApiSwapRequest, ObjectDexApi as DexApi, type DexPoolApiGetDexpoolRequest, ObjectDexPoolApi as DexPoolApi, type IpfsApiPresignRequest, ObjectIpfsApi as IpfsApi, type JobsApiJobControllerGetJobRequest, type JobsApiJobControllerStreamingRequest, ObjectJobsApi as JobsApi, type RankingApiGetFinalStretchTokensRequest, type RankingApiGetHotTokensRequest, type RankingApiGetMigratedTokensRequest, type RankingApiGetNewTokensRequest, type RankingApiGetStocksTokensRequest, ObjectRankingApi as RankingApi, type RedPacketApiClaimRequest, type RedPacketApiCreateRequest, type RedPacketApiGetRequest, type RedPacketApiGetClaimsRequest, type RedPacketApiGetClaimsByAddressRequest, type RedPacketApiGetRedpacketsRequest, type RedPacketApiGetRedpacketsByAddressRequest, type RedPacketApiRedpacketSendRequest, ObjectRedPacketApi as RedPacketApi, type TokenApiGetCandlesRequest, type TokenApiGetCreationRequest, type TokenApiGetHoldersRequest, type TokenApiGetHoldersMultiRequest, type TokenApiGetMarketDataRequest, type TokenApiGetMarketDataMultiRequest, type TokenApiGetMetadataRequest, type TokenApiGetMetadataMultiRequest, type TokenApiGetMintAndBurnRequest, type TokenApiGetPoolsRequest, type TokenApiGetPriceByTimeRequest, type TokenApiGetPricesRequest, type TokenApiGetSecurityRequest, type TokenApiGetStatsRequest, type TokenApiGetStatsMultiRequest, type TokenApiGetTokenRequest, type TokenApiGetTokenListRequest, type TokenApiGetTokensRequest, type TokenApiGetTopHoldersRequest, type TokenApiSearchRequest, ObjectTokenApi as TokenApi, type TradeApiGetGainersLosersRequest, type TradeApiGetTopTradersRequest, type TradeApiGetTradesRequest, ObjectTradeApi as TradeApi, type TransactionApiSendRequest, ObjectTransactionApi as TransactionApi, type WalletApiCalculatePnlRequest, type WalletApiGetBalanceRequest, type WalletApiGetPnlRequest, type WalletApiGetPnlStatsRequest, ObjectWalletApi as WalletApi, type WatchlistApiWatchlistAddRequest, ObjectWatchlistApi as WatchlistApi } from './types/ObjectParamAPI';
|
|
12
12
|
|
|
@@ -39,7 +39,8 @@ export * from '../models/SwapRouteResponse';
|
|
|
39
39
|
export * from '../models/Token';
|
|
40
40
|
export * from '../models/TokenCreationDTO';
|
|
41
41
|
export * from '../models/TokenCreationPage';
|
|
42
|
-
export * from '../models/
|
|
42
|
+
export * from '../models/TokenCreatorsDTO';
|
|
43
|
+
export * from '../models/TokenExtraDTO';
|
|
43
44
|
export * from '../models/TokenHolder';
|
|
44
45
|
export * from '../models/TokenHolderPage';
|
|
45
46
|
export * from '../models/TokenListPage';
|
|
@@ -48,6 +49,7 @@ export * from '../models/TokenMetadata';
|
|
|
48
49
|
export * from '../models/TokenPage';
|
|
49
50
|
export * from '../models/TokenPriceDTO';
|
|
50
51
|
export * from '../models/TokenPricePage';
|
|
52
|
+
export * from '../models/TokenSocialMediasDTO';
|
|
51
53
|
export * from '../models/TokenStat';
|
|
52
54
|
export * from '../models/TopTradersDTO';
|
|
53
55
|
export * from '../models/TopTradersPage';
|
|
@@ -100,7 +102,8 @@ import { SwapRouteResponse } from '../models/SwapRouteResponse';
|
|
|
100
102
|
import { Token } from '../models/Token';
|
|
101
103
|
import { TokenCreationDTO , TokenCreationDTOTypeEnum } from '../models/TokenCreationDTO';
|
|
102
104
|
import { TokenCreationPage } from '../models/TokenCreationPage';
|
|
103
|
-
import {
|
|
105
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
106
|
+
import { TokenExtraDTO } from '../models/TokenExtraDTO';
|
|
104
107
|
import { TokenHolder } from '../models/TokenHolder';
|
|
105
108
|
import { TokenHolderPage } from '../models/TokenHolderPage';
|
|
106
109
|
import { TokenListPage } from '../models/TokenListPage';
|
|
@@ -109,6 +112,7 @@ import { TokenMetadata } from '../models/TokenMetadata';
|
|
|
109
112
|
import { TokenPage } from '../models/TokenPage';
|
|
110
113
|
import { TokenPriceDTO } from '../models/TokenPriceDTO';
|
|
111
114
|
import { TokenPricePage } from '../models/TokenPricePage';
|
|
115
|
+
import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
|
|
112
116
|
import { TokenStat } from '../models/TokenStat';
|
|
113
117
|
import { TopTradersDTO } from '../models/TopTradersDTO';
|
|
114
118
|
import { TopTradersPage } from '../models/TopTradersPage';
|
|
@@ -193,7 +197,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
193
197
|
"Token": Token,
|
|
194
198
|
"TokenCreationDTO": TokenCreationDTO,
|
|
195
199
|
"TokenCreationPage": TokenCreationPage,
|
|
196
|
-
"
|
|
200
|
+
"TokenCreatorsDTO": TokenCreatorsDTO,
|
|
201
|
+
"TokenExtraDTO": TokenExtraDTO,
|
|
197
202
|
"TokenHolder": TokenHolder,
|
|
198
203
|
"TokenHolderPage": TokenHolderPage,
|
|
199
204
|
"TokenListPage": TokenListPage,
|
|
@@ -202,6 +207,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
202
207
|
"TokenPage": TokenPage,
|
|
203
208
|
"TokenPriceDTO": TokenPriceDTO,
|
|
204
209
|
"TokenPricePage": TokenPricePage,
|
|
210
|
+
"TokenSocialMediasDTO": TokenSocialMediasDTO,
|
|
205
211
|
"TokenStat": TokenStat,
|
|
206
212
|
"TopTradersDTO": TopTradersDTO,
|
|
207
213
|
"TopTradersPage": TopTradersPage,
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RankingTokenMarketData } from '../models/RankingTokenMarketData';
|
|
14
14
|
import { RankingTokenStat } from '../models/RankingTokenStat';
|
|
15
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
15
16
|
import { HttpFile } from '../http/http';
|
|
16
17
|
|
|
17
18
|
export class RankingToken {
|
|
@@ -32,6 +33,10 @@ export class RankingToken {
|
|
|
32
33
|
*/
|
|
33
34
|
'address': string;
|
|
34
35
|
/**
|
|
36
|
+
* DTO.TOKEN.METADATA.TOKEN_CREATORS
|
|
37
|
+
*/
|
|
38
|
+
'tokenCreators'?: TokenCreatorsDTO;
|
|
39
|
+
/**
|
|
35
40
|
* DTO.TOKEN.METADATA.IMAGE_URL
|
|
36
41
|
*/
|
|
37
42
|
'imageUrl'?: string;
|
|
@@ -81,6 +86,12 @@ export class RankingToken {
|
|
|
81
86
|
"type": "string",
|
|
82
87
|
"format": ""
|
|
83
88
|
},
|
|
89
|
+
{
|
|
90
|
+
"name": "tokenCreators",
|
|
91
|
+
"baseName": "tokenCreators",
|
|
92
|
+
"type": "TokenCreatorsDTO",
|
|
93
|
+
"format": ""
|
|
94
|
+
},
|
|
84
95
|
{
|
|
85
96
|
"name": "imageUrl",
|
|
86
97
|
"baseName": "imageUrl",
|
|
@@ -26,6 +26,14 @@ export class RankingTokenStat {
|
|
|
26
26
|
*/
|
|
27
27
|
'trades1m': number;
|
|
28
28
|
/**
|
|
29
|
+
* DTO.TOKEN.STAT.BUYS_1M
|
|
30
|
+
*/
|
|
31
|
+
'buys1m': number;
|
|
32
|
+
/**
|
|
33
|
+
* DTO.TOKEN.STAT.SELLS_1M
|
|
34
|
+
*/
|
|
35
|
+
'sells1m': number;
|
|
36
|
+
/**
|
|
29
37
|
* DTO.TOKEN.STAT.TRADERS_1M
|
|
30
38
|
*/
|
|
31
39
|
'traders1m': number;
|
|
@@ -42,6 +50,14 @@ export class RankingTokenStat {
|
|
|
42
50
|
*/
|
|
43
51
|
'trades5m': number;
|
|
44
52
|
/**
|
|
53
|
+
* DTO.TOKEN.STAT.BUYS_5M
|
|
54
|
+
*/
|
|
55
|
+
'buys5m': number;
|
|
56
|
+
/**
|
|
57
|
+
* DTO.TOKEN.STAT.SELLS_5M
|
|
58
|
+
*/
|
|
59
|
+
'sells5m': number;
|
|
60
|
+
/**
|
|
45
61
|
* DTO.TOKEN.STAT.TRADERS_5M
|
|
46
62
|
*/
|
|
47
63
|
'traders5m': number;
|
|
@@ -58,6 +74,14 @@ export class RankingTokenStat {
|
|
|
58
74
|
*/
|
|
59
75
|
'trades1h': number;
|
|
60
76
|
/**
|
|
77
|
+
* DTO.TOKEN.STAT.BUYS_1H
|
|
78
|
+
*/
|
|
79
|
+
'buys1h': number;
|
|
80
|
+
/**
|
|
81
|
+
* DTO.TOKEN.STAT.SELLS_5M
|
|
82
|
+
*/
|
|
83
|
+
'sells1h': number;
|
|
84
|
+
/**
|
|
61
85
|
* DTO.TOKEN.STAT.TRADERS_1H
|
|
62
86
|
*/
|
|
63
87
|
'traders1h': number;
|
|
@@ -74,6 +98,14 @@ export class RankingTokenStat {
|
|
|
74
98
|
*/
|
|
75
99
|
'trades4h': number;
|
|
76
100
|
/**
|
|
101
|
+
* DTO.TOKEN.STAT.BUYS_4H
|
|
102
|
+
*/
|
|
103
|
+
'buys4h': number;
|
|
104
|
+
/**
|
|
105
|
+
* DTO.TOKEN.STAT.SELLS_4H
|
|
106
|
+
*/
|
|
107
|
+
'sells4h': number;
|
|
108
|
+
/**
|
|
77
109
|
* DTO.TOKEN.STAT.TRADERS_4H
|
|
78
110
|
*/
|
|
79
111
|
'traders4h': number;
|
|
@@ -90,6 +122,14 @@ export class RankingTokenStat {
|
|
|
90
122
|
*/
|
|
91
123
|
'trades24h': number;
|
|
92
124
|
/**
|
|
125
|
+
* DTO.TOKEN.STAT.BUYS_24H
|
|
126
|
+
*/
|
|
127
|
+
'buys24h': number;
|
|
128
|
+
/**
|
|
129
|
+
* DTO.TOKEN.STAT.SELLS_24H
|
|
130
|
+
*/
|
|
131
|
+
'sells24h': number;
|
|
132
|
+
/**
|
|
93
133
|
* DTO.TOKEN.STAT.TRADERS_24H
|
|
94
134
|
*/
|
|
95
135
|
'traders24h': number;
|
|
@@ -117,6 +157,18 @@ export class RankingTokenStat {
|
|
|
117
157
|
"type": "number",
|
|
118
158
|
"format": ""
|
|
119
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"name": "buys1m",
|
|
162
|
+
"baseName": "buys1m",
|
|
163
|
+
"type": "number",
|
|
164
|
+
"format": ""
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "sells1m",
|
|
168
|
+
"baseName": "sells1m",
|
|
169
|
+
"type": "number",
|
|
170
|
+
"format": ""
|
|
171
|
+
},
|
|
120
172
|
{
|
|
121
173
|
"name": "traders1m",
|
|
122
174
|
"baseName": "traders1m",
|
|
@@ -141,6 +193,18 @@ export class RankingTokenStat {
|
|
|
141
193
|
"type": "number",
|
|
142
194
|
"format": ""
|
|
143
195
|
},
|
|
196
|
+
{
|
|
197
|
+
"name": "buys5m",
|
|
198
|
+
"baseName": "buys5m",
|
|
199
|
+
"type": "number",
|
|
200
|
+
"format": ""
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "sells5m",
|
|
204
|
+
"baseName": "sells5m",
|
|
205
|
+
"type": "number",
|
|
206
|
+
"format": ""
|
|
207
|
+
},
|
|
144
208
|
{
|
|
145
209
|
"name": "traders5m",
|
|
146
210
|
"baseName": "traders5m",
|
|
@@ -165,6 +229,18 @@ export class RankingTokenStat {
|
|
|
165
229
|
"type": "number",
|
|
166
230
|
"format": ""
|
|
167
231
|
},
|
|
232
|
+
{
|
|
233
|
+
"name": "buys1h",
|
|
234
|
+
"baseName": "buys1h",
|
|
235
|
+
"type": "number",
|
|
236
|
+
"format": ""
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "sells1h",
|
|
240
|
+
"baseName": "sells1h",
|
|
241
|
+
"type": "number",
|
|
242
|
+
"format": ""
|
|
243
|
+
},
|
|
168
244
|
{
|
|
169
245
|
"name": "traders1h",
|
|
170
246
|
"baseName": "traders1h",
|
|
@@ -189,6 +265,18 @@ export class RankingTokenStat {
|
|
|
189
265
|
"type": "number",
|
|
190
266
|
"format": ""
|
|
191
267
|
},
|
|
268
|
+
{
|
|
269
|
+
"name": "buys4h",
|
|
270
|
+
"baseName": "buys4h",
|
|
271
|
+
"type": "number",
|
|
272
|
+
"format": ""
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "sells4h",
|
|
276
|
+
"baseName": "sells4h",
|
|
277
|
+
"type": "number",
|
|
278
|
+
"format": ""
|
|
279
|
+
},
|
|
192
280
|
{
|
|
193
281
|
"name": "traders4h",
|
|
194
282
|
"baseName": "traders4h",
|
|
@@ -213,6 +301,18 @@ export class RankingTokenStat {
|
|
|
213
301
|
"type": "number",
|
|
214
302
|
"format": ""
|
|
215
303
|
},
|
|
304
|
+
{
|
|
305
|
+
"name": "buys24h",
|
|
306
|
+
"baseName": "buys24h",
|
|
307
|
+
"type": "number",
|
|
308
|
+
"format": ""
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "sells24h",
|
|
312
|
+
"baseName": "sells24h",
|
|
313
|
+
"type": "number",
|
|
314
|
+
"format": ""
|
|
315
|
+
},
|
|
216
316
|
{
|
|
217
317
|
"name": "traders24h",
|
|
218
318
|
"baseName": "traders24h",
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DexPoolDTO } from '../models/DexPoolDTO';
|
|
14
|
-
import {
|
|
14
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
15
|
+
import { TokenExtraDTO } from '../models/TokenExtraDTO';
|
|
15
16
|
import { TokenMarketData } from '../models/TokenMarketData';
|
|
17
|
+
import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
|
|
16
18
|
import { TokenStat } from '../models/TokenStat';
|
|
17
19
|
import { HttpFile } from '../http/http';
|
|
18
20
|
|
|
@@ -44,7 +46,7 @@ export class Token {
|
|
|
44
46
|
/**
|
|
45
47
|
* DTO.TOKEN.METADATA.TOKEN_CREATORS
|
|
46
48
|
*/
|
|
47
|
-
'tokenCreators'?:
|
|
49
|
+
'tokenCreators'?: TokenCreatorsDTO;
|
|
48
50
|
/**
|
|
49
51
|
* DTO.TOKEN.METADATA.IMAGE_URL
|
|
50
52
|
*/
|
|
@@ -56,11 +58,11 @@ export class Token {
|
|
|
56
58
|
/**
|
|
57
59
|
* DTO.TOKEN.METADATA.EXTRA
|
|
58
60
|
*/
|
|
59
|
-
'
|
|
61
|
+
'extra'?: TokenExtraDTO;
|
|
60
62
|
/**
|
|
61
63
|
* DTO.TOKEN.METADATA.SOCIAL_MEDIAS
|
|
62
64
|
*/
|
|
63
|
-
'socialMedias'?:
|
|
65
|
+
'socialMedias'?: TokenSocialMediasDTO;
|
|
64
66
|
/**
|
|
65
67
|
* DTO.TOKEN.METADATA.TOKEN_CREATED_AT
|
|
66
68
|
*/
|
|
@@ -138,7 +140,7 @@ export class Token {
|
|
|
138
140
|
{
|
|
139
141
|
"name": "tokenCreators",
|
|
140
142
|
"baseName": "tokenCreators",
|
|
141
|
-
"type": "
|
|
143
|
+
"type": "TokenCreatorsDTO",
|
|
142
144
|
"format": ""
|
|
143
145
|
},
|
|
144
146
|
{
|
|
@@ -154,15 +156,15 @@ export class Token {
|
|
|
154
156
|
"format": ""
|
|
155
157
|
},
|
|
156
158
|
{
|
|
157
|
-
"name": "
|
|
158
|
-
"baseName": "
|
|
159
|
-
"type": "
|
|
159
|
+
"name": "extra",
|
|
160
|
+
"baseName": "extra",
|
|
161
|
+
"type": "TokenExtraDTO",
|
|
160
162
|
"format": ""
|
|
161
163
|
},
|
|
162
164
|
{
|
|
163
165
|
"name": "socialMedias",
|
|
164
166
|
"baseName": "socialMedias",
|
|
165
|
-
"type": "
|
|
167
|
+
"type": "TokenSocialMediasDTO",
|
|
166
168
|
"format": ""
|
|
167
169
|
},
|
|
168
170
|
{
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dex Aggregator API
|
|
3
|
+
* Dex Aggregator API ⚡️
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0
|
|
6
|
+
* Contact: ai@sx.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { HttpFile } from '../http/http';
|
|
14
|
+
|
|
15
|
+
export class TokenCreatorsDTO {
|
|
16
|
+
/**
|
|
17
|
+
* DTO.TOKEN.CREATORS.ADDRESS
|
|
18
|
+
*/
|
|
19
|
+
'address'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* DTO.TOKEN.CREATORS.SHARE
|
|
22
|
+
*/
|
|
23
|
+
'share'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* DTO.TOKEN.CREATORS.IS_VERIFIED
|
|
26
|
+
*/
|
|
27
|
+
'isVerified'?: boolean;
|
|
28
|
+
|
|
29
|
+
static readonly discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
32
|
+
|
|
33
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
34
|
+
{
|
|
35
|
+
"name": "address",
|
|
36
|
+
"baseName": "address",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "share",
|
|
42
|
+
"baseName": "share",
|
|
43
|
+
"type": "number",
|
|
44
|
+
"format": ""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "isVerified",
|
|
48
|
+
"baseName": "isVerified",
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"format": ""
|
|
51
|
+
} ];
|
|
52
|
+
|
|
53
|
+
static getAttributeTypeMap() {
|
|
54
|
+
return TokenCreatorsDTO.attributeTypeMap;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public constructor() {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { HttpFile } from '../http/http';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class TokenExtraDTO {
|
|
16
16
|
/**
|
|
17
17
|
* DTO.TOKEN.EXTRA.COLLECTION_ADDRESS
|
|
18
18
|
*/
|
|
@@ -181,7 +181,7 @@ export class TokenExtraJsonDTO {
|
|
|
181
181
|
} ];
|
|
182
182
|
|
|
183
183
|
static getAttributeTypeMap() {
|
|
184
|
-
return
|
|
184
|
+
return TokenExtraDTO.attributeTypeMap;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
public constructor() {
|
|
@@ -72,11 +72,11 @@ export class TokenMarketData {
|
|
|
72
72
|
/**
|
|
73
73
|
* DTO.TOKEN.MARKET_CAP.CREATORS_AMOUNT
|
|
74
74
|
*/
|
|
75
|
-
'
|
|
75
|
+
'creatorHoldings'?: string;
|
|
76
76
|
/**
|
|
77
77
|
* DTO.TOKEN.MARKET_CAP.CREATORS_RATIO
|
|
78
78
|
*/
|
|
79
|
-
'
|
|
79
|
+
'creatorHoldingRatio'?: string;
|
|
80
80
|
|
|
81
81
|
static readonly discriminator: string | undefined = undefined;
|
|
82
82
|
|
|
@@ -168,14 +168,14 @@ export class TokenMarketData {
|
|
|
168
168
|
"format": ""
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"name": "
|
|
172
|
-
"baseName": "
|
|
171
|
+
"name": "creatorHoldings",
|
|
172
|
+
"baseName": "creatorHoldings",
|
|
173
173
|
"type": "string",
|
|
174
174
|
"format": ""
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
"name": "
|
|
178
|
-
"baseName": "
|
|
177
|
+
"name": "creatorHoldingRatio",
|
|
178
|
+
"baseName": "creatorHoldingRatio",
|
|
179
179
|
"type": "string",
|
|
180
180
|
"format": ""
|
|
181
181
|
} ];
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
14
|
+
import { TokenExtraDTO } from '../models/TokenExtraDTO';
|
|
15
|
+
import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
|
|
14
16
|
import { HttpFile } from '../http/http';
|
|
15
17
|
|
|
16
18
|
export class TokenMetadata {
|
|
@@ -41,7 +43,7 @@ export class TokenMetadata {
|
|
|
41
43
|
/**
|
|
42
44
|
* DTO.TOKEN.METADATA.TOKEN_CREATORS
|
|
43
45
|
*/
|
|
44
|
-
'tokenCreators'?:
|
|
46
|
+
'tokenCreators'?: TokenCreatorsDTO;
|
|
45
47
|
/**
|
|
46
48
|
* DTO.TOKEN.METADATA.IMAGE_URL
|
|
47
49
|
*/
|
|
@@ -53,11 +55,11 @@ export class TokenMetadata {
|
|
|
53
55
|
/**
|
|
54
56
|
* DTO.TOKEN.METADATA.EXTRA
|
|
55
57
|
*/
|
|
56
|
-
'
|
|
58
|
+
'extra'?: TokenExtraDTO;
|
|
57
59
|
/**
|
|
58
60
|
* DTO.TOKEN.METADATA.SOCIAL_MEDIAS
|
|
59
61
|
*/
|
|
60
|
-
'socialMedias'?:
|
|
62
|
+
'socialMedias'?: TokenSocialMediasDTO;
|
|
61
63
|
/**
|
|
62
64
|
* DTO.TOKEN.METADATA.TOKEN_CREATED_AT
|
|
63
65
|
*/
|
|
@@ -111,7 +113,7 @@ export class TokenMetadata {
|
|
|
111
113
|
{
|
|
112
114
|
"name": "tokenCreators",
|
|
113
115
|
"baseName": "tokenCreators",
|
|
114
|
-
"type": "
|
|
116
|
+
"type": "TokenCreatorsDTO",
|
|
115
117
|
"format": ""
|
|
116
118
|
},
|
|
117
119
|
{
|
|
@@ -127,15 +129,15 @@ export class TokenMetadata {
|
|
|
127
129
|
"format": ""
|
|
128
130
|
},
|
|
129
131
|
{
|
|
130
|
-
"name": "
|
|
131
|
-
"baseName": "
|
|
132
|
-
"type": "
|
|
132
|
+
"name": "extra",
|
|
133
|
+
"baseName": "extra",
|
|
134
|
+
"type": "TokenExtraDTO",
|
|
133
135
|
"format": ""
|
|
134
136
|
},
|
|
135
137
|
{
|
|
136
138
|
"name": "socialMedias",
|
|
137
139
|
"baseName": "socialMedias",
|
|
138
|
-
"type": "
|
|
140
|
+
"type": "TokenSocialMediasDTO",
|
|
139
141
|
"format": ""
|
|
140
142
|
},
|
|
141
143
|
{
|