Position Parameters

Assigned to every position in CAP's contracts.

ParameterTypeDescription

user

address

User that submitted the position.

asset

address

USDC address or 0x00..00 for ETH.

market

string

The market this position was submitted on.

margin

uint256

Collateral (real balance) tied to this position. In wei.

size

uint256

The position's size (margin × leverage). In wei.

price

uint256

The position's average execution price.

isLong

boolean

Whether the position is a long or short.

fundingTracker

uint256

Market funding rate tracker.

timestamp

uint256

Time at which the position was created.

Last updated