GET_TRADES - TRADE array buffer size?

Posted By: AndrewAMD

GET_TRADES - TRADE array buffer size? - 10/19/20 18:32

jcl,

Three issues:

1) The Web manual page is outdated and does not show GET_TRADES and brokerTrades() like the Zorro helpfile does.

2) If Zorro calls GET_TRADES, how does Zorro know how to size the TRADE array buffer? Does Zorro necessarily invoke GET_NTRADES first? If so, there should be a check mark under the "Internal" column for GET_NTRADES and clarify that the plugin should also support GET_NTRADES alongside GET_TRADES.

3) GET_TRADES does not have a return value specification. Is it the number of trades?
Posted By: jcl

Re: GET_TRADES - TRADE array buffer size? - 10/24/20 10:25

We have not defined a fixed array size. It should be sufficient for the maximum possible open positions. brokerTrades uses 20,000 as to my information.

Yes, the number of positions is returned. We'll update the online pages.
© 2024 lite-C Forums