Leveraged forex
Open a position
Go long or short on a currency pair at the market, with up to 30 times leverage.
curl --request POST \
--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" \
--header "Content-Type: application/json" \
--data '{"symbol":"EURUSD","side":"long","leverage":20,"margin":"500","stopLoss":"1.16500"}'201 Createdapplication/json
{
"reference": "LP-7K2M4QX3P9",
"symbol": "EURUSD",
"side": "long",
"units": "10000.00",
"leverage": 20,
"entryPrice": "1.17447",
"margin": "500.00",
"stopLoss": "1.16500",
"takeProfit": null,
"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"
}Leverage multiplies losses as well as gains. Before the first position, the account's owner confirms the risk once on the site. Until then this answers risk_ack_required, and no request can confirm it for you.
Size a position by the euro margin to put in, or by units of the pair's first currency: one or the other. The margin is held from your euro balance, and the taker fee is charged on the full size.
Bodyapplication/json
symbolstringrequiredThe currency pair.
sidestringrequiredlongto gain as it rises,shortto gain as it falls.One of
longshortleverageintegerrequiredHow many times the margin the position is worth.
From 1 to 30
marginstringThe euro to put in, as a decimal string.
unitsstringThe size in the pair's first currency, instead of
margin.stopLossstringA price that closes the position to limit a loss.
takeProfitstringA price that closes the position to take a gain.
Response
referencestringThe position's reference, such as
LP-7K2M4QX3P9.symbolstringThe currency pair.
sidestringlongorshort.unitsstringIts size, in the pair's first currency.
leverageintegerThe leverage it was opened with.
entryPricestringThe price it opened at.
marginstringThe euro held for it.
stopLossstring | nullIts stop-loss, if one is set.
takeProfitstring | nullIts take-profit, if one is set.
statusstringopen,closed, orliquidatedwhen it was closed out.closePricestring | nullThe price it closed at;
nullwhile open.pnlstring | nullIts result less financing, in euro;
nullwhile open.resultstring | nullIts price result alone, in euro;
nullwhile open.financingstringThe overnight financing it has paid, in euro.
feesstringThe fees it has paid, in euro.
closeReasonstring | nullWhy it closed:
owner,stop_loss,take_profit,liquidationorstaff;nullwhile open.openedAtstringWhen it opened.
closedAtstring | nullWhen it closed;
nullwhile open.liveobject | nullWhere an open position stands now;
nullonce it has ended.currencystringThe currency of the euro figures: always
EUR.

