@parifi/sdk
Version:
Parifi SDK with common utility functions
30 lines • 688 B
JavaScript
// src/subgraph/scripts/subgraphQueries.ts
import { gql } from "graphql-request";
var fetchIntegratorFeesWithTimestampQuery = (startTimeStamp, endTimeStamp) => gql`{
snxAccounts(
first: 1000
where: { type: PERP, totalOrdersCount_gt: 0 }) {
id
integratorFeesGenerated
accountId
owner {
id
}
orders(
where: {
status: SETTLED,
createdTimestamp_gt: ${startTimeStamp},
createdTimestamp_lt: ${endTimeStamp}
}
) {
id
referralFees
collectedFees
}
}
}
`;
export {
fetchIntegratorFeesWithTimestampQuery
};
//# sourceMappingURL=subgraphQueries.mjs.map