@codex-data/sdk 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +371 -172
- package/dist/sdk/Query.d.ts +2 -1
- package/dist/sdk/Query.js +1 -0
- package/dist/sdk/Query.mjs +2 -1
- package/dist/sdk/Subscribe.d.ts +2 -1
- package/dist/sdk/Subscribe.js +10 -5
- package/dist/sdk/Subscribe.mjs +10 -5
- package/dist/sdk/generated/gql.d.ts +50 -40
- package/dist/sdk/generated/gql.js +22 -20
- package/dist/sdk/generated/gql.mjs +22 -20
- package/dist/sdk/generated/graphql.d.ts +1955 -582
- package/dist/sdk/generated/graphql.js +58 -40
- package/dist/sdk/generated/graphql.mjs +55 -37
- package/package.json +1 -1
package/dist/sdk/Query.js
CHANGED
|
@@ -30,6 +30,7 @@ class Query {
|
|
|
30
30
|
this.getCommunityNotes = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetCommunityNotesDocument, vars); });
|
|
31
31
|
this.getDetailedPairStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetDetailedPairStatsDocument, vars); });
|
|
32
32
|
this.getDetailedPairsStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetDetailedPairsStatsDocument, vars); });
|
|
33
|
+
this.getDetailedTokenStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetDetailedTokenStatsDocument, vars); });
|
|
33
34
|
this.getEventLabels = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetEventLabelsDocument, vars); });
|
|
34
35
|
this.getExchanges = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetExchangesDocument, vars); });
|
|
35
36
|
this.getNetworkConfigs = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetNetworkConfigsDocument, vars); });
|
package/dist/sdk/Query.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
-
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, DetailedWalletStatsDocument, FilterExchangesDocument, FilterPairsDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksDocument, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, } from "./generated/graphql";
|
|
2
|
+
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, DetailedWalletStatsDocument, FilterExchangesDocument, FilterPairsDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetDetailedTokenStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksDocument, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, } from "./generated/graphql";
|
|
3
3
|
export class Query {
|
|
4
4
|
constructor(sdk) {
|
|
5
5
|
this.sdk = sdk;
|
|
@@ -18,6 +18,7 @@ export class Query {
|
|
|
18
18
|
this.getCommunityNotes = async (vars) => this.sdk.query(GetCommunityNotesDocument, vars);
|
|
19
19
|
this.getDetailedPairStats = async (vars) => this.sdk.query(GetDetailedPairStatsDocument, vars);
|
|
20
20
|
this.getDetailedPairsStats = async (vars) => this.sdk.query(GetDetailedPairsStatsDocument, vars);
|
|
21
|
+
this.getDetailedTokenStats = async (vars) => this.sdk.query(GetDetailedTokenStatsDocument, vars);
|
|
21
22
|
this.getEventLabels = async (vars) => this.sdk.query(GetEventLabelsDocument, vars);
|
|
22
23
|
this.getExchanges = async (vars) => this.sdk.query(GetExchangesDocument, vars);
|
|
23
24
|
this.getNetworkConfigs = async (vars) => this.sdk.query(GetNetworkConfigsDocument, vars);
|
package/dist/sdk/Subscribe.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecutionResult, Sink } from "graphql-ws";
|
|
2
|
-
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestPairUpdatedSubscription, OnLatestPairUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPricesUpdatedSubscription, OnPricesUpdatedSubscriptionVariables, OnPriceUpdatedSubscription, OnPriceUpdatedSubscriptionVariables, OnTokenBarsUpdatedSubscription, OnTokenBarsUpdatedSubscriptionVariables, OnTokenEventsCreatedSubscription, OnTokenEventsCreatedSubscriptionVariables, OnTokenLifecycleEventsCreatedSubscription, OnTokenLifecycleEventsCreatedSubscriptionVariables, OnUnconfirmedBarsUpdatedSubscription, OnUnconfirmedBarsUpdatedSubscriptionVariables, OnUnconfirmedEventsCreatedByMakerSubscription, OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, OnUnconfirmedEventsCreatedSubscription, OnUnconfirmedEventsCreatedSubscriptionVariables } from "./generated/graphql";
|
|
2
|
+
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestPairUpdatedSubscription, OnLatestPairUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPricesUpdatedSubscription, OnPricesUpdatedSubscriptionVariables, OnPriceUpdatedSubscription, OnPriceUpdatedSubscriptionVariables, OnTokenBarsUpdatedSubscription, OnTokenBarsUpdatedSubscriptionVariables, OnTokenEventsCreatedSubscription, OnTokenEventsCreatedSubscriptionVariables, OnTokenLifecycleEventsCreatedSubscription, OnTokenLifecycleEventsCreatedSubscriptionVariables, OnUnconfirmedBarsUpdatedSubscription, OnUnconfirmedBarsUpdatedSubscriptionVariables, OnUnconfirmedEventsCreatedByMakerSubscription, OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, OnUnconfirmedEventsCreatedSubscription, OnUnconfirmedEventsCreatedSubscriptionVariables } from "./generated/graphql";
|
|
3
3
|
import { Codex } from "./index";
|
|
4
4
|
export declare class Subscribe {
|
|
5
5
|
private sdk;
|
|
@@ -7,6 +7,7 @@ export declare class Subscribe {
|
|
|
7
7
|
onBalanceUpdated: (vars: OnBalanceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
8
8
|
onBarsUpdated: (vars: OnBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
9
9
|
onDetailedStatsUpdated: (vars: OnDetailedStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
10
|
+
onDetailedTokenStatsUpdated: (vars: OnDetailedTokenStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedTokenStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
10
11
|
onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
11
12
|
onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
12
13
|
onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
|
package/dist/sdk/Subscribe.js
CHANGED
|
@@ -6,7 +6,7 @@ class Subscribe {
|
|
|
6
6
|
this.sdk = sdk;
|
|
7
7
|
this.onBalanceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBalanceUpdated($walletAddress: String!) {
|
|
8
8
|
onBalanceUpdated (walletAddress: $walletAddress) {
|
|
9
|
-
address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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
|
|
9
|
+
address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
10
10
|
}
|
|
11
11
|
}`, vars, sink);
|
|
12
12
|
this.onBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
@@ -18,6 +18,11 @@ class Subscribe {
|
|
|
18
18
|
onDetailedStatsUpdated (pairId: $pairId, tokenOfInterest: $tokenOfInterest) {
|
|
19
19
|
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
|
|
20
20
|
}
|
|
21
|
+
}`, vars, sink);
|
|
22
|
+
this.onDetailedTokenStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedTokenStatsUpdated($tokenId: String) {
|
|
23
|
+
onDetailedTokenStatsUpdated (tokenId: $tokenId) {
|
|
24
|
+
bucketCount, lastTransactionAt, networkId, queryTimestamp, statsType, stats_day1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour4 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour12 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_min5 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, tokenAddress, tokenId
|
|
25
|
+
}
|
|
21
26
|
}`, vars, sink);
|
|
22
27
|
this.onEventLabelCreated = (vars, sink) => this.sdk.subscribe(`subscription OnEventLabelCreated($id: String) {
|
|
23
28
|
onEventLabelCreated(id: $id) {
|
|
@@ -54,7 +59,7 @@ class Subscribe {
|
|
|
54
59
|
}`, vars, sink);
|
|
55
60
|
this.onHoldersUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnHoldersUpdated($tokenId: String!) {
|
|
56
61
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
57
|
-
balances { address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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
|
|
62
|
+
balances { address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
58
63
|
}
|
|
59
64
|
}`, vars, sink);
|
|
60
65
|
this.onLatestPairUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnLatestPairUpdated($id: String, $networkId: Int) {
|
|
@@ -69,12 +74,12 @@ class Subscribe {
|
|
|
69
74
|
}`, vars, sink);
|
|
70
75
|
this.onLaunchpadTokenEvent = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
71
76
|
onLaunchpadTokenEvent (input: $input) {
|
|
72
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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
|
|
77
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
73
78
|
}
|
|
74
79
|
}`, vars, sink);
|
|
75
80
|
this.onLaunchpadTokenEventBatch = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEventBatch($input: OnLaunchpadTokenEventBatchInput) {
|
|
76
81
|
onLaunchpadTokenEventBatch (input: $input) {
|
|
77
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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
|
|
82
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
78
83
|
}
|
|
79
84
|
}`, vars, sink);
|
|
80
85
|
this.onNftAssetsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnNftAssetsCreated($address: String, $networkId: Int, $tokenId: String) {
|
|
@@ -94,7 +99,7 @@ class Subscribe {
|
|
|
94
99
|
}`, vars, sink);
|
|
95
100
|
this.onPairMetadataUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
|
|
96
101
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
97
|
-
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, videoExternalUrl }, 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, videoExternalUrl }, 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, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
102
|
+
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, videoExternalUrl }, 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, top10HoldersPercent }, 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, videoExternalUrl }, 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, top10HoldersPercent }, 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 }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
98
103
|
}
|
|
99
104
|
}`, vars, sink);
|
|
100
105
|
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
package/dist/sdk/Subscribe.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export class Subscribe {
|
|
|
3
3
|
this.sdk = sdk;
|
|
4
4
|
this.onBalanceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBalanceUpdated($walletAddress: String!) {
|
|
5
5
|
onBalanceUpdated (walletAddress: $walletAddress) {
|
|
6
|
-
address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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
|
|
6
|
+
address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId
|
|
7
7
|
}
|
|
8
8
|
}`, vars, sink);
|
|
9
9
|
this.onBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
@@ -15,6 +15,11 @@ export class Subscribe {
|
|
|
15
15
|
onDetailedStatsUpdated (pairId: $pairId, tokenOfInterest: $tokenOfInterest) {
|
|
16
16
|
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
|
|
17
17
|
}
|
|
18
|
+
}`, vars, sink);
|
|
19
|
+
this.onDetailedTokenStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedTokenStatsUpdated($tokenId: String) {
|
|
20
|
+
onDetailedTokenStatsUpdated (tokenId: $tokenId) {
|
|
21
|
+
bucketCount, lastTransactionAt, networkId, queryTimestamp, statsType, stats_day1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour4 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour12 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_min5 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, tokenAddress, tokenId
|
|
22
|
+
}
|
|
18
23
|
}`, vars, sink);
|
|
19
24
|
this.onEventLabelCreated = (vars, sink) => this.sdk.subscribe(`subscription OnEventLabelCreated($id: String) {
|
|
20
25
|
onEventLabelCreated(id: $id) {
|
|
@@ -51,7 +56,7 @@ export class Subscribe {
|
|
|
51
56
|
}`, vars, sink);
|
|
52
57
|
this.onHoldersUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnHoldersUpdated($tokenId: String!) {
|
|
53
58
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
54
|
-
balances { address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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
|
|
59
|
+
balances { address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, 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, videoExternalUrl }, 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, top10HoldersPercent }, tokenAddress, tokenId, tokenPriceUsd, walletId }, holders, networkId, tokenAddress, tokenId
|
|
55
60
|
}
|
|
56
61
|
}`, vars, sink);
|
|
57
62
|
this.onLatestPairUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnLatestPairUpdated($id: String, $networkId: Int) {
|
|
@@ -66,12 +71,12 @@ export class Subscribe {
|
|
|
66
71
|
}`, vars, sink);
|
|
67
72
|
this.onLaunchpadTokenEvent = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
68
73
|
onLaunchpadTokenEvent (input: $input) {
|
|
69
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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
|
|
74
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
70
75
|
}
|
|
71
76
|
}`, vars, sink);
|
|
72
77
|
this.onLaunchpadTokenEventBatch = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEventBatch($input: OnLaunchpadTokenEventBatchInput) {
|
|
73
78
|
onLaunchpadTokenEventBatch (input: $input) {
|
|
74
|
-
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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
|
|
79
|
+
address, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, holders, insiderCount, insiderHeldPercentage, launchpadName, liquidity, marketCap, networkId, price, protocol, sellCount1, sniperCount, sniperHeldPercentage, 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, videoExternalUrl }, 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, top10HoldersPercent }, top10HoldersPercent, transactions1, volume1
|
|
75
80
|
}
|
|
76
81
|
}`, vars, sink);
|
|
77
82
|
this.onNftAssetsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnNftAssetsCreated($address: String, $networkId: Int, $tokenId: String) {
|
|
@@ -91,7 +96,7 @@ export class Subscribe {
|
|
|
91
96
|
}`, vars, sink);
|
|
92
97
|
this.onPairMetadataUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
|
|
93
98
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
94
|
-
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, videoExternalUrl }, 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, videoExternalUrl }, 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, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
99
|
+
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, videoExternalUrl }, 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, top10HoldersPercent }, 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, videoExternalUrl }, 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, top10HoldersPercent }, 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 }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
|
|
95
100
|
}
|
|
96
101
|
}`, vars, sink);
|
|
97
102
|
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|