@codex-data/sdk 2.0.3 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -441,6 +441,15 @@ pnpm run test # Run tests
441
441
  pnpm run lint # Lint the codebase
442
442
  ```
443
443
 
444
+ ## Releasing
445
+
446
+ On a branch, make your changes then:
447
+
448
+ - `pnpm run build`
449
+ - change `package.json` version accordingly
450
+ - merge to main
451
+ - create a github release with the same tag as the version in `package.json`
452
+
444
453
  ## Upgrading to v2
445
454
 
446
455
  See [UPGRADING.md](./UPGRADING.md) for migration instructions from v1 to v2.
@@ -1,4 +1,4 @@
1
- import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, ChartUrlsQueryVariables, DetailedWalletStatsQueryVariables, FilterExchangesQueryVariables, FilterPairsQueryVariables, 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, TokenLifecycleEventsQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables } from "./generated/graphql";
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, PredictionMarketsQueryVariables, PredictionTokenHoldersQueryVariables, PredictionTraderBarsQueryVariables, PredictionTraderMarketsStatsQueryVariables, PredictionTradersQueryVariables, PredictionTradesQueryVariables, TokenLifecycleEventsQueryVariables, TokenQueryVariables, TokenSparklinesQueryVariables, TokensQueryVariables, TokenTopTradersQueryVariables, Top10HoldersPercentQueryVariables, WalletAggregateBackfillStateQueryVariables, WalletChartQueryVariables } from "./generated/graphql";
2
2
  import { Codex } from "./index";
3
3
  export declare class Query {
4
4
  private sdk;
@@ -8,9 +8,16 @@ export declare class Query {
8
8
  balances: (vars: BalancesQueryVariables) => Promise<import("./generated/graphql").BalancesQuery>;
9
9
  blocks: (vars: BlocksQueryVariables) => Promise<import("./generated/graphql").BlocksQuery>;
10
10
  chartUrls: (vars: ChartUrlsQueryVariables) => Promise<import("./generated/graphql").ChartUrlsQuery>;
11
+ detailedPredictionEventStats: (vars: DetailedPredictionEventStatsQueryVariables) => Promise<import("./generated/graphql").DetailedPredictionEventStatsQuery>;
12
+ detailedPredictionMarketStats: (vars: DetailedPredictionMarketStatsQueryVariables) => Promise<import("./generated/graphql").DetailedPredictionMarketStatsQuery>;
13
+ detailedPredictionTraderStats: (vars: DetailedPredictionTraderStatsQueryVariables) => Promise<import("./generated/graphql").DetailedPredictionTraderStatsQuery>;
11
14
  detailedWalletStats: (vars: DetailedWalletStatsQueryVariables) => Promise<import("./generated/graphql").DetailedWalletStatsQuery>;
12
15
  filterExchanges: (vars: FilterExchangesQueryVariables) => Promise<import("./generated/graphql").FilterExchangesQuery>;
13
16
  filterPairs: (vars: FilterPairsQueryVariables) => Promise<import("./generated/graphql").FilterPairsQuery>;
17
+ filterPredictionEvents: (vars: FilterPredictionEventsQueryVariables) => Promise<import("./generated/graphql").FilterPredictionEventsQuery>;
18
+ filterPredictionMarkets: (vars: FilterPredictionMarketsQueryVariables) => Promise<import("./generated/graphql").FilterPredictionMarketsQuery>;
19
+ filterPredictionTraderMarkets: (vars: FilterPredictionTraderMarketsQueryVariables) => Promise<import("./generated/graphql").FilterPredictionTraderMarketsQuery>;
20
+ filterPredictionTraders: (vars: FilterPredictionTradersQueryVariables) => Promise<import("./generated/graphql").FilterPredictionTradersQuery>;
14
21
  filterTokenWallets: (vars: FilterTokenWalletsQueryVariables) => Promise<import("./generated/graphql").FilterTokenWalletsQuery>;
15
22
  filterTokens: (vars: FilterTokensQueryVariables) => Promise<import("./generated/graphql").FilterTokensQuery>;
16
23
  filterWallets: (vars: FilterWalletsQueryVariables) => Promise<import("./generated/graphql").FilterWalletsQuery>;
@@ -38,6 +45,16 @@ export declare class Query {
38
45
  listPairsForToken: (vars: ListPairsForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsForTokenQuery>;
39
46
  listPairsWithMetadataForToken: (vars: ListPairsWithMetadataForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsWithMetadataForTokenQuery>;
40
47
  pairMetadata: (vars: PairMetadataQueryVariables) => Promise<import("./generated/graphql").PairMetadataQuery>;
48
+ predictionCategories: (vars: PredictionCategoriesQueryVariables) => Promise<import("./generated/graphql").PredictionCategoriesQuery>;
49
+ predictionEventBars: (vars: PredictionEventBarsQueryVariables) => Promise<import("./generated/graphql").PredictionEventBarsQuery>;
50
+ predictionEventTopMarketsBars: (vars: PredictionEventTopMarketsBarsQueryVariables) => Promise<import("./generated/graphql").PredictionEventTopMarketsBarsQuery>;
51
+ predictionMarketBars: (vars: PredictionMarketBarsQueryVariables) => Promise<import("./generated/graphql").PredictionMarketBarsQuery>;
52
+ predictionMarkets: (vars: PredictionMarketsQueryVariables) => Promise<import("./generated/graphql").PredictionMarketsQuery>;
53
+ predictionTokenHolders: (vars: PredictionTokenHoldersQueryVariables) => Promise<import("./generated/graphql").PredictionTokenHoldersQuery>;
54
+ predictionTraderBars: (vars: PredictionTraderBarsQueryVariables) => Promise<import("./generated/graphql").PredictionTraderBarsQuery>;
55
+ predictionTraderMarketsStats: (vars: PredictionTraderMarketsStatsQueryVariables) => Promise<import("./generated/graphql").PredictionTraderMarketsStatsQuery>;
56
+ predictionTraders: (vars: PredictionTradersQueryVariables) => Promise<import("./generated/graphql").PredictionTradersQuery>;
57
+ predictionTrades: (vars: PredictionTradesQueryVariables) => Promise<import("./generated/graphql").PredictionTradesQuery>;
41
58
  token: (vars: TokenQueryVariables) => Promise<import("./generated/graphql").TokenQuery>;
42
59
  tokenLifecycleEvents: (vars: TokenLifecycleEventsQueryVariables) => Promise<import("./generated/graphql").TokenLifecycleEventsQuery>;
43
60
  tokenSparklines: (vars: TokenSparklinesQueryVariables) => Promise<import("./generated/graphql").TokenSparklinesQuery>;
package/dist/sdk/Query.js CHANGED
@@ -20,9 +20,16 @@ class Query {
20
20
  this.balances = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.BalancesDocument, vars); });
21
21
  this.blocks = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.BlocksDocument, vars); });
22
22
  this.chartUrls = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ChartUrlsDocument, vars); });
23
+ this.detailedPredictionEventStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedPredictionEventStatsDocument, vars); });
24
+ this.detailedPredictionMarketStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedPredictionMarketStatsDocument, vars); });
25
+ this.detailedPredictionTraderStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedPredictionTraderStatsDocument, vars); });
23
26
  this.detailedWalletStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.DetailedWalletStatsDocument, vars); });
24
27
  this.filterExchanges = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterExchangesDocument, vars); });
25
28
  this.filterPairs = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPairsDocument, vars); });
29
+ this.filterPredictionEvents = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPredictionEventsDocument, vars); });
30
+ this.filterPredictionMarkets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPredictionMarketsDocument, vars); });
31
+ this.filterPredictionTraderMarkets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPredictionTraderMarketsDocument, vars); });
32
+ this.filterPredictionTraders = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterPredictionTradersDocument, vars); });
26
33
  this.filterTokenWallets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterTokenWalletsDocument, vars); });
27
34
  this.filterTokens = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterTokensDocument, vars); });
28
35
  this.filterWallets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.FilterWalletsDocument, vars); });
@@ -50,6 +57,16 @@ class Query {
50
57
  this.listPairsForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsForTokenDocument, vars); });
51
58
  this.listPairsWithMetadataForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsWithMetadataForTokenDocument, vars); });
52
59
  this.pairMetadata = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PairMetadataDocument, vars); });
60
+ this.predictionCategories = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionCategoriesDocument, vars); });
61
+ this.predictionEventBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionEventBarsDocument, vars); });
62
+ this.predictionEventTopMarketsBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionEventTopMarketsBarsDocument, vars); });
63
+ this.predictionMarketBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionMarketBarsDocument, vars); });
64
+ this.predictionMarkets = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionMarketsDocument, vars); });
65
+ this.predictionTokenHolders = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTokenHoldersDocument, vars); });
66
+ this.predictionTraderBars = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTraderBarsDocument, vars); });
67
+ this.predictionTraderMarketsStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTraderMarketsStatsDocument, vars); });
68
+ this.predictionTraders = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTradersDocument, vars); });
69
+ this.predictionTrades = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.PredictionTradesDocument, vars); });
53
70
  this.token = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenDocument, vars); });
54
71
  this.tokenLifecycleEvents = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenLifecycleEventsDocument, vars); });
55
72
  this.tokenSparklines = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenSparklinesDocument, vars); });
@@ -1,5 +1,5 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
2
- import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, DetailedWalletStatsDocument, FilterExchangesDocument, FilterPairsDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetDetailedTokenStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksDocument, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, } from "./generated/graphql";
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, PredictionMarketsDocument, PredictionTokenHoldersDocument, PredictionTraderBarsDocument, PredictionTraderMarketsStatsDocument, PredictionTradersDocument, PredictionTradesDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, } from "./generated/graphql";
3
3
  export class Query {
4
4
  constructor(sdk) {
5
5
  this.sdk = sdk;
@@ -8,9 +8,16 @@ export class Query {
8
8
  this.balances = async (vars) => this.sdk.query(BalancesDocument, vars);
9
9
  this.blocks = async (vars) => this.sdk.query(BlocksDocument, vars);
10
10
  this.chartUrls = async (vars) => this.sdk.query(ChartUrlsDocument, vars);
11
+ this.detailedPredictionEventStats = async (vars) => this.sdk.query(DetailedPredictionEventStatsDocument, vars);
12
+ this.detailedPredictionMarketStats = async (vars) => this.sdk.query(DetailedPredictionMarketStatsDocument, vars);
13
+ this.detailedPredictionTraderStats = async (vars) => this.sdk.query(DetailedPredictionTraderStatsDocument, vars);
11
14
  this.detailedWalletStats = async (vars) => this.sdk.query(DetailedWalletStatsDocument, vars);
12
15
  this.filterExchanges = async (vars) => this.sdk.query(FilterExchangesDocument, vars);
13
16
  this.filterPairs = async (vars) => this.sdk.query(FilterPairsDocument, vars);
17
+ this.filterPredictionEvents = async (vars) => this.sdk.query(FilterPredictionEventsDocument, vars);
18
+ this.filterPredictionMarkets = async (vars) => this.sdk.query(FilterPredictionMarketsDocument, vars);
19
+ this.filterPredictionTraderMarkets = async (vars) => this.sdk.query(FilterPredictionTraderMarketsDocument, vars);
20
+ this.filterPredictionTraders = async (vars) => this.sdk.query(FilterPredictionTradersDocument, vars);
14
21
  this.filterTokenWallets = async (vars) => this.sdk.query(FilterTokenWalletsDocument, vars);
15
22
  this.filterTokens = async (vars) => this.sdk.query(FilterTokensDocument, vars);
16
23
  this.filterWallets = async (vars) => this.sdk.query(FilterWalletsDocument, vars);
@@ -38,6 +45,16 @@ export class Query {
38
45
  this.listPairsForToken = async (vars) => this.sdk.query(ListPairsForTokenDocument, vars);
39
46
  this.listPairsWithMetadataForToken = async (vars) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
40
47
  this.pairMetadata = async (vars) => this.sdk.query(PairMetadataDocument, vars);
48
+ this.predictionCategories = async (vars) => this.sdk.query(PredictionCategoriesDocument, vars);
49
+ this.predictionEventBars = async (vars) => this.sdk.query(PredictionEventBarsDocument, vars);
50
+ this.predictionEventTopMarketsBars = async (vars) => this.sdk.query(PredictionEventTopMarketsBarsDocument, vars);
51
+ this.predictionMarketBars = async (vars) => this.sdk.query(PredictionMarketBarsDocument, vars);
52
+ this.predictionMarkets = async (vars) => this.sdk.query(PredictionMarketsDocument, vars);
53
+ this.predictionTokenHolders = async (vars) => this.sdk.query(PredictionTokenHoldersDocument, vars);
54
+ this.predictionTraderBars = async (vars) => this.sdk.query(PredictionTraderBarsDocument, vars);
55
+ this.predictionTraderMarketsStats = async (vars) => this.sdk.query(PredictionTraderMarketsStatsDocument, vars);
56
+ this.predictionTraders = async (vars) => this.sdk.query(PredictionTradersDocument, vars);
57
+ this.predictionTrades = async (vars) => this.sdk.query(PredictionTradesDocument, vars);
41
58
  this.token = async (vars) => this.sdk.query(TokenDocument, vars);
42
59
  this.tokenLifecycleEvents = async (vars) => this.sdk.query(TokenLifecycleEventsDocument, vars);
43
60
  this.tokenSparklines = async (vars) => this.sdk.query(TokenSparklinesDocument, vars);
@@ -1,11 +1,13 @@
1
1
  import { ExecutionResult, Sink } from "graphql-ws";
2
- import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestPairUpdatedSubscription, OnLatestPairUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPricesUpdatedSubscription, OnPricesUpdatedSubscriptionVariables, OnPriceUpdatedSubscription, OnPriceUpdatedSubscriptionVariables, OnTokenBarsUpdatedSubscription, OnTokenBarsUpdatedSubscriptionVariables, OnTokenEventsCreatedSubscription, OnTokenEventsCreatedSubscriptionVariables, OnTokenLifecycleEventsCreatedSubscription, OnTokenLifecycleEventsCreatedSubscriptionVariables, OnUnconfirmedBarsUpdatedSubscription, OnUnconfirmedBarsUpdatedSubscriptionVariables, OnUnconfirmedEventsCreatedByMakerSubscription, OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, OnUnconfirmedEventsCreatedSubscription, OnUnconfirmedEventsCreatedSubscriptionVariables } from "./generated/graphql";
2
+ import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedPredictionEventStatsUpdatedSubscription, OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, OnDetailedPredictionMarketStatsUpdatedSubscription, OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnDetailedTokenStatsUpdatedSubscription, OnDetailedTokenStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestPairUpdatedSubscription, OnLatestPairUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, 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;
6
6
  constructor(sdk: Codex);
7
7
  onBalanceUpdated: (vars: OnBalanceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBalanceUpdatedSubscription>>) => import("./index").CleanupFunction;
8
8
  onBarsUpdated: (vars: OnBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
9
+ onDetailedPredictionEventStatsUpdated: (vars: OnDetailedPredictionEventStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedPredictionEventStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
10
+ onDetailedPredictionMarketStatsUpdated: (vars: OnDetailedPredictionMarketStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedPredictionMarketStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
9
11
  onDetailedStatsUpdated: (vars: OnDetailedStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
10
12
  onDetailedTokenStatsUpdated: (vars: OnDetailedTokenStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedTokenStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
11
13
  onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
@@ -20,6 +22,9 @@ export declare class Subscribe {
20
22
  onNftEventsCreated: (vars: OnNftEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>) => import("./index").CleanupFunction;
21
23
  onNftPoolEventsCreated: (vars: OnNftPoolEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>) => import("./index").CleanupFunction;
22
24
  onPairMetadataUpdated: (vars: OnPairMetadataUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPairMetadataUpdatedSubscription>>) => import("./index").CleanupFunction;
25
+ onPredictionEventBarsUpdated: (vars: OnPredictionEventBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionEventBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
26
+ onPredictionMarketBarsUpdated: (vars: OnPredictionMarketBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionMarketBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
27
+ onPredictionTradesCreated: (vars: OnPredictionTradesCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPredictionTradesCreatedSubscription>>) => import("./index").CleanupFunction;
23
28
  onPriceUpdated: (vars: OnPriceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>) => import("./index").CleanupFunction;
24
29
  onPricesUpdated: (vars: OnPricesUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPricesUpdatedSubscription>>) => import("./index").CleanupFunction;
25
30
  onTokenBarsUpdated: (vars: OnTokenBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
@@ -13,6 +13,16 @@ class Subscribe {
13
13
  onBarsUpdated (pairId: $pairId, quoteToken: $quoteToken) {
14
14
  aggregates { r1 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, statsType, timestamp
15
15
  }
16
+ }`, vars, sink);
17
+ this.onDetailedPredictionEventStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedPredictionEventStatsUpdated($eventId: String!) {
18
+ onDetailedPredictionEventStatsUpdated (eventId: $eventId) {
19
+ allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, eventId, lastTransactionAt, lifecycle { ageSeconds, expectedLifespanSeconds, isResolved, timeToResolutionSeconds, winningOutcomeId }, relevanceScores { score1, score1w, score4, score5m, score12, score24 }, statsDay1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour4 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour12 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsMin5 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsWeek1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, trendingScores { score1, score1w, score4, score5m, score12, score24 }
20
+ }
21
+ }`, vars, sink);
22
+ this.onDetailedPredictionMarketStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedPredictionMarketStatsUpdated($marketId: String!) {
23
+ onDetailedPredictionMarketStatsUpdated (marketId: $marketId) {
24
+ allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, competitiveScores { score1, score1w, score4, score5m, score12, score24 }, lastTransactionAt, lifecycle { ageSeconds, expectedLifespanSeconds, isResolved, timeToResolutionSeconds, winningOutcomeId }, marketId, relevanceScores { score1, score1w, score4, score5m, score12, score24 }, statsDay1 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour1 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour4 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour12 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsMin5 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsWeek1 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, trendingScores { score1, score1w, score4, score5m, score12, score24 }
25
+ }
16
26
  }`, vars, sink);
