There is no example for reading positions from the broker API because none of the plugins supports that yet. This is work in progress.

But for the second question, TradeStr[0] can be used with no restriction in a TMF. It needs only be set to the asset name when calling enterTrade().