Trading hours

14 posts / 0 new
Last post
finjulhich
Trading hours

Hello,

Are any contract's trading hours available through REST?

Rds,

APItrader
The response from GET

The response from GET /markets/{epic} has a field instrument->openingHours but it seems to only be set for a handful of instruments.

finjulhich
yeah that's what I've seen

yeah that's what I've seen too.
are those London times?

Chris
Trading hours

Hey both,

The Trading Hours should be formatted to your local time.

APItrader, can you send me any EPICs for which you don't receive openingHours for.

Thanks,
Chris

finjulhich
Hey Chris,

Hey Chris,
There are plenty. I think most of them.
Here is one: CF.D.USDCAD.JUN.IP

Thanks,

APItrader
Like finjulhich said there

Like finjulhich said there are many. Here are some examples where openingHours is null:

IX.D.AEX.IFM.IP
IX.D.ASX.IFM.IP
IX.D.CAC.IFM.IP
IX.D.DAX.IFMM.IP
IX.D.DOW.IFM.IP
IX.D.FTSE.IFM.IP
IX.D.HANGSENG.IFM.IP
IX.D.HSCHIN.IFM.IP
IX.D.IBEX.IFM.IP
IX.D.MIB.IFM.IP
IX.D.NASDAQ.IFM.IP
IX.D.NIKKEI.IFM.IP
IX.D.OBX.IFM.IP
IX.D.OMX.IFM.IP
IX.D.SAF.IFMM.IP
IX.D.SINGAPORE.IFM.IP
IX.D.SMI.IFM.IP
IX.D.SPTRD.IFM.IP
IX.D.STXE.IFM.IP
IX.D.XINHUA.IFM.IP

Plus all currencies, but perhaps that's because they trade 24/5?

Chris
Trading hours

Thanks for the examples!

All these markets are traded 24 hours and currently we don't specify the trading hours for these markets via the web platform. However, we're just checking whether openingHours should return something in these cases.

Chris

APItrader
OK, so in this context

OK, so in this context "market" means your tradeable instruments rather than the underlying market. (It would be great if "market" had a unique meaning in the documentation. Is there any particular reason why the tradeable instruments can not consistently be referred to as "instruments?")

Is there any way to retrieve the opening hours of the underlying market?

Chris
Trading hours

Hey APITrader,

We don't currently expose the hours of the underlying market. We've added this as a potential feature for future development.

Chris

finjulhich
I've taken a look at all the

I've taken a look at all the igindex instruments (all futures) I want at 22:55 Thu 2 Apr LDN time.
Things are consistent.

All instruments with openingHours null have a marketStatus=TRADEABLE
Those instruments with openingHours encompassing 22:55 have marketStatus=TRADEABLE
Those instruments with openingHours that closed before 22:55, have marketStatus=EDITS_ONLY (can these ever be CLOSED?)

Good to know!

The other statuses: OFFLINE, SUSPENDED, ON_AUCTION_XXX, when do they happen?

finjulhich
I would not change

I would not change openingHours from its current return value of null for 24hours ig instruments.
If you were to expose the underlying markets' trading hours, please use another field, like ulOpeningHours

Chris
Trading hours

Thanks for the feedback finjulhich. We'll try and take this onboard!

Chris

kvanderven
Hi Chris,

Hi Chris,

I'm aware this is an old post, but has there been any news on wether or not trading hours will be exposed in a future release of the API?
This would be useful so that we don't have to make API calls every time to check wether or not a market is "TRADEABLE", but we could only make calls during the opening hours, and update those hours on a regular basis. Would save us a lot of unnecessary requests.

Thanks in advance!

Chris
Trading hours

Hi kvanderven,

I'd suggest subscibing to MARKET_STATE via lightstreamer:

http://labs.ig.com/streaming-api-reference

Hope that helps.

Chris

Log in or register to post comments