17
27
  this.onDetailedStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedStatsUpdated($pairId: String, $tokenOfInterest: TokenOfInterest) {
18
28
  onDetailedStatsUpdated (pairId: $pairId, tokenOfInterest: $tokenOfInterest) {
@@ -101,6 +111,21 @@ class Subscribe {
101
111
  onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
102
112
  createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, exchangeId, fee, highPrice1, highPrice4, highPrice5m, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice4, lowPrice5m, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange4, priceChange5m, priceChange12, priceChange24, priceNonQuoteToken, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
103
113
  }
114
+ }`, vars, sink);
115
+ this.onPredictionEventBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionEventBarsUpdated($eventId: String!) {
116
+ onPredictionEventBarsUpdated (eventId: $eventId) {
117
+ bars { day1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, hour1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, hour4 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, hour12 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min5 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min15 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min30 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, week1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd } }, eventId
118
+ }
119
+ }`, vars, sink);
120
+ this.onPredictionMarketBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionMarketBarsUpdated($marketId: String!) {
121
+ onPredictionMarketBarsUpdated (marketId: $marketId) {
122
+ 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
123
+ }
124
+ }`, vars, sink);
125
+ this.onPredictionTradesCreated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionTradesCreated($input: OnPredictionTradesCreatedInput!) {
126
+ onPredictionTradesCreated (input: $input) {
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, 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 }
128
+ }
104
129
  }`, vars, sink);
