โ†ช๏ธSub positions

When using the builder to create modules, you may have noticed the option to create a sub position. This allows you to create a second layer within your module's main position. For example, say your module is trading BTC/USDT, meaning that it holds Bitcoin while in position. Adding an ETH/BTC sub position allows your module to use a percentage of the Bitcoin that it bought to trade Ethereum. This is a great tool if you want to have a specific flow to trade multiple assets. Keep in mind that the sub position is part of the main position and must always be closed before the main position can be closed.

To add a sub position, navigate to the module overview and click 'Add Sub position' for the desired module. Next, select a trading pair and specify the percentage of the main position balance that the module may use for the sub position. Please note that you can only select trading pairs for which the quoted asset is the same as the base currency in the main position. For example, if the trading pair set in your main position is BTC/USDT, this means that any sub position added for that module will only be able to trade bitcoin pairs such as ETH/BTC.

Next, specify the maximum number of buy orders your module may place when opening a new sub position. After this is configured, you will be able to set buy and sell conditions. Once back in your overview, you can choose to allow 'Force sell' for your sub position. To do so, navigate to the edit button in your sub position and specify if you would like to allow force sell. This will allow your module to force close all its open sub positions when it receives a sell signal on the main position. Without this option turned on, your module will have to wait for all of its sub positions to be closed before it can process a sell signal for the main position.

Last updated