API Support Forum
OEC API > API Support > DesiredResultCount ignores setting only returns 50 contracts
Author Topic: DesiredResultCount ignores setting only returns 50 contracts
(3 messages, Page 1 of 1)
Moderators: VPfau
DAronow1742
Posts: 10
Joined: Sep 14, 2015


Posted: Sep 29, 2015 @ 06:47 AM             Msg. 1 of 3
I'm trying to retrieve all Brent Crude contracts like this (C# API):

var sl = new SymbolLookupCriteria();
sl.Mode = SymbolLookupMode.SymbolStartsWith;
sl.DesiredResultCount = 1000;
sl.ContractKinds.Add(ContractKind.Future);
sl.SearchText = "NSEA-M";
OECClient.Global.SymbolLookup(sl);


In the callback however I only get 50 contracts and the DesiredResultCount is set to 50. Any idea what's going on? Is there some other setting I'm missing?

Dave

David Aronow
CMicciche902
Posts: 348
Joined:


Posted: Sep 29, 2015 @ 09:52 AM             Msg. 2 of 3
Dave,

This is expected behavior. Symbol lookup will truncate results based on your "Quote" limit.

The default data limits for the OEC data feed are the following:

    10 Charts (MaxBars) (5 of which may be tick-based)
    5 DOMs (Depth of Market) aka Price Ladder or Matrix
    Histogram limit = MaxBars + DOM
    50 Futures Quotes
    50 Options on Futures Quotes


Chris M
VPfau
Moderator
Posts: 154
Joined:


Posted: Sep 29, 2015 @ 09:56 AM             Msg. 3 of 3
Dave,

DesiredResultCount is restricted from above by server's settings.
Right now it is 50

Vitaliy Pfau