Jump to content
  • 0

The one-to-many relationship EPICs have with instruments

Guest Benjamin


Guest Benjamin

When I first began to use the IG REST API, I believed that EPICs were unique instrument identifiers: that a given EPIC would always correspond to a specific instrument and that this instrument would never change.


However, I have recently discovered that this is untrue. For example, there are 19 daily Japan 225 tunnels available, which always have a set of corresponding EPICs of the form BT.D.NIK._.IP, where _ can take a value from 1 to 19. However, the size of tunnel specified by any given EPIC changes. Last week, BT.D.NIK.1.IP was +/-120 points, at the time of posting this it is +/-160 points.


This causes issues and opens questions.

  1. Are all EPICs mutable in this way? If not, which are and which are not?
  2. If I would like to programatically pull historical data or open positions on a market such as the Japan 225 daily tunnels, how can I be sure of what I am doing - I wouldn't want to open a position on a 160 tunnel when I thought it was 120?
  3. For the Japan 225 daily tunnels, there are historical prices going back to 2012-05-28; do these data correspond to the price for the EPIC (i.e. a whole bunch of different tunnel sizes), or the price for the given tunnel size, i.e. always 120? If the latter is true, it would be exceedingly useful to be able to pull data for all tunnel sizes that you store, rather than only the ones offered at the present time; however, if this is the case, are you computing prices for tunnels not currently offered, or are days simply missing for this? If they are computed, are these prices likely to be different to live prices (i.e. are live prices affected by demand in a way that unavailable prices are not?). Is what is true for the Japan 225 daily tunnels also true for other markets with one-to-many EPIC-instrument relationships?
  4. What is behind IG's decision to switch to different tunnel sizes in this case, and in others? - the Wall St and FTSE daily tunnels do not appear to switch (have they ever?).
  5. How can I know when switches have occurred?
  6. What else should I be aware of on this issue?

I need to make sure that I am analysing the correct data and opening the correct positions.

Link to comment

4 answers to this question

Recommended Posts

Hi ,


You're correct in that we do reuse some EPICs over the each trading day. For the most part each EPIC will be stable over the trading day so, for instance, if the FTSE ladder 1 is to be above 6500 when it comes on, it will be that all day.  It almost certainly won’t be that day to day and will refer to a different strike price. The only difference is with touches and tunnels. This is because as soon as a binary touch/tunnel is triggered it becomes untradeable which gives us the option to reuse the EPIC for another touch. For instance if FTSE touch 1 is to touch 6500 and at midday this happens, the touch would go offline and we would reuse to the EPIC  to put on a 6550 touch. So from a historical data point of view it’s not very useful information because for half of the day the EPIC will be referring to the 6500 strike and for the other half the 6550 strike.


So in relation to your questions, our Binary desk have provided the following:


  1. All EPICs will change on a day to day basis and in some cases when a strike has been hit for touches and tunnels they may change intraday.
  2. It's not possible to pull data for a specific tunnel size, as the EPIC for a specific tunnel may be different one day to the next. 
  3. Historical prices will be for each EPIC not each tunnel size and you're correct in thinking there will be days when certain tunnel sizes are not priced, since we only have a limited number of EPICs so use them for relevant tunnel sizes.
  4. We switch different tunnel sizes. If the Nikkei were to be about to open up down 500 points there is no point offering any tunnel before say +/-520 points so that is where we will start. Conversely if the Nikkei were to be in a low vol period and about to open up unchanged we would not feel it worthwhile offering the +-520 tunnel. The FTSE and DOW tunnels will almost certainly have changed at some point in the time frame you mention, but they change less often as the Nikkei often has bigger moves.

I hope that helps!



Link to comment
Guest Benjamin

Thanks for the info , this makes sense. I have a couple of follow up questions.


When making trades via the API, I would like to be sure of precicely what is being traded. Is the preferred/only way to check what a specific EPIC corresponds to, to check its name (e.g. "Daily N225 Cash to keep in range -460 to +460")?


If they did, do you happen to know when the DJIA and FTSE tunnels changed in the past, and if possible what these changes were? It would be really useful to be able to query what any given historical data point corresponded to specifically.



Link to comment
Guest DanC

Hey Benjamin,


Apologies for the delayed response on this. Our developers have confirmed that instrumentName is the only way to check what a specific epic refers to. Unfortunately we don't keep a record of the changes to the tunnels, nor is there anyway to pull this via the API, but our developers have taken note too see if they can make it easier to consume this data via the API.


Hope that helps,

Link to comment


This topic is now archived and is closed to further replies.

  • General Statistics

    • Total Topics
    • Total Posts
    • Total Members
    • Most Online
      10/06/21 10:53

    Newest Member
    Joined 08/02/23 10:46
  • Posts

    • Did Powell cap interest rate expectations and in turn revive the Dow and other risk benchmarks? More likely, fed rate expectations fueled by last week’s strong data run has likely find a natural equilibrium; but that means risk trends and the Dollar need a new guiding fundamental light to render tentative breaks into viable trends.              
    • I don't think the IG spreadsheet is supported anymore and like you have discovered it is tricky and time-consuming to get working. I've lots of experience using Excel for financial markets/trading purposes as well as using the IG API. I've built an Excel Add-in which makes using Excel with IG much easier, you don't need to deal with DDE, RTD etc. you can just use standard Excel formulas: https://www.excelpricefeed.com/ I think Excel is great for analysing prices, backtesting, modelling, generating signales etc. but I would not suggest that you try to use it for actual trading. Andy
    • Gold price and oil price rally, as lumber price drops back Gold and oil have managed to push higher, recovering some of last week’s losses. Meanwhile, lumber has fallen again. Source: Bloomberg  Chris Beauchamp | Chief Market Analyst, London | Publication date: Wednesday 08 February 2023  Gold pushes higher After the steep losses of Thursday and Friday, the price has attempted to edge higher. A higher low could be in the process of forming, though if the price breaches $1861 this view would be cancelled out. This would then bring the 50-day simple moving average (SMA) into view, and may well result in additional losses down towards $1800. A weaker US dollar might provide hope of a bounce that could set up a move back towards $1950. Source: ProRealTime WTI moves back above 50-day MA US crude oil has clawed back Friday’s losses, rebounding from the lows of the week. Having held the $72.80 area that was also support in early January, a move back towards the 100-day SMA could be in the offing. Above this, the January highs around $82 act as possible resistance. Having prompted a reversal that, for the moment, cancels out a bearish view, buyers will want to see a move above $84 if they are to lay the foundations of a move towards the 200-day SMA. A drop back below $72 is needed to revive the bearish view which seemed so strong on Friday, and would then open the way to $70 and lower. Source: ProRealTime Lumber losses accelerate After another day of losses, a lower high for lumber could be in place. A reversal from below the 200-day SMA would seem to bolster the bearish case, especially since the price failed to break above 54,000. This had acted as resistance back in October as well. Further declines target the 100-day and 50-day SMAs, before moving to the January low around 36,400. Buyers will need to see a move above 54,000 and the 200-day SMA to suggest that a more bullish view prevails. Source: ProRealTime
  • Create New...