Realtime quotes for a group of instruments
This is an example on retrieving prices. Make this session the primary one, so prices are realtime, if you have a subscription for realtime prices.On SIM, only prices for FxSpot are available, unless you connect your SIM account with your Live account.
When testing on live, you might need to enable OpenApi DataAccess in your account. Only then you will receive prices.
Trying to get prices of instruments traded on CME? You need an extra agreement in order to get CME prices and trading (make sure to mention all thirdparty apps)..
In most cases Market Data is only available for direct Saxo retail clients, or professional partners. Try this sample for Live to verify this for your account.
More info about prices can be found in the learn section.
InfoPrices request arguments:
Prices request arguments:
Response:
Click button to launch function.
JS code:
Click button to show code.