multiple_prices_csv: are the CARRY_CONTRACTs etc contract months or expiries? #500
-
I can't find any dates (although I am lazy) that do not have class contractDate(object):
"""
A single contract date; either in the form YYYYMM or YYYYMMDD
*or* a list of contract dates
Typically
Use cases:
- normal contract eg 201712 and expiry date like 20171214
- VIX where contract needs to be defined as 20171214 because of weekly expiries
- Gas where contract month and expiry date are in different months
We store the expiry date separately
Representation is either 20171200 or 20171214 so always yyyymmdd
Either:
- we know the expiry date precisely and it's passed when we create the object
- OR we have to approximate by using the 1st of the month when the object is created
- OR we can make a better approximation by applying an offset to the approximate date
""" But the VIX multiple prices all have 00 so is the above comment valid? How do the expiries and contract dates interact with roll calendar creation, it looks like we just use the contract date and the roll params rather than explicit expires e.g. I'm trying an approach of rather than using Arctic to store timeseries I'm using Parquet files on disk with metadata stored somewhere either Mongo or Sqlite |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think I remember Rob writing on this on his blog, because there are weekly expiries on the VIX contract, you need to specify the day even if you are trading the monthly expiry I'd be interested to see how you implement the alternative data store |
Beta Was this translation helpful? Give feedback.
I think I remember Rob writing on this on his blog, because there are weekly expiries on the VIX contract, you need to specify the day even if you are trading the monthly expiry
post is here
I'd be interested to see how you implement the alternative data store