Status Eksekusi Eksternal (STP) dalam Laporan Perdagangan
Overview - in FX/CFD we support external execution via oneZero.
The flow is:
- Pricing is coning from oneZero as an LP for specific instruments.
- User open a trade => we update oneZero with the trades parameters (asset, volume, prices)
- When the trade is being closed (manually by the user, by stopLoss / takeProfit, Expiry) => we update oneZero.
In some cases oneZero reject the closeTrade call (from various reasons). Based on the current integration we we instructed to ignore the reject call and proceed with closing the trade on our side, but in such case we are sending an email notification to the broker:
ExternalExecutionRejected -
%firstName% %lastName%, User ID %userID%, tradeID %tradeID% - intrument %instrumentName%, Volume of %tradeVolume% closed on TS at %closeTime% and was rejected by external execution.
in our FX/CFD Trade reports in the CRM, we indicate the status of the trade in regards to the responses we get from oneZero:
- Internal: 1 (trade is not STP)
- STP Fill: 2 (trade closed on both sides)
- STP REJECTED: 3 (trade closed on TS side but was rejected on oneZero side - This is the trigger for the email notification)
- Trade Open: 4 (trade still open on both sides)
- STP Not Executed: 5 (trade closed on TS side but we are not sure what is the status on oneZero side)
***the above statuses names can be edited in the CRM under globalConfig - stpStatuses