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.