Author |
Topic: Legs member in Contract (6 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
PFranchetti Posts: 17 Joined: Sep 26, 2012 |
I'm using API COM with VB6 and I cannot find "Legs" member in Contract class,so I can't access futures time spreads legs.
Paolo Franchetti |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Unfortunately, this property wasn't reflected to OEC COM API. We will take a look how to fix it.
Victor Vins Lead Software Developer |
||||
PFranchetti Posts: 17 Joined: Sep 26, 2012 |
Thanks. "Equals" and "GetHashCode" methods are missing too.
"MonthChar" property doesn't work as it's "unsupported variant type" Please remember also that all Date properties are incorrectly cast to Double in API COM Edited by PFranchetti on Feb 21, 2013 at 18:11:01 |
||||
PFranchetti Posts: 17 Joined: Sep 26, 2012 |
Any news?
Thanks Paolo Franchetti |
||||
PFranchetti Posts: 17 Joined: Sep 26, 2012 |
As far as I can see,problem is that Legs property is of type BasicList<Leg>,which is not present in OECAPICOM (and wouldn't even be allowed).Solution would be to create a LegList class (similar to PositionList, or PositionFillList, or NewsMessages...), then set Contract.Legs type to that class.
Paolo Franchetti |
||||
PFranchetti Posts: 17 Joined: Sep 26, 2012 |
Noticed now that this problem is fixed in OEC API current version.
Thank you Paolo Franchetti |
||||