max_pain_deribit #13

Open
ntorres wants to merge 29 commits from max_pain_deribit into fix_deribit_hist_queries

29 Commits (310_plus)

Author SHA1 Message Date
Nelson Torres 3526d5d564 minor refactor
cleaning the code
2024-12-08 13:38:23 -03:00
Nelson Torres 1ac643018a added aux method for update and check if completed 2024-12-08 13:34:58 -03:00
Nelson Torres f26a42e76f datetime for humans 2024-12-08 10:51:17 -03:00
Nelson Torres 3295303e37 More configs refactor
Now in the broker config file are the log configs for cryptofeed.
2024-12-07 11:15:43 -03:00
Nelson Torres f31d868a55 get_config refactor 2024-12-07 10:37:34 -03:00
Nelson Torres 0563b916a3 major refactor
all the logic now in the max_pain script
2024-12-07 10:17:27 -03:00
Nelson Torres 3e613ab2a0 fix the input values
for acm related to oi
2024-12-07 10:16:37 -03:00
Nelson Torres 57059da682 moved function out of api 2024-12-07 10:13:12 -03:00
Nelson Torres ca5e1b6ed1 removed unused variable
minor refactor
expiry date changed to 20DEC24
2024-12-06 11:09:17 +00:00
Nelson Torres ec1da6134b Update api.py
Now intrinsic values list is initialize in the aio_open_interest_feed_relay instead in the scope above.
2024-12-05 23:49:02 -03:00
Nelson Torres cbc5168b8d renaming variable
fixed variable name for better understanding.
2024-12-05 23:43:13 -03:00
Nelson Torres 2b70518eb9 Update poetry.lock 2024-12-05 23:32:09 -03:00
Nelson Torres bf86772d4b oi max_pain major refactor
Now the max_pain is calculated taking into account all strike prices and all close prices to find the intrinsic value as deribit.
2024-12-05 23:31:36 -03:00
Nelson Torres c4600a0392 auxiliar methods 2024-12-05 23:29:45 -03:00
Nelson Torres ec2123175a some refactor 2024-12-04 19:18:29 -03:00
Nelson Torres 5de14bc3f9 added first calcs for max_pain 2024-12-03 14:35:57 -03:00
Nelson Torres 6e08c60d53 deactivate cryptofeed debug log 2024-12-03 14:29:35 -03:00
Nelson Torres a9110b1196 Update api.py
Now we get the data for an e specific expiration date if and expiry_date is passed, or for all expiration if expiry_date is None
2024-12-02 09:47:20 -03:00
Nelson Torres 9abbd8ca1e Update api.py
open_interest for each strike price and each expiry date
2024-11-29 10:49:07 -03:00
Nelson Torres 24bf19c1fb Update api.py
get_currencies function
2024-11-29 10:41:20 -03:00
Nelson Torres 4ccda643b8 Update api.py
covers cases when option_type comes as PUT or P, same with calls CALL or C
2024-11-29 10:39:48 -03:00
Nelson Torres 7b02df9b49 Update api.py
This function receive a date in this format DDMMMYY and returns timestamps int
2024-11-29 10:38:17 -03:00
Nelson Torres f2f7855e54 max_pain_daemon 2024-11-26 15:16:21 -03:00
Nelson Torres 16480bd2d4 maybe_open_oi_feed 2024-11-26 15:15:59 -03:00
Nelson Torres 733b58250f open_oi_feed 2024-11-26 15:15:51 -03:00
Nelson Torres 564cd63014 aio_open_interest_feed_relay 2024-11-26 15:15:38 -03:00
Nelson Torres 17249205c9 get_instrumets for cryptofeed.FeedHandler 2024-11-26 15:15:01 -03:00
Nelson Torres b646133ead minor get_config fix 2024-11-26 15:11:04 -03:00
Nelson Torres cb436048d2 OpenInterest imports for cryptofeed 2024-11-26 15:10:24 -03:00