I am debugging a couple of things here as I get started with NTDirect.dll for ATI.
Here is the behavior I have been able to get so far that agrees:
int Connected(int showMessage): It returns 0 when NT is running, -1 otherwise (good)
int SubscribeMarketData(string instrument): It return 0 if not already subscribed, else -1 (good)
int UnsubscribeMarketData(string instrument): It return 0 if not already unsubscribed, else -1 (good)
Now the issues:
[1] int SubscribeMarketData(string instrument): with any string as input passed on for "instrument" returns 0
Problem: If I pass "aadiuah aduh" as an instrument, I get a successful flag 0 as subscribed (this does not raise an error is attempting to resubscribe to the nonexisting instrument "aadiuah aduh")
[2] double CashValue(string account): this is returning a 0.0 cash value
Problem: The simulation account I have has a cash value of 3k
Please advise and note that the behavior in [1] is not correct since it returns that I subscribed successfully to an instrument (that does not exist). Thank you.
Pedro
Comment