@symmio/trading-core 4.0.0 → 4.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.
Files changed (223) hide show
  1. package/dist/balance-history/get-balance-history/types.d.ts +3 -1
  2. package/dist/balance-history/get-balance-history/types.d.ts.map +1 -1
  3. package/dist/balance-history/get-balance-history/types.js +1 -1
  4. package/dist/balance-history/get-balance-history/types.js.map +1 -1
  5. package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.d.ts +50 -0
  6. package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.d.ts.map +1 -0
  7. package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.js +30 -0
  8. package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.js.map +1 -0
  9. package/dist/funding/get-funding-index-checkpoints/index.d.ts +5 -0
  10. package/dist/funding/get-funding-index-checkpoints/index.d.ts.map +1 -0
  11. package/dist/funding/get-funding-index-checkpoints/query-document.d.ts +16 -0
  12. package/dist/funding/get-funding-index-checkpoints/query-document.d.ts.map +1 -0
  13. package/dist/funding/get-funding-index-checkpoints/query-document.js +7 -0
  14. package/dist/funding/get-funding-index-checkpoints/query-document.js.map +1 -0
  15. package/dist/funding/get-funding-index-checkpoints/query.d.ts +37 -0
  16. package/dist/funding/get-funding-index-checkpoints/query.d.ts.map +1 -0
  17. package/dist/funding/get-funding-index-checkpoints/query.js +23 -0
  18. package/dist/funding/get-funding-index-checkpoints/query.js.map +1 -0
  19. package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.d.ts +12 -0
  20. package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.d.ts.map +1 -0
  21. package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.js +31 -0
  22. package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.js.map +1 -0
  23. package/dist/funding/get-funding-index-checkpoints/types.d.ts +51 -0
  24. package/dist/funding/get-funding-index-checkpoints/types.d.ts.map +1 -0
  25. package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.d.ts +47 -0
  26. package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.d.ts.map +1 -0
  27. package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.js +30 -0
  28. package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.js.map +1 -0
  29. package/dist/funding/get-quote-funding-settlements/index.d.ts +5 -0
  30. package/dist/funding/get-quote-funding-settlements/index.d.ts.map +1 -0
  31. package/dist/funding/get-quote-funding-settlements/query-document.d.ts +16 -0
  32. package/dist/funding/get-quote-funding-settlements/query-document.d.ts.map +1 -0
  33. package/dist/funding/get-quote-funding-settlements/query-document.js +7 -0
  34. package/dist/funding/get-quote-funding-settlements/query-document.js.map +1 -0
  35. package/dist/funding/get-quote-funding-settlements/query.d.ts +37 -0
  36. package/dist/funding/get-quote-funding-settlements/query.d.ts.map +1 -0
  37. package/dist/funding/get-quote-funding-settlements/query.js +23 -0
  38. package/dist/funding/get-quote-funding-settlements/query.js.map +1 -0
  39. package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.d.ts +12 -0
  40. package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.d.ts.map +1 -0
  41. package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.js +33 -0
  42. package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.js.map +1 -0
  43. package/dist/funding/get-quote-funding-settlements/types.d.ts +56 -0
  44. package/dist/funding/get-quote-funding-settlements/types.d.ts.map +1 -0
  45. package/dist/funding/index.d.ts +3 -0
  46. package/dist/funding/index.d.ts.map +1 -0
  47. package/dist/index.d.ts +46 -3
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +408 -388
  50. package/dist/liquidation/get-liquidation-details/get-liquidation-details.d.ts +44 -0
  51. package/dist/liquidation/get-liquidation-details/get-liquidation-details.d.ts.map +1 -0
  52. package/dist/liquidation/get-liquidation-details/get-liquidation-details.js +30 -0
  53. package/dist/liquidation/get-liquidation-details/get-liquidation-details.js.map +1 -0
  54. package/dist/liquidation/get-liquidation-details/index.d.ts +5 -0
  55. package/dist/liquidation/get-liquidation-details/index.d.ts.map +1 -0
  56. package/dist/liquidation/get-liquidation-details/query-document.d.ts +16 -0
  57. package/dist/liquidation/get-liquidation-details/query-document.d.ts.map +1 -0
  58. package/dist/liquidation/get-liquidation-details/query-document.js +7 -0
  59. package/dist/liquidation/get-liquidation-details/query-document.js.map +1 -0
  60. package/dist/liquidation/get-liquidation-details/query.d.ts +37 -0
  61. package/dist/liquidation/get-liquidation-details/query.d.ts.map +1 -0
  62. package/dist/liquidation/get-liquidation-details/query.js +23 -0
  63. package/dist/liquidation/get-liquidation-details/query.js.map +1 -0
  64. package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.d.ts +12 -0
  65. package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.d.ts.map +1 -0
  66. package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.js +32 -0
  67. package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.js.map +1 -0
  68. package/dist/liquidation/get-liquidation-details/types.d.ts +47 -0
  69. package/dist/liquidation/get-liquidation-details/types.d.ts.map +1 -0
  70. package/dist/liquidation/index.d.ts +2 -0
  71. package/dist/liquidation/index.d.ts.map +1 -0
  72. package/dist/margin/get-margin-transfers/get-margin-transfers.d.ts +51 -0
  73. package/dist/margin/get-margin-transfers/get-margin-transfers.d.ts.map +1 -0
  74. package/dist/margin/get-margin-transfers/get-margin-transfers.js +32 -0
  75. package/dist/margin/get-margin-transfers/get-margin-transfers.js.map +1 -0
  76. package/dist/margin/get-margin-transfers/index.d.ts +5 -0
  77. package/dist/margin/get-margin-transfers/index.d.ts.map +1 -0
  78. package/dist/margin/get-margin-transfers/query-document.d.ts +17 -0
  79. package/dist/margin/get-margin-transfers/query-document.d.ts.map +1 -0
  80. package/dist/margin/get-margin-transfers/query-document.js +7 -0
  81. package/dist/margin/get-margin-transfers/query-document.js.map +1 -0
  82. package/dist/margin/get-margin-transfers/query.d.ts +37 -0
  83. package/dist/margin/get-margin-transfers/query.d.ts.map +1 -0
  84. package/dist/margin/get-margin-transfers/query.js +23 -0
  85. package/dist/margin/get-margin-transfers/query.js.map +1 -0
  86. package/dist/margin/get-margin-transfers/to-margin-transfer-row.d.ts +12 -0
  87. package/dist/margin/get-margin-transfers/to-margin-transfer-row.d.ts.map +1 -0
  88. package/dist/margin/get-margin-transfers/to-margin-transfer-row.js +19 -0
  89. package/dist/margin/get-margin-transfers/to-margin-transfer-row.js.map +1 -0
  90. package/dist/margin/get-margin-transfers/types.d.ts +27 -0
  91. package/dist/margin/get-margin-transfers/types.d.ts.map +1 -0
  92. package/dist/margin/index.d.ts +1 -0
  93. package/dist/margin/index.d.ts.map +1 -1
  94. package/dist/pools/trade-history/query-document.d.ts +3 -0
  95. package/dist/pools/trade-history/query-document.d.ts.map +1 -1
  96. package/dist/pools/trade-history/query-document.js +1 -1
  97. package/dist/pools/trade-history/query-document.js.map +1 -1
  98. package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +22 -12
  99. package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts.map +1 -1
  100. package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.js +20 -21
  101. package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.js.map +1 -1
  102. package/dist/quotes/get-quote-events-by-type/query-document.d.ts +5 -5
  103. package/dist/quotes/get-quote-events-by-type/query-document.d.ts.map +1 -1
  104. package/dist/quotes/get-quote-events-by-type/query-document.js +1 -1
  105. package/dist/quotes/get-quote-events-by-type/query-document.js.map +1 -1
  106. package/dist/quotes/get-quote-events-by-type/query.d.ts +7 -6
  107. package/dist/quotes/get-quote-events-by-type/query.d.ts.map +1 -1
  108. package/dist/quotes/get-quote-events-by-type/query.js +19 -17
  109. package/dist/quotes/get-quote-events-by-type/query.js.map +1 -1
  110. package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
  111. package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts.map +1 -1
  112. package/dist/quotes/get-quote-events-by-type/to-quote-event-row.js +1 -3
  113. package/dist/quotes/get-quote-events-by-type/to-quote-event-row.js.map +1 -1
  114. package/dist/quotes/get-quote-events-by-type/types.d.ts +14 -3
  115. package/dist/quotes/get-quote-events-by-type/types.d.ts.map +1 -1
  116. package/dist/quotes/get-quote-events-by-type/types.js.map +1 -1
  117. package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +12 -2
  118. package/dist/quotes/get-quote-funding/get-quote-funding.d.ts.map +1 -1
  119. package/dist/quotes/get-quote-funding/get-quote-funding.js +21 -17
  120. package/dist/quotes/get-quote-funding/get-quote-funding.js.map +1 -1
  121. package/dist/quotes/get-quote-funding/query-document.d.ts +3 -2
  122. package/dist/quotes/get-quote-funding/query-document.d.ts.map +1 -1
  123. package/dist/quotes/get-quote-funding/query-document.js +1 -1
  124. package/dist/quotes/get-quote-funding/query-document.js.map +1 -1
  125. package/dist/quotes/get-quote-funding/query.d.ts.map +1 -1
  126. package/dist/quotes/get-quote-funding/query.js +2 -1
  127. package/dist/quotes/get-quote-funding/query.js.map +1 -1
  128. package/dist/quotes/get-quote-funding/to-funding-row.d.ts.map +1 -1
  129. package/dist/quotes/get-quote-funding/to-funding-row.js +1 -3
  130. package/dist/quotes/get-quote-funding/to-funding-row.js.map +1 -1
  131. package/dist/quotes/get-quote-history/get-quote-history.d.ts +18 -7
  132. package/dist/quotes/get-quote-history/get-quote-history.d.ts.map +1 -1
  133. package/dist/quotes/get-quote-history/get-quote-history.js +32 -22
  134. package/dist/quotes/get-quote-history/get-quote-history.js.map +1 -1
  135. package/dist/quotes/get-quote-history/query-document.d.ts +12 -7
  136. package/dist/quotes/get-quote-history/query-document.d.ts.map +1 -1
  137. package/dist/quotes/get-quote-history/query-document.js +1 -1
  138. package/dist/quotes/get-quote-history/query-document.js.map +1 -1
  139. package/dist/quotes/get-quote-history/query.d.ts +3 -2
  140. package/dist/quotes/get-quote-history/query.d.ts.map +1 -1
  141. package/dist/quotes/get-quote-history/query.js +22 -19
  142. package/dist/quotes/get-quote-history/query.js.map +1 -1
  143. package/dist/quotes/get-quote-history/to-history-row.d.ts.map +1 -1
  144. package/dist/quotes/get-quote-history/to-history-row.js +52 -37
  145. package/dist/quotes/get-quote-history/to-history-row.js.map +1 -1
  146. package/dist/quotes/get-quote-history/types.d.ts +41 -0
  147. package/dist/quotes/get-quote-history/types.d.ts.map +1 -1
  148. package/dist/quotes/get-quote-history/types.js.map +1 -1
  149. package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.d.ts +21 -11
  150. package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.d.ts.map +1 -1
  151. package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.js +19 -21
  152. package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.js.map +1 -1
  153. package/dist/quotes/get-quotes-events-by-type/query-document.d.ts +7 -7
  154. package/dist/quotes/get-quotes-events-by-type/query-document.d.ts.map +1 -1
  155. package/dist/quotes/get-quotes-events-by-type/query-document.js +1 -1
  156. package/dist/quotes/get-quotes-events-by-type/query-document.js.map +1 -1
  157. package/dist/quotes/get-quotes-events-by-type/query.d.ts +8 -6
  158. package/dist/quotes/get-quotes-events-by-type/query.d.ts.map +1 -1
  159. package/dist/quotes/get-quotes-events-by-type/query.js +22 -20
  160. package/dist/quotes/get-quotes-events-by-type/query.js.map +1 -1
  161. package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.d.ts +38 -0
  162. package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.d.ts.map +1 -0
  163. package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.js +28 -0
  164. package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.js.map +1 -0
  165. package/dist/quotes/get-subgraph-quotes/index.d.ts +5 -0
  166. package/dist/quotes/get-subgraph-quotes/index.d.ts.map +1 -0
  167. package/dist/quotes/get-subgraph-quotes/query-document.d.ts +15 -0
  168. package/dist/quotes/get-subgraph-quotes/query-document.d.ts.map +1 -0
  169. package/dist/quotes/get-subgraph-quotes/query-document.js +7 -0
  170. package/dist/quotes/get-subgraph-quotes/query-document.js.map +1 -0
  171. package/dist/quotes/get-subgraph-quotes/query.d.ts +37 -0
  172. package/dist/quotes/get-subgraph-quotes/query.d.ts.map +1 -0
  173. package/dist/quotes/get-subgraph-quotes/query.js +23 -0
  174. package/dist/quotes/get-subgraph-quotes/query.js.map +1 -0
  175. package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.d.ts +12 -0
  176. package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.d.ts.map +1 -0
  177. package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.js +32 -0
  178. package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.js.map +1 -0
  179. package/dist/quotes/get-subgraph-quotes/types.d.ts +54 -0
  180. package/dist/quotes/get-subgraph-quotes/types.d.ts.map +1 -0
  181. package/dist/quotes/index.d.ts +1 -0
  182. package/dist/quotes/index.d.ts.map +1 -1
  183. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.d.ts +122 -0
  184. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.d.ts.map +1 -0
  185. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.js +80 -0
  186. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.js.map +1 -0
  187. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/index.d.ts +3 -0
  188. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/index.d.ts.map +1 -0
  189. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.d.ts +37 -0
  190. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.d.ts.map +1 -0
  191. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.js +27 -0
  192. package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.js.map +1 -0
  193. package/dist/symmio-contracts/symmio/index.d.ts +2 -0
  194. package/dist/symmio-contracts/symmio/index.d.ts.map +1 -1
  195. package/dist/symmio-contracts/symmio/is-party-a-liquidated/index.d.ts +3 -0
  196. package/dist/symmio-contracts/symmio/is-party-a-liquidated/index.d.ts.map +1 -0
  197. package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.d.ts +37 -0
  198. package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.d.ts.map +1 -0
  199. package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.js +15 -0
  200. package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.js.map +1 -0
  201. package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.d.ts +38 -0
  202. package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.d.ts.map +1 -0
  203. package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.js +29 -0
  204. package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.js.map +1 -0
  205. package/dist/symmio-subgraph/index.d.ts +1 -0
  206. package/dist/symmio-subgraph/index.d.ts.map +1 -1
  207. package/dist/symmio-subgraph/subgraph-decode.d.ts +51 -0
  208. package/dist/symmio-subgraph/subgraph-decode.d.ts.map +1 -0
  209. package/dist/symmio-subgraph/subgraph-decode.js +24 -0
  210. package/dist/symmio-subgraph/subgraph-decode.js.map +1 -0
  211. package/dist/symmio-subgraph/subgraph-filters.d.ts +97 -0
  212. package/dist/symmio-subgraph/subgraph-filters.d.ts.map +1 -0
  213. package/dist/symmio-subgraph/subgraph-filters.js +39 -0
  214. package/dist/symmio-subgraph/subgraph-filters.js.map +1 -0
  215. package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +25 -5
  216. package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts.map +1 -1
  217. package/dist/symmio-subgraph/types/generated/analytics/gql.js +16 -11
  218. package/dist/symmio-subgraph/types/generated/analytics/gql.js.map +1 -1
  219. package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts +3640 -9
  220. package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts.map +1 -1
  221. package/dist/symmio-subgraph/types/generated/analytics/graphql.js +2 -2
  222. package/dist/symmio-subgraph/types/generated/analytics/graphql.js.map +1 -1
  223. package/package.json +1 -1
