Add direction to JupiterPerpsPosition #16
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 the Jupiter Perps position API with the position direction.
Add a direction field to
JupiterPerpsPositionso callers can see whether a position isLONGorSHORT.Suggested API change:
Add enum:
Implementation:
sidefield from the Jupiter Perps Position account.JupiterPerpsPositionDirection.Non-goals:
Acceptance criteria:
JupiterPerpsPositioncontains a direction field.getPosition(...)andgetOpenPositions(...)still work.