CarmineOptions / derisk-research

MIT License
4 stars 14 forks source link

ODHack: Make it easier to sum 2 Portfolio instances #113

Closed lukaspetrasek closed 1 month ago

lukaspetrasek commented 1 month ago

Adjust the Portfolio class so that two of its instances can be summed together, resulting in a portfolio containing tokens from both summed portfolios. The Portfolio class is implemented here: https://github.com/CarmineOptions/derisk-research/blob/master/src/helpers.py#L78.

lindsaymoralesb commented 1 month ago

Hi! @lukaspetrasek I would like to take this task. I estimate no more than a day for the changes to be ready. This would be my first issue on this project, but I have experience working with python. The proposed approach would be to implement a custom add method in the class, which will create a new instance of Portfolio with he combined tokens.

lukaspetrasek commented 1 month ago

Hi, assigning @lindsaymoralesb , because they provided a better description of the approach and lower ETA.

@lindsaymoralesb Let me know if everything is clear and whether you'll be working on the issue. If you have any questions, please ask here. What is you TG handler please? 🙏🏼

Consider joining our TG group. See also our contributor guidelines.

lindsaymoralesb commented 1 month ago

Thanks! Yes, I’ll be working on this. Already joined the group, my tg is @lindsaymorales. Will let you know if I have any doubts.

lindsaymoralesb commented 1 month ago

hey @lukaspetrasek ! so the changes are already in this PR.

lukaspetrasek commented 1 month ago

Hi, added 1 comment 😉

Josh-121 commented 1 month ago

will be willing to work on this issue, very experienced with python and can deliver in few hours from assignment.

lukaspetrasek commented 1 month ago

Hi @lindsaymoralesb , few more simple comments.

lindsaymoralesb commented 1 month ago

Hey! @lukaspetrasek did you leave them on the PR? I can’t find them

lukaspetrasek commented 1 month ago

Hey! @lukaspetrasek did you leave them on the PR? I can’t find them

Oh shoot, forgot to submit them. Now it's done.

lindsaymoralesb commented 1 month ago

No worries! Changes are ready for review.