API Support Forum
OEC API > API Support > No results when searching for GGCH
Author Topic: No results when searching for GGCH
(10 messages, Page 1 of 1)
Moderators: VPfau
TLau471
Posts: 50
Joined: Aug 27, 2013


Posted: Jan 25, 2021 @ 12:50 AM             Msg. 1 of 10
Hi,


_frontEsSymbolLookupRequestID = client.Contracts.Lookup.ByCriteria(New SymbolLookupRequestBuilder().WithResultCount(1).WithSymbol("GGCH", TextSearchMode.StartsWith).Build())


I get no symbols with the above code, GGCH21 ought to match, right?
TLau
TLau471
Posts: 50
Joined: Aug 27, 2013


Posted: Jan 25, 2021 @ 09:02 PM             Msg. 2 of 10
Hi,

Can someone assist please? This is affecting customers who are using DEMO.
TLau
ETrifonov
Posts: 60
Joined: Feb 09, 2015


Posted: Jan 26, 2021 @ 01:50 AM             Msg. 3 of 10
Hello TLau,

Your code should work.

I've double checked, there are no issues with GGCH contracts on DEMO environment:

Client.Contracts.Lookup.SymbolLookupReceived += OnSymbolLookupReceived;

var ggchRequest = new SymbolLookupRequestBuilder()
.WithResultCount(1)
.WithSymbol(TextSearch.CreateStartsWith("GGCH"))
.Build();

Client.Contracts.Lookup.ByCriteria(ggchRequest);

private void OnSymbolLookupReceived(IGFClient client, Api.Contracts.Lookup.SymbolLookupEventArgs e)
{
UpdateContracts(e.Contracts);
}


Can you please provide your DEMO user and account?
Did your code working fine on API environment?

Thank you.
Evgeny
TLau471
Posts: 50
Joined: Aug 27, 2013


Posted: Jan 26, 2021 @ 02:00 AM             Msg. 4 of 10
Hi Evgeny,

Our application has cleared the API stage and is in production.

I just checked again, `e.Contracts.Count` is 0, not just for my DEMO account `LSeong64` but for other traders who reported the issue.

The code works for ESH and other symbols in DEMO and LIVE. Only GGCH is affected.
TLau
ETrifonov
Posts: 60
Joined: Feb 09, 2015


Posted: Jan 26, 2021 @ 02:40 AM             Msg. 5 of 10
But what about API, does your code working there right now?
As I said, I see no issues on platform with GGCH contracts and my account is able to fetch that contracts.
So, please check your code with API environment.
Evgeny
TLau471
Posts: 50
Joined: Aug 27, 2013


Posted: Jan 26, 2021 @ 02:46 AM             Msg. 6 of 10
The API account always expires, please issue me 1 if you require me to test against the API.

1. You asked for my account, can you check the logs on your DEMO server please?
2. Let's not get into a you say, I say situation. My code works for ESH, YMH and so on.
3. If I search for GGC, only GGCF21 is returned.

Once again, PLEASE check the server logs.
TLau
ETrifonov
Posts: 60
Joined: Feb 09, 2015


Posted: Jan 26, 2021 @ 03:04 AM             Msg. 7 of 10
Just checked logs.
You are sending requests for different text - 'GCCH' instead of 'GGCH'.

Evgeny
TLau471
Posts: 50
Joined: Aug 27, 2013


Posted: Jan 26, 2021 @ 03:08 AM             Msg. 8 of 10
Hi Evgeny,

Ok, it was my mistake, now it is working.

But just to re-iterate, yesterday when I search GGCH, it was not working. And when I search GGC, only GGCF was returned.

Anyway, thank you.
TLau
ETrifonov
Posts: 60
Joined: Feb 09, 2015


Posted: Jan 26, 2021 @ 03:14 AM             Msg. 9 of 10
Hi,

I did not check all your requestsm but looks like yesterday you requested just one result for GGC.
So, it is expected to get only one contract back.
I did double check and see no issue with platform, so please check your code.

Thank you.
Evgeny
TLau471
Posts: 50
Joined: Aug 27, 2013


Posted: Jan 26, 2021 @ 03:19 AM             Msg. 10 of 10
Hi Evgeny,

My customer complained using a compiled binary. Now his issue is gone.
What I'm trying to say here is, the code is unchanged, so I don't see how it is the issue.

The binary searches for GGCH by default.

I tested by changing to GGC to try and understand what's going on. Now I understand it only returned GGCF because the code was asking for only 1 result.
TLau