API Support Forum
OEC API > API Support > contracts List count is 0
Author Topic: contracts List count is 0
(2 messages, Page 1 of 1)
Moderators: VPfau
BBhaskar95
Posts: 1
Joined: Dec 08, 2010


Posted: Dec 20, 2010 @ 02:30 PM             Msg. 1 of 2
when I try to get the list of Contracts available, I see that the list count is 0. Can you suggest what is wrong there?

Bhaskar Roy
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Dec 20, 2010 @ 05:05 PM             Msg. 2 of 2
Hello,

initially, if you have no positions and orders, OECAPI doesn't load contracts (with some exceptions). To get contracts you need to use SymbolLookup or RequestContracts methods that download contracts from OEC server.

Victor Vins
Software Developer