@codex-data/sdk 1.0.0-rc3 → 1.0.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.
Files changed (33) hide show
  1. package/dist/resources/generated_queries/GetTokenPrices.graphql +1 -0
  2. package/dist/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
  3. package/dist/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
  4. package/dist/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
  5. package/dist/resources/graphql.d.ts +67 -0
  6. package/dist/resources/graphql.d.ts.map +1 -1
  7. package/dist/resources/graphql.js.map +1 -1
  8. package/dist/resources/graphql.schema.json +406 -1
  9. package/dist/resources/graphql.ts +72 -0
  10. package/dist/resources/schema.graphql +93 -1
  11. package/dist/sdk/Subscribe.d.ts +2 -1
  12. package/dist/sdk/Subscribe.d.ts.map +1 -1
  13. package/dist/sdk/Subscribe.js +9 -2
  14. package/dist/sdk/Subscribe.js.map +1 -1
  15. package/dist/sdk/generated/gql.d.ts +14 -6
  16. package/dist/sdk/generated/gql.d.ts.map +1 -1
  17. package/dist/sdk/generated/gql.js +4 -3
  18. package/dist/sdk/generated/gql.js.map +1 -1
  19. package/dist/sdk/generated/graphql.d.ts +154 -0
  20. package/dist/sdk/generated/graphql.d.ts.map +1 -1
  21. package/dist/sdk/generated/graphql.js +5 -4
  22. package/dist/sdk/generated/graphql.js.map +1 -1
  23. package/package.json +2 -2
  24. package/src/resources/generated_queries/GetTokenPrices.graphql +1 -0
  25. package/src/resources/generated_subscriptions/OnPriceUpdated.graphql +1 -0
  26. package/src/resources/generated_subscriptions/OnPricesUpdated.graphql +1 -0
  27. package/src/resources/generated_subscriptions/OnUnconfirmedBarsUpdated.graphql +70 -0
  28. package/src/resources/graphql.schema.json +406 -1
  29. package/src/resources/graphql.ts +72 -0
  30. package/src/resources/schema.graphql +93 -1
  31. package/src/sdk/Subscribe.ts +17 -2
  32. package/src/sdk/generated/gql.ts +11 -6
  33. package/src/sdk/generated/graphql.ts +87 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codex-data/sdk",
3
- "version": "1.0.0-rc3",
3
+ "version": "1.0.0",
4
4
  "engines": {
5
5
  "node": ">=17.5.0"
6
6
  },
@@ -65,4 +65,4 @@
65
65
  "prettier": "^3.0.3",
66
66
  "ts-jest": "^29.1.1"
67
67
  }
68
- }
68
+ }
@@ -3,6 +3,7 @@ query GetTokenPrices($inputs: [GetPriceInput]) {
3
3
  address
4
4
  confidence
5
5
  networkId
6
+ poolAddress
6
7
  priceUsd
7
8
  timestamp
8
9
  }
@@ -3,6 +3,7 @@ subscription OnPriceUpdated($address: String, $networkId: Int) {
3
3
  address
4
4
  confidence
5
5
  networkId
6
+ poolAddress
6
7
  priceUsd
7
8
  timestamp
8
9
  }
@@ -3,6 +3,7 @@ subscription OnPricesUpdated($input: [OnPricesUpdatedInput!]!) {
3
3
  address
4
4
  confidence
5
5
  networkId
6
+ poolAddress
6
7
  priceUsd
7
8
  timestamp
8
9
  }
