API Support Forum
OEC API > API Support > Unable to find contract(s)
Author Topic: Unable to find contract(s)
(1 messages, Page 1 of 1)
Moderators: VPfau
ASykes69
Posts: 12
Joined: Aug 25, 2008


Posted: Jun 08, 2023 @ 09:32 AM             Msg. 1 of 1
I used this example code that the API documentation provides, and the contract always returns null.

GF.Api.Contracts.IContract Contract = client.Contracts.Base.Get("ES")?.Contracts.First();
if (Contract == null)
Continue;