@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.
- package/dist/balance-history/get-balance-history/types.d.ts +3 -1
- package/dist/balance-history/get-balance-history/types.d.ts.map +1 -1
- package/dist/balance-history/get-balance-history/types.js +1 -1
- package/dist/balance-history/get-balance-history/types.js.map +1 -1
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.d.ts +50 -0
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.js +30 -0
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/index.d.ts +5 -0
- package/dist/funding/get-funding-index-checkpoints/index.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.d.ts +16 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.js +7 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query.d.ts +37 -0
- package/dist/funding/get-funding-index-checkpoints/query.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query.js +23 -0
- package/dist/funding/get-funding-index-checkpoints/query.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.d.ts +12 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.js +31 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/types.d.ts +51 -0
- package/dist/funding/get-funding-index-checkpoints/types.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.d.ts +47 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.js +30 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/index.d.ts +5 -0
- package/dist/funding/get-quote-funding-settlements/index.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query-document.d.ts +16 -0
- package/dist/funding/get-quote-funding-settlements/query-document.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query-document.js +7 -0
- package/dist/funding/get-quote-funding-settlements/query-document.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query.d.ts +37 -0
- package/dist/funding/get-quote-funding-settlements/query.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query.js +23 -0
- package/dist/funding/get-quote-funding-settlements/query.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.d.ts +12 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.js +33 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/types.d.ts +56 -0
- package/dist/funding/get-quote-funding-settlements/types.d.ts.map +1 -0
- package/dist/funding/index.d.ts +3 -0
- package/dist/funding/index.d.ts.map +1 -0
- package/dist/index.d.ts +46 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +408 -388
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.d.ts +44 -0
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.js +30 -0
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/index.d.ts +5 -0
- package/dist/liquidation/get-liquidation-details/index.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/query-document.d.ts +16 -0
- package/dist/liquidation/get-liquidation-details/query-document.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/query-document.js +7 -0
- package/dist/liquidation/get-liquidation-details/query-document.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/query.d.ts +37 -0
- package/dist/liquidation/get-liquidation-details/query.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/query.js +23 -0
- package/dist/liquidation/get-liquidation-details/query.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.d.ts +12 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.js +32 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/types.d.ts +47 -0
- package/dist/liquidation/get-liquidation-details/types.d.ts.map +1 -0
- package/dist/liquidation/index.d.ts +2 -0
- package/dist/liquidation/index.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.d.ts +51 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.js +32 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.js.map +1 -0
- package/dist/margin/get-margin-transfers/index.d.ts +5 -0
- package/dist/margin/get-margin-transfers/index.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/query-document.d.ts +17 -0
- package/dist/margin/get-margin-transfers/query-document.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/query-document.js +7 -0
- package/dist/margin/get-margin-transfers/query-document.js.map +1 -0
- package/dist/margin/get-margin-transfers/query.d.ts +37 -0
- package/dist/margin/get-margin-transfers/query.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/query.js +23 -0
- package/dist/margin/get-margin-transfers/query.js.map +1 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.d.ts +12 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.js +19 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.js.map +1 -0
- package/dist/margin/get-margin-transfers/types.d.ts +27 -0
- package/dist/margin/get-margin-transfers/types.d.ts.map +1 -0
- package/dist/margin/index.d.ts +1 -0
- package/dist/margin/index.d.ts.map +1 -1
- package/dist/pools/trade-history/query-document.d.ts +3 -0
- package/dist/pools/trade-history/query-document.d.ts.map +1 -1
- package/dist/pools/trade-history/query-document.js +1 -1
- package/dist/pools/trade-history/query-document.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +22 -12
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.js +20 -21
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query-document.d.ts +5 -5
- package/dist/quotes/get-quote-events-by-type/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query-document.js +1 -1
- package/dist/quotes/get-quote-events-by-type/query-document.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query.d.ts +7 -6
- package/dist/quotes/get-quote-events-by-type/query.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query.js +19 -17
- package/dist/quotes/get-quote-events-by-type/query.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.js +1 -3
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/types.d.ts +14 -3
- package/dist/quotes/get-quote-events-by-type/types.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/types.js.map +1 -1
- package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +12 -2
- package/dist/quotes/get-quote-funding/get-quote-funding.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/get-quote-funding.js +21 -17
- package/dist/quotes/get-quote-funding/get-quote-funding.js.map +1 -1
- package/dist/quotes/get-quote-funding/query-document.d.ts +3 -2
- package/dist/quotes/get-quote-funding/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/query-document.js +1 -1
- package/dist/quotes/get-quote-funding/query-document.js.map +1 -1
- package/dist/quotes/get-quote-funding/query.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/query.js +2 -1
- package/dist/quotes/get-quote-funding/query.js.map +1 -1
- package/dist/quotes/get-quote-funding/to-funding-row.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/to-funding-row.js +1 -3
- package/dist/quotes/get-quote-funding/to-funding-row.js.map +1 -1
- package/dist/quotes/get-quote-history/get-quote-history.d.ts +18 -7
- package/dist/quotes/get-quote-history/get-quote-history.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/get-quote-history.js +32 -22
- package/dist/quotes/get-quote-history/get-quote-history.js.map +1 -1
- package/dist/quotes/get-quote-history/query-document.d.ts +12 -7
- package/dist/quotes/get-quote-history/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/query-document.js +1 -1
- package/dist/quotes/get-quote-history/query-document.js.map +1 -1
- package/dist/quotes/get-quote-history/query.d.ts +3 -2
- package/dist/quotes/get-quote-history/query.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/query.js +22 -19
- package/dist/quotes/get-quote-history/query.js.map +1 -1
- package/dist/quotes/get-quote-history/to-history-row.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/to-history-row.js +52 -37
- package/dist/quotes/get-quote-history/to-history-row.js.map +1 -1
- package/dist/quotes/get-quote-history/types.d.ts +41 -0
- package/dist/quotes/get-quote-history/types.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/types.js.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.d.ts +21 -11
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.d.ts.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.js +19 -21
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.js.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query-document.d.ts +7 -7
- package/dist/quotes/get-quotes-events-by-type/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query-document.js +1 -1
- package/dist/quotes/get-quotes-events-by-type/query-document.js.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query.d.ts +8 -6
- package/dist/quotes/get-quotes-events-by-type/query.d.ts.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query.js +22 -20
- package/dist/quotes/get-quotes-events-by-type/query.js.map +1 -1
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.d.ts +38 -0
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.js +28 -0
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/index.d.ts +5 -0
- package/dist/quotes/get-subgraph-quotes/index.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query-document.d.ts +15 -0
- package/dist/quotes/get-subgraph-quotes/query-document.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query-document.js +7 -0
- package/dist/quotes/get-subgraph-quotes/query-document.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query.d.ts +37 -0
- package/dist/quotes/get-subgraph-quotes/query.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query.js +23 -0
- package/dist/quotes/get-subgraph-quotes/query.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.d.ts +12 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.js +32 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/types.d.ts +54 -0
- package/dist/quotes/get-subgraph-quotes/types.d.ts.map +1 -0
- package/dist/quotes/index.d.ts +1 -0
- package/dist/quotes/index.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.d.ts +122 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.js +80 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.js.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/index.d.ts +3 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/index.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.d.ts +37 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.js +27 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.js.map +1 -0
- package/dist/symmio-contracts/symmio/index.d.ts +2 -0
- package/dist/symmio-contracts/symmio/index.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/index.d.ts +3 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/index.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.d.ts +37 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.js +15 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.js.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.d.ts +38 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.js +29 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.js.map +1 -0
- package/dist/symmio-subgraph/index.d.ts +1 -0
- package/dist/symmio-subgraph/index.d.ts.map +1 -1
- package/dist/symmio-subgraph/subgraph-decode.d.ts +51 -0
- package/dist/symmio-subgraph/subgraph-decode.d.ts.map +1 -0
- package/dist/symmio-subgraph/subgraph-decode.js +24 -0
- package/dist/symmio-subgraph/subgraph-decode.js.map +1 -0
- package/dist/symmio-subgraph/subgraph-filters.d.ts +97 -0
- package/dist/symmio-subgraph/subgraph-filters.d.ts.map +1 -0
- package/dist/symmio-subgraph/subgraph-filters.js +39 -0
- package/dist/symmio-subgraph/subgraph-filters.js.map +1 -0
- package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +25 -5
- package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts.map +1 -1
- package/dist/symmio-subgraph/types/generated/analytics/gql.js +16 -11
- package/dist/symmio-subgraph/types/generated/analytics/gql.js.map +1 -1
- package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts +3640 -9
- package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts.map +1 -1
- package/dist/symmio-subgraph/types/generated/analytics/graphql.js +2 -2
- package/dist/symmio-subgraph/types/generated/analytics/graphql.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { BalanceChangesDocument as e,
|
|
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
|
|
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
|
|
6
|
-
"\n query
|
|
7
|
-
"\n query
|
|
8
|
-
"\n query
|
|
9
|
-
"\n query
|
|
10
|
-
"\n query
|
|
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
|
|
13
|
-
return
|
|
17
|
+
function p(e) {
|
|
18
|
+
return f[e] ?? {};
|
|
14
19
|
}
|
|
15
20
|
//#endregion
|
|
16
|
-
export {
|
|
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"}
|