Forex com alavancagem
Obter uma posição
Uma posição tal como está neste momento.
curl --request GET \
--url "https://reirex.com/api/v1/margin/positions/LP-7K2M4QX3P9" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE"200 OKapplication/json
{
"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"
}Parâmetros de caminho
referencestringobrigatórioA referência da posição, como
LP-7K2M4QX3P9.
Resposta
referencestringA referência da posição, como
LP-7K2M4QX3P9.symbolstringO par de moedas.
sidestringlongoushort.unitsstringO seu tamanho, na primeira moeda do par.
leverageintegerA alavancagem com que foi aberta.
entryPricestringO preço a que abriu.
marginstringOs euros retidos para ela.
stopLossstring | nullO seu stop loss, se houver um definido.
takeProfitstring | nullO seu take profit, se houver um definido.
statusstringopen,closed, ouliquidatedquando teve fecho forçado.closePricestring | nullO preço a que fechou;
nullenquanto está aberta.pnlstring | nullO resultado menos o financiamento, em euros;
nullenquanto está aberta.resultstring | nullSó o resultado do preço, em euros;
nullenquanto está aberta.financingstringO financiamento por noite que já pagou, em euros.
feesstringAs comissões que já pagou, em euros.
closeReasonstring | nullPorque fechou:
owner,stop_loss,take_profit,liquidationoustaff;nullenquanto está aberta.openedAtstringQuando abriu.
closedAtstring | nullQuando fechou;
nullenquanto está aberta.liveobject | nullComo está agora uma posição aberta;
nulldepois de terminar.currencystringA moeda dos valores em euros: sempre
EUR.

