Add traded token mint to JupiterPerpsPosition #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
Extend
JupiterPerpsPositionwith the mint address of the token traded by the position.The API should not return a display name such as
SOL,BTC, orETH. A UI or client can map the mint address to a display name later.Suggested API change:
Implementation:
JupiterPerpsPosition.entryPriceanddirectionunchanged.Non-goals:
Acceptance criteria:
JupiterPerpsPositioncontains the traded token mint address.getPosition(...)returns the traded token mint.getOpenPositions(...)returns positions with traded token mint populated.entryPriceanddirectionbehavior still works.