API Support Forum
OEC API > API Support > Unable to request/lookup contract for Liffe Robusta Coffee
Author Topic: Unable to request/lookup contract for Liffe Robusta Coffee
(6 messages, Page 1 of 1)
Moderators: VPfau
DAronow1742
Posts: 10
Joined: Sep 14, 2015


Posted: Jan 03, 2020 @ 08:04 PM             Msg. 1 of 6
I am unable to lookup symbols for Liffe Robusta Coffee futures using the new Gain API (although I had the same problem in the old OEC API). No other symbols I've seen give this error. The symbol lookup works but always returns zero contracts in the Contracts array event arg in the OnSymbolLookupReceived event.

Here's an example of my lookup request. In place of the hardcoded "COF10" I've tried "COF" and I even tried searching using WithDescription("Robusta") without any results. Also tried changing WithSymbol to WithBaseSymbol, didn't work either. Can you please provide a working call to lookup the Robusta Coffee contract?

client.Contracts.Lookup.ByCriteria(
new SymbolLookupRequestBuilder()
.WithResultCount(50)
.WithSymbol("COF10", TextSearchMode.AnyInclusion)
.WithExpression(new SymbolLookupExpressionBuilder()
.Push(new ContractTypeCriterion(ContractType.Electronic))
.Push(new ContractKindsCriterion(new[] { ContractKind.Future }))
.Push(SymbolLookupExpressionOperator.And)
.Build())
.Build());


Thanks!
Dave
David Aronow
DAronow1742
Posts: 10
Joined: Sep 14, 2015


Posted: Jan 03, 2020 @ 08:38 PM             Msg. 2 of 6
Also noted I cannot lookup any of the following contracts (same issue no contracts found):

Liffe White Sugar
ICE Sugar
ICE Orange Juice

I'm wondering if these are just not supported on the demo server?
David Aronow
AMartzke
Posts: 13
Joined:


Posted: Jan 06, 2020 @ 09:02 AM             Msg. 3 of 6
Which environment are you using? API/Dev or SIM/Demo?
DAronow1742
Posts: 10
Joined: Sep 14, 2015


Posted: Jan 06, 2020 @ 09:08 AM             Msg. 4 of 6
I believe it's the dev environment.
David Aronow
CMicciche902
Posts: 367
Joined:


Posted: Jan 06, 2020 @ 09:15 AM             Msg. 5 of 6
David,

In Developer environment (api.gainfutures.com), we only offer CME products. In production, we presently offer the following exchanges, see https://gainfutures.com/specifications/?by=Exchange:

CBOT
CFE
CME
COMEX
EUREX
ICE
ICEEUF
ICEEUS
ICEUSRP
MGE
NYMEX
Chris M
DAronow1742
Posts: 10
Joined: Sep 14, 2015


Posted: Jan 06, 2020 @ 09:17 AM             Msg. 6 of 6
Chris thanks for clarification -- that explains my problem.
David Aronow