How do you trade multiple pairs of trades at the same time in one strategy?

Author: bamsmen, Created: 2022-12-04 20:49:01, Updated:

The younger brother has a problem that I don't understand.

After adding multiple transaction pairs in policy settings

exchange.GetRecords,GetPosition以及下单之类的动作该怎么写?

How do you tell which transaction executed the current function against?

Please reach out for guidance.


More

The Little DreamThis problem needs to be described in more detail, and several pairs of transactions are set up: 1, adding multiple exchange objects to the strategy to bind different trading pairs. 2, an exchange object that routinely switches different trading pairs. This is the case if: 1, the operating exchange object is based on exchange, exchange is exchanges[0], i.e. the first exchange object added can be inferred as such. 2, if it is a swap transaction pair, then switch to any operation which works.