Docs
CAP Home
  • Intro
    • What's CAP?
    • Rewards
    • Features
    • Setting Up Your Wallet
  • Security
    • Overview
    • Risk Mitigation
  • Trade
    • Markets
      • Supported Markets
      • Market Parameters
    • Orders
      • Order Types
      • Order Settlement
      • Order Actions
      • Order Parameters
      • Cancellation Reasons
    • Positions
      • Overview
      • Position Actions
      • Position Parameters
    • History
  • Pool
    • Overview
    • Pool Actions
  • Stake
    • CAP Token Benefits
    • Where to Buy CAP
  • Legal
    • Terms of Use
    • Restricted Jurisdiction Policy
    • Risk Disclosure
  • Other
    • OTC
    • Contracts
    • Links
Powered by GitBook
On this page
  1. Trade
  2. Positions

Position Parameters

Assigned to every position in CAP's contracts.

Parameter
Type
Description

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.

PreviousPosition ActionsNextHistory

Last updated 2 years ago