GET
/
api
/
v1
/
user
/
positions
curl --request GET \
  --url https://mainnetapiserver.logx.network/api/v1/user/positions \
  --header 'Broker-Id: <broker-id>' \
  --header 'Logx-Key: <logx-key>' \
  --header 'Logx-Secret: <logx-secret>'
{
  "positions": [
    {
      "InitialMarginFraction": "<string>",
      "MaintenanceMarginFraction": "<string>",
      "amount": "<string>",
      "lastFundingRate": "<string>",
      "productID": 123,
      "vQuoteBalance": "<string>"
    }
  ],
  "tradeHistory": [
    {
      "amountx18": "<string>",
      "feex18": "<string>",
      "pnl": "<string>",
      "pricex18": "<string>",
      "productId": 123,
      "timestamp": "2023-11-07T05:31:56Z",
      "type": "<string>"
    }
  ]
}

Headers

Logx-Key
string
required

API key for authenticating requests to the LogX Network.

Logx-Secret
string
required

API secret for securing requests to the LogX Network.

Broker-Id
string
required

Unique identifier for the broker.

Response

200 - application/json
User positions and trade history were retrieved successfully.
positions
object[]

A collection of positions held by the user.

tradeHistory
object[]

A record of trades executed by the user.