Skip to content
Sign up

Leveraged forex

List positions

Your open leveraged positions with their result right now, or the ones that have ended, newest first.

GET/api/v1/margin/positionsGet a key
curl --request GET \
  --url "https://reirex.com/api/v1/margin/positions" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE"

200 OKapplication/json

{
  "positions": [
    {
      "reference": "LP-7K2M4QX3P9",
      "symbol": "EURUSD",
      "side": "long",
      "units": "10000.00",
      "leverage": 20,
      "entryPrice": "1.17447",
      "margin": "500.00",
      "stopLoss": "1.16500",
      "takeProfit": "1.18500",
      "status": "open",
      "closePrice": null,
      "pnl": null,
      "result": null,
      "financing": "0.00",
      "fees": "10.00",
      "closeReason": null,
      "openedAt": "2026-10-14T16:14:15.412Z",
      "closedAt": null,
      "live": {
        "price": "1.17441",
        "pnl": "-0.51",
        "marginLevel": "0.9990",
        "liquidationPrice": "1.14530",
        "notional": "10000.00",
        "financingPerNight": "0.83"
      },
      "currency": "EUR"
    }
  ],
  "marketOpen": true,
  "opensAt": null,
  "next": null
}

An open position carries live: where it would close now, its result, its margin level and the price at which it would be closed out.

Query parameters

  • statusstringDefault: open

    open for running positions, closed for the ones that ended.

    One ofopenclosed

  • limitintegerDefault: 50

    How many positions on a page.

    From 1 to 100

  • beforestring

    The next cursor from the page before.

Response

  • positionsobject[]

    The positions, newest first.

  • marketOpenboolean

    Whether the currency markets are open now.

  • opensAtstring | null

    When they open next; null while open.

  • nextstring | null

    A cursor for the next page, or null on the last one.