Whenever there is a change to a requested price, the main
Framework.OnMessage = function(Msg) {
if (Msg.is(FXB.MessageTypes.PRICE)) {
Msg.quotes[] contains a list of price changes
}
…
};
The FXB.Message object will contain a
Each object in the
| Property | Description |
| instrumentId | ID of the instrument, such as EUR/USD |
| time | Time of the most recent quote |
| bid | Latest bid price |
| ask | Latest ask price |
| high | High of the current period. Availability depends on account features. |
| low | Low of the current period. Availability depends on account features. |
| change | Change amount during the current period. Availability depends on account features. |
| changePc | Change amount as a percentage. Availability depends on account features. |
| updateMarker | See below |
You can react to the changed prices either by looking at the
The
The possible flags are members of the
| FXB.UpdateFlags. | Description |
| BID | Bid has changed |
| ASK | Ask has changed |
| HIGH | High has changed |
| LOW | Low has changed |
| CHANGEONDAY | Change-on-day has changed |