Zum Inhalt springen
Registrieren

Forex mit Hebel

Positionen auflisten

Ihre offenen gehebelten Positionen mit ihrem aktuellen Ergebnis, oder die beendeten, die neueste zuerst.

GET/api/v1/margin/positionsSchlüssel holen
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
}

Eine offene Position enthält live: wo sie jetzt schließen würde, ihr Ergebnis, ihr Margin-Level und den Kurs, zu dem sie glattgestellt würde.

Query-Parameter

  • statusstringStandard: open

    open für laufende Positionen, closed für beendete.

    Einer vonopenclosed

  • limitintegerStandard: 50

    Wie viele Positionen pro Seite.

    Von 1 bis 100

  • beforestring

    Der next-Cursor der vorherigen Seite.

Antwort

  • positionsobject[]

    Die Positionen, die neueste zuerst.

  • marketOpenboolean

    Ob die Devisenmärkte gerade geöffnet sind.

  • opensAtstring | null

    Wann sie das nächste Mal öffnen; null, solange sie geöffnet sind.

  • nextstring | null

    Ein Cursor für die nächste Seite, oder null auf der letzten.