105
130
  this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
106
131
  onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
@@ -10,6 +10,16 @@ export class Subscribe {
10
10
  onBarsUpdated (pairId: $pairId, quoteToken: $quoteToken) {
11
11
  aggregates { r1 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r1S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r5S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r7D { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r15S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r30S { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r60 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r240 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } }, r720 { t, token { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken }, usd { buyVolume, buyers, buys, c, h, l, liquidity, o, sellVolume, sellers, sells, t, traders, transactions, v, volume, volumeNativeToken } } }, eventSortKey, networkId, pairAddress, pairId, quoteToken, quoteTokenAddress, statsType, timestamp
12
12
  }
13
+ }`, vars, sink);
14
+ this.onDetailedPredictionEventStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedPredictionEventStatsUpdated($eventId: String!) {
15
+ onDetailedPredictionEventStatsUpdated (eventId: $eventId) {
16
+ allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, eventId, lastTransactionAt, lifecycle { ageSeconds, expectedLifespanSeconds, isResolved, timeToResolutionSeconds, winningOutcomeId }, relevanceScores { score1, score1w, score4, score5m, score12, score24 }, statsDay1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour4 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour12 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsMin5 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsWeek1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { relevance, trending }, start, statsChange { buyVolumeChange, openLiquidityChange, openOpenInterestChange, sellVolumeChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { buyVolumeCT, buyVolumeUsd, closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, sellVolumeCT, sellVolumeUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, trendingScores { score1, score1w, score4, score5m, score12, score24 }
17
+ }
18
+ }`, vars, sink);
19
+ this.onDetailedPredictionMarketStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedPredictionMarketStatsUpdated($marketId: String!) {
20
+ onDetailedPredictionMarketStatsUpdated (marketId: $marketId) {
21
+ allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, competitiveScores { score1, score1w, score4, score5m, score12, score24 }, lastTransactionAt, lifecycle { ageSeconds, expectedLifespanSeconds, isResolved, timeToResolutionSeconds, winningOutcomeId }, marketId, relevanceScores { score1, score1w, score4, score5m, score12, score24 }, statsDay1 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour1 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour4 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsHour12 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsMin5 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, statsWeek1 { end, outcome0Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, outcome1Stats { statsChange { buysChange, liquidityChange, priceChange, priceRange, sellsChange, tradesChange, volumeChange, volumeSharesChange }, statsCurrency { buyVolumeCT, buyVolumeShares, buyVolumeUsd, closeAskCT, closeAskUsd, closeBidCT, closeBidUsd, closeLiquidityCT, closeLiquidityUsd, closePriceCT, closePriceUsd, closeTwoPercentAskDepthCT, closeTwoPercentAskDepthUsd, closeTwoPercentBidDepthCT, closeTwoPercentBidDepthUsd, highAskCT, highAskUsd, highBidCT, highBidUsd, highLiquidityCT, highLiquidityUsd, highPriceCT, highPriceUsd, highTwoPercentAskDepthCT, highTwoPercentAskDepthUsd, highTwoPercentBidDepthCT, highTwoPercentBidDepthUsd, lowAskCT, lowAskUsd, lowBidCT, lowBidUsd, lowLiquidityCT, lowLiquidityUsd, lowPriceCT, lowPriceUsd, lowTwoPercentAskDepthCT, lowTwoPercentAskDepthUsd, lowTwoPercentBidDepthCT, lowTwoPercentBidDepthUsd, openAskCT, openAskUsd, openBidCT, openBidUsd, openLiquidityCT, openLiquidityUsd, openPriceCT, openPriceUsd, openTwoPercentAskDepthCT, openTwoPercentAskDepthUsd, openTwoPercentBidDepthCT, openTwoPercentBidDepthUsd, sellVolumeCT, sellVolumeShares, sellVolumeUsd, volumeCT, volumeShares, volumeUsd }, statsNonCurrency { buys, sells, trades }, venueOutcomeId }, scores { competitive, relevance, trending }, start, statsChange { liquidityChange, openInterestChange, tradesChange, uniqueTradersChange, volumeChange }, statsCurrency { closeLiquidityCT, closeLiquidityUsd, closeOpenInterestCT, closeOpenInterestUsd, highLiquidityCT, highLiquidityUsd, highOpenInterestCT, highOpenInterestUsd, lowLiquidityCT, lowLiquidityUsd, lowOpenInterestCT, lowOpenInterestUsd, openLiquidityCT, openLiquidityUsd, openOpenInterestCT, openOpenInterestUsd, volumeCT, volumeUsd }, statsNonCurrency { trades, uniqueTraders } }, trendingScores { score1, score1w, score4, score5m, score12, score24 }
22
+ }
13
23
  }`, vars, sink);
14
24
  this.onDetailedStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedStatsUpdated($pairId: String, $tokenOfInterest: TokenOfInterest) {
15
25
  onDetailedStatsUpdated (pairId: $pairId, tokenOfInterest: $tokenOfInterest) {
@@ -98,6 +108,21 @@ export class Subscribe {
98
108
  onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
99
109
  createdAt, enhancedToken0 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, enhancedToken1 { address, cmcId, createBlockNumber, createTransactionHash, createdAt, creatorAddress, decimals, exchanges { address, color, exchangeVersion, iconUrl, id, name, networkId, tradeUrl }, freezable, id, info { address, circulatingSupply, cmcId, description, id, imageBannerUrl, imageLargeUrl, imageSmallUrl, imageThumbHash, imageThumbUrl, isScam, name, networkId, symbol, totalSupply, videoExternalUrl }, isFreezableValid, isMintableValid, isScam, launchpad { completed, completedAt, completedSlot, graduationPercent, launchpadIconUrl, launchpadName, launchpadProtocol, migrated, migratedAt, migratedPoolAddress, migratedSlot, poolAddress }, mintable, name, networkId, socialLinks { bitcointalk, blog, coingecko, coinmarketcap, discord, email, facebook, github, instagram, linkedin, reddit, slack, telegram, twitch, twitter, website, wechat, whitepaper, youtube }, symbol, top10HoldersPercent }, exchangeId, fee, highPrice1, highPrice4, highPrice5m, highPrice12, highPrice24, id, liquidity, liquidityToken, lowPrice1, lowPrice4, lowPrice5m, lowPrice12, lowPrice24, networkId, nonLiquidityToken, pairAddress, price, priceChange1, priceChange4, priceChange5m, priceChange12, priceChange24, priceNonQuoteToken, quoteToken, statsType, tickSpacing, token0 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, token1 { address, decimals, labels { createdAt, subType, type }, name, networkId, pooled, price, symbol }, top10HoldersPercent, volume1, volume4, volume5m, volume12, volume24, walletActivity { bundlerCount, bundlerHeldPercentage, devHeldPercentage, insiderCount, insiderHeldPercentage, sniperCount, sniperHeldPercentage }
100
110
  }
111
+ }`, vars, sink);
112
+ this.onPredictionEventBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionEventBarsUpdated($eventId: String!) {
113
+ onPredictionEventBarsUpdated (eventId: $eventId) {
114
+ bars { day1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, hour1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, hour4 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, hour12 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min5 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min15 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, min30 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd }, week1 { buyVolumeCollateralToken, buyVolumeUsd, lastEventTimestamp, liquidityCollateralToken { c, h, l, o }, liquidityUsd { c, h, l, o }, openInterestCollateralToken { c, h, l, o }, openInterestUsd { c, h, l, o }, sellVolumeCollateralToken, sellVolumeUsd, t, totalVolumeCollateralToken, totalVolumeUsd, trades, uniqueTraders, venueVolumeCollateralToken, venueVolumeUsd, volumeCollateralToken, volumeUsd } }, eventId
115
+ }
116
+ }`, vars, sink);
117
+ this.onPredictionMarketBarsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionMarketBarsUpdated($marketId: String!) {
118
+ onPredictionMarketBarsUpdated (marketId: $marketId) {
119
+ 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
120
+ }
121
+ }`, vars, sink);
122
+ this.onPredictionTradesCreated = (vars, sink) => this.sdk.subscribe(`subscription OnPredictionTradesCreated($input: OnPredictionTradesCreatedInput!) {
123
+ onPredictionTradesCreated (input: $input) {
124
+ 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 }
125
+ }
101
126
  }`, vars, sink);
102
127
  this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
103
128
  onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {