@codex-data/sdk 2.0.2 → 2.1.0
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 +10 -0
- package/dist/sdk/Query.d.ts +19 -1
- package/dist/sdk/Query.js +18 -0
- package/dist/sdk/Query.mjs +19 -1
- package/dist/sdk/Subscribe.d.ts +7 -1
- package/dist/sdk/Subscribe.js +30 -0
- package/dist/sdk/Subscribe.mjs +30 -0
- package/dist/sdk/generated/gql.d.ts +120 -0
- package/dist/sdk/generated/gql.js +24 -0
- package/dist/sdk/generated/gql.mjs +24 -0
- package/dist/sdk/generated/graphql.d.ts +18494 -4595
- package/dist/sdk/generated/graphql.js +533 -20
- package/dist/sdk/generated/graphql.mjs +529 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -378,6 +378,7 @@ IDs in the Codex API follow the pattern `address:networkId`:
|
|
|
378
378
|
| [`onPriceUpdated`](https://docs.codex.io/api-reference/subscriptions/onpriceupdated) | Real-time price for a single token |
|
|
379
379
|
| [`onHoldersUpdated`](https://docs.codex.io/api-reference/subscriptions/onholdersupdated) | Live holder count and balance changes |
|
|
380
380
|
| [`onDetailedStatsUpdated`](https://docs.codex.io/api-reference/subscriptions/ondetailedstatsupdated) | Live detailed stats updates |
|
|
381
|
+
| [`onDetailedTokenStatsUpdated`](https://docs.codex.io/api-reference/subscriptions/ondetailedtokenstatsupdated) | Live detailed token stats aggregated across pools |
|
|
381
382
|
| [`onEventsCreated`](https://docs.codex.io/api-reference/subscriptions/oneventscreated) | Live buy/sell events for a pair |
|
|
382
383
|
| [`onPricesUpdated`](https://docs.codex.io/api-reference/subscriptions/onpricesupdated) | Real-time prices for multiple tokens |
|
|
383
384
|
| [`onUnconfirmedEventsCreated`](https://docs.codex.io/api-reference/subscriptions/onunconfirmedeventscreated) | Unconfirmed (mempool) trade events |
|
|
@@ -440,6 +441,15 @@ pnpm run test # Run tests
|
|
|
440
441
|
pnpm run lint # Lint the codebase
|
|
441
442
|
```
|
|
442
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
|
+
|
|
443
453
|
## Upgrading to v2
|
|
444
454
|
|
|
445
455
|
See [UPGRADING.md](./UPGRADING.md) for migration instructions from v1 to v2.
|
package/dist/sdk/Query.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiTokenQueryVariables, ApiTokensQueryVariables, BalancesQueryVariables, BlocksQueryVariables, ChartUrlsQueryVariables, DetailedWalletStatsQueryVariables, FilterExchangesQueryVariables, FilterPairsQueryVariables, FilterTokensQueryVariables, FilterTokenWalletsQueryVariables, FilterWalletsQueryVariables, GetBarsQueryVariables, GetCommunityNotesQueryVariables, GetDetailedPairsStatsQueryVariables, GetDetailedPairStatsQueryVariables, 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>;
|
|
@@ -18,6 +25,7 @@ export declare class Query {
|
|
|
18
25
|
getCommunityNotes: (vars: GetCommunityNotesQueryVariables) => Promise<import("./generated/graphql").GetCommunityNotesQuery>;
|
|
19
26
|
getDetailedPairStats: (vars: GetDetailedPairStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedPairStatsQuery>;
|
|
20
27
|
getDetailedPairsStats: (vars: GetDetailedPairsStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedPairsStatsQuery>;
|
|
28
|
+
getDetailedTokenStats: (vars: GetDetailedTokenStatsQueryVariables) => Promise<import("./generated/graphql").GetDetailedTokenStatsQuery>;
|
|
21
29
|
getEventLabels: (vars: GetEventLabelsQueryVariables) => Promise<import("./generated/graphql").GetEventLabelsQuery>;
|
|
22
30
|
getExchanges: (vars: GetExchangesQueryVariables) => Promise<import("./generated/graphql").GetExchangesQuery>;
|
|
23
31
|
getNetworkConfigs: (vars: GetNetworkConfigsQueryVariables) => Promise<import("./generated/graphql").GetNetworkConfigsQuery>;
|
|
@@ -37,6 +45,16 @@ export declare class Query {
|
|
|
37
45
|
listPairsForToken: (vars: ListPairsForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsForTokenQuery>;
|
|
38
46
|
listPairsWithMetadataForToken: (vars: ListPairsWithMetadataForTokenQueryVariables) => Promise<import("./generated/graphql").ListPairsWithMetadataForTokenQuery>;
|
|
39
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>;
|
|
40
58
|
token: (vars: TokenQueryVariables) => Promise<import("./generated/graphql").TokenQuery>;
|
|
41
59
|
tokenLifecycleEvents: (vars: TokenLifecycleEventsQueryVariables) => Promise<import("./generated/graphql").TokenLifecycleEventsQuery>;
|
|
42
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); });
|
|
@@ -30,6 +37,7 @@ class Query {
|
|
|
30
37
|
this.getCommunityNotes = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetCommunityNotesDocument, vars); });
|
|
31
38
|
this.getDetailedPairStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetDetailedPairStatsDocument, vars); });
|
|
32
39
|
this.getDetailedPairsStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetDetailedPairsStatsDocument, vars); });
|
|
40
|
+
this.getDetailedTokenStats = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetDetailedTokenStatsDocument, vars); });
|
|
33
41
|
this.getEventLabels = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetEventLabelsDocument, vars); });
|
|
34
42
|
this.getExchanges = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetExchangesDocument, vars); });
|
|
35
43
|
this.getNetworkConfigs = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.GetNetworkConfigsDocument, vars); });
|
|
@@ -49,6 +57,16 @@ class Query {
|
|
|
49
57
|
this.listPairsForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsForTokenDocument, vars); });
|
|
50
58
|
this.listPairsWithMetadataForToken = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.ListPairsWithMetadataForTokenDocument, vars); });
|
|
51
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); });
|
|
52
70
|
this.token = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenDocument, vars); });
|
|
53
71
|
this.tokenLifecycleEvents = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenLifecycleEventsDocument, vars); });
|
|
54
72
|
this.tokenSparklines = (vars) => __awaiter(this, void 0, void 0, function* () { return this.sdk.query(graphql_1.TokenSparklinesDocument, vars); });
|
package/dist/sdk/Query.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT IT DIRECTLY
|
|
2
|
-
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, DetailedWalletStatsDocument, FilterExchangesDocument, FilterPairsDocument, FilterTokensDocument, FilterTokenWalletsDocument, FilterWalletsDocument, GetBarsDocument, GetCommunityNotesDocument, GetDetailedPairsStatsDocument, GetDetailedPairStatsDocument, GetEventLabelsDocument, GetExchangesDocument, GetNetworkConfigsDocument, GetNetworksDocument, GetNetworkStatsDocument, GetNetworkStatusDocument, GetSymbolDocument, GetTokenBarsDocument, GetTokenEventsDocument, GetTokenEventsForMakerDocument, GetTokenPricesDocument, GetWebhooksDocument, HoldersDocument, LiquidityLocksDocument, LiquidityMetadataByTokenDocument, LiquidityMetadataDocument, ListPairsForTokenDocument, ListPairsWithMetadataForTokenDocument, PairMetadataDocument, TokenDocument, TokenLifecycleEventsDocument, TokensDocument, TokenSparklinesDocument, TokenTopTradersDocument, Top10HoldersPercentDocument, WalletAggregateBackfillStateDocument, WalletChartDocument, } from "./generated/graphql";
|
|
2
|
+
import { ApiTokenDocument, ApiTokensDocument, BalancesDocument, BlocksDocument, ChartUrlsDocument, 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);
|
|
@@ -18,6 +25,7 @@ export class Query {
|
|
|
18
25
|
this.getCommunityNotes = async (vars) => this.sdk.query(GetCommunityNotesDocument, vars);
|
|
19
26
|
this.getDetailedPairStats = async (vars) => this.sdk.query(GetDetailedPairStatsDocument, vars);
|
|
20
27
|
this.getDetailedPairsStats = async (vars) => this.sdk.query(GetDetailedPairsStatsDocument, vars);
|
|
28
|
+
this.getDetailedTokenStats = async (vars) => this.sdk.query(GetDetailedTokenStatsDocument, vars);
|
|
21
29
|
this.getEventLabels = async (vars) => this.sdk.query(GetEventLabelsDocument, vars);
|
|
22
30
|
this.getExchanges = async (vars) => this.sdk.query(GetExchangesDocument, vars);
|
|
23
31
|
this.getNetworkConfigs = async (vars) => this.sdk.query(GetNetworkConfigsDocument, vars);
|
|
@@ -37,6 +45,16 @@ export class Query {
|
|
|
37
45
|
this.listPairsForToken = async (vars) => this.sdk.query(ListPairsForTokenDocument, vars);
|
|
38
46
|
this.listPairsWithMetadataForToken = async (vars) => this.sdk.query(ListPairsWithMetadataForTokenDocument, vars);
|
|
39
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);
|
|
40
58
|
this.token = async (vars) => this.sdk.query(TokenDocument, vars);
|
|
41
59
|
this.tokenLifecycleEvents = async (vars) => this.sdk.query(TokenLifecycleEventsDocument, vars);
|
|
42
60
|
this.tokenSparklines = async (vars) => this.sdk.query(TokenSparklinesDocument, vars);
|
package/dist/sdk/Subscribe.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ExecutionResult, Sink } from "graphql-ws";
|
|
2
|
-
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, OnDetailedStatsUpdatedSubscription, OnDetailedStatsUpdatedSubscriptionVariables, OnEventLabelCreatedSubscription, OnEventLabelCreatedSubscriptionVariables, OnEventsCreatedByMakerSubscription, OnEventsCreatedByMakerSubscriptionVariables, OnEventsCreatedSubscription, OnEventsCreatedSubscriptionVariables, OnHoldersUpdatedSubscription, OnHoldersUpdatedSubscriptionVariables, OnLatestPairUpdatedSubscription, OnLatestPairUpdatedSubscriptionVariables, OnLatestTokensSubscription, OnLatestTokensSubscriptionVariables, OnLaunchpadTokenEventBatchSubscription, OnLaunchpadTokenEventBatchSubscriptionVariables, OnLaunchpadTokenEventSubscription, OnLaunchpadTokenEventSubscriptionVariables, OnNftAssetsCreatedSubscription, OnNftAssetsCreatedSubscriptionVariables, OnNftEventsCreatedSubscription, OnNftEventsCreatedSubscriptionVariables, OnNftPoolEventsCreatedSubscription, OnNftPoolEventsCreatedSubscriptionVariables, OnPairMetadataUpdatedSubscription, OnPairMetadataUpdatedSubscriptionVariables, OnPricesUpdatedSubscription, OnPricesUpdatedSubscriptionVariables, OnPriceUpdatedSubscription, OnPriceUpdatedSubscriptionVariables, OnTokenBarsUpdatedSubscription, OnTokenBarsUpdatedSubscriptionVariables, OnTokenEventsCreatedSubscription, OnTokenEventsCreatedSubscriptionVariables, OnTokenLifecycleEventsCreatedSubscription, OnTokenLifecycleEventsCreatedSubscriptionVariables, OnUnconfirmedBarsUpdatedSubscription, OnUnconfirmedBarsUpdatedSubscriptionVariables, OnUnconfirmedEventsCreatedByMakerSubscription, OnUnconfirmedEventsCreatedByMakerSubscriptionVariables, OnUnconfirmedEventsCreatedSubscription, OnUnconfirmedEventsCreatedSubscriptionVariables } from "./generated/graphql";
|
|
2
|
+
import { OnBalanceUpdatedSubscription, OnBalanceUpdatedSubscriptionVariables, OnBarsUpdatedSubscription, OnBarsUpdatedSubscriptionVariables, 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;
|
|
12
|
+
onDetailedTokenStatsUpdated: (vars: OnDetailedTokenStatsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnDetailedTokenStatsUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
10
13
|
onEventLabelCreated: (vars: OnEventLabelCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventLabelCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
11
14
|
onEventsCreated: (vars: OnEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
12
15
|
onEventsCreatedByMaker: (vars: OnEventsCreatedByMakerSubscriptionVariables, sink: Sink<ExecutionResult<OnEventsCreatedByMakerSubscription>>) => import("./index").CleanupFunction;
|
|
@@ -19,6 +22,9 @@ export declare class Subscribe {
|
|
|
19
22
|
onNftEventsCreated: (vars: OnNftEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftEventsCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
20
23
|
onNftPoolEventsCreated: (vars: OnNftPoolEventsCreatedSubscriptionVariables, sink: Sink<ExecutionResult<OnNftPoolEventsCreatedSubscription>>) => import("./index").CleanupFunction;
|
|
21
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;
|
|
22
28
|
onPriceUpdated: (vars: OnPriceUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPriceUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
23
29
|
onPricesUpdated: (vars: OnPricesUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnPricesUpdatedSubscription>>) => import("./index").CleanupFunction;
|
|
24
30
|
onTokenBarsUpdated: (vars: OnTokenBarsUpdatedSubscriptionVariables, sink: Sink<ExecutionResult<OnTokenBarsUpdatedSubscription>>) => import("./index").CleanupFunction;
|
package/dist/sdk/Subscribe.js
CHANGED
|
@@ -13,11 +13,26 @@ 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 }, competitiveScores { score1, score1w, score4, score5m, score12, score24 }, eventId, lastTransactionAt, lifecycle { ageSeconds, expectedLifespanSeconds, isResolved, timeToResolutionSeconds, winningOutcomeId }, relevanceScores { score1, score1w, score4, score5m, score12, score24 }, statsDay1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { competitive, 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 { competitive, 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 { competitive, 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 { competitive, 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 { competitive, 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 { competitive, 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) {
|
|
19
29
|
pairId, statsType, stats_day1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour4 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour12 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_min5 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, tokenOfInterest
|
|
20
30
|
}
|
|
31
|
+
}`, vars, sink);
|
|
32
|
+
this.onDetailedTokenStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedTokenStatsUpdated($tokenId: String) {
|
|
33
|
+
onDetailedTokenStatsUpdated (tokenId: $tokenId) {
|
|
34
|
+
bucketCount, lastTransactionAt, networkId, queryTimestamp, statsType, stats_day1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour4 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour12 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_min5 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, tokenAddress, tokenId
|
|
35
|
+
}
|
|
21
36
|
}`, vars, sink);
|
|
22
37
|
this.onEventLabelCreated = (vars, sink) => this.sdk.subscribe(`subscription OnEventLabelCreated($id: String) {
|
|
23
38
|
onEventLabelCreated(id: $id) {
|
|
@@ -96,6 +111,21 @@ class Subscribe {
|
|
|
96
111
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
97
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 }
|
|
98
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
|
+
}
|
|
99
129
|
}`, vars, sink);
|
|
100
130
|
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
101
131
|
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|
package/dist/sdk/Subscribe.mjs
CHANGED
|
@@ -10,11 +10,26 @@ 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 }, competitiveScores { score1, score1w, score4, score5m, score12, score24 }, eventId, lastTransactionAt, lifecycle { ageSeconds, expectedLifespanSeconds, isResolved, timeToResolutionSeconds, winningOutcomeId }, relevanceScores { score1, score1w, score4, score5m, score12, score24 }, statsDay1 { allTimeStats { venueVolumeCT, venueVolumeUsd, volumeCT, volumeUsd }, end, lastTransactionAt, scores { competitive, 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 { competitive, 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 { competitive, 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 { competitive, 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 { competitive, 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 { competitive, 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) {
|
|
16
26
|
pairId, statsType, stats_day1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour1 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour4 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_hour12 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, stats_min5 { buckets { end, start }, buyVolume { buckets, change, currentValue, previousValue }, buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, endTimestamp, sellVolume { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, timestamp, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue }, windowSize }, tokenOfInterest
|
|
17
27
|
}
|
|
28
|
+
}`, vars, sink);
|
|
29
|
+
this.onDetailedTokenStatsUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnDetailedTokenStatsUpdated($tokenId: String) {
|
|
30
|
+
onDetailedTokenStatsUpdated (tokenId: $tokenId) {
|
|
31
|
+
bucketCount, lastTransactionAt, networkId, queryTimestamp, statsType, stats_day1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour1 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour4 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_hour12 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, stats_min5 { duration, end, start, statsNonCurrency { buyers { buckets, change, currentValue, previousValue }, buys { buckets, change, currentValue, previousValue }, sellers { buckets, change, currentValue, previousValue }, sells { buckets, change, currentValue, previousValue }, traders { buckets, change, currentValue, previousValue }, transactions { buckets, change, currentValue, previousValue } }, statsUsd { buyVolume { buckets, change, currentValue, previousValue }, close { buckets, change, currentValue, previousValue }, highest { buckets, change, currentValue, previousValue }, liquidity { buckets, change, currentValue, previousValue }, lowest { buckets, change, currentValue, previousValue }, open { buckets, change, currentValue, previousValue }, sellVolume { buckets, change, currentValue, previousValue }, volume { buckets, change, currentValue, previousValue } }, timestamps { end, start } }, tokenAddress, tokenId
|
|
32
|
+
}
|
|
18
33
|
}`, vars, sink);
|
|
19
34
|
this.onEventLabelCreated = (vars, sink) => this.sdk.subscribe(`subscription OnEventLabelCreated($id: String) {
|
|
20
35
|
onEventLabelCreated(id: $id) {
|
|
@@ -93,6 +108,21 @@ export class Subscribe {
|
|
|
93
108
|
onPairMetadataUpdated (id: $id, quoteToken: $quoteToken, useNonLiquidityTokenAsQuoteToken: $useNonLiquidityTokenAsQuoteToken) {
|
|
94
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 }
|
|
95
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
|
+
}
|
|
96
126
|
}`, vars, sink);
|
|
97
127
|
this.onPriceUpdated = (vars, sink) => this.sdk.subscribe(`subscription OnPriceUpdated($address: String, $networkId: Int, $sourcePairAddress: String) {
|
|
98
128
|
onPriceUpdated (address: $address, networkId: $networkId, sourcePairAddress: $sourcePairAddress) {
|