Design: data schema for opts ts storage #33

Closed
opened 2025-02-18 16:25:05 +00:00 by ntorres · 0 comments
Collaborator

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()

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()
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pikers/piker#33
There is no content yet.