Design: data schema for opts ts storage #33
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
We need to define a suitable data schema for options timeseries storage.
The fundamental “source” data schema we need to store for computing max pain at this moment:
{ ‘timestamp’: int, ‘strike_price’: int, ‘option_type’: str, ‘open_interest’: Decimal, }
Maybe we need to evaluate which data we want to add to the above data schema.
For the storage we need to add methods like write_ohlcv() and read_ohlcv() for the new data schema: write_oi() and read_oi() (of course, this can be change)
Also, add a method like mk_ohlcv_shm_keyed_filepath() for the open interest shm keyed filepath: mk_oi_shm_keyed_filepath()