using the C# NinjaTrader.Client.dll:
Sometimes, the client methods, like client.Orders("SIM101") or client.Strategies("SIM101") return an empty string, although the client is Connected and the client actually has the infos in its privtae HashTable ("client.keys").
So I made a workaround: If the "official" method return empty string , I try to get the value from the HashTable using the GetString method. It works, but that's not how it should be I guess:
string s = client.Orders(account);
if (string.IsNullOrWhiteSpace(s))
{
s = client.GetString("Orders|");
}

Comment