My application connects to a C# API. I have a problem with an Event Definition. This is the definition:
Event tickByTickAllLast(reqId As Long, tickType As Long, time As String, Price As Double, Size, tickAttribLast As ComTickAttribLast, Exchange As String, specialConditions As String)
My question: is the 'Size' variable defined as 'Double' or as 'ComTickAttribLast' i.e. does it take the data type from the preceding or following data type?
I have no knowledge of C# (that may be obvious).
Thank you.
Nigel StanilandPosted Sep 28, 2024, 8:11 PM
Thanks for responding! My understanding of variable definition is as follows: 'size as double, price as double' could be written: 'size, price as double' meaning that size and price are both typed as double. In my example above (from the actual API) Size and tickAttribLast are both of variable type ComTickAttribLast which makes no sense to me. It is far more likely that Price and Size are of variable type double. It makes much more sense that only tickAttribLast is of variable type ComTickAttribLast. Because I have no knowledge of C#, I do not want to challenge a large company's API without better knowledge of how variables in C# are typed. Does the variable 'Size' take a type of Double or ComTickAttribLast according to standard C# definition?
Adarsh NigamPosted Sep 28, 2024, 6:53 PM
Can you give more specific context what is your blockage point?