@codex-data/sdk 1.0.35 → 1.0.36
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/resources/graphql.d.ts +0 -10
- package/dist/resources/graphql.d.ts.map +1 -1
- package/dist/resources/graphql.js.map +1 -1
- package/dist/sdk/Subscribe.js +7 -7
- package/dist/sdk/generated/gql.d.ts +46 -46
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +23 -23
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +0 -51
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +23 -23
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/Balances.graphql +0 -1
- package/src/resources/generated_queries/FilterPairs.graphql +0 -4
- package/src/resources/generated_queries/FilterTokens.graphql +0 -5
- package/src/resources/generated_queries/GetBars.graphql +0 -2
- package/src/resources/generated_queries/GetCommunityNotes.graphql +0 -1
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +0 -2
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +0 -2
- package/src/resources/generated_queries/GetTokenBars.graphql +0 -1
- package/src/resources/generated_queries/GetTokenPrices.graphql +0 -1
- package/src/resources/generated_queries/Holders.graphql +0 -2
- package/src/resources/generated_queries/ListPairsForToken.graphql +0 -2
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +0 -4
- package/src/resources/generated_queries/PairMetadata.graphql +0 -2
- package/src/resources/generated_queries/PrimeHolders.graphql +0 -1
- package/src/resources/generated_queries/Token.graphql +0 -1
- package/src/resources/generated_queries/Tokens.graphql +0 -1
- package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +0 -1
- package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -2
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +0 -1
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +0 -1
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +0 -2
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +0 -1
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +0 -1
- package/src/resources/graphql.schema.json +0 -60
- package/src/resources/graphql.ts +0 -10
- package/src/resources/schema.graphql +0 -10
- package/src/sdk/Subscribe.ts +7 -7
- package/src/sdk/generated/gql.ts +69 -69
- package/src/sdk/generated/graphql.ts +46 -56
package/package.json
CHANGED
|
@@ -134,7 +134,6 @@ query FilterPairs(
|
|
|
134
134
|
mintable
|
|
135
135
|
name
|
|
136
136
|
networkId
|
|
137
|
-
pairId
|
|
138
137
|
socialLinks {
|
|
139
138
|
bitcointalk
|
|
140
139
|
blog
|
|
@@ -216,7 +215,6 @@ query FilterPairs(
|
|
|
216
215
|
mintable
|
|
217
216
|
name
|
|
218
217
|
networkId
|
|
219
|
-
pairId
|
|
220
218
|
socialLinks {
|
|
221
219
|
bitcointalk
|
|
222
220
|
blog
|
|
@@ -315,7 +313,6 @@ query FilterPairs(
|
|
|
315
313
|
mintable
|
|
316
314
|
name
|
|
317
315
|
networkId
|
|
318
|
-
pairId
|
|
319
316
|
socialLinks {
|
|
320
317
|
bitcointalk
|
|
321
318
|
blog
|
|
@@ -396,7 +393,6 @@ query FilterPairs(
|
|
|
396
393
|
mintable
|
|
397
394
|
name
|
|
398
395
|
networkId
|
|
399
|
-
pairId
|
|
400
396
|
socialLinks {
|
|
401
397
|
bitcointalk
|
|
402
398
|
blog
|
|
@@ -138,7 +138,6 @@ query FilterTokens(
|
|
|
138
138
|
mintable
|
|
139
139
|
name
|
|
140
140
|
networkId
|
|
141
|
-
pairId
|
|
142
141
|
socialLinks {
|
|
143
142
|
bitcointalk
|
|
144
143
|
blog
|
|
@@ -220,7 +219,6 @@ query FilterTokens(
|
|
|
220
219
|
mintable
|
|
221
220
|
name
|
|
222
221
|
networkId
|
|
223
|
-
pairId
|
|
224
222
|
socialLinks {
|
|
225
223
|
bitcointalk
|
|
226
224
|
blog
|
|
@@ -336,7 +334,6 @@ query FilterTokens(
|
|
|
336
334
|
mintable
|
|
337
335
|
name
|
|
338
336
|
networkId
|
|
339
|
-
pairId
|
|
340
337
|
socialLinks {
|
|
341
338
|
bitcointalk
|
|
342
339
|
blog
|
|
@@ -418,7 +415,6 @@ query FilterTokens(
|
|
|
418
415
|
mintable
|
|
419
416
|
name
|
|
420
417
|
networkId
|
|
421
|
-
pairId
|
|
422
418
|
socialLinks {
|
|
423
419
|
bitcointalk
|
|
424
420
|
blog
|
|
@@ -514,7 +510,6 @@ query FilterTokens(
|
|
|
514
510
|
mintable
|
|
515
511
|
name
|
|
516
512
|
networkId
|
|
517
|
-
pairId
|
|
518
513
|
socialLinks {
|
|
519
514
|
bitcointalk
|
|
520
515
|
blog
|
|
@@ -114,7 +114,6 @@ query GetBars(
|
|
|
114
114
|
mintable
|
|
115
115
|
name
|
|
116
116
|
networkId
|
|
117
|
-
pairId
|
|
118
117
|
socialLinks {
|
|
119
118
|
bitcointalk
|
|
120
119
|
blog
|
|
@@ -196,7 +195,6 @@ query GetBars(
|
|
|
196
195
|
mintable
|
|
197
196
|
name
|
|
198
197
|
networkId
|
|
199
|
-
pairId
|
|
200
198
|
socialLinks {
|
|
201
199
|
bitcointalk
|
|
202
200
|
blog
|
|
@@ -101,7 +101,6 @@ query GetDetailedPairStats(
|
|
|
101
101
|
mintable
|
|
102
102
|
name
|
|
103
103
|
networkId
|
|
104
|
-
pairId
|
|
105
104
|
socialLinks {
|
|
106
105
|
bitcointalk
|
|
107
106
|
blog
|
|
@@ -183,7 +182,6 @@ query GetDetailedPairStats(
|
|
|
183
182
|
mintable
|
|
184
183
|
name
|
|
185
184
|
networkId
|
|
186
|
-
pairId
|
|
187
185
|
socialLinks {
|
|
188
186
|
bitcointalk
|
|
189
187
|
blog
|
|
@@ -85,7 +85,6 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
|
|
|
85
85
|
mintable
|
|
86
86
|
name
|
|
87
87
|
networkId
|
|
88
|
-
pairId
|
|
89
88
|
socialLinks {
|
|
90
89
|
bitcointalk
|
|
91
90
|
blog
|
|
@@ -167,7 +166,6 @@ query GetDetailedPairsStats($input: [GetDetailedPairsStatsInput!]!) {
|
|
|
167
166
|
mintable
|
|
168
167
|
name
|
|
169
168
|
networkId
|
|
170
|
-
pairId
|
|
171
169
|
socialLinks {
|
|
172
170
|
bitcointalk
|
|
173
171
|
blog
|
|
@@ -66,7 +66,6 @@ query Holders($input: HoldersInput!) {
|
|
|
66
66
|
mintable
|
|
67
67
|
name
|
|
68
68
|
networkId
|
|
69
|
-
pairId
|
|
70
69
|
socialLinks {
|
|
71
70
|
bitcointalk
|
|
72
71
|
blog
|
|
@@ -96,7 +95,6 @@ query Holders($input: HoldersInput!) {
|
|
|
96
95
|
walletId
|
|
97
96
|
}
|
|
98
97
|
status
|
|
99
|
-
tokenId
|
|
100
98
|
top10HoldersPercent
|
|
101
99
|
}
|
|
102
100
|
}
|
|
@@ -85,7 +85,6 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
|
|
|
85
85
|
mintable
|
|
86
86
|
name
|
|
87
87
|
networkId
|
|
88
|
-
pairId
|
|
89
88
|
socialLinks {
|
|
90
89
|
bitcointalk
|
|
91
90
|
blog
|
|
@@ -167,7 +166,6 @@ query ListPairsForToken($limit: Int, $networkId: Int!, $tokenAddress: String!) {
|
|
|
167
166
|
mintable
|
|
168
167
|
name
|
|
169
168
|
networkId
|
|
170
|
-
pairId
|
|
171
169
|
socialLinks {
|
|
172
170
|
bitcointalk
|
|
173
171
|
blog
|
|
@@ -66,7 +66,6 @@ query ListPairsWithMetadataForToken(
|
|
|
66
66
|
mintable
|
|
67
67
|
name
|
|
68
68
|
networkId
|
|
69
|
-
pairId
|
|
70
69
|
socialLinks {
|
|
71
70
|
bitcointalk
|
|
72
71
|
blog
|
|
@@ -183,7 +182,6 @@ query ListPairsWithMetadataForToken(
|
|
|
183
182
|
mintable
|
|
184
183
|
name
|
|
185
184
|
networkId
|
|
186
|
-
pairId
|
|
187
185
|
socialLinks {
|
|
188
186
|
bitcointalk
|
|
189
187
|
blog
|
|
@@ -265,7 +263,6 @@ query ListPairsWithMetadataForToken(
|
|
|
265
263
|
mintable
|
|
266
264
|
name
|
|
267
265
|
networkId
|
|
268
|
-
pairId
|
|
269
266
|
socialLinks {
|
|
270
267
|
bitcointalk
|
|
271
268
|
blog
|
|
@@ -348,7 +345,6 @@ query ListPairsWithMetadataForToken(
|
|
|
348
345
|
mintable
|
|
349
346
|
name
|
|
350
347
|
networkId
|
|
351
|
-
pairId
|
|
352
348
|
socialLinks {
|
|
353
349
|
bitcointalk
|
|
354
350
|
blog
|
|
@@ -58,7 +58,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
58
58
|
mintable
|
|
59
59
|
name
|
|
60
60
|
networkId
|
|
61
|
-
pairId
|
|
62
61
|
socialLinks {
|
|
63
62
|
bitcointalk
|
|
64
63
|
blog
|
|
@@ -139,7 +138,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
139
138
|
mintable
|
|
140
139
|
name
|
|
141
140
|
networkId
|
|
142
|
-
pairId
|
|
143
141
|
socialLinks {
|
|
144
142
|
bitcointalk
|
|
145
143
|
blog
|
|
@@ -5132,18 +5132,6 @@
|
|
|
5132
5132
|
"description": "Detailed stats for a token within a pair.",
|
|
5133
5133
|
"isOneOf": null,
|
|
5134
5134
|
"fields": [
|
|
5135
|
-
{
|
|
5136
|
-
"name": "bucketCount",
|
|
5137
|
-
"description": "Number of aggregated buckets specified in input",
|
|
5138
|
-
"args": [],
|
|
5139
|
-
"type": {
|
|
5140
|
-
"kind": "SCALAR",
|
|
5141
|
-
"name": "Int",
|
|
5142
|
-
"ofType": null
|
|
5143
|
-
},
|
|
5144
|
-
"isDeprecated": false,
|
|
5145
|
-
"deprecationReason": null
|
|
5146
|
-
},
|
|
5147
5135
|
{
|
|
5148
5136
|
"name": "pairId",
|
|
5149
5137
|
"description": "The ID of the pair (`pairAddress:networkId`).",
|
|
@@ -5160,18 +5148,6 @@
|
|
|
5160
5148
|
"isDeprecated": false,
|
|
5161
5149
|
"deprecationReason": null
|
|
5162
5150
|
},
|
|
5163
|
-
{
|
|
5164
|
-
"name": "queryTimestamp",
|
|
5165
|
-
"description": "The timestamp specified as input to the query",
|
|
5166
|
-
"args": [],
|
|
5167
|
-
"type": {
|
|
5168
|
-
"kind": "SCALAR",
|
|
5169
|
-
"name": "Int",
|
|
5170
|
-
"ofType": null
|
|
5171
|
-
},
|
|
5172
|
-
"isDeprecated": false,
|
|
5173
|
-
"deprecationReason": null
|
|
5174
|
-
},
|
|
5175
5151
|
{
|
|
5176
5152
|
"name": "statsType",
|
|
5177
5153
|
"description": "The type of statistics returned. Can be `FILTERED` or `UNFILTERED`.",
|
|
@@ -6252,18 +6228,6 @@
|
|
|
6252
6228
|
"isDeprecated": false,
|
|
6253
6229
|
"deprecationReason": null
|
|
6254
6230
|
},
|
|
6255
|
-
{
|
|
6256
|
-
"name": "pairId",
|
|
6257
|
-
"description": "The pair that the token is contained in",
|
|
6258
|
-
"args": [],
|
|
6259
|
-
"type": {
|
|
6260
|
-
"kind": "SCALAR",
|
|
6261
|
-
"name": "String",
|
|
6262
|
-
"ofType": null
|
|
6263
|
-
},
|
|
6264
|
-
"isDeprecated": false,
|
|
6265
|
-
"deprecationReason": null
|
|
6266
|
-
},
|
|
6267
6231
|
{
|
|
6268
6232
|
"name": "pooled",
|
|
6269
6233
|
"description": "The amount of this token in the pair.",
|
|
@@ -10001,18 +9965,6 @@
|
|
|
10001
9965
|
"isDeprecated": false,
|
|
10002
9966
|
"deprecationReason": null
|
|
10003
9967
|
},
|
|
10004
|
-
{
|
|
10005
|
-
"name": "tokenId",
|
|
10006
|
-
"description": "the token Id",
|
|
10007
|
-
"args": [],
|
|
10008
|
-
"type": {
|
|
10009
|
-
"kind": "SCALAR",
|
|
10010
|
-
"name": "String",
|
|
10011
|
-
"ofType": null
|
|
10012
|
-
},
|
|
10013
|
-
"isDeprecated": false,
|
|
10014
|
-
"deprecationReason": null
|
|
10015
|
-
},
|
|
10016
9968
|
{
|
|
10017
9969
|
"name": "top10HoldersPercent",
|
|
10018
9970
|
"description": "What percentage of the total supply do the top 10 holders hold.",
|
|
@@ -36240,18 +36192,6 @@
|
|
|
36240
36192
|
"isDeprecated": true,
|
|
36241
36193
|
"deprecationReason": "Pricing no longer based on specific pools"
|
|
36242
36194
|
},
|
|
36243
|
-
{
|
|
36244
|
-
"name": "internalPoolAddress",
|
|
36245
|
-
"description": "The internal pool address for the price",
|
|
36246
|
-
"args": [],
|
|
36247
|
-
"type": {
|
|
36248
|
-
"kind": "SCALAR",
|
|
36249
|
-
"name": "String",
|
|
36250
|
-
"ofType": null
|
|
36251
|
-
},
|
|
36252
|
-
"isDeprecated": false,
|
|
36253
|
-
"deprecationReason": null
|
|
36254
|
-
},
|
|
36255
36195
|
{
|
|
36256
36196
|
"name": "networkId",
|
|
36257
36197
|
"description": "The network ID the token is deployed on.",
|
package/src/resources/graphql.ts
CHANGED
|
@@ -869,12 +869,8 @@ export type DetailedPairStatsStringMetrics = {
|
|
|
869
869
|
/** Detailed stats for a token within a pair. */
|
|
870
870
|
export type DetailedStats = {
|
|
871
871
|
__typename?: 'DetailedStats';
|
|
872
|
-
/** Number of aggregated buckets specified in input */
|
|
873
|
-
bucketCount?: Maybe<Scalars['Int']['output']>;
|
|
874
872
|
/** The ID of the pair (`pairAddress:networkId`). */
|
|
875
873
|
pairId: Scalars['String']['output'];
|
|
876
|
-
/** The timestamp specified as input to the query */
|
|
877
|
-
queryTimestamp?: Maybe<Scalars['Int']['output']>;
|
|
878
874
|
/** The type of statistics returned. Can be `FILTERED` or `UNFILTERED`. */
|
|
879
875
|
statsType: TokenPairStatisticsType;
|
|
880
876
|
/** The breakdown of stats over a 24 hour window. */
|
|
@@ -1071,8 +1067,6 @@ export type EnhancedToken = {
|
|
|
1071
1067
|
name?: Maybe<Scalars['String']['output']>;
|
|
1072
1068
|
/** The network ID the token is deployed on. */
|
|
1073
1069
|
networkId: Scalars['Int']['output'];
|
|
1074
|
-
/** The pair that the token is contained in */
|
|
1075
|
-
pairId?: Maybe<Scalars['String']['output']>;
|
|
1076
1070
|
/**
|
|
1077
1071
|
* The amount of this token in the pair.
|
|
1078
1072
|
* @deprecated Pooled can be found on the pair instead
|
|
@@ -1698,8 +1692,6 @@ export type HoldersResponse = {
|
|
|
1698
1692
|
items: Array<Balance>;
|
|
1699
1693
|
/** Status of holder. Disabled if on unsupported network or there is insufficient holder data. */
|
|
1700
1694
|
status: HoldersStatus;
|
|
1701
|
-
/** the token Id */
|
|
1702
|
-
tokenId?: Maybe<Scalars['String']['output']>;
|
|
1703
1695
|
/** What percentage of the total supply do the top 10 holders hold. */
|
|
1704
1696
|
top10HoldersPercent?: Maybe<Scalars['Float']['output']>;
|
|
1705
1697
|
};
|
|
@@ -6171,8 +6163,6 @@ export type Price = {
|
|
|
6171
6163
|
* @deprecated Pricing no longer based on specific pools
|
|
6172
6164
|
*/
|
|
6173
6165
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
6174
|
-
/** The internal pool address for the price */
|
|
6175
|
-
internalPoolAddress?: Maybe<Scalars['String']['output']>;
|
|
6176
6166
|
/** The network ID the token is deployed on. */
|
|
6177
6167
|
networkId: Scalars['Int']['output'];
|
|
6178
6168
|
/**
|
|
@@ -1661,10 +1661,6 @@ type DetailedStats {
|
|
|
1661
1661
|
stats_hour12: WindowedDetailedStats
|
|
1662
1662
|
"""The breakdown of stats over a 24 hour window."""
|
|
1663
1663
|
stats_day1: WindowedDetailedStats
|
|
1664
|
-
"""Number of aggregated buckets specified in input"""
|
|
1665
|
-
bucketCount: Int
|
|
1666
|
-
"""The timestamp specified as input to the query"""
|
|
1667
|
-
queryTimestamp: Int
|
|
1668
1664
|
}
|
|
1669
1665
|
|
|
1670
1666
|
"""The start/end timestamp for a given bucket within the window."""
|
|
@@ -1831,8 +1827,6 @@ type EnhancedToken {
|
|
|
1831
1827
|
isMintableValid: Boolean
|
|
1832
1828
|
"""The launchpad data for the token, if applicable."""
|
|
1833
1829
|
launchpad: LaunchpadData
|
|
1834
|
-
"""The pair that the token is contained in"""
|
|
1835
|
-
pairId: String
|
|
1836
1830
|
}
|
|
1837
1831
|
|
|
1838
1832
|
"""A token transaction."""
|
|
@@ -2417,8 +2411,6 @@ type HoldersResponse {
|
|
|
2417
2411
|
status: HoldersStatus!
|
|
2418
2412
|
"""What percentage of the total supply do the top 10 holders hold."""
|
|
2419
2413
|
top10HoldersPercent: Float
|
|
2420
|
-
"""the token Id"""
|
|
2421
|
-
tokenId: String
|
|
2422
2414
|
}
|
|
2423
2415
|
|
|
2424
2416
|
enum HoldersSortAttribute {
|
|
@@ -6662,8 +6654,6 @@ type Price {
|
|
|
6662
6654
|
poolAddress: String @deprecated(reason: "Pricing no longer based on specific pools")
|
|
6663
6655
|
"""Ratio of how confident we are in the price"""
|
|
6664
6656
|
confidence: Float @deprecated(reason: "Pricing no longer based on specific pools")
|
|
6665
|
-
"""The internal pool address for the price"""
|
|
6666
|
-
internalPoolAddress: String
|
|
6667
6657
|
}
|
|
6668
6658
|
|
|
6669
6659
|
"""Webhook conditions for a price event."""
|
package/src/sdk/Subscribe.ts
CHANGED
|
@@ -164,7 +164,7 @@ export class Subscribe {
|
|
|
164
164
|
this.sdk.subscribe(
|
|
165
165
|
`subscription OnHoldersUpdated($tokenId: String!) {
|
|
166
166
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
167
|
-
balances { address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId,
|
|
167
|
+
balances { address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
168
168
|
}
|
|
169
169
|
}`,
|
|
170
170
|
vars,
|
|
@@ -334,7 +334,7 @@ export class Subscribe {
|
|
|
334
334
|
this.sdk.subscribe(
|
|
335
335
|
`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
336
336
|
onLaunchpadTokenEvent (input: $input) {
|
|
337
|
-
address, buyCount1, eventType, holders, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId,
|
|
337
|
+
address, buyCount1, eventType, holders, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, transactions1, volume1
|
|
338
338
|
}
|
|
339
339
|
}`,
|
|
340
340
|
vars,
|
|
@@ -347,7 +347,7 @@ export class Subscribe {
|
|
|
347
347
|
this.sdk.subscribe(
|
|
348
348
|
`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
349
349
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken) {
|
|
350
|
-
createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId,
|
|
350
|
+
createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, exchangeId, fee, highPrice1, highPrice4, highPrice5m, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice4, lowPrice5m, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange4, priceChange5m, priceChange12, priceChange24, priceNonQuoteToken, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, volume1, volume4, volume5m, volume12, volume24
|
|
351
351
|
}
|
|
352
352
|
}`,
|
|
353
353
|
vars,
|
|
@@ -360,7 +360,7 @@ export class Subscribe {
|
|
|
360
360
|
this.sdk.subscribe(
|
|
361
361
|
`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
|
|
362
362
|
onPricesUpdated (input: $input) {
|
|
363
|
-
address,
|
|
363
|
+
address, networkId, priceUsd, timestamp
|
|
364
364
|
}
|
|
365
365
|
}`,
|
|
366
366
|
vars,
|
|
@@ -386,7 +386,7 @@ export class Subscribe {
|
|
|
386
386
|
this.sdk.subscribe(
|
|
387
387
|
`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
388
388
|
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|
|
389
|
-
address,
|
|
389
|
+
address, networkId, priceUsd, timestamp
|
|
390
390
|
}
|
|
391
391
|
}`,
|
|
392
392
|
vars,
|
|
@@ -412,7 +412,7 @@ export class Subscribe {
|
|
|
412
412
|
this.sdk.subscribe(
|
|
413
413
|
`subscription OnDetailedStatsUpdated($pairId: String, $tokenOfInterest: TokenOfInterest) {
|
|
414
414
|
onDetailedStatsUpdated (pairId: $pairId, tokenOfInterest: $tokenOfInterest) {
|
|
415
|
-
|
|
415
|
+
pairId, statsType, stats_day1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour4 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour12 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_min5 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, tokenOfInterest
|
|
416
416
|
}
|
|
417
417
|
}`,
|
|
418
418
|
vars,
|
|
@@ -425,7 +425,7 @@ export class Subscribe {
|
|
|
425
425
|
this.sdk.subscribe(
|
|
426
426
|
`subscription OnBalanceUpdated($walletAddress: String!) {
|
|
427
427
|
onBalanceUpdated (walletAddress: $walletAddress) {
|
|
428
|
-
address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId,
|
|
428
|
+
address, balance, balanceUsd, firstHeldTimestamp, networkId, shiftedBalance, token { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
429
429
|
}
|
|
430
430
|
}`,
|
|
431
431
|
vars,
|