API Support Forum
User Profile

Viewing User Profile for: JSmith5611


About

Aug 11, 2015 02:10 PM

Sep 21, 2022 03:02 PM

Sep 21, 2022 03:07 PM



Post Statistics
JSmith5611 has contributed to 172 posts out of 5432 total posts (3.17%) in 2602 days (0.00 posts per day).

20 most recent posts:

API Support » GF API COM Custom Compound Help Sep 21, 2022 @ 03:02 PM (Total replies: 22)

Where does it say that?

There's no side property here:

https://gainfutures.com/GFAPI/html/T_GF_Api_Contracts_Legs_Leg.htm
Jason Smith


API Support » GF API COM Custom Compound Help Sep 21, 2022 @ 02:30 PM (Total replies: 22)

Legs of contracts (once created) don't really have a side. They do have a quantity, which can be negative.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 21, 2022 @ 11:31 AM (Total replies: 35)

What do you get when you case the SubscriptionType to an integer?
should either be 2 if only DOM, or 3 if DOM + TopOfBook

Also, what programming language are you using?
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 20, 2022 @ 02:50 PM (Total replies: 35)

Unfortunately, COM strips out the markers for flag enums.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 20, 2022 @ 02:12 PM (Total replies: 35)

its a flag enum.

try:

VARIANT_BOOL hasDom = (pDfe->SubscriptionType | GF_Api_COM::DataFeedEntitlementSubscriptionType::DataFeedEntitlementSubscriptionType_DOM) == GF_Api_COM::DataFeedEntitlementSubscriptionType::DataFeedEntitlementSubscriptionType_DOM));

The values in the enum are:

TopOfBook = 1,
DOM = 2

it is possible to have BOTH be true, in which case the underlying value of the enum will be 3.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 01:15 PM (Total replies: 35)

I installed the same build you did, GAIN GFAPI COM 4.7.917.200.exe, downloaded from the website.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 12:59 PM (Total replies: 35)

This really doesn't make sense. This should be working, you have the right version installed.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 11:56 AM (Total replies: 35)

Do you just have one subkey under
\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Record\{8CE4A503-8AFF-388C-A2AA-B9DAAFA72E05}
?
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 11:16 AM (Total replies: 35)

No, just the existence of that key is enough to show me the correct version is installed, since that it the UUID of the DataFeedEntitlement SubscriptionType enum.

I'm still not sure what's going on, but i'm continuing to look through the registry to see if there's a way to tell if multipler versions are installed.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 11:00 AM (Total replies: 35)

does this registry key exist for you?

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Record\{FA7A3A10-731F-323E-BA0F-DFA47394A29C}

if so, what's underneath it?
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 10:40 AM (Total replies: 35)

That are the correct versions.. I don't know why its working for me and not for you
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 10:19 AM (Total replies: 35)

Just the first 8 or so digits will work
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 09:52 AM (Total replies: 35)

Can you send me your File Version and Product Version of the GF.Api.COM.dll in your C:\Program Files (x86)\GAIN\GFAPI COM folder?
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 08:58 AM (Total replies: 35)

I'm seeing it just fine in the .tlb/.tlh

Did you uninstall the old version before installing the newer one?
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 08:34 AM (Total replies: 35)

Sent location in PM
Jason Smith

Edited by JSmith5611 on Sep 19, 2022 08:35 AM

API Support » GF API COM Custom Compound Help Sep 19, 2022 @ 07:42 AM (Total replies: 22)

Please check 4.7.917.200
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 19, 2022 @ 07:13 AM (Total replies: 35)

Please check 4.7.917.200
Jason Smith


API Support » GF API COM Custom Compound Help Sep 15, 2022 @ 09:08 AM (Total replies: 22)

I have a test build with this that i can send you, and it should be released this weekend officially.
Jason Smith


API Support » GF API COM: No DataFeedEntitlementSubscriptionType Inside of IDataFeedEntitlementPtr Sep 15, 2022 @ 09:07 AM (Total replies: 35)

I have a test build with this that i can send you, and it should be released this weekend officially.
Jason Smith


Order Execution » CompoundType "Custom" cod. 88 Sep 14, 2022 @ 06:56 AM (Total replies: 10)

You're welcome. Is there anything else you need assistance with?
Jason Smith