get https://api.cvex.trade/v1/portfolio/positions
This endpoint offers a detailed view of all positions held in an account:
contract
: The symbol of the contract, represented as a string.quantity_contracts
: The total number of contracts held. Positive for longs, negative for shorts.quantity_steps
: The number of steps of the contract held. Positive for longs, negative for shorts.quantity_quote
: The total quote currency amount of the contracts held. Positive for longs, negative for shorts.net_value
: The current net value of the position.average_entry_price
: The price at which the position was entered.liquidation_price
: Estimated price at which position will be liquidated.unrealized_profit
: The current unrealized profit or loss from the position versus the Mark price.deleverage_rank
: The ranking of the position for deleveraging in the event of liquidation, represented as a fraction from 0 to 1.
Each request to this endpoint costs 1 API credit.