@@ -0,0 +1,70 @@
1
+ subscription OnUnconfirmedBarsUpdated(
2
+ $pairId: String
3
+ $quoteToken: QuoteToken
4
+ ) {
5
+ onUnconfirmedBarsUpdated(pairId: $pairId, quoteToken: $quoteToken) {
6
+ aggregates {
7
+ r1 {
8
+ c
9
+ h
10
+ l
11
+ o
12
+ t
13
+ v
14
+ volume
15
+ }
16
+ r1S {
17
+ c
18
+ h
19
+ l
20
+ o
21
+ t
22
+ v
23
+ volume
24
+ }
25
+ r5 {
26
+ c
27
+ h
28
+ l
29
+ o
30
+ t
31
+ v
32
+ volume
33
+ }
34
+ r5S {
35
+ c
36
+ h
37
+ l
38
+ o
39
+ t
40
+ v
41
+ volume
42
+ }
43
+ r15 {
44
+ c
45
+ h
46
+ l
47
+ o
48
+ t
49
+ v
50
+ volume
51
+ }
52
+ r15S {
53
+ c
54
+ h
55
+ l
56
+ o
57
+ t
58
+ v
59
+ volume
60
+ }
61
+ }
62
+ eventSortKey
63
+ networkId
64
+ pairAddress
65
+ pairId
66
+ quoteToken
67
+ quoteTokenAddress
68
+ timestamp
69
+ }
70
+ }
@@ -7829,6 +7829,18 @@
7829
7829
  "isDeprecated": false,
7830
7830
  "deprecationReason": null
7831
7831
  },
7832
+ {
7833
+ "name": "poolAddress",
7834
+ "description": "The address of the pool, when omitted the top pool is used.",
7835
+ "type": {
7836
+ "kind": "SCALAR",
7837
+ "name": "String",
7838
+ "ofType": null
7839
+ },
7840
+ "defaultValue": null,
7841
+ "isDeprecated": false,
7842
+ "deprecationReason": null
7843
+ },
7832
7844
  {
7833
7845
  "name": "timestamp",
7834
7846
  "description": "The unix timestamp for the price.",
@@ -26629,6 +26641,142 @@
26629
26641
  "enumValues": null,
26630
26642
  "possibleTypes": null
26631
26643
  },
