You can use
It splits a bulk action such as FLATTEN into the individual jobs for closing each open order or trade
It converts variable definitions such as
Framework.ValidateOrder({
tradingAction: FXB.OrderTypes.SELL_LIMIT,
openPrice: {offset: 0.0020},
instrumentId: "EUR/USD",
volume: {lots: 0.20}
}, function (Msg) {
… result of validation
});
The
| Property | Description |
| result | An FXB.Result object. If validation succeeded then |
| tradingJobs[] | If successful, an array of the individual trading jobs after validation |
For example, after validation of the above request,
{
instrumentId: "EUR/USD",
tradingAction: FXB.OrderTypes.SELL_LIMIT,
volume: 20000, // conversion of {lots:0.20}
openPrice: 1.23456 // conversion of variable {offset:0.0020} to fixed price
}