I think you suggestion makes sense. It is most like caused by the compatibility between the TWS API library i am using and the TWS software itself. TWS keeps upgrading itself automatically but my TWS API was from a snapshot a little while ago.
?
There is no officially TWS API C# library build. I think I simply got the source code and compile it myself. I can see the Constants is defined as below.
?
namespace IBApi
{
? ? public static class Constants
? ? {
? ? ? ? public const int ClientVersion = 66;//API v. 9.71
? ? ? ? public const byte EOL = 0;
? ? ? ? public const string BagSecType = "BAG";
? ? ? ? public const int REDIRECT_COUNT_MAX = 2;
? ? ? ? public const string INFINITY_STR = "Infinity";
? ? ? ? public const int FaGroups = 1;
? ? ? ? public const int FaProfiles = 2;
? ? ? ? public const int FaAliases = 3;
? ? ? ? public const int MinVersion = 100;
? ? ? ? public const int MaxVersion = MinServerVer.MIN_SERVER_VER_BOND_ISSUERID;
? ? ? ? public const int MaxMsgSize = 0x00FFFFFF;
? ? }
}
MIN_SERVER_VER_BOND_ISSUERID's value is 176 in MinServerVer.
?
?
My TWS is update to date and her is the version information.
?
Trader Workstation Copyright ? 2000-2024 LICENSOR to Interactive Brokers ALL RIGHTS RESERVED ?Build 10.30.1l, Aug 13, 2024 4:01:03 PM Jolt Build 1.18.11, Nov 17, 2023 03:25:51 PM Nia Build 2.25.1, May 31, 2024 06:07:02 PM ModelNav Build 1.13.2, Jan 24, 2022 04:59:21 PM Riskfeed Build 2.45.10, Jun 7, 2024 10:46:27 AM ?Java Version: 1.8.0_202, OS: Windows 10 (amd64, 10.0), Memory: heap max 4096Mb, current 184Mb?
?
Can anyone give me an example how you use the PriceCondition? I used to be able to find some on Interactive Broker's documentation but after they reorganized their API documentation, I don't see any such example now.
?
?
?