Complete Historical data for all contracts of each of the symbols

ishwarm
Currently, the Historical data API provides Continuous contract data assuming the Rollover to next contract happens on the expiry date. But this is not the case. Different strategies may use different rollover triggers like: rollover to next contract when it's volume and / or open interest is greater than that of current contract. Or rollover to next contract one day before the delivery intention period starts. Or may be some other date based logic or combination of conditions.

So, could you provide the below using which we can ourselves splice together the contracts for each symbol based on any logic that we may have for the Rollover dates:

1. List of all contracts for each symbol. For e.g. for NIFTY it would be NIFTYFEB18FUT, NIFTYJAN18FUT, ... etc.
2. The daily data for all the traded days for each particular contract.

Let me know if you need any further clarification...
  • sujith
    Hi @ishwarm,
    You can get all the instruments of NFO segment that is being traded for the day in the instrument dump.
    we do provide day candles for all the expired instruments.
  • ishwarm
    @sujith I am referring to the data for all the contracts starting from time you provide history for. The instrument dump only has currently active contracts list. Day candles for expired instruments are provided only for the respective current month contracts throughout but not for the next month and other contracts as I understand. Basically, we would need all the historical data for all the historical contracts.
  • sujith
    If you send next month instrument token(NIFTY18MAYFUT) and ask for historical data of date Feb 2018 then you will get data of the next month instrument in Feb 2018.
    It is not confined to the current month.
  • ishwarm
    ishwarm edited April 2018
    Ok, let me clarify. By historical data for past contracts I meant that I should be able to get the data for NIFTY17SEPFUT contract or NIFTY16JULFUT contract, for example. I may not have the instrument tokens for these past years contracts, but should be able to query using the above contract names.
  • sujith
    You can get data for NIFTY17SEPFUT using current month instrument token and request for the required dates with continuous flag true.
  • ishwarm
    Yes, I can get data for NIFTY17SEPFUT from 01-sep-2017 to 28-sep-2017 using continuous flag as true. But NIFTY17SEPFUT itself was also traded in the month of Aug 2017, for which the data is not available right now. Any way you could support getting this data too?
  • sujith
    It is available, you can pass NIFTY18MAYFUT (future month's instrument token) instrument token and pass the date with continuous flag true.
  • ishwarm
    Ah ok. I understand how to get it now, thanks!
    Also, another requirement was to have the Open Interest data and Traded Value or Turnover (in INR) for the day for the contract in addition to the Volume data that's available.
  • sujith
    We don't have historical OI and Traded value.
Sign In or Register to comment.