Skip to content

Commit

Permalink
add realized pnl
Browse files Browse the repository at this point in the history
  • Loading branch information
racso2609 committed Jan 13, 2025
1 parent 6d6f169 commit 2dd0d1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"name": "@parifi/sdk",

"version": "2.2.1",

"version": "2.2.3",
"description": "Parifi SDK with common utility functions",
"files": [
"dist",
Expand Down
12 changes: 8 additions & 4 deletions src/subgraph/positions/subgraphQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export const fetchPositionsByUserQuery = (userAddress: string, count: number = 2
txHash
liquidationTxHash
closingPrice
# realizedPnl
realizedPositionPnl
realizedPnlAfterFees
# realizedFee
# netRealizedPnl
createdTimestamp
Expand Down Expand Up @@ -101,7 +102,8 @@ export const fetchPositionsByUserQueryAndStatus = (
txHash
liquidationTxHash
closingPrice
# realizedPnl
realizedPositionPnl
realizedPnlAfterFees
# realizedFee
# netRealizedPnl
createdTimestamp
Expand Down Expand Up @@ -155,7 +157,8 @@ export const fetchUserPositionHistory = (userAddress: string, count: number = 20
txHash
liquidationTxHash
closingPrice
# realizedPnl
realizedPositionPnl
realizedPnlAfterFees
# realizedFee
# netRealizedPnl
createdTimestamp
Expand Down Expand Up @@ -192,7 +195,8 @@ export const fetchPositionByIdQuery = (positionId: string) =>
txHash
liquidationTxHash
closingPrice
# realizedPnl
realizedPositionPnl
realizedPnlAfterFees
# realizedFee
# netRealizedPnl
createdTimestamp
Expand Down

0 comments on commit 2dd0d1f

Please sign in to comment.