@codex-data/sdk 1.0.34 → 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/Query.d.ts +4 -1
- package/dist/sdk/Query.d.ts.map +1 -1
- package/dist/sdk/Query.js +3 -0
- package/dist/sdk/Query.js.map +1 -1
- package/dist/sdk/Subscribe.js +9 -9
- package/dist/sdk/generated/gql.d.ts +65 -50
- package/dist/sdk/generated/gql.d.ts.map +1 -1
- package/dist/sdk/generated/gql.js +28 -25
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +409 -29
- package/dist/sdk/generated/graphql.d.ts.map +1 -1
- package/dist/sdk/generated/graphql.js +31 -28
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/package.json +1 -1
- package/src/resources/generated_queries/Balances.graphql +2 -0
- package/src/resources/generated_queries/Blocks.graphql +7 -0
- package/src/resources/generated_queries/FilterPairs.graphql +10 -0
- package/src/resources/generated_queries/FilterTokens.graphql +15 -0
- package/src/resources/generated_queries/GetBars.graphql +6 -0
- package/src/resources/generated_queries/GetCommunityNotes.graphql +2 -0
- package/src/resources/generated_queries/GetDetailedPairStats.graphql +6 -0
- package/src/resources/generated_queries/GetDetailedPairsStats.graphql +6 -0
- package/src/resources/generated_queries/GetNetworkConfigs.graphql +129 -0
- package/src/resources/generated_queries/GetTokenBars.graphql +121 -0
- package/src/resources/generated_queries/GetTokenPrices.graphql +0 -2
- package/src/resources/generated_queries/Holders.graphql +2 -0
- package/src/resources/generated_queries/ListPairsForToken.graphql +6 -0
- package/src/resources/generated_queries/ListPairsWithMetadataForToken.graphql +10 -0
- package/src/resources/generated_queries/PairMetadata.graphql +5 -4
- package/src/resources/generated_queries/PrimeHolders.graphql +2 -0
- package/src/resources/generated_queries/Token.graphql +2 -0
- package/src/resources/generated_queries/TokenSparklines.graphql +1 -0
- package/src/resources/generated_queries/Tokens.graphql +2 -0
- package/src/resources/generated_subscriptions/OnBalanceUpdated.graphql +2 -0
- package/src/resources/generated_subscriptions/OnDetailedStatsUpdated.graphql +0 -2
- package/src/resources/generated_subscriptions/OnHoldersUpdated.graphql +2 -0
- package/src/resources/generated_subscriptions/OnLaunchpadTokenEvent.graphql +2 -0
- package/src/resources/generated_subscriptions/OnPairMetadataUpdated.graphql +5 -4
- package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +0 -2
- package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +0 -2
- package/src/resources/generated_subscriptions/OnTokenBarsUpdated.graphql +0 -3
- package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +45 -0
- package/src/resources/graphql.schema.json +0 -60
- package/src/resources/graphql.ts +0 -10
- package/src/resources/queries_override/GetNetworkConfigs.graphql +129 -0
- package/src/resources/schema.graphql +0 -10
- package/src/sdk/Query.ts +12 -0
- package/src/sdk/Subscribe.ts +9 -9
- package/src/sdk/generated/gql.ts +93 -75
- package/src/sdk/generated/graphql.ts +82 -60
|
@@ -38,6 +38,8 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
38
38
|
symbol
|
|
39
39
|
totalSupply
|
|
40
40
|
}
|
|
41
|
+
isFreezableValid
|
|
42
|
+
isMintableValid
|
|
41
43
|
isScam
|
|
42
44
|
launchpad {
|
|
43
45
|
completed
|
|
@@ -116,6 +118,8 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
116
118
|
symbol
|
|
117
119
|
totalSupply
|
|
118
120
|
}
|
|
121
|
+
isFreezableValid
|
|
122
|
+
isMintableValid
|
|
119
123
|
isScam
|
|
120
124
|
launchpad {
|
|
121
125
|
completed
|
|
@@ -160,7 +164,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
160
164
|
exchangeId
|
|
161
165
|
fee
|
|
162
166
|
highPrice1
|
|
163
|
-
highPrice1w
|
|
164
167
|
highPrice4
|
|
165
168
|
highPrice5m
|
|
166
169
|
highPrice12
|
|
@@ -169,7 +172,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
169
172
|
liquidity
|
|
170
173
|
liquidityToken
|
|
171
174
|
lowPrice1
|
|
172
|
-
lowPrice1w
|
|
173
175
|
lowPrice4
|
|
174
176
|
lowPrice5m
|
|
175
177
|
lowPrice12
|
|
@@ -179,11 +181,11 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
179
181
|
pairAddress
|
|
180
182
|
price
|
|
181
183
|
priceChange1
|
|
182
|
-
priceChange1w
|
|
183
184
|
priceChange4
|
|
184
185
|
priceChange5m
|
|
185
186
|
priceChange12
|
|
186
187
|
priceChange24
|
|
188
|
+
priceNonQuoteToken
|
|
187
189
|
quoteToken
|
|
188
190
|
statsType
|
|
189
191
|
tickSpacing
|
|
@@ -216,7 +218,6 @@ subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken) {
|
|
|
216
218
|
symbol
|
|
217
219
|
}
|
|
218
220
|
volume1
|
|
219
|
-
volume1w
|
|
220
221
|
volume4
|
|
221
222
|
volume5m
|
|
222
223
|
volume12
|
|
@@ -13,6 +13,15 @@ subscription OnUnconfirmedBarsUpdated(
|
|
|
13
13
|
v
|
|
14
14
|
volume
|
|
15
15
|
}
|
|
16
|
+
r1D {
|
|
17
|
+
c
|
|
18
|
+
h
|
|
19
|
+
l
|
|
20
|
+
o
|
|
21
|
+
t
|
|
22
|
+
v
|
|
23
|
+
volume
|
|
24
|
+
}
|
|
16
25
|
r1S {
|
|
17
26
|
c
|
|
18
27
|
h
|
|
@@ -40,6 +49,15 @@ subscription OnUnconfirmedBarsUpdated(
|
|
|
40
49
|
v
|
|
41
50
|
volume
|
|
42
51
|
}
|
|
52
|
+
r7D {
|
|
53
|
+
c
|
|
54
|
+
h
|
|
55
|
+
l
|
|
56
|
+
o
|
|
57
|
+
t
|
|
58
|
+
v
|
|
59
|
+
volume
|
|
60
|
+
}
|
|
43
61
|
r15 {
|
|
44
62
|
c
|
|
45
63
|
h
|
|
@@ -58,6 +76,33 @@ subscription OnUnconfirmedBarsUpdated(
|
|
|
58
76
|
v
|
|
59
77
|
volume
|
|
60
78
|
}
|
|
79
|
+
r60 {
|
|
80
|
+
c
|
|
81
|
+
h
|
|
82
|
+
l
|
|
83
|
+
o
|
|
84
|
+
t
|
|
85
|
+
v
|
|
86
|
+
volume
|
|
87
|
+
}
|
|
88
|
+
r240 {
|
|
89
|
+
c
|
|
90
|
+
h
|
|
91
|
+
l
|
|
92
|
+
o
|
|
93
|
+
t
|
|
94
|
+
v
|
|
95
|
+
volume
|
|
96
|
+
}
|
|
97
|
+
r720 {
|
|
98
|
+
c
|
|
99
|
+
h
|
|
100
|
+
l
|
|
101
|
+
o
|
|
102
|
+
t
|
|
103
|
+
v
|
|
104
|
+
volume
|
|
105
|
+
}
|
|
61
106
|
}
|
|
62
107
|
eventSortKey
|
|
63
108
|
networkId
|
|
@@ -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
|
/**
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
query GetNetworkConfigs($networkIds: [Int!]) {
|
|
2
|
+
getNetworkConfigs(networkIds: $networkIds) {
|
|
3
|
+
... on AptosNetworkConfig {
|
|
4
|
+
baseTokenAddress
|
|
5
|
+
baseTokenSymbol
|
|
6
|
+
color
|
|
7
|
+
defaultPairAddress
|
|
8
|
+
defaultPairQuoteToken
|
|
9
|
+
enabled
|
|
10
|
+
explorer {
|
|
11
|
+
checksummed
|
|
12
|
+
icon
|
|
13
|
+
name
|
|
14
|
+
url
|
|
15
|
+
}
|
|
16
|
+
id
|
|
17
|
+
mainnet
|
|
18
|
+
name
|
|
19
|
+
networkIconUrl
|
|
20
|
+
networkId
|
|
21
|
+
networkName
|
|
22
|
+
networkShortName
|
|
23
|
+
networkType
|
|
24
|
+
newTokensEnabled
|
|
25
|
+
stableCoinAddresses
|
|
26
|
+
wrappedBaseTokenSymbol
|
|
27
|
+
}
|
|
28
|
+
... on EvmNetworkConfig {
|
|
29
|
+
baseTokenAddress
|
|
30
|
+
baseTokenSymbol
|
|
31
|
+
color
|
|
32
|
+
defaultPairAddress
|
|
33
|
+
defaultPairQuoteToken
|
|
34
|
+
enabled
|
|
35
|
+
explorer {
|
|
36
|
+
checksummed
|
|
37
|
+
icon
|
|
38
|
+
name
|
|
39
|
+
url
|
|
40
|
+
}
|
|
41
|
+
id
|
|
42
|
+
mainnet
|
|
43
|
+
name
|
|
44
|
+
networkIconUrl
|
|
45
|
+
networkId
|
|
46
|
+
networkName
|
|
47
|
+
networkShortName
|
|
48
|
+
networkType
|
|
49
|
+
newTokensEnabled
|
|
50
|
+
stableCoinAddresses
|
|
51
|
+
wrappedBaseTokenSymbol
|
|
52
|
+
}
|
|
53
|
+
... on SolanaNetworkConfig {
|
|
54
|
+
baseTokenAddress
|
|
55
|
+
baseTokenSymbol
|
|
56
|
+
color
|
|
57
|
+
defaultPairAddress
|
|
58
|
+
defaultPairQuoteToken
|
|
59
|
+
enabled
|
|
60
|
+
explorer {
|
|
61
|
+
checksummed
|
|
62
|
+
icon
|
|
63
|
+
name
|
|
64
|
+
url
|
|
65
|
+
}
|
|
66
|
+
id
|
|
67
|
+
mainnet
|
|
68
|
+
name
|
|
69
|
+
networkIconUrl
|
|
70
|
+
networkId
|
|
71
|
+
networkName
|
|
72
|
+
networkShortName
|
|
73
|
+
networkType
|
|
74
|
+
newTokensEnabled
|
|
75
|
+
stableCoinAddresses
|
|
76
|
+
wrappedBaseTokenSymbol
|
|
77
|
+
}
|
|
78
|
+
... on StarknetNetworkConfig {
|
|
79
|
+
baseTokenAddress
|
|
80
|
+
baseTokenSymbol
|
|
81
|
+
color
|
|
82
|
+
defaultPairAddress
|
|
83
|
+
defaultPairQuoteToken
|
|
84
|
+
enabled
|
|
85
|
+
explorer {
|
|
86
|
+
checksummed
|
|
87
|
+
icon
|
|
88
|
+
name
|
|
89
|
+
url
|
|
90
|
+
}
|
|
91
|
+
id
|
|
92
|
+
mainnet
|
|
93
|
+
name
|
|
94
|
+
networkIconUrl
|
|
95
|
+
networkId
|
|
96
|
+
networkName
|
|
97
|
+
networkShortName
|
|
98
|
+
networkType
|
|
99
|
+
newTokensEnabled
|
|
100
|
+
stableCoinAddresses
|
|
101
|
+
wrappedBaseTokenSymbol
|
|
102
|
+
}
|
|
103
|
+
... on SuiNetworkConfig {
|
|
104
|
+
baseTokenAddress
|
|
105
|
+
baseTokenSymbol
|
|
106
|
+
color
|
|
107
|
+
defaultPairAddress
|
|
108
|
+
defaultPairQuoteToken
|
|
109
|
+
enabled
|
|
110
|
+
explorer {
|
|
111
|
+
checksummed
|
|
112
|
+
icon
|
|
113
|
+
name
|
|
114
|
+
url
|
|
115
|
+
}
|
|
116
|
+
id
|
|
117
|
+
mainnet
|
|
118
|
+
name
|
|
119
|
+
networkIconUrl
|
|
120
|
+
networkId
|
|
121
|
+
networkName
|
|
122
|
+
networkShortName
|
|
123
|
+
networkType
|
|
124
|
+
newTokensEnabled
|
|
125
|
+
stableCoinAddresses
|
|
126
|
+
wrappedBaseTokenSymbol
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -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/Query.ts
CHANGED
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
ApiTokensQueryVariables,
|
|
7
7
|
BalancesDocument,
|
|
8
8
|
BalancesQueryVariables,
|
|
9
|
+
BlocksDocument,
|
|
10
|
+
BlocksQueryVariables,
|
|
9
11
|
ChartUrlsDocument,
|
|
10
12
|
ChartUrlsQueryVariables,
|
|
11
13
|
DetailedWalletStatsDocument,
|
|
@@ -42,6 +44,8 @@ import {
|
|
|
42
44
|
GetEventLabelsQueryVariables,
|
|
43
45
|
GetExchangesDocument,
|
|
44
46
|
GetExchangesQueryVariables,
|
|
47
|
+
GetNetworkConfigsDocument,
|
|
48
|
+
GetNetworkConfigsQueryVariables,
|
|
45
49
|
GetNetworksDocument,
|
|
46
50
|
GetNetworksQueryVariables,
|
|
47
51
|
GetNetworkStatsDocument,
|
|
@@ -80,6 +84,8 @@ import {
|
|
|
80
84
|
GetPrimePoolsQueryVariables,
|
|
81
85
|
GetSymbolDocument,
|
|
82
86
|
GetSymbolQueryVariables,
|
|
87
|
+
GetTokenBarsDocument,
|
|
88
|
+
GetTokenBarsQueryVariables,
|
|
83
89
|
GetTokenEventsDocument,
|
|
84
90
|
GetTokenEventsForMakerDocument,
|
|
85
91
|
GetTokenEventsForMakerQueryVariables,
|
|
@@ -202,6 +208,8 @@ export class Query {
|
|
|
202
208
|
this.sdk.query(NftHoldersDocument, vars);
|
|
203
209
|
getExchanges = async (vars: GetExchangesQueryVariables) =>
|
|
204
210
|
this.sdk.query(GetExchangesDocument, vars);
|
|
211
|
+
blocks = async (vars: BlocksQueryVariables) =>
|
|
212
|
+
this.sdk.query(BlocksDocument, vars);
|
|
205
213
|
token = async (vars: TokenQueryVariables) =>
|
|
206
214
|
this.sdk.query(TokenDocument, vars);
|
|
207
215
|
apiTokens = async (vars: ApiTokensQueryVariables) =>
|
|
@@ -221,6 +229,10 @@ export class Query {
|
|
|
221
229
|
liquidityMetadataByToken = async (
|
|
222
230
|
vars: LiquidityMetadataByTokenQueryVariables,
|
|
223
231
|
) => this.sdk.query(LiquidityMetadataByTokenDocument, vars);
|
|
232
|
+
getTokenBars = async (vars: GetTokenBarsQueryVariables) =>
|
|
233
|
+
this.sdk.query(GetTokenBarsDocument, vars);
|
|
234
|
+
getNetworkConfigs = async (vars: GetNetworkConfigsQueryVariables) =>
|
|
235
|
+
this.sdk.query(GetNetworkConfigsDocument, vars);
|
|
224
236
|
filterWallets = async (vars: FilterWalletsQueryVariables) =>
|
|
225
237
|
this.sdk.query(FilterWalletsDocument, vars);
|
|
226
238
|
listPairsForToken = async (vars: ListPairsForTokenQueryVariables) =>
|
package/src/sdk/Subscribe.ts
CHANGED
|
@@ -138,7 +138,7 @@ export class Subscribe {
|
|
|
138
138
|
this.sdk.subscribe(
|
|
139
139
|
`subscription OnTokenBarsUpdated($networkId: Int, $tokenId: String) {
|
|
140
140
|
onTokenBarsUpdated (networkId: $networkId, tokenId: $tokenId) {
|
|
141
|
-
aggregates { r1 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId,
|
|
141
|
+
aggregates { r1 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId, statsType, timestamp, tokenAddress, tokenId
|
|
142
142
|
}
|
|
143
143
|
}`,
|
|
144
144
|
vars,
|
|
@@ -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 }, 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
|
|
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 }, 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
|
|
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 }, 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 }, 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,
|
|
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,
|
|
@@ -373,7 +373,7 @@ export class Subscribe {
|
|
|
373
373
|
this.sdk.subscribe(
|
|
374
374
|
`subscription OnUnconfirmedBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
375
375
|
onUnconfirmedBarsUpdated (pairId: $pairId, quoteToken: $quoteToken) {
|
|
376
|
-
aggregates { r1 { c, h, l, o, t, v, volume }, r1S { c, h, l, o, t, v, volume }, r5 { c, h, l, o, t, v, volume }, r5S { c, h, l, o, t, v, volume }, r15 { c, h, l, o, t, v, volume }, r15S { c, h, l, o, t, v, volume } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, timestamp
|
|
376
|
+
aggregates { r1 { c, h, l, o, t, v, volume }, r1D { c, h, l, o, t, v, volume }, r1S { c, h, l, o, t, v, volume }, r5 { c, h, l, o, t, v, volume }, r5S { c, h, l, o, t, v, volume }, r7D { c, h, l, o, t, v, volume }, r15 { c, h, l, o, t, v, volume }, r15S { c, h, l, o, t, v, volume }, r60 { c, h, l, o, t, v, volume }, r240 { c, h, l, o, t, v, volume }, r720 { c, h, l, o, t, v, volume } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, timestamp
|
|
377
377
|
}
|
|
378
378
|
}`,
|
|
379
379
|
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 }, 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
|
|
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,
|