26644
+ {
26645
+ "kind": "OBJECT",
26646
+ "name": "OnUnconfirmedBarsUpdated",
26647
+ "description": "Response returned by `onUnconfirmedBarsUpdated`.",
26648
+ "isOneOf": null,
26649
+ "fields": [
26650
+ {
26651
+ "name": "aggregates",
26652
+ "description": "Price data broken down by resolution.",
26653
+ "args": [],
26654
+ "type": {
26655
+ "kind": "NON_NULL",
26656
+ "name": null,
26657
+ "ofType": {
26658
+ "kind": "OBJECT",
26659
+ "name": "UnconfirmedResolutionBarData",
26660
+ "ofType": null
26661
+ }
26662
+ },
26663
+ "isDeprecated": false,
26664
+ "deprecationReason": null
26665
+ },
26666
+ {
26667
+ "name": "eventSortKey",
26668
+ "description": "The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).\nFor example, `0000000016414564#00000224#00000413`.",
26669
+ "args": [],
26670
+ "type": {
26671
+ "kind": "NON_NULL",
26672
+ "name": null,
26673
+ "ofType": {
26674
+ "kind": "SCALAR",
26675
+ "name": "String",
26676
+ "ofType": null
26677
+ }
26678
+ },
26679
+ "isDeprecated": false,
26680
+ "deprecationReason": null
26681
+ },
26682
+ {
26683
+ "name": "networkId",
26684
+ "description": "The network ID the pair is deployed on.",
26685
+ "args": [],
26686
+ "type": {
26687
+ "kind": "NON_NULL",
26688
+ "name": null,
26689
+ "ofType": {
26690
+ "kind": "SCALAR",
26691
+ "name": "Int",
26692
+ "ofType": null
26693
+ }
26694
+ },
26695
+ "isDeprecated": false,
26696
+ "deprecationReason": null
26697
+ },
26698
+ {
26699
+ "name": "pairAddress",
26700
+ "description": "The contract address for the pair.",
26701
+ "args": [],
26702
+ "type": {
26703
+ "kind": "NON_NULL",
26704
+ "name": null,
26705
+ "ofType": {
26706
+ "kind": "SCALAR",
26707
+ "name": "String",
26708
+ "ofType": null
26709
+ }
26710
+ },
26711
+ "isDeprecated": false,
26712
+ "deprecationReason": null
26713
+ },
26714
+ {
26715
+ "name": "pairId",
26716
+ "description": "The ID for the pair (`pairAddress`:`networkId`).",
26717
+ "args": [],
26718
+ "type": {
26719
+ "kind": "NON_NULL",
26720
+ "name": null,
26721
+ "ofType": {
26722
+ "kind": "SCALAR",
26723
+ "name": "String",
26724
+ "ofType": null
26725
+ }
26726
+ },
26727
+ "isDeprecated": false,
26728
+ "deprecationReason": null
26729
+ },
26730
+ {
26731
+ "name": "quoteToken",
26732
+ "description": "The quote token within the pair.",
26733
+ "args": [],
26734
+ "type": {
26735
+ "kind": "ENUM",
26736
+ "name": "QuoteToken",
26737
+ "ofType": null
26738
+ },
26739
+ "isDeprecated": false,
26740
+ "deprecationReason": null
26741
+ },
26742
+ {
26743
+ "name": "quoteTokenAddress",
26744
+ "description": "The address of the token being quoted",
26745
+ "args": [],
26746
+ "type": {
26747
+ "kind": "NON_NULL",
26748
+ "name": null,
26749
+ "ofType": {
26750
+ "kind": "SCALAR",
26751
+ "name": "String",
26752
+ "ofType": null
26753
+ }
26754
+ },
26755
+ "isDeprecated": false,
26756
+ "deprecationReason": null
26757
+ },
26758
+ {
26759
+ "name": "timestamp",
26760
+ "description": "The unix timestamp for the new bar.",
26761
+ "args": [],
26762
+ "type": {
26763
+ "kind": "NON_NULL",
26764
+ "name": null,
26765
+ "ofType": {
26766
+ "kind": "SCALAR",
26767
+ "name": "Int",
26768
+ "ofType": null
26769
+ }
26770
+ },
26771
+ "isDeprecated": false,
26772
+ "deprecationReason": null
26773
+ }
26774
+ ],
26775
+ "inputFields": null,
26776
+ "interfaces": [],
26777
+ "enumValues": null,
26778
+ "possibleTypes": null
26779
+ },
26632
26780
  {
26633
26781
  "kind": "OBJECT",
26634
26782
  "name": "OneOfNumberCondition",
@@ -31457,6 +31605,22 @@
31457
31605
  "isDeprecated": false,
31458
31606
  "deprecationReason": null
31459
31607
  },
31608
+ {
31609
+ "name": "poolAddress",
31610
+ "description": "The pool that emitted the swap generating this price",
31611
+ "args": [],
31612
+ "type": {
31613
+ "kind": "NON_NULL",
31614
+ "name": null,
31615
+ "ofType": {
31616
+ "kind": "SCALAR",
31617
+ "name": "String",
31618
+ "ofType": null
31619
+ }
31620
+ },
31621
+ "isDeprecated": false,
31622
+ "deprecationReason": null
31623
+ },
31460
31624
  {
31461
31625
  "name": "priceUsd",
31462
31626
  "description": "The token price in USD.",
@@ -35379,7 +35543,7 @@
35379
35543
  },