@@ -1,18 +1,23 @@
1
- import { BalanceChangesDocument as e, PoolQuoteEventsDocument as t, PoolQuotesDocument as n, QuoteEventsForHistoryDocument as r, QuoteEventsForQuoteByTypeDocument as i, QuoteEventsForQuotesByTypeDocument as a, QuotesFundingDocument as o } from "./graphql.js";
1
+ import { BalanceChangesDocument as e, FundingIndexCheckpointsDocument as t, LiquidationDetailsDocument as n, MarginTransfersDocument as r, PoolQuoteEventsDocument as i, PoolQuotesDocument as a, QuoteEventsForHistoryDocument as o, QuoteEventsForQuoteByTypeDocument as s, QuoteEventsForQuotesByTypeDocument as c, QuoteFundingSettlementsDocument as l, QuotesFundingDocument as u, SubgraphQuotesDocument as d } from "./graphql.js";
2
2
  //#region src/symmio-subgraph/types/generated/analytics/gql.ts
3
- var s = {
3
+ var f = {
4
4
  "\n query BalanceChanges(\n $accounts: [Bytes!]!\n $typeIn: [String!]!\n $isMarginTransferSideEffectIn: [Boolean!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n balanceChanges(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: {\n account_in: $accounts\n type_in: $typeIn\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n ) {\n id\n type\n amount\n account\n timestamp\n transaction\n isMarginTransferSideEffect\n marginTransferType\n }\n }\n": e,
5
- "\n query PoolQuotes(\n $symbolId: BigInt!\n $source: Bytes!\n $quoteStatuses: [Int!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quotes(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\n ) {\n id\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n quantity\n closedAmount\n quantityToClose\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n initialOpenedPrice\n liquidateAmount\n liquidatePrice\n timestamp\n blockNumber\n }\n }\n": n,
6
- "\n query PoolQuoteEvents(\n $typeIn: [String!]!\n $symbolId: BigInt!\n $source: Bytes!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n }\n quantity\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n }\n }\n }\n": t,
7
- "\n query QuoteEventsForQuoteByType(\n $quoteId: BigInt!\n $typeIn: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { quoteId: $quoteId, type_in: $typeIn }\n ) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n": i,
8
- "\n query QuotesFunding($ids: [BigInt!]!, $first: Int!) {\n quotes(first: $first, where: { quoteId_in: $ids }) {\n quoteId\n userPaidFunding\n userReceivedFunding\n }\n }\n": o,
9
- "\n query QuoteEventsForHistory(\n $typeIn: [String!]!\n $subAccounts: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: {\n type_in: $typeIn\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n quote_: { subAccount_in: $subAccounts }\n }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n }\n quantity\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n }\n }\n }\n": r,
10
- "\n query QuoteEventsForQuotesByType(\n $quoteIds: [BigInt!]!\n $typeIn: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { quoteId_in: $quoteIds, type_in: $typeIn }\n ) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n": a
5
+ "\n query FundingIndexCheckpoints(\n $where: FundingIndexCheckpoint_filter!\n $first: Int!\n $skip: Int!\n $orderBy: FundingIndexCheckpoint_orderBy!\n $orderDirection: OrderDirection!\n ) {\n fundingIndexCheckpoints(\n first: $first\n skip: $skip\n orderBy: $orderBy\n orderDirection: $orderDirection\n where: $where\n ) {\n id\n source\n symbolId\n partyB\n eventType\n rawLongRate\n rawShortRate\n marketPrice\n currentLongRate\n currentShortRate\n accumulatedLongRate\n accumulatedShortRate\n epochDuration\n lastUpdatedEpoch\n startEpoch\n startEpochTimestamp\n snapshotLongFee\n snapshotShortFee\n timestamp\n blockNumber\n transaction\n }\n }\n": t,
6
+ "\n query QuoteFundingSettlements(\n $where: QuoteFundingSettlement_filter!\n $first: Int!\n $skip: Int!\n $orderBy: QuoteFundingSettlement_orderBy!\n $orderDirection: OrderDirection!\n ) {\n quoteFundingSettlements(\n first: $first\n skip: $skip\n orderBy: $orderBy\n orderDirection: $orderDirection\n where: $where\n ) {\n id\n source\n quoteId\n partyA\n partyB\n symbolId\n positionType\n trigger\n openAmount\n signedAmount\n paidByPartyA\n receivedByPartyA\n previousAccumulatedPaidFunding\n newAccumulatedPaidFunding\n fundingDeltaPerUnit\n previousLastFundingPaymentTimestamp\n newLastFundingPaymentTimestamp\n previousPaidThroughEpoch\n newPaidThroughEpoch\n balanceChanged\n timestamp\n blockNumber\n transaction\n }\n }\n": l,
7
+ "\n query LiquidationDetails(\n $where: LiquidationDetail_filter!\n $first: Int!\n $skip: Int!\n $orderBy: LiquidationDetail_orderBy!\n $orderDirection: OrderDirection!\n ) {\n liquidationDetails(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\n id\n source\n partyA\n liquidationId\n liquidationType\n liquidationTimestamp\n timestamp\n lockedCva\n lockedLf\n lockedPartyAmm\n paidCva\n paidLf\n upnl\n deficit\n liquidationFee\n settled\n fullyLiquidated\n settlementExpectedAmounts\n settlementActualAmounts\n }\n }\n": n,
8
+ "\n query MarginTransfers(\n $where: MarginTransfer_filter!\n $first: Int!\n $skip: Int!\n $orderBy: MarginTransfer_orderBy!\n $orderDirection: OrderDirection!\n ) {\n marginTransfers(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\n id\n type\n amount\n source\n timestamp\n blockNumber\n transaction\n virtualAccount {\n id\n }\n subAccount {\n id\n }\n }\n }\n": r,
9
+ "\n query PoolQuotes(\n $symbolId: BigInt!\n $source: Bytes!\n $quoteStatuses: [Int!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quotes(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\n ) {\n id\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n quantity\n closedAmount\n quantityToClose\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n initialOpenedPrice\n liquidateAmount\n liquidatePrice\n timestamp\n blockNumber\n }\n }\n": a,
10
+ "\n query PoolQuoteEvents(\n $typeIn: [String!]!\n $symbolId: BigInt!\n $source: Bytes!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n source\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n owner\n }\n quantity\n openedPrice\n initialOpenedPrice\n requestedOpenPrice\n marketPrice\n averageClosedPrice\n closePrice\n closedPrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n tradingFee\n closeFee\n leverage\n cva\n lf\n initialCva\n initialLf\n initialPartyAmm\n timestampSendQuote\n timestampOpenPosition\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\n transaction\n }\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\n metadata\n }\n }\n }\n }\n": i,
11
+ "\n query QuoteEventsForQuoteByType(\n $where: QuoteEvent_filter!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n": s,
12
+ "\n query QuotesFunding($where: Quote_filter!, $first: Int!) {\n quotes(first: $first, where: $where) {\n quoteId\n userPaidFunding\n userReceivedFunding\n }\n }\n": u,
13
+ "\n query QuoteEventsForHistory($where: QuoteEvent_filter!, $first: Int!, $skip: Int!, $orderDirection: OrderDirection!) {\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n source\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n owner\n }\n quantity\n openedPrice\n initialOpenedPrice\n requestedOpenPrice\n marketPrice\n averageClosedPrice\n closePrice\n closedPrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n tradingFee\n closeFee\n leverage\n cva\n lf\n initialCva\n initialLf\n initialPartyAmm\n timestampSendQuote\n timestampOpenPosition\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\n transaction\n }\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\n metadata\n }\n }\n }\n }\n": o,
14
+ "\n query QuoteEventsForQuotesByType(\n $where: QuoteEvent_filter!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n": c,
15
+ "\n query SubgraphQuotes(\n $where: Quote_filter!\n $first: Int!\n $skip: Int!\n $orderBy: Quote_orderBy!\n $orderDirection: OrderDirection!\n ) {\n quotes(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\n id\n source\n quoteId\n quoteStatus\n partyA\n partyB\n symbolId\n symbol\n positionType\n quantity\n fillAmount\n closedAmount\n openedPrice\n accumulatedPaidFunding\n lastFundingPaymentTimestamp\n userPaidFunding\n userReceivedFunding\n timestampSendQuote\n timestampOpenPosition\n timestampFullyClose\n timestamp\n blockNumber\n }\n }\n": d
11
16
  };
12
- function c(e) {
13
- return s[e] ?? {};
17
+ function p(e) {
18
+ return f[e] ?? {};
14
19
  }
15
20
  //#endregion
16
- export { c as graphql };
21
+ export { p as graphql };
17
22
 
18
23
  //# sourceMappingURL=gql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gql.js","names":[],"sources":["../../../../../src/symmio-subgraph/types/generated/analytics/gql.ts"],"sourcesContent":["/* eslint-disable */\nimport * as types from \"./graphql\";\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n query BalanceChanges(\\n $accounts: [Bytes!]!\\n $typeIn: [String!]!\\n $isMarginTransferSideEffectIn: [Boolean!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n balanceChanges(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n account_in: $accounts\\n type_in: $typeIn\\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n }\\n ) {\\n id\\n type\\n amount\\n account\\n timestamp\\n transaction\\n isMarginTransferSideEffect\\n marginTransferType\\n }\\n }\\n\": typeof types.BalanceChangesDocument;\n \"\\n query PoolQuotes(\\n $symbolId: BigInt!\\n $source: Bytes!\\n $quoteStatuses: [Int!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\\n ) {\\n id\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n quantity\\n closedAmount\\n quantityToClose\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n initialOpenedPrice\\n liquidateAmount\\n liquidatePrice\\n timestamp\\n blockNumber\\n }\\n }\\n\": typeof types.PoolQuotesDocument;\n \"\\n query PoolQuoteEvents(\\n $typeIn: [String!]!\\n $symbolId: BigInt!\\n $source: Bytes!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n }\\n quantity\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n }\\n }\\n }\\n\": typeof types.PoolQuoteEventsDocument;\n \"\\n query QuoteEventsForQuoteByType(\\n $quoteId: BigInt!\\n $typeIn: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { quoteId: $quoteId, type_in: $typeIn }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\": typeof types.QuoteEventsForQuoteByTypeDocument;\n \"\\n query QuotesFunding($ids: [BigInt!]!, $first: Int!) {\\n quotes(first: $first, where: { quoteId_in: $ids }) {\\n quoteId\\n userPaidFunding\\n userReceivedFunding\\n }\\n }\\n\": typeof types.QuotesFundingDocument;\n \"\\n query QuoteEventsForHistory(\\n $typeIn: [String!]!\\n $subAccounts: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n type_in: $typeIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n quote_: { subAccount_in: $subAccounts }\\n }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n }\\n quantity\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n }\\n }\\n }\\n\": typeof types.QuoteEventsForHistoryDocument;\n \"\\n query QuoteEventsForQuotesByType(\\n $quoteIds: [BigInt!]!\\n $typeIn: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { quoteId_in: $quoteIds, type_in: $typeIn }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\": typeof types.QuoteEventsForQuotesByTypeDocument;\n};\nconst documents: Documents = {\n \"\\n query BalanceChanges(\\n $accounts: [Bytes!]!\\n $typeIn: [String!]!\\n $isMarginTransferSideEffectIn: [Boolean!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n balanceChanges(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n account_in: $accounts\\n type_in: $typeIn\\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n }\\n ) {\\n id\\n type\\n amount\\n account\\n timestamp\\n transaction\\n isMarginTransferSideEffect\\n marginTransferType\\n }\\n }\\n\":\n types.BalanceChangesDocument,\n \"\\n query PoolQuotes(\\n $symbolId: BigInt!\\n $source: Bytes!\\n $quoteStatuses: [Int!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\\n ) {\\n id\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n quantity\\n closedAmount\\n quantityToClose\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n initialOpenedPrice\\n liquidateAmount\\n liquidatePrice\\n timestamp\\n blockNumber\\n }\\n }\\n\":\n types.PoolQuotesDocument,\n \"\\n query PoolQuoteEvents(\\n $typeIn: [String!]!\\n $symbolId: BigInt!\\n $source: Bytes!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n }\\n quantity\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n }\\n }\\n }\\n\":\n types.PoolQuoteEventsDocument,\n \"\\n query QuoteEventsForQuoteByType(\\n $quoteId: BigInt!\\n $typeIn: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { quoteId: $quoteId, type_in: $typeIn }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\":\n types.QuoteEventsForQuoteByTypeDocument,\n \"\\n query QuotesFunding($ids: [BigInt!]!, $first: Int!) {\\n quotes(first: $first, where: { quoteId_in: $ids }) {\\n quoteId\\n userPaidFunding\\n userReceivedFunding\\n }\\n }\\n\":\n types.QuotesFundingDocument,\n \"\\n query QuoteEventsForHistory(\\n $typeIn: [String!]!\\n $subAccounts: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n type_in: $typeIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n quote_: { subAccount_in: $subAccounts }\\n }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n }\\n quantity\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n }\\n }\\n }\\n\":\n types.QuoteEventsForHistoryDocument,\n \"\\n query QuoteEventsForQuotesByType(\\n $quoteIds: [BigInt!]!\\n $typeIn: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { quoteId_in: $quoteIds, type_in: $typeIn }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\":\n types.QuoteEventsForQuotesByTypeDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query BalanceChanges(\\n $accounts: [Bytes!]!\\n $typeIn: [String!]!\\n $isMarginTransferSideEffectIn: [Boolean!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n balanceChanges(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n account_in: $accounts\\n type_in: $typeIn\\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n }\\n ) {\\n id\\n type\\n amount\\n account\\n timestamp\\n transaction\\n isMarginTransferSideEffect\\n marginTransferType\\n }\\n }\\n\",\n): typeof import(\"./graphql\").BalanceChangesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query PoolQuotes(\\n $symbolId: BigInt!\\n $source: Bytes!\\n $quoteStatuses: [Int!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\\n ) {\\n id\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n quantity\\n closedAmount\\n quantityToClose\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n initialOpenedPrice\\n liquidateAmount\\n liquidatePrice\\n timestamp\\n blockNumber\\n }\\n }\\n\",\n): typeof import(\"./graphql\").PoolQuotesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query PoolQuoteEvents(\\n $typeIn: [String!]!\\n $symbolId: BigInt!\\n $source: Bytes!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n }\\n quantity\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n }\\n }\\n }\\n\",\n): typeof import(\"./graphql\").PoolQuoteEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuoteEventsForQuoteByType(\\n $quoteId: BigInt!\\n $typeIn: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { quoteId: $quoteId, type_in: $typeIn }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuoteEventsForQuoteByTypeDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuotesFunding($ids: [BigInt!]!, $first: Int!) {\\n quotes(first: $first, where: { quoteId_in: $ids }) {\\n quoteId\\n userPaidFunding\\n userReceivedFunding\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuotesFundingDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuoteEventsForHistory(\\n $typeIn: [String!]!\\n $subAccounts: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n type_in: $typeIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n quote_: { subAccount_in: $subAccounts }\\n }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n }\\n quantity\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n }\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuoteEventsForHistoryDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuoteEventsForQuotesByType(\\n $quoteIds: [BigInt!]!\\n $typeIn: [String!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { quoteId_in: $quoteIds, type_in: $typeIn }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuoteEventsForQuotesByTypeDocument;\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n"],"mappings":";;AAuBA,IAAM,IAAuB;CAC3B,owBACE;CACF,qyBACE;CACF,s7BACE;CACF,4dACE;CACF,sMACE;CACF,gjCACE;CACF,qeACE;AACJ;AA6CA,SAAgB,EAAQ,GAAgB;CACtC,OAAQ,EAAkB,MAAW,CAAC;AACxC"}
1
+ {"version":3,"file":"gql.js","names":[],"sources":["../../../../../src/symmio-subgraph/types/generated/analytics/gql.ts"],"sourcesContent":["/* eslint-disable */\nimport * as types from \"./graphql\";\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size\n */\ntype Documents = {\n \"\\n query BalanceChanges(\\n $accounts: [Bytes!]!\\n $typeIn: [String!]!\\n $isMarginTransferSideEffectIn: [Boolean!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n balanceChanges(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n account_in: $accounts\\n type_in: $typeIn\\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n }\\n ) {\\n id\\n type\\n amount\\n account\\n timestamp\\n transaction\\n isMarginTransferSideEffect\\n marginTransferType\\n }\\n }\\n\": typeof types.BalanceChangesDocument;\n \"\\n query FundingIndexCheckpoints(\\n $where: FundingIndexCheckpoint_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: FundingIndexCheckpoint_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n fundingIndexCheckpoints(\\n first: $first\\n skip: $skip\\n orderBy: $orderBy\\n orderDirection: $orderDirection\\n where: $where\\n ) {\\n id\\n source\\n symbolId\\n partyB\\n eventType\\n rawLongRate\\n rawShortRate\\n marketPrice\\n currentLongRate\\n currentShortRate\\n accumulatedLongRate\\n accumulatedShortRate\\n epochDuration\\n lastUpdatedEpoch\\n startEpoch\\n startEpochTimestamp\\n snapshotLongFee\\n snapshotShortFee\\n timestamp\\n blockNumber\\n transaction\\n }\\n }\\n\": typeof types.FundingIndexCheckpointsDocument;\n \"\\n query QuoteFundingSettlements(\\n $where: QuoteFundingSettlement_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: QuoteFundingSettlement_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteFundingSettlements(\\n first: $first\\n skip: $skip\\n orderBy: $orderBy\\n orderDirection: $orderDirection\\n where: $where\\n ) {\\n id\\n source\\n quoteId\\n partyA\\n partyB\\n symbolId\\n positionType\\n trigger\\n openAmount\\n signedAmount\\n paidByPartyA\\n receivedByPartyA\\n previousAccumulatedPaidFunding\\n newAccumulatedPaidFunding\\n fundingDeltaPerUnit\\n previousLastFundingPaymentTimestamp\\n newLastFundingPaymentTimestamp\\n previousPaidThroughEpoch\\n newPaidThroughEpoch\\n balanceChanged\\n timestamp\\n blockNumber\\n transaction\\n }\\n }\\n\": typeof types.QuoteFundingSettlementsDocument;\n \"\\n query LiquidationDetails(\\n $where: LiquidationDetail_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: LiquidationDetail_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n liquidationDetails(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n source\\n partyA\\n liquidationId\\n liquidationType\\n liquidationTimestamp\\n timestamp\\n lockedCva\\n lockedLf\\n lockedPartyAmm\\n paidCva\\n paidLf\\n upnl\\n deficit\\n liquidationFee\\n settled\\n fullyLiquidated\\n settlementExpectedAmounts\\n settlementActualAmounts\\n }\\n }\\n\": typeof types.LiquidationDetailsDocument;\n \"\\n query MarginTransfers(\\n $where: MarginTransfer_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: MarginTransfer_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n marginTransfers(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n amount\\n source\\n timestamp\\n blockNumber\\n transaction\\n virtualAccount {\\n id\\n }\\n subAccount {\\n id\\n }\\n }\\n }\\n\": typeof types.MarginTransfersDocument;\n \"\\n query PoolQuotes(\\n $symbolId: BigInt!\\n $source: Bytes!\\n $quoteStatuses: [Int!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\\n ) {\\n id\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n quantity\\n closedAmount\\n quantityToClose\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n initialOpenedPrice\\n liquidateAmount\\n liquidatePrice\\n timestamp\\n blockNumber\\n }\\n }\\n\": typeof types.PoolQuotesDocument;\n '\\n query PoolQuoteEvents(\\n $typeIn: [String!]!\\n $symbolId: BigInt!\\n $source: Bytes!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n source\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n owner\\n }\\n quantity\\n openedPrice\\n initialOpenedPrice\\n requestedOpenPrice\\n marketPrice\\n averageClosedPrice\\n closePrice\\n closedPrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n tradingFee\\n closeFee\\n leverage\\n cva\\n lf\\n initialCva\\n initialLf\\n initialPartyAmm\\n timestampSendQuote\\n timestampOpenPosition\\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\\n transaction\\n }\\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\\n metadata\\n }\\n }\\n }\\n }\\n': typeof types.PoolQuoteEventsDocument;\n \"\\n query QuoteEventsForQuoteByType(\\n $where: QuoteEvent_filter!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\": typeof types.QuoteEventsForQuoteByTypeDocument;\n \"\\n query QuotesFunding($where: Quote_filter!, $first: Int!) {\\n quotes(first: $first, where: $where) {\\n quoteId\\n userPaidFunding\\n userReceivedFunding\\n }\\n }\\n\": typeof types.QuotesFundingDocument;\n '\\n query QuoteEventsForHistory($where: QuoteEvent_filter!, $first: Int!, $skip: Int!, $orderDirection: OrderDirection!) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n source\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n owner\\n }\\n quantity\\n openedPrice\\n initialOpenedPrice\\n requestedOpenPrice\\n marketPrice\\n averageClosedPrice\\n closePrice\\n closedPrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n tradingFee\\n closeFee\\n leverage\\n cva\\n lf\\n initialCva\\n initialLf\\n initialPartyAmm\\n timestampSendQuote\\n timestampOpenPosition\\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\\n transaction\\n }\\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\\n metadata\\n }\\n }\\n }\\n }\\n': typeof types.QuoteEventsForHistoryDocument;\n \"\\n query QuoteEventsForQuotesByType(\\n $where: QuoteEvent_filter!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\": typeof types.QuoteEventsForQuotesByTypeDocument;\n \"\\n query SubgraphQuotes(\\n $where: Quote_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: Quote_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n source\\n quoteId\\n quoteStatus\\n partyA\\n partyB\\n symbolId\\n symbol\\n positionType\\n quantity\\n fillAmount\\n closedAmount\\n openedPrice\\n accumulatedPaidFunding\\n lastFundingPaymentTimestamp\\n userPaidFunding\\n userReceivedFunding\\n timestampSendQuote\\n timestampOpenPosition\\n timestampFullyClose\\n timestamp\\n blockNumber\\n }\\n }\\n\": typeof types.SubgraphQuotesDocument;\n};\nconst documents: Documents = {\n \"\\n query BalanceChanges(\\n $accounts: [Bytes!]!\\n $typeIn: [String!]!\\n $isMarginTransferSideEffectIn: [Boolean!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n balanceChanges(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n account_in: $accounts\\n type_in: $typeIn\\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n }\\n ) {\\n id\\n type\\n amount\\n account\\n timestamp\\n transaction\\n isMarginTransferSideEffect\\n marginTransferType\\n }\\n }\\n\":\n types.BalanceChangesDocument,\n \"\\n query FundingIndexCheckpoints(\\n $where: FundingIndexCheckpoint_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: FundingIndexCheckpoint_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n fundingIndexCheckpoints(\\n first: $first\\n skip: $skip\\n orderBy: $orderBy\\n orderDirection: $orderDirection\\n where: $where\\n ) {\\n id\\n source\\n symbolId\\n partyB\\n eventType\\n rawLongRate\\n rawShortRate\\n marketPrice\\n currentLongRate\\n currentShortRate\\n accumulatedLongRate\\n accumulatedShortRate\\n epochDuration\\n lastUpdatedEpoch\\n startEpoch\\n startEpochTimestamp\\n snapshotLongFee\\n snapshotShortFee\\n timestamp\\n blockNumber\\n transaction\\n }\\n }\\n\":\n types.FundingIndexCheckpointsDocument,\n \"\\n query QuoteFundingSettlements(\\n $where: QuoteFundingSettlement_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: QuoteFundingSettlement_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteFundingSettlements(\\n first: $first\\n skip: $skip\\n orderBy: $orderBy\\n orderDirection: $orderDirection\\n where: $where\\n ) {\\n id\\n source\\n quoteId\\n partyA\\n partyB\\n symbolId\\n positionType\\n trigger\\n openAmount\\n signedAmount\\n paidByPartyA\\n receivedByPartyA\\n previousAccumulatedPaidFunding\\n newAccumulatedPaidFunding\\n fundingDeltaPerUnit\\n previousLastFundingPaymentTimestamp\\n newLastFundingPaymentTimestamp\\n previousPaidThroughEpoch\\n newPaidThroughEpoch\\n balanceChanged\\n timestamp\\n blockNumber\\n transaction\\n }\\n }\\n\":\n types.QuoteFundingSettlementsDocument,\n \"\\n query LiquidationDetails(\\n $where: LiquidationDetail_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: LiquidationDetail_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n liquidationDetails(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n source\\n partyA\\n liquidationId\\n liquidationType\\n liquidationTimestamp\\n timestamp\\n lockedCva\\n lockedLf\\n lockedPartyAmm\\n paidCva\\n paidLf\\n upnl\\n deficit\\n liquidationFee\\n settled\\n fullyLiquidated\\n settlementExpectedAmounts\\n settlementActualAmounts\\n }\\n }\\n\":\n types.LiquidationDetailsDocument,\n \"\\n query MarginTransfers(\\n $where: MarginTransfer_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: MarginTransfer_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n marginTransfers(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n amount\\n source\\n timestamp\\n blockNumber\\n transaction\\n virtualAccount {\\n id\\n }\\n subAccount {\\n id\\n }\\n }\\n }\\n\":\n types.MarginTransfersDocument,\n \"\\n query PoolQuotes(\\n $symbolId: BigInt!\\n $source: Bytes!\\n $quoteStatuses: [Int!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\\n ) {\\n id\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n quantity\\n closedAmount\\n quantityToClose\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n initialOpenedPrice\\n liquidateAmount\\n liquidatePrice\\n timestamp\\n blockNumber\\n }\\n }\\n\":\n types.PoolQuotesDocument,\n '\\n query PoolQuoteEvents(\\n $typeIn: [String!]!\\n $symbolId: BigInt!\\n $source: Bytes!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n source\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n owner\\n }\\n quantity\\n openedPrice\\n initialOpenedPrice\\n requestedOpenPrice\\n marketPrice\\n averageClosedPrice\\n closePrice\\n closedPrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n tradingFee\\n closeFee\\n leverage\\n cva\\n lf\\n initialCva\\n initialLf\\n initialPartyAmm\\n timestampSendQuote\\n timestampOpenPosition\\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\\n transaction\\n }\\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\\n metadata\\n }\\n }\\n }\\n }\\n':\n types.PoolQuoteEventsDocument,\n \"\\n query QuoteEventsForQuoteByType(\\n $where: QuoteEvent_filter!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\":\n types.QuoteEventsForQuoteByTypeDocument,\n \"\\n query QuotesFunding($where: Quote_filter!, $first: Int!) {\\n quotes(first: $first, where: $where) {\\n quoteId\\n userPaidFunding\\n userReceivedFunding\\n }\\n }\\n\":\n types.QuotesFundingDocument,\n '\\n query QuoteEventsForHistory($where: QuoteEvent_filter!, $first: Int!, $skip: Int!, $orderDirection: OrderDirection!) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n source\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n owner\\n }\\n quantity\\n openedPrice\\n initialOpenedPrice\\n requestedOpenPrice\\n marketPrice\\n averageClosedPrice\\n closePrice\\n closedPrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n tradingFee\\n closeFee\\n leverage\\n cva\\n lf\\n initialCva\\n initialLf\\n initialPartyAmm\\n timestampSendQuote\\n timestampOpenPosition\\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\\n transaction\\n }\\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\\n metadata\\n }\\n }\\n }\\n }\\n':\n types.QuoteEventsForHistoryDocument,\n \"\\n query QuoteEventsForQuotesByType(\\n $where: QuoteEvent_filter!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\":\n types.QuoteEventsForQuotesByTypeDocument,\n \"\\n query SubgraphQuotes(\\n $where: Quote_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: Quote_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n source\\n quoteId\\n quoteStatus\\n partyA\\n partyB\\n symbolId\\n symbol\\n positionType\\n quantity\\n fillAmount\\n closedAmount\\n openedPrice\\n accumulatedPaidFunding\\n lastFundingPaymentTimestamp\\n userPaidFunding\\n userReceivedFunding\\n timestampSendQuote\\n timestampOpenPosition\\n timestampFullyClose\\n timestamp\\n blockNumber\\n }\\n }\\n\":\n types.SubgraphQuotesDocument,\n};\n\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query BalanceChanges(\\n $accounts: [Bytes!]!\\n $typeIn: [String!]!\\n $isMarginTransferSideEffectIn: [Boolean!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n $startDate: BigInt!\\n $endDate: BigInt!\\n ) {\\n balanceChanges(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: {\\n account_in: $accounts\\n type_in: $typeIn\\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\\n timestamp_gte: $startDate\\n timestamp_lte: $endDate\\n }\\n ) {\\n id\\n type\\n amount\\n account\\n timestamp\\n transaction\\n isMarginTransferSideEffect\\n marginTransferType\\n }\\n }\\n\",\n): typeof import(\"./graphql\").BalanceChangesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query FundingIndexCheckpoints(\\n $where: FundingIndexCheckpoint_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: FundingIndexCheckpoint_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n fundingIndexCheckpoints(\\n first: $first\\n skip: $skip\\n orderBy: $orderBy\\n orderDirection: $orderDirection\\n where: $where\\n ) {\\n id\\n source\\n symbolId\\n partyB\\n eventType\\n rawLongRate\\n rawShortRate\\n marketPrice\\n currentLongRate\\n currentShortRate\\n accumulatedLongRate\\n accumulatedShortRate\\n epochDuration\\n lastUpdatedEpoch\\n startEpoch\\n startEpochTimestamp\\n snapshotLongFee\\n snapshotShortFee\\n timestamp\\n blockNumber\\n transaction\\n }\\n }\\n\",\n): typeof import(\"./graphql\").FundingIndexCheckpointsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuoteFundingSettlements(\\n $where: QuoteFundingSettlement_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: QuoteFundingSettlement_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteFundingSettlements(\\n first: $first\\n skip: $skip\\n orderBy: $orderBy\\n orderDirection: $orderDirection\\n where: $where\\n ) {\\n id\\n source\\n quoteId\\n partyA\\n partyB\\n symbolId\\n positionType\\n trigger\\n openAmount\\n signedAmount\\n paidByPartyA\\n receivedByPartyA\\n previousAccumulatedPaidFunding\\n newAccumulatedPaidFunding\\n fundingDeltaPerUnit\\n previousLastFundingPaymentTimestamp\\n newLastFundingPaymentTimestamp\\n previousPaidThroughEpoch\\n newPaidThroughEpoch\\n balanceChanged\\n timestamp\\n blockNumber\\n transaction\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuoteFundingSettlementsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query LiquidationDetails(\\n $where: LiquidationDetail_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: LiquidationDetail_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n liquidationDetails(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n source\\n partyA\\n liquidationId\\n liquidationType\\n liquidationTimestamp\\n timestamp\\n lockedCva\\n lockedLf\\n lockedPartyAmm\\n paidCva\\n paidLf\\n upnl\\n deficit\\n liquidationFee\\n settled\\n fullyLiquidated\\n settlementExpectedAmounts\\n settlementActualAmounts\\n }\\n }\\n\",\n): typeof import(\"./graphql\").LiquidationDetailsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query MarginTransfers(\\n $where: MarginTransfer_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: MarginTransfer_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n marginTransfers(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n amount\\n source\\n timestamp\\n blockNumber\\n transaction\\n virtualAccount {\\n id\\n }\\n subAccount {\\n id\\n }\\n }\\n }\\n\",\n): typeof import(\"./graphql\").MarginTransfersDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query PoolQuotes(\\n $symbolId: BigInt!\\n $source: Bytes!\\n $quoteStatuses: [Int!]!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { symbolId: $symbolId, source: $source, quoteStatus_in: $quoteStatuses }\\n ) {\\n id\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n quantity\\n closedAmount\\n quantityToClose\\n openedPrice\\n requestedOpenPrice\\n averageClosedPrice\\n closePrice\\n initialOpenedPrice\\n liquidateAmount\\n liquidatePrice\\n timestamp\\n blockNumber\\n }\\n }\\n\",\n): typeof import(\"./graphql\").PoolQuotesDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query PoolQuoteEvents(\\n $typeIn: [String!]!\\n $symbolId: BigInt!\\n $source: Bytes!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(\\n first: $first\\n skip: $skip\\n orderBy: timestamp\\n orderDirection: $orderDirection\\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\\n ) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n source\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n owner\\n }\\n quantity\\n openedPrice\\n initialOpenedPrice\\n requestedOpenPrice\\n marketPrice\\n averageClosedPrice\\n closePrice\\n closedPrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n tradingFee\\n closeFee\\n leverage\\n cva\\n lf\\n initialCva\\n initialLf\\n initialPartyAmm\\n timestampSendQuote\\n timestampOpenPosition\\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\\n transaction\\n }\\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\\n metadata\\n }\\n }\\n }\\n }\\n',\n): typeof import(\"./graphql\").PoolQuoteEventsDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuoteEventsForQuoteByType(\\n $where: QuoteEvent_filter!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuoteEventsForQuoteByTypeDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuotesFunding($where: Quote_filter!, $first: Int!) {\\n quotes(first: $first, where: $where) {\\n quoteId\\n userPaidFunding\\n userReceivedFunding\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuotesFundingDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: '\\n query QuoteEventsForHistory($where: QuoteEvent_filter!, $first: Int!, $skip: Int!, $orderDirection: OrderDirection!) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n quoteId\\n blockNumber\\n transaction\\n source\\n quote {\\n quoteId\\n quoteStatus\\n positionType\\n orderTypeOpen\\n symbol\\n symbolId\\n partyA\\n partyB\\n subAccount {\\n id\\n owner\\n }\\n quantity\\n openedPrice\\n initialOpenedPrice\\n requestedOpenPrice\\n marketPrice\\n averageClosedPrice\\n closePrice\\n closedPrice\\n closedAmount\\n quantityToClose\\n liquidateAmount\\n liquidatePrice\\n tradingFee\\n closeFee\\n leverage\\n cva\\n lf\\n initialCva\\n initialLf\\n initialPartyAmm\\n timestampSendQuote\\n timestampOpenPosition\\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\\n transaction\\n }\\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\\n metadata\\n }\\n }\\n }\\n }\\n',\n): typeof import(\"./graphql\").QuoteEventsForHistoryDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query QuoteEventsForQuotesByType(\\n $where: QuoteEvent_filter!\\n $first: Int!\\n $skip: Int!\\n $orderDirection: OrderDirection!\\n ) {\\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\\n id\\n type\\n metadata\\n timestamp\\n blockNumber\\n transaction\\n quoteId\\n }\\n }\\n\",\n): typeof import(\"./graphql\").QuoteEventsForQuotesByTypeDocument;\n/**\n * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function graphql(\n source: \"\\n query SubgraphQuotes(\\n $where: Quote_filter!\\n $first: Int!\\n $skip: Int!\\n $orderBy: Quote_orderBy!\\n $orderDirection: OrderDirection!\\n ) {\\n quotes(first: $first, skip: $skip, orderBy: $orderBy, orderDirection: $orderDirection, where: $where) {\\n id\\n source\\n quoteId\\n quoteStatus\\n partyA\\n partyB\\n symbolId\\n symbol\\n positionType\\n quantity\\n fillAmount\\n closedAmount\\n openedPrice\\n accumulatedPaidFunding\\n lastFundingPaymentTimestamp\\n userPaidFunding\\n userReceivedFunding\\n timestampSendQuote\\n timestampOpenPosition\\n timestampFullyClose\\n timestamp\\n blockNumber\\n }\\n }\\n\",\n): typeof import(\"./graphql\").SubgraphQuotesDocument;\n\nexport function graphql(source: string) {\n return (documents as any)[source] ?? {};\n}\n"],"mappings":";;AA4BA,IAAM,IAAuB;CAC3B,owBACE;CACF,0yBACE;CACF,s4BACE;CACF,mrBACE;CACF,4fACE;CACF,qyBACE;CACF,u9CACE;CACF,qYACE;CACF,6LACE;CACF,2zCACE;CACF,sYACE;CACF,2tBACE;AACJ;AA2EA,SAAgB,EAAQ,GAAgB;CACtC,OAAQ,EAAkB,MAAW,CAAC;AACxC"}