diff --git a/package-lock.json b/package-lock.json index 2a97c64..c93b950 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@parifi/sdk", - "version": "0.1.15", + "version": "0.1.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@parifi/sdk", - "version": "0.1.15", + "version": "0.1.16", "license": "ISC", "dependencies": { "@gelatonetwork/relay-sdk": "^5.5.5", diff --git a/package.json b/package.json index 8eaf778..3b2fcc7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@parifi/sdk", - "version": "0.1.15", + "version": "0.1.16", "description": "Parifi SDK with common utility functions", "files": [ "dist", diff --git a/src/subgraph/orders/subgraphQueries.ts b/src/subgraph/orders/subgraphQueries.ts index dac1342..8bbcc42 100644 --- a/src/subgraph/orders/subgraphQueries.ts +++ b/src/subgraph/orders/subgraphQueries.ts @@ -12,8 +12,13 @@ export const fetchOrdersByUserQuery = (userAddress: string, count: number = 10, orderDirection: desc ) { id - market { - id + market { + id + pyth { + id + price + lastUpdatedTimestamp + } } user { id } deadline @@ -93,6 +98,11 @@ export const fetchOrdersByIdQuery = (orderId: string) => } market { id + pyth { + id + price + lastUpdatedTimestamp + } } orderType isLong