Posted By: maccam912
Developing broker plugin, "BrokerCommand" causes wrong nTicks - 07/29/21 20:58
I wasn't sure where to post this. I know there is free support for developers writing C++ plugins. My plugin is in Rust, and is just a POC.
When I don't have "BrokerCommand" defined "BrokerHistory2" is called with "nTicks" = 300, as expected. Dates for start and end are parsed just fine etc.
When I define a "BrokerCommand" function that simply is returning 0 no matter what the arguments are everything falls apart for my "BrokerHistory2". nTicks is int::min (-2147483648), tStart is -89434288.33333333 and tEnd is -89434078.4252956. Needless to say, my broker doesn't have history from that far back
Does anyone here have any ideas as to why just defining "BrokerCommand" here is causing this problem? The Rust FFI has been working fine until now.
When I don't have "BrokerCommand" defined "BrokerHistory2" is called with "nTicks" = 300, as expected. Dates for start and end are parsed just fine etc.
When I define a "BrokerCommand" function that simply is returning 0 no matter what the arguments are everything falls apart for my "BrokerHistory2". nTicks is int::min (-2147483648), tStart is -89434288.33333333 and tEnd is -89434078.4252956. Needless to say, my broker doesn't have history from that far back
Does anyone here have any ideas as to why just defining "BrokerCommand" here is causing this problem? The Rust FFI has been working fine until now.