-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ContractDetails #3
Comments
Indeed! It's on the todo list. We'll need to make some new classes and types and add these new details to the protocol parser for those fields. Most of the work will be a refactor of the twsapi/ibapi python implementation's protocol decoder in if (
self.serverVersion >= MIN_SERVER_VER_FUND_DATA_FIELDS
and contract.contract.secType == "FUND"
): |
Did you want to add me to the repo and I can assign this to myself? |
Thanks! Yeah, feel free to give it a try. These are a different input format than anything else, so it may take some decisions to figure out what goes where and how. I'll select you on the assigned field and just drop a PR if it looks good enough to review. I'd be curious to test it too but I don't know what symbols are this Looking through it a bit, those BUT — these should just be dicts mapping the key to the enum value then? They have that awful thing called |
@ClimberMel have you been able to progress on this one? |
No, I got sidetracked. I was having trouble finding example to test it with. I'm not familiar with bonds, and that is all these changes pertain to. |
Yeah, testing this would be a bit weird. Probably just making it match the existing twsapi interface should be good enough then people can complain if it doesn't work. I think these are only informational APIs anyway and don't impact trading at all? I can look through it again to see what matches for adapting if your attempts have run out of steam. |
You know that's not a bad idea, I have the code changes so I'll upload them and wait to see if anyone uses them. |
These fund items have been added under def ContractDetails
Also this code has been added at the end:
The text was updated successfully, but these errors were encountered: