@codex-data/sdk 2.3.1 → 2.3.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/dist/sdk/Query.d.ts +4 -1
- package/dist/sdk/Query.js +3 -0
- package/dist/sdk/Query.mjs +4 -1
- package/dist/sdk/Subscribe.d.ts +2 -3
- package/dist/sdk/Subscribe.js +30 -35
- package/dist/sdk/Subscribe.mjs +30 -35
- package/dist/sdk/generated/gql.d.ts +113 -103
- package/dist/sdk/generated/gql.js +52 -50
- package/dist/sdk/generated/gql.mjs +52 -50
- package/dist/sdk/generated/graphql.d.ts +18424 -629
- package/dist/sdk/generated/graphql.js +324 -85
- package/dist/sdk/generated/graphql.mjs +319 -81
- package/package.json +1 -1
package/dist/sdk/Query.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, ChartUrlsQueryVariables, DetailedPredictionEventStatsQueryVariables, DetailedPredictionMarketStatsQueryVariables, DetailedPredictionTraderStatsQueryVariables, DetailedWalletStatsQueryVariables, FilterExchangesQueryVariables, FilterPairsQueryVariables, FilterPredictionEventsQueryVariables, FilterPredictionMarketsQueryVariables, FilterPredictionTraderMarketsQueryVariables, FilterPredictionTradersQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, GetDetailedTokenStatsQueryVariables, GetEventLabelsQueryVariables, GetExchangesQueryVariables, GetNetworkConfigsQueryVariables, GetNetworksQueryVariables, GetNetworkStatsQueryVariables, GetNetworkStatusQueryVariables, GetSymbolQueryVariables, GetTokenBarsQueryVariables, GetTokenEventsForMakerQueryVariables, GetTokenEventsQueryVariables, GetTokenPricesQueryVariables, GetWebhooksQueryVariables, HoldersQueryVariables, LiquidityLocksQueryVariables, LiquidityMetadataByTokenQueryVariables, LiquidityMetadataQueryVariables, ListPairsForTokenQueryVariables, ListPairsWithMetadataForTokenQueryVariables, PairMetadataQueryVariables, PredictionCategoriesQueryVariables, PredictionEventBarsQueryVariables, PredictionEventTopMarketsBarsQueryVariables, PredictionMarketBarsQueryVariables, PredictionMarketPriceQueryVariables, PredictionMarketsQueryVariables, PredictionTokenHoldersQueryVariables, PredictionTraderBarsQueryVariables, PredictionTraderHoldingsQueryVariables, PredictionTraderMarketsStatsQueryVariables, PredictionTradersQueryVariables, PredictionTradesQueryVariables, TokenLifecycleEventsQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables } from "./generated/graphql";
|
|
1
|
+
import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, ChartUrlsQueryVariables, DetailedPredictionEventStatsQueryVariables, DetailedPredictionMarketStatsQueryVariables, DetailedPredictionTraderStatsQueryVariables, DetailedWalletStatsQueryVariables, EventScopedFilterPredictionMarketsQueryVariables, FilterExchangesQueryVariables, FilterPairsQueryVariables, FilterPredictionEventsQueryVariables, FilterPredictionMarketsQueryVariables, FilterPredictionTraderMarketsQueryVariables, FilterPredictionTradersQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, GetDetailedTokenStatsQueryVariables, GetEventLabelsQueryVariables, GetExchangesQueryVariables, GetNetworkConfigsQueryVariables, GetNetworksQueryVariables, GetNetworkStatsQueryVariables, GetNetworkStatusQueryVariables, GetSymbolQueryVariables, GetTokenBarsQueryVariables, GetTokenEventsForMakerQueryVariables, GetTokenEventsQueryVariables, GetTokenPricesQueryVariables, GetWebhooksQueryVariables, HoldersQueryVariables, LiquidityLocksQueryVariables, LiquidityMetadataByTokenQueryVariables, LiquidityMetadataQueryVariables, ListPairsForTokenQueryVariables, ListPairsWithMetadataForTokenQueryVariables, PairMetadataQueryVariables, PredictionCategoriesQueryVariables, PredictionEventBarsQueryVariables, PredictionEventTopMarketsBarsQueryVariables, PredictionMarketBarsQueryVariables, PredictionMarketPriceQueryVariables, PredictionMarketsQueryVariables, PredictionOutcomeOrderBooksQueryVariables, PredictionTokenHoldersQueryVariables, PredictionTraderBarsQueryVariables, PredictionTraderHoldingsQueryVariables, PredictionTraderMarketsStatsQueryVariables, PredictionTradersQueryVariables, PredictionTradesQueryVariables, TokenLifecycleEventsQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables, WalletLabelTypesQueryVariables } from "./generated/graphql";
|
|
2
2
|
import { Codex } from "./index";
|
|
3
3
|
export declare class Query {
|
|
4
4
|
private sdk;
|
|
@@ -12,6 +12,7 @@ export declare class Query {
|
|
|
12
12
|
detailedPredictionMarketStats: (vars: DetailedPredictionMarketStatsQueryVariables) => Promise<import("./generated/graphql").DetailedPredictionMarketStatsQuery>;
|
|
13
13
|
detailedPredictionTraderStats: (vars: DetailedPredictionTraderStatsQueryVariables) => Promise<import("./generated/graphql").DetailedPredictionTraderStatsQuery>;
|
|
14
14
|
detailedWalletStats: (vars: DetailedWalletStatsQueryVariables) => Promise<import("./generated/graphql").DetailedWalletStatsQuery>;
|
|
15
|
+
eventScopedFilterPredictionMarkets: (vars: EventScopedFilterPredictionMarketsQueryVariables) => Promise<import("./generated/graphql").EventScopedFilterPredictionMarketsQuery>;
|
|
15
16
|
filterExchanges: (vars: FilterExchangesQueryVariables) => Promise<import("./generated/graphql").FilterExchangesQuery>;
|
|
16
17
|
filterPairs: (vars: FilterPairsQueryVariables) => Promise<import("./generated/graphql").FilterPairsQuery>;
|
|
17
18
|
filterPredictionEvents: (vars: FilterPredictionEventsQueryVariables) => Promise<import("./generated/graphql").FilterPredictionEventsQuery>;
|
|
@@ -51,6 +52,7 @@ export declare class Query {
|
|
|
51
52
|
predictionMarketBars: (vars: PredictionMarketBarsQueryVariables) => Promise<import("./generated/graphql").PredictionMarketBarsQuery>;
|
|
52
53
|
predictionMarketPrice: (vars: PredictionMarketPriceQueryVariables) => Promise<import("./generated/graphql").PredictionMarketPriceQuery>;
|
|
53
54
|
predictionMarkets: (vars: PredictionMarketsQueryVariables) => Promise<import("./generated/graphql").PredictionMarketsQuery>;
|
|
55
|
+
predictionOutcomeOrderBooks: (vars: PredictionOutcomeOrderBooksQueryVariables) => Promise<import("./generated/graphql").PredictionOutcomeOrderBooksQuery>;
|
|
54
56
|
predictionTokenHolders: (vars: PredictionTokenHoldersQueryVariables) => Promise<import("./generated/graphql").PredictionTokenHoldersQuery>;
|
|
55
57
|
predictionTraderBars: (vars: PredictionTraderBarsQueryVariables) => Promise<import("./generated/graphql").PredictionTraderBarsQuery>;
|
|
56
58
|
predictionTraderHoldings: (vars: PredictionTraderHoldingsQueryVariables) => Promise<import("./generated/graphql").PredictionTraderHoldingsQuery>;
|
|
@@ -65,4 +67,5 @@ export declare class Query {
|
|
|
65
67
|
top10HoldersPercent: (vars: Top10HoldersPercentQueryVariables) => Promise<import("./generated/graphql").Top10HoldersPercentQuery>;
|
|
66
68
|
walletAggregateBackfillState: (vars: WalletAggregateBackfillStateQueryVariables) => Promise<import("./generated/graphql").WalletAggregateBackfillStateQuery>;
|
|
67
69
|
walletChart: (vars: WalletChartQueryVariables) => Promise<import("./generated/graphql").WalletChartQuery>;
|
|
70
|
+
walletLabelTypes: (vars: WalletLabelTypesQueryVariables) => Promise<import("./generated/graphql").WalletLabelTypesQuery>;
|
|
68
71
|
}
|
package/dist/sdk/Query.js
CHANGED
|
@@ -24,6 +24,7 @@ class Query {
|
|
|
24
24
|
this.detailedPredictionMarketStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedPredictionMarketStatsDocument, vars); });
|
|
25
25
|
this.detailedPredictionTraderStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedPredictionTraderStatsDocument, vars); });
|
|
26
26
|
this.detailedWalletStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedWalletStatsDocument, vars); });
|
|
27
|
+
this.eventScopedFilterPredictionMarkets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.EventScopedFilterPredictionMarketsDocument, vars); });
|
|
27
28
|
this.filterExchanges = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterExchangesDocument, vars); });
|
|
28
29
|
this.filterPairs = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPairsDocument, vars); });
|
|
29
30
|
this.filterPredictionEvents = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPredictionEventsDocument, vars); });
|
|
@@ -63,6 +64,7 @@ class Query {
|
|
|
63
64
|
this.predictionMarketBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionMarketBarsDocument, vars); });
|
|
64
65
|
this.predictionMarketPrice = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionMarketPriceDocument, vars); });
|
|
65
66
|
this.predictionMarkets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionMarketsDocument, vars); });
|
|
67
|
+
this.predictionOutcomeOrderBooks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionOutcomeOrderBooksDocument, vars); });
|
|
66
68
|
this.predictionTokenHolders = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTokenHoldersDocument, vars); });
|
|
67
69
|
this.predictionTraderBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTraderBarsDocument, vars); });
|
|
68
70
|
this.predictionTraderHoldings = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTraderHoldingsDocument, vars); });
|
|
@@ -77,6 +79,7 @@ class Query {
|
|
|
77
79
|
this.top10HoldersPercent = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.Top10HoldersPercentDocument, vars); });
|
|
78
80
|
this.walletAggregateBackfillState = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.WalletAggregateBackfillStateDocument, vars); });
|
|
79
81
|
this.walletChart = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.WalletChartDocument, vars); });
|
|
82
|
+
this.walletLabelTypes = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.WalletLabelTypesDocument, vars); });
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
85
|
exports.Query = Query;
|
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, DetailedPredictionEventStatsDocument, DetailedPredictionMarketStatsDocument, DetailedPredictionTraderStatsDocument, DetailedWalletStatsDocument, FilterExchangesDocument, FilterPairsDocument, FilterPredictionEventsDocument, FilterPredictionMarketsDocument, FilterPredictionTraderMarketsDocument, FilterPredictionTradersDocument, 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, PredictionCategoriesDocument, PredictionEventBarsDocument, PredictionEventTopMarketsBarsDocument, PredictionMarketBarsDocument, PredictionMarketPriceDocument, PredictionMarketsDocument, PredictionTokenHoldersDocument, PredictionTraderBarsDocument, PredictionTraderHoldingsDocument, PredictionTraderMarketsStatsDocument, PredictionTradersDocument, PredictionTradesDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, } from "./generated/graphql";
|
|
2
|
+
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, DetailedPredictionEventStatsDocument, DetailedPredictionMarketStatsDocument, DetailedPredictionTraderStatsDocument, DetailedWalletStatsDocument, EventScopedFilterPredictionMarketsDocument, FilterExchangesDocument, FilterPairsDocument, FilterPredictionEventsDocument, FilterPredictionMarketsDocument, FilterPredictionTraderMarketsDocument, FilterPredictionTradersDocument, 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, PredictionCategoriesDocument, PredictionEventBarsDocument, PredictionEventTopMarketsBarsDocument, PredictionMarketBarsDocument, PredictionMarketPriceDocument, PredictionMarketsDocument, PredictionOutcomeOrderBooksDocument, PredictionTokenHoldersDocument, PredictionTraderBarsDocument, PredictionTraderHoldingsDocument, PredictionTraderMarketsStatsDocument, PredictionTradersDocument, PredictionTradesDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, WalletLabelTypesDocument, } from "./generated/graphql";
|
|
3
3
|
export class Query {
|
|
4
4
|
constructor(sdk) {
|
|
5
5
|
this.sdk = sdk;
|
|
@@ -12,6 +12,7 @@ export class Query {
|
|
|
12
12
|
this.detailedPredictionMarketStats = async (vars) => this.sdk.query(DetailedPredictionMarketStatsDocument, vars);
|
|
13
13
|
this.detailedPredictionTraderStats = async (vars) => this.sdk.query(DetailedPredictionTraderStatsDocument, vars);
|
|
14
14
|
this.detailedWalletStats = async (vars) => this.sdk.query(DetailedWalletStatsDocument, vars);
|
|
15
|
+
this.eventScopedFilterPredictionMarkets = async (vars) => this.sdk.query(EventScopedFilterPredictionMarketsDocument, vars);
|
|
15
16
|
this.filterExchanges = async (vars) => this.sdk.query(FilterExchangesDocument, vars);
|
|
16
17
|
this.filterPairs = async (vars) => this.sdk.query(FilterPairsDocument, vars);
|
|
17
18
|
this.filterPredictionEvents = async (vars) => this.sdk.query(FilterPredictionEventsDocument, vars);
|
|
@@ -51,6 +52,7 @@ export class Query {
|
|
|
51
52
|
this.predictionMarketBars = async (vars) => this.sdk.query(PredictionMarketBarsDocument, vars);
|
|
52
53
|
this.predictionMarketPrice = async (vars) => this.sdk.query(PredictionMarketPriceDocument, vars);
|
|
53
54
|
this.predictionMarkets = async (vars) => this.sdk.query(PredictionMarketsDocument, vars);
|
|
55
|
+
this.predictionOutcomeOrderBooks = async (vars) => this.sdk.query(PredictionOutcomeOrderBooksDocument, vars);
|
|
54
56
|
this.predictionTokenHolders = async (vars) => this.sdk.query(PredictionTokenHoldersDocument, vars);
|
|
55
57
|
this.predictionTraderBars = async (vars) => this.sdk.query(PredictionTraderBarsDocument, vars);
|
|
56
58
|
this.predictionTraderHoldings = async (vars) => this.sdk.query(PredictionTraderHoldingsDocument, vars);
|
|
@@ -65,5 +67,6 @@ export class Query {
|
|
|
65
67
|
this.top10HoldersPercent = async (vars) => this.sdk.query(Top10HoldersPercentDocument, vars);
|
|
66
68
|
this.walletAggregateBackfillState = async (vars) => this.sdk.query(WalletAggregateBackfillStateDocument, vars);
|
|
67
69
|
this.walletChart = async (vars) => this.sdk.query(WalletChartDocument, vars);
|
|
70
|
+
this.walletLabelTypes = async (vars) => this.sdk.query(WalletLabelTypesDocument, vars);
|
|
68
71
|
}
|
|
69
72
|
}
|
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, OnDetailedPredictionEventStatsUpdatedSubscription, OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, OnDetailedPredictionMarketStatsUpdatedSubscription, OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables,
|
|
2
|
+
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedPredictionEventStatsUpdatedSubscription, OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, OnDetailedPredictionMarketStatsUpdatedSubscription, OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnFilterTokensUpdatedSubscription, OnFilterTokensUpdatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPredictionEventBarsUpdatedSubscription, OnPredictionEventBarsUpdatedSubscriptionVariables, OnPredictionMarketBarsUpdatedSubscription, OnPredictionMarketBarsUpdatedSubscriptionVariables, OnPredictionTradesCreatedSubscription, OnPredictionTradesCreatedSubscriptionVariables, 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;
|
|
@@ -13,9 +13,8 @@ export declare class Subscribe {
|
|
|
13
13
|
onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
14
14
|
onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
15
15
|
onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
|
|
16
|
-
|
|
16
|
+
onFilterTokensUpdated: (vars: OnFilterTokensUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnFilterTokensUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
17
17
|
onHoldersUpdated: (vars: OnHoldersUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnHoldersUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
18
|
-
onLatestPairUpdated: (vars: OnLatestPairUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestPairUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
19
18
|
onLatestTokens: (vars: OnLatestTokensSubscriptionVariables, sink: Sink<ExecutionResult<OnLatestTokensSubscription>>) => import("./index").CleanupFunction;
|
|
20
19
|
onLaunchpadTokenEvent: (vars: OnLaunchpadTokenEventSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventSubscription>>) => import("./index").CleanupFunction;
|
|
21
20
|
onLaunchpadTokenEventBatch: (vars: OnLaunchpadTokenEventBatchSubscriptionVariables, sink: Sink<ExecutionResult<OnLaunchpadTokenEventBatchSubscription>>) => import("./index").CleanupFunction;
|
package/dist/sdk/Subscribe.js
CHANGED
|
@@ -6,12 +6,12 @@ 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, isCashbackEnabled, 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
|
|
9
|
+
address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, networkId, shiftedBalance, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, 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
|
-
this.onBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBarsUpdated($pairId: String, $quoteToken: QuoteToken) {
|
|
13
|
-
onBarsUpdated (pairId: $pairId, quoteToken: $quoteToken) {
|
|
14
|
-
aggregates { r1 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, statsType, timestamp
|
|
12
|
+
this.onBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnBarsUpdated($commitmentLevel: [BarCommitmentLevel!], $pairId: String, $quoteToken: QuoteToken) {
|
|
13
|
+
onBarsUpdated (commitmentLevel: $commitmentLevel, pairId: $pairId, quoteToken: $quoteToken) {
|
|
14
|
+
aggregates { r1 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, commitmentLevel, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, statsType, timestamp
|
|
15
15
|
}
|
|
16
16
|
}`, vars, sink);
|
|
17
17
|
this.onDetailedPredictionEventStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedPredictionEventStatsUpdated($eventId: String!) {
|
|
@@ -57,29 +57,24 @@ class Subscribe {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
`, vars, sink);
|
|
60
|
-
this.onEventsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnEventsCreated($address: String, $id: String, $networkId: Int, $quoteToken: QuoteToken) {
|
|
61
|
-
onEventsCreated (address: $address, id: $id, networkId: $networkId, quoteToken: $quoteToken) {
|
|
62
|
-
address, events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, id, networkId, quoteToken
|
|
60
|
+
this.onEventsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnEventsCreated($address: String, $commitmentLevel: [EventCommitmentLevel!], $id: String, $networkId: Int, $quoteToken: QuoteToken) {
|
|
61
|
+
onEventsCreated (address: $address, commitmentLevel: $commitmentLevel, id: $id, networkId: $networkId, quoteToken: $quoteToken) {
|
|
62
|
+
address, events { address, baseTokenPrice, blockHash, blockNumber, commitmentLevel, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, supplementalIndex, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, id, networkId, quoteToken
|
|
63
63
|
}
|
|
64
64
|
}`, vars, sink);
|
|
65
|
-
this.onEventsCreatedByMaker = (vars, sink) => this.sdk.subscribe(`subscription OnEventsCreatedByMaker($input: OnEventsCreatedByMakerInput!) {
|
|
66
|
-
onEventsCreatedByMaker (input: $input) {
|
|
67
|
-
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, makerAddress
|
|
65
|
+
this.onEventsCreatedByMaker = (vars, sink) => this.sdk.subscribe(`subscription OnEventsCreatedByMaker($commitmentLevel: [EventCommitmentLevel!], $input: OnEventsCreatedByMakerInput!) {
|
|
66
|
+
onEventsCreatedByMaker (commitmentLevel: $commitmentLevel, input: $input) {
|
|
67
|
+
events { address, baseTokenPrice, blockHash, blockNumber, commitmentLevel, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, supplementalIndex, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, makerAddress
|
|
68
68
|
}
|
|
69
69
|
}`, vars, sink);
|
|
70
|
-
this.
|
|
71
|
-
|
|
72
|
-
updates { bundlerCount, bundlerHeldPercentage, buyCount1, buyCount4, buyCount5m, buyCount12, buyCount24, buyVolume1, buyVolume4, buyVolume5m, buyVolume12, buyVolume24, change1, change4, change5m, change12, change24, circulatingMarketCap, createdAt, devHeldPercentage, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, high1, high4, high5m, high12, high24, holders, insiderCount, insiderHeldPercentage, isScam, lastTransaction, liquidPair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, 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 }, token1, token1Data { 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, isCashbackEnabled, 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 }, virtualPooled { token0, token1 } }, liquidPairLiquidity, liquidPairPriceUSD, liquidity, low1, low4, low5m, low12, low24, marketCap, pair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { 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, isCashbackEnabled, 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 }, token1, token1Data { 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, isCashbackEnabled, 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 }, virtualPooled { token0, token1 } }, potentialScamReasons, priceUSD, quoteToken, sellCount1, sellCount4, sellCount5m, sellCount12, sellCount24, sellVolume1, sellVolume4, sellVolume5m, sellVolume12, sellVolume24, sniperCount, sniperHeldPercentage, swapPct1dOldWallet, swapPct7dOldWallet, 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, isCashbackEnabled, 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, trendingScore, txnCount1, txnCount4, txnCount5m, txnCount12, txnCount24, uniqueBuys1, uniqueBuys4, uniqueBuys5m, uniqueBuys12, uniqueBuys24, uniqueSells1, uniqueSells4, uniqueSells5m, uniqueSells12, uniqueSells24, uniqueTransactions1, uniqueTransactions4, uniqueTransactions5m, uniqueTransactions12, uniqueTransactions24, volume1, volume4, volume5m, volume12, volume24, volumeChange1, volumeChange4, volumeChange5m, volumeChange12, volumeChange24, walletAgeAvg, walletAgeStd }
|
|
70
|
+
this.onFilterTokensUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnFilterTokensUpdated($excludeTokens: [String], $filters: TokenFilters, $limit: Int, $offset: Int, $phrase: String, $rankings: [TokenRanking], $statsType: TokenPairStatisticsType, $tokens: [String], $updatePeriod: Int, $useAggregatedStats: Boolean) {
|
|
71
|
+
onFilterTokensUpdated (excludeTokens: $excludeTokens, filters: $filters, limit: $limit, offset: $offset, phrase: $phrase, rankings: $rankings, statsType: $statsType, tokens: $tokens, updatePeriod: $updatePeriod, useAggregatedStats: $useAggregatedStats) {
|
|
72
|
+
updates { athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, baseFees1, baseFees4, baseFees5m, baseFees12, baseFees24, builderTips1, builderTips4, builderTips5m, builderTips12, builderTips24, bundlerCount, bundlerHeldPercentage, buyCount1, buyCount4, buyCount5m, buyCount12, buyCount24, buyVolume1, buyVolume4, buyVolume5m, buyVolume12, buyVolume24, change1, change4, change5m, change12, change24, circulatingMarketCap, createdAt, devHeldPercentage, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, feeToVolumeRatio1, feeToVolumeRatio4, feeToVolumeRatio5m, feeToVolumeRatio12, feeToVolumeRatio24, high1, high4, high5m, high12, high24, holders, insiderCount, insiderHeldPercentage, isScam, l1DataFees1, l1DataFees4, l1DataFees5m, l1DataFees12, l1DataFees24, lastTransaction, liquidPair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, tagLine, type }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, token1, token1Data { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, tagLine, type }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, virtualPooled { token0, token1 } }, liquidPairLiquidity, liquidPairPriceUSD, liquidity, low1, low4, low5m, low12, low24, marketCap, pair { address, createdAt, exchangeHash, fee, id, networkId, pooled { token0, token1 }, protocol, protocolData { ... on ArenaTradeData { tokenId, type }, ... on PumpData { creator, type }, ... on UniswapV4Data { isDynamicFee, isToken0NetworkToken, type, uniswapV4HookAddress } }, tickSpacing, token0, token0Data { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, tagLine, type }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, token1, token1Data { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, tagLine, type }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, virtualPooled { token0, token1 } }, poolFees1, poolFees4, poolFees5m, poolFees12, poolFees24, potentialScamReasons, priceUSD, priorityFees1, priorityFees4, priorityFees5m, priorityFees12, priorityFees24, quoteToken, sellCount1, sellCount4, sellCount5m, sellCount12, sellCount24, sellVolume1, sellVolume4, sellVolume5m, sellVolume12, sellVolume24, sniperCount, sniperHeldPercentage, swapPct1dOldWallet, swapPct7dOldWallet, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, tagLine, type }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, totalFees1, totalFees4, totalFees5m, totalFees12, totalFees24, trendingScore, txnCount1, txnCount4, txnCount5m, txnCount12, txnCount24, uniqueBuys1, uniqueBuys4, uniqueBuys5m, uniqueBuys12, uniqueBuys24, uniqueSells1, uniqueSells4, uniqueSells5m, uniqueSells12, uniqueSells24, uniqueTransactions1, uniqueTransactions4, uniqueTransactions5m, uniqueTransactions12, uniqueTransactions24, volume1, volume4, volume5m, volume12, volume24, volumeChange1, volumeChange4, volumeChange5m, volumeChange12, volumeChange24, walletAgeAvg, walletAgeStd }
|
|
73
73
|
}
|
|
74
74
|
}`, vars, sink);
|
|
75
75
|
this.onHoldersUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnHoldersUpdated($tokenId: String!) {
|
|
76
76
|
onHoldersUpdated (tokenId: $tokenId) {
|
|
77
|
-
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, isCashbackEnabled, 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
|
|
78
|
-
}
|
|
79
|
-
}`, vars, sink);
|
|
80
|
-
this.onLatestPairUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnLatestPairUpdated($id: String, $networkId: Int) {
|
|
81
|
-
onLatestPairUpdated (id: $id, networkId: $networkId) {
|
|
82
|
-
address, exchangeHash, id, initialPriceUsd, liquidAt, liquidity, liquidityToken, networkId, newToken, nonLiquidityToken, oldToken, priceChange, priceUsd, token0 { address, currentPoolAmount, decimals, id, initialPoolAmount, name, networkId, pairId, poolVariation, symbol }, token1 { address, currentPoolAmount, decimals, id, initialPoolAmount, name, networkId, pairId, poolVariation, symbol }, transactionHash
|
|
77
|
+
balances { address, balance, balanceUsd, firstHeldTimestamp, liquidityUsd, networkId, shiftedBalance, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, tagLine, type }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, 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
|
|
83
78
|
}
|
|
84
79
|
}`, vars, sink);
|
|
85
80
|
this.onLatestTokens = (vars, sink) => this.sdk.subscribe(`subscription OnLatestTokens($id: String, $networkId: Int, $tokenAddress: String) {
|
|
@@ -89,12 +84,12 @@ class Subscribe {
|
|
|
89
84
|
}`, vars, sink);
|
|
90
85
|
this.onLaunchpadTokenEvent = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEvent($input: OnLaunchpadTokenEventInput) {
|
|
91
86
|
onLaunchpadTokenEvent (input: $input) {
|
|
92
|
-
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, isCashbackEnabled, 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
|
|
87
|
+
address, baseFees1, builderTips1, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, feeToVolumeRatio1, holders, insiderCount, insiderHeldPercentage, l1DataFees1, launchpadName, liquidity, marketCap, networkId, poolFees1, price, priorityFees1, protocol, sellCount1, sniperCount, sniperHeldPercentage, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, totalFees1, transactions1, volume1
|
|
93
88
|
}
|
|
94
89
|
}`, vars, sink);
|
|
95
90
|
this.onLaunchpadTokenEventBatch = (vars, sink) => this.sdk.subscribe(`subscription OnLaunchpadTokenEventBatch($input: OnLaunchpadTokenEventBatchInput) {
|
|
96
91
|
onLaunchpadTokenEventBatch (input: $input) {
|
|
97
|
-
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, isCashbackEnabled, 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
|
|
92
|
+
address, baseFees1, builderTips1, bundlerCount, bundlerHeldPercentage, buyCount1, devHeldPercentage, eventType, feeToVolumeRatio1, holders, insiderCount, insiderHeldPercentage, l1DataFees1, launchpadName, liquidity, marketCap, networkId, poolFees1, price, priorityFees1, protocol, sellCount1, sniperCount, sniperHeldPercentage, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, top10HoldersPercent, totalFees1, transactions1, volume1
|
|
98
93
|
}
|
|
99
94
|
}`, vars, sink);
|
|
100
95
|
this.onNftAssetsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnNftAssetsCreated($address: String, $networkId: Int, $tokenId: String) {
|
|
@@ -114,7 +109,7 @@ class Subscribe {
|
|
|
114
109
|
}`, vars, sink);
|
|
115
110
|
this.onPairMetadataUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPairMetadataUpdated($id: String, $quoteToken: QuoteToken, $useNonLiquidityTokenAsQuoteToken: Boolean) {
|
|
116
111
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
117
|
-
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, isCashbackEnabled, 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, isCashbackEnabled, 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 }
|
|
112
|
+
createdAt, enhancedToken0 { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, enhancedToken1 { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, bluechipRating, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, freezable, gridAssetId, id, isFreezableValid, isMintableValid, isScam, mintable, name, networkId, profanity, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { assetDeployments { address, assetId, id, networkId, rootId, standard, token { address, asset { assetDeployments { address, assetId, id, networkId, rootId, standard }, description, icon, id, name, rootId, status, ticker, type }, bluechipRating, cmcId, coinCommunity { createdAt, id }, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, extrema { address, athCircMc, athCircMcTimestamp, athFdv, athFdvTimestamp, athPrice, athPriceTimestamp, atlCircMc, atlCircMcTimestamp, atlFdv, atlFdvTimestamp, atlPrice, atlPriceTimestamp, id, networkId }, freezable, gridAssetId, id, info { address, bluechipRating, circulatingSupply, cmcId, description, gridAssetId, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { category, completed, completedAt, completedSlot, graduationPercent, isCashbackEnabled, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, organization { assets { description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent } }, description, icon, id, name, rootId, status, ticker, type }, descriptionLong, descriptionShort, foundingDate, header, icon, logo, name, rootId, sector, socials { type, url }, tagLine, type, urls { type, url } }, profanity, 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 }
|
|
118
113
|
}
|
|
119
114
|
}`, vars, sink);
|
|
120
115
|
this.onPredictionEventBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionEventBarsUpdated($eventId: String!) {
|
|
@@ -124,32 +119,32 @@ class Subscribe {
|
|
|
124
119
|
}`, vars, sink);
|
|
125
120
|
this.onPredictionMarketBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionMarketBarsUpdated($marketId: String!) {
|
|
126
121
|
onPredictionMarketBarsUpdated (marketId: $marketId) {
|
|
127
|
-
bars { day1 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, hour1 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, hour4 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, hour12 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min1 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min5 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min15 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min30 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, week1 { allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd } }, marketId
|
|
122
|
+
bars { day1 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, hour1 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, hour4 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, hour12 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min1 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min5 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min15 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, min30 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd }, week1 { allTimeVenueVolumeCollateralToken, allTimeVenueVolumeUsd, allTimeVolumeCollateralToken, allTimeVolumeUsd, lastEventTimestamp, openInterestUsd { c, h, l, o }, outcome0 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, outcome1 { askCollateralToken { c, h, l, o }, askUsd { c, h, l, o }, bidCollateralToken { c, h, l, o }, bidUsd { c, h, l, o }, buyVolumeCollateralToken, buyVolumeShares, buyVolumeUsd, buys, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, priceCollateralToken { c, h, l, o }, priceUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeShares, sellVolumeUsd, sells, trades, twoPercentAskDepthCollateralToken { c, h, l, o }, twoPercentAskDepthUsd { c, h, l, o }, twoPercentBidDepthCollateralToken { c, h, l, o }, twoPercentBidDepthUsd { c, h, l, o }, venueOutcomeId, volumeCollateralToken, volumeShares, volumeUsd }, t, trades, uniqueTraders, volumeCollateralToken, volumeShares, volumeUsd } }, marketId
|
|
128
123
|
}
|
|
129
124
|
}`, vars, sink);
|
|
130
|
-
this.onPredictionTradesCreated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionTradesCreated($input: OnPredictionTradesCreatedInput
|
|
125
|
+
this.onPredictionTradesCreated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionTradesCreated($input: OnPredictionTradesCreatedInput) {
|
|
131
126
|
onPredictionTradesCreated (input: $input) {
|
|
132
|
-
eventId, marketId, trades { amount, amountCollateral, amountUsd, blockNumber, exchangeAddress, maker, marketId, networkId, outcomeId, outcomeIndex, outcomeLabel, predictionMarket { categories { name, slug, subcategories { name, slug, subcategories { name, slug } } }, closesAt, createdAt, eventId, eventLabel, exchangeAddress, id, imageLargeUrl, imageSmallUrl, imageThumbUrl, label, networkId, observedAt, opensAt, outcomeIds, outcomeLabels, protocol, question, resolution { result, source }, resolvedAt, resolvesAt, rules, rules2, updatedAt, venueEventId, venueMarketId, venueMarketSlug, venueOutcomeIds, winningOutcomeId }, priceCollateral, priceUsd, protocol, sortKey, timestamp, tradeType, traderId, transactionHash, transactionId }
|
|
127
|
+
eventId, marketId, trades { amount, amountCollateral, amountUsd, blockNumber, exchangeAddress, maker, marketId, networkId, outcomeId, outcomeIndex, outcomeLabel, predictionMarket { categories { name, slug, subcategories { name, slug, subcategories { name, slug } } }, closesAt, createdAt, enrichedMetadata { metadataType, sports { gameStartDate, gameStartTime, gameStartTimeSeconds, gameStartTimezone, league, sportsMarketType, teams { abbreviation, alias, altAbbreviations, color, isHome, league, logo, name, providerId } } }, eventId, eventLabel, exchangeAddress, id, imageLargeUrl, imageSmallUrl, imageThumbUrl, label, networkId, observedAt, opensAt, outcomeIds, outcomeLabels, protocol, question, resolution { result, source }, resolvedAt, resolvesAt, rules, rules2, suggestedLabel, updatedAt, venueEventId, venueMarketId, venueMarketSlug, venueOutcomeIds, winningOutcomeId }, priceCollateral, priceUsd, protocol, sortKey, timestamp, tradeType, traderId, transactionHash, transactionId }
|
|
133
128
|
}
|
|
134
129
|
}`, vars, sink);
|
|
135
|
-
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
136
|
-
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|
|
130
|
+
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String, $useWeightedPrices: Boolean) {
|
|
131
|
+
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress, useWeightedPrices: $useWeightedPrices) {
|
|
137
132
|
address, blockNumber, networkId, priceUsd, timestamp
|
|
138
133
|
}
|
|
139
134
|
}`, vars, sink);
|
|
140
|
-
this.onPricesUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]
|
|
141
|
-
onPricesUpdated (input: $input) {
|
|
135
|
+
this.onPricesUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!, $useWeightedPrices: Boolean) {
|
|
136
|
+
onPricesUpdated (input: $input, useWeightedPrices: $useWeightedPrices) {
|
|
142
137
|
address, blockNumber, networkId, priceUsd, timestamp
|
|
143
138
|
}
|
|
144
139
|
}`, vars, sink);
|
|
145
|
-
this.onTokenBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnTokenBarsUpdated($networkId: Int, $tokenId: String) {
|
|
146
|
-
onTokenBarsUpdated (networkId: $networkId, tokenId: $tokenId) {
|
|
147
|
-
aggregates { r1 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId, statsType, timestamp, tokenAddress, tokenId
|
|
140
|
+
this.onTokenBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnTokenBarsUpdated($commitmentLevel: [BarCommitmentLevel!], $networkId: Int, $tokenId: String) {
|
|
141
|
+
onTokenBarsUpdated (commitmentLevel: $commitmentLevel, networkId: $networkId, tokenId: $tokenId) {
|
|
142
|
+
aggregates { r1 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { baseFees, builderTips, buyVolume, buyers, buys, c, h, l, l1DataFees, liquidity, o, poolFees, priorityFees, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, commitmentLevel, eventSortKey, networkId, statsType, timestamp, tokenAddress, tokenId
|
|
148
143
|
}
|
|
149
144
|
}`, vars, sink);
|
|
150
|
-
this.onTokenEventsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnTokenEventsCreated($input: OnTokenEventsCreatedInput!) {
|
|
151
|
-
onTokenEventsCreated (input: $input) {
|
|
152
|
-
events { address, baseTokenPrice, blockHash, blockNumber, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, id
|
|
145
|
+
this.onTokenEventsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnTokenEventsCreated($commitmentLevel: [EventCommitmentLevel!], $input: OnTokenEventsCreatedInput!) {
|
|
146
|
+
onTokenEventsCreated (commitmentLevel: $commitmentLevel, input: $input) {
|
|
147
|
+
events { address, baseTokenPrice, blockHash, blockNumber, commitmentLevel, data { ... on BurnEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on MintEventData { amount0, amount0Shifted, amount1, amount1Shifted, tickLower, tickUpper, type }, ... on PoolBalanceChangedEventData { amount0, amount0Shifted, amount1, amount1Shifted, liquidity0, liquidity1, protocolFeeAmount0, protocolFeeAmount1, sender, token0, token1, type }, ... on SwapEventData { amount0, amount0In, amount0Out, amount1, amount1In, amount1Out, amountNonLiquidityToken, priceBaseToken, priceBaseTokenTotal, priceUsd, priceUsdTotal, tick, type } }, eventDisplayType, eventType, feeData { baseFeeNativeUnit, builderTipNativeUnit, dynamicFee, estimatedPoolFee, gasUsed, l1DataFeeNativeUnit, poolFeeAmountRaw, poolFeeBps, poolFeeRateRaw, priorityFeeNativeUnit, supplementalFeeData { ... on PumpAmmCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type }, ... on PumpCashbackFeeData { cashbackAmountLamports, cashbackFeeBps, type } }, txEventCount }, id, labels { sandwich { label, sandwichType, token0DrainedAmount, token1DrainedAmount }, washtrade { label } }, liquidityToken, logIndex, maker, networkId, quoteToken, supplementalIndex, timestamp, token0Address, token0PoolValueUsd, token0SwapValueUsd, token0ValueBase, token1Address, token1PoolValueUsd, token1SwapValueUsd, token1ValueBase, transactionHash, transactionIndex, walletAge, walletLabels }, id
|
|
153
148
|
}
|
|
154
149
|
}`, vars, sink);
|
|
155
150
|
this.onTokenLifecycleEventsCreated = (vars, sink) => this.sdk.subscribe(`subscription OnTokenLifecycleEventsCreated($address: String, $networkId: Int) {
|