35380
35544
  {
35381
35545
  "name": "tokens",
35382
- "description": "A list of token IDs (`address:networkId`). Can be left blank to discover new tokens.",
35546
+ "description": "A list of token IDs (`address:networkId`) or addresses. Can be left blank to discover new tokens.",
35383
35547
  "type": {
35384
35548
  "kind": "LIST",
35385
35549
  "name": null,
@@ -43493,6 +43657,43 @@
43493
43657
  "isDeprecated": false,
43494
43658
  "deprecationReason": null
43495
43659
  },
43660
+ {
43661
+ "name": "onUnconfirmedBarsUpdated",
43662
+ "description": "Unconfirmed live-streamed bar chart data to track price changes over time. (Solana only)",
43663
+ "args": [
43664
+ {
43665
+ "name": "pairId",
43666
+ "description": "The ID of the pair (`address`:`networkId`).",
43667
+ "type": {
43668
+ "kind": "SCALAR",
43669
+ "name": "String",
43670
+ "ofType": null
43671
+ },
43672
+ "defaultValue": null,
43673
+ "isDeprecated": false,
43674
+ "deprecationReason": null
43675
+ },
43676
+ {
43677
+ "name": "quoteToken",
43678
+ "description": "The token of interest within the pair. Can be `token0` or `token1`.",
43679
+ "type": {
43680
+ "kind": "ENUM",
43681
+ "name": "QuoteToken",
43682
+ "ofType": null
43683
+ },
43684
+ "defaultValue": null,
43685
+ "isDeprecated": false,
43686
+ "deprecationReason": null
43687
+ }
43688
+ ],
43689
+ "type": {
43690
+ "kind": "OBJECT",
43691
+ "name": "OnUnconfirmedBarsUpdated",
43692
+ "ofType": null
43693
+ },
43694
+ "isDeprecated": false,
43695
+ "deprecationReason": null
43696
+ },
43496
43697
  {
43497
43698
  "name": "onUnconfirmedEventsCreated",
43498
43699
  "description": "Live-streamed unconfirmed transactions for a token. (Solana only)",
@@ -48648,6 +48849,126 @@
48648
48849
  }
48649
48850
  ]
48650
48851
  },
48852
+ {
48853
+ "kind": "OBJECT",
48854
+ "name": "UnconfirmedIndividualBarData",
48855
+ "description": "Unconfirmed bar chart data.",
48856
+ "isOneOf": null,
48857
+ "fields": [
48858
+ {
48859
+ "name": "c",
48860
+ "description": "The closing price.",
48861
+ "args": [],
48862
+ "type": {
48863
+ "kind": "NON_NULL",
48864
+ "name": null,
48865
+ "ofType": {
48866
+ "kind": "SCALAR",
48867
+ "name": "Float",
48868
+ "ofType": null
48869
+ }
48870
+ },
48871
+ "isDeprecated": false,
48872
+ "deprecationReason": null
48873
+ },
48874
+ {
48875
+ "name": "h",
48876
+ "description": "The high price.",
48877
+ "args": [],
48878
+ "type": {
48879
+ "kind": "NON_NULL",
48880
+ "name": null,
48881
+ "ofType": {
48882
+ "kind": "SCALAR",
48883
+ "name": "Float",
48884
+ "ofType": null
48885
+ }
48886
+ },
48887
+ "isDeprecated": false,
48888
+ "deprecationReason": null
48889
+ },
48890
+ {
48891
+ "name": "l",
48892
+ "description": "The low price.",
48893
+ "args": [],
48894
+ "type": {
48895
+ "kind": "NON_NULL",
48896
+ "name": null,
48897
+ "ofType": {
48898
+ "kind": "SCALAR",
48899
+ "name": "Float",
48900
+ "ofType": null
48901
+ }
48902
+ },
48903
+ "isDeprecated": false,
48904
+ "deprecationReason": null
48905
+ },
48906
+ {
48907
+ "name": "o",
48908
+ "description": "The opening price.",
48909
+ "args": [],
48910
+ "type": {
48911
+ "kind": "NON_NULL",
48912
+ "name": null,
48913
+ "ofType": {
48914
+ "kind": "SCALAR",
48915
+ "name": "Float",
48916
+ "ofType": null
48917
+ }
48918
+ },
48919
+ "isDeprecated": false,
48920
+ "deprecationReason": null
48921
+ },
48922
+ {
48923
+ "name": "t",
48924
+ "description": "The timestamp for the bar.",
48925
+ "args": [],
48926
+ "type": {
48927
+ "kind": "NON_NULL",
48928
+ "name": null,
48929
+ "ofType": {
48930
+ "kind": "SCALAR",
48931
+ "name": "Int",
48932
+ "ofType": null
48933
+ }
48934
+ },
48935
+ "isDeprecated": false,
48936
+ "deprecationReason": null
48937
+ },
48938
+ {
48939
+ "name": "v",
48940
+ "description": "The volume.",
48941
+ "args": [],
48942
+ "type": {
48943
+ "kind": "SCALAR",
48944
+ "name": "Int",
48945
+ "ofType": null
48946
+ },
48947
+ "isDeprecated": false,
48948
+ "deprecationReason": null
48949
+ },
48950
+ {
48951
+ "name": "volume",
48952
+ "description": "The volume with higher precision.",
48953
+ "args": [],
48954
+ "type": {
48955
+ "kind": "NON_NULL",
48956
+ "name": null,
48957
+ "ofType": {
48958
+ "kind": "SCALAR",
48959
+ "name": "String",
48960
+ "ofType": null
48961
+ }
48962
+ },
48963
+ "isDeprecated": false,
48964
+ "deprecationReason": null
48965
+ }
48966
+ ],
48967
+ "inputFields": null,
48968
+ "interfaces": [],
48969
+ "enumValues": null,
48970
+ "possibleTypes": null
48971
+ },
48651
48972
  {
48652
48973
  "kind": "OBJECT",
48653
48974
  "name": "UnconfirmedLiquidityChangeEventData",
@@ -48724,6 +49045,90 @@
48724
49045
  "enumValues": null,
48725
49046
  "possibleTypes": null
48726
49047
  },
49048
+ {
49049
+ "kind": "OBJECT",
49050
+ "name": "UnconfirmedResolutionBarData",
49051
+ "description": "Unconfirmed price data for each supported resolution.",
49052
+ "isOneOf": null,
49053
+ "fields": [
49054
+ {
49055
+ "name": "r1",
49056
+ "description": "1 minute resolution.",
49057
+ "args": [],
49058
+ "type": {
49059
+ "kind": "OBJECT",
49060
+ "name": "UnconfirmedIndividualBarData",
49061
+ "ofType": null
49062
+ },
49063
+ "isDeprecated": false,
49064
+ "deprecationReason": null
49065
+ },
49066
+ {
49067
+ "name": "r1S",
49068
+ "description": "1 second resolution.",
49069
+ "args": [],
49070
+ "type": {
49071
+ "kind": "OBJECT",
49072
+ "name": "UnconfirmedIndividualBarData",
49073
+ "ofType": null
49074
+ },
49075
+ "isDeprecated": false,
49076
+ "deprecationReason": null
49077
+ },
49078
+ {
49079
+ "name": "r5",
49080
+ "description": "5 minute resolution.",
49081
+ "args": [],
49082
+ "type": {
49083
+ "kind": "OBJECT",
49084
+ "name": "UnconfirmedIndividualBarData",
49085
+ "ofType": null
49086
+ },
49087
+ "isDeprecated": false,
49088
+ "deprecationReason": null
49089
+ },
49090
+ {
49091
+ "name": "r5S",
49092
+ "description": "5 second resolution.",
49093
+ "args": [],
49094
+ "type": {
49095
+ "kind": "OBJECT",
49096
+ "name": "UnconfirmedIndividualBarData",
49097
+ "ofType": null
49098
+ },
49099
+ "isDeprecated": false,
49100
+ "deprecationReason": null
49101
+ },
49102
+ {
49103
+ "name": "r15",
49104
+ "description": "15 minute resolution.",
49105
+ "args": [],
49106
+ "type": {
49107
+ "kind": "OBJECT",
49108
+ "name": "UnconfirmedIndividualBarData",
49109
+ "ofType": null
49110
+ },
49111
+ "isDeprecated": false,
49112
+ "deprecationReason": null
49113
+ },
49114
+ {
49115
+ "name": "r15S",
49116
+ "description": "15 second resolution.",
49117
+ "args": [],
49118
+ "type": {
49119
+ "kind": "OBJECT",
49120
+ "name": "UnconfirmedIndividualBarData",
49121
+ "ofType": null
49122
+ },
49123
+ "isDeprecated": false,
49124
+ "deprecationReason": null
49125
+ }
49126
+ ],
49127
+ "inputFields": null,
49128
+ "interfaces": [],
49129
+ "enumValues": null,
49130
+ "possibleTypes": null
49131
+ },
48727
49132
  {
48728
49133
  "kind": "OBJECT",
48729
49134
  "name": "UnconfirmedSwapEventData",
@@ -1264,6 +1264,8 @@ export type GetPriceInput = {
1264
1264
  maxDeviations?: InputMaybe<Scalars['Float']['input']>;
1265
1265
  /** The network ID the token is deployed on. */
1266
1266
  networkId: Scalars['Int']['input'];
1267
+ /** The address of the pool, when omitted the top pool is used. */
1268
+ poolAddress?: InputMaybe<Scalars['String']['input']>;
1267
1269
  /** The unix timestamp for the price. */
1268
1270
  timestamp?: InputMaybe<Scalars['Int']['input']>;
1269
1271
  };
@@ -4401,6 +4403,30 @@ export type OnTokenEventsCreatedInput = {
4401
4403
  tokenAddress: Scalars['String']['input'];
4402
4404
  };
4403
4405
 
4406
+ /** Response returned by `onUnconfirmedBarsUpdated`. */
4407
+ export type OnUnconfirmedBarsUpdated = {
4408
+ __typename?: 'OnUnconfirmedBarsUpdated';
4409
+ /** Price data broken down by resolution. */
4410
+ aggregates: UnconfirmedResolutionBarData;
4411
+ /**
4412
+ * The sortKey for the bar (`blockNumber`#`transactionIndex`#`logIndex`, zero padded).
4413
+ * For example, `0000000016414564#00000224#00000413`.
4414
+ */
4415
+ eventSortKey: Scalars['String']['output'];
4416
+ /** The network ID the pair is deployed on. */
4417
+ networkId: Scalars['Int']['output'];
4418
+ /** The contract address for the pair. */
4419
+ pairAddress: Scalars['String']['output'];
4420
+ /** The ID for the pair (`pairAddress`:`networkId`). */
4421
+ pairId: Scalars['String']['output'];
4422
+ /** The quote token within the pair. */
4423
+ quoteToken?: Maybe<QuoteToken>;
4424
+ /** The address of the token being quoted */
4425
+ quoteTokenAddress: Scalars['String']['output'];
4426
+ /** The unix timestamp for the new bar. */
4427
+ timestamp: Scalars['Int']['output'];
4428
+ };
4429
+
4404
4430
  export type OneOfNumberCondition = {
4405
4431
  __typename?: 'OneOfNumberCondition';
4406
4432
  oneOf: Array<Scalars['Int']['output']>;
@@ -5202,6 +5228,8 @@ export type Price = {
5202
5228
  confidence?: Maybe<Scalars['Float']['output']>;
5203
5229
  /** The network ID the token is deployed on. */
5204
5230
  networkId: Scalars['Int']['output'];
5231
+ /** The pool that emitted the swap generating this price */
5232
+ poolAddress: Scalars['String']['output'];
5205
5233
  /** The token price in USD. */
5206
5234
  priceUsd: Scalars['Float']['output'];
5207
5235
  /** The unix timestamp for the price. */
@@ -6886,6 +6914,8 @@ export type Subscription = {
6886
6914
  onTokenEventsCreated: AddTokenEventsOutput;
6887
6915
  /** Live-streamed token lifecycle events (mints and burns) */
6888
6916
  onTokenLifecycleEventsCreated: AddTokenLifecycleEventsOutput;
6917
+ /** Unconfirmed live-streamed bar chart data to track price changes over time. (Solana only) */
6918
+ onUnconfirmedBarsUpdated?: Maybe<OnUnconfirmedBarsUpdated>;
6889
6919
  /** Live-streamed unconfirmed transactions for a token. (Solana only) */
6890
6920
  onUnconfirmedEventsCreated?: Maybe<AddUnconfirmedEventsOutput>;
6891
6921
  };
@@ -6993,6 +7023,12 @@ export type SubscriptionOnTokenLifecycleEventsCreatedArgs = {
6993
7023
  };
6994
7024
 
6995
7025
 
7026
+ export type SubscriptionOnUnconfirmedBarsUpdatedArgs = {
7027
+ pairId?: InputMaybe<Scalars['String']['input']>;
7028
+ quoteToken?: InputMaybe<QuoteToken>;
7029
+ };
7030
+
7031
+
6996
7032
  export type SubscriptionOnUnconfirmedEventsCreatedArgs = {
6997
7033
  address?: InputMaybe<Scalars['String']['input']>;
6998
7034
  id?: InputMaybe<Scalars['String']['input']>;
@@ -7815,6 +7851,25 @@ export type UnconfirmedEvent = {
7815
7851
 
7816
7852
  export type UnconfirmedEventData = UnconfirmedLiquidityChangeEventData | UnconfirmedSwapEventData;
7817
7853
 
7854
+ /** Unconfirmed bar chart data. */
7855
+ export type UnconfirmedIndividualBarData = {
7856
+ __typename?: 'UnconfirmedIndividualBarData';
7857
+ /** The closing price. */
7858
+ c: Scalars['Float']['output'];
7859
+ /** The high price. */
7860
+ h: Scalars['Float']['output'];
7861
+ /** The low price. */
7862
+ l: Scalars['Float']['output'];
7863
+ /** The opening price. */
7864
+ o: Scalars['Float']['output'];
7865
+ /** The timestamp for the bar. */
7866
+ t: Scalars['Int']['output'];
7867
+ /** The volume. */
7868
+ v?: Maybe<Scalars['Int']['output']>;
7869
+ /** The volume with higher precision. */
7870
+ volume: Scalars['String']['output'];
7871
+ };
7872
+
7818
7873
  export type UnconfirmedLiquidityChangeEventData = {
7819
7874
  __typename?: 'UnconfirmedLiquidityChangeEventData';
7820
7875
  /** The amount of `token0` added or removed from the pair. */
@@ -7829,6 +7884,23 @@ export type UnconfirmedLiquidityChangeEventData = {
7829
7884
  type: EventType;
7830
7885
  };
7831
7886
 
7887
+ /** Unconfirmed price data for each supported resolution. */
7888
+ export type UnconfirmedResolutionBarData = {
7889
+ __typename?: 'UnconfirmedResolutionBarData';
7890
+ /** 1 minute resolution. */
7891
+ r1?: Maybe<UnconfirmedIndividualBarData>;
7892
+ /** 1 second resolution. */
7893
+ r1S?: Maybe<UnconfirmedIndividualBarData>;
7894
+ /** 5 minute resolution. */
7895
+ r5?: Maybe<UnconfirmedIndividualBarData>;
7896
+ /** 5 second resolution. */
7897
+ r5S?: Maybe<UnconfirmedIndividualBarData>;
7898
+ /** 15 minute resolution. */
7899
+ r15?: Maybe<UnconfirmedIndividualBarData>;
7900
+ /** 15 second resolution. */
7901
+ r15S?: Maybe<UnconfirmedIndividualBarData>;
7902
+ };
7903
+
7832
7904
  export type UnconfirmedSwapEventData = {
7833
7905
  __typename?: 'UnconfirmedSwapEventData';
7834
7906
  /** The amount of `quoteToken` involved in the swap. For example, if `quoteToken` is USDC for a USDC/WETH pair, `amountNonLiquidityToken` would be the amount of USDC involved in the swap. */