LogoLogo
  • Introduction
  • Get started
  • Trading Account
  • Signing
  • REST API
    • Account
      • Get Account Info
      • Get Positions
      • Get ABR payments
    • Market
      • Get Markets
      • Get Assets
      • Get Orderbook
    • Trade
      • Create Order
      • Cancel Order
      • Query order
      • List historical orders
      • List active orders
      • Trade list
    • Time
  • Web Sockets
    • Authentication
    • Connectivity check
    • Subscription
    • Public topics
      • trade
      • marketInfo
      • orderBook
      • accountCreated
      • kline
    • Private topics
      • conditionalOrder
      • balance
      • order
      • fill
  • Glossary
Powered by GitBook
On this page
  1. REST API
  2. Account

Get Positions

PreviousGet Account InfoNextGet ABR payments

Last updated 10 months ago

get
Query parameters
collateralIdstringRequired

Collateral identifier

Example: USDC
marketIdstringOptional

Market Identifier

Example: BTCUSDC
limitnumberOptional

Limit for the result set

Default: 25Example: 25
Responses
200Success
application/json
get
GET /v1/private/positions?collateralId=text HTTP/1.1
Host: 
Accept: */*
200Success
[
  {
    "marketId": "text",
    "direction": "LONG",
    "avgExecutionPrice": 1,
    "size": 1,
    "marginAmount": 1,
    "borrowedAmount": 1,
    "leverage": 1,
    "realizedPnl": 1,
    "liquidationPrice": 1,
    "maintenanceMargin": 1
  }
]