API Support Forum
OEC API > API Support > Legs member in Contract
Author Topic: Legs member in Contract
(6 messages, Page 1 of 1)
Moderators: VPfau
PFranchetti
Posts: 17
Joined: Sep 26, 2012


Posted: Feb 21, 2013 @ 04:57 PM             Msg. 1 of 6
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


Posted: Feb 21, 2013 @ 05:39 PM             Msg. 2 of 6
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


Posted: Feb 21, 2013 @ 06:08 PM             Msg. 3 of 6
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


Posted: Mar 10, 2013 @ 07:53 AM             Msg. 4 of 6
Any news?
Thanks

Paolo Franchetti
PFranchetti
Posts: 17
Joined: Sep 26, 2012


Posted: Apr 01, 2013 @ 05:28 AM             Msg. 5 of 6
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


Posted: Aug 16, 2013 @ 04:25 PM             Msg. 6 of 6
Noticed now that this problem is fixed in OEC API current version.
Thank you

Paolo Franchetti