Leveraged forex
List positions
Your open leveraged positions with their result right now, or the ones that have ended, newest first.
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: openopenfor running positions,closedfor the ones that ended.One of
openclosedlimitintegerDefault: 50How many positions on a page.
From 1 to 100
beforestringThe
nextcursor from the page before.
Response
positionsobject[]The positions, newest first.
marketOpenbooleanWhether the currency markets are open now.
opensAtstring | nullWhen they open next;
nullwhile open.nextstring | nullA cursor for the next page, or
nullon the last one.

