UniV2 - DCA Portfolio With Rebalancing

The UniV2 - DCA Portfolio With Rebalancing node performs a strategy that combines systematic rebalancing with dollar-cost averaging on Uniswap V2.

The strategy consists in regularly investing fixed amounts of USDT into a portfolio and periodically adjusting the asset allocation to maintain set exposure levels. The portfolio can contain any token deployed on EVM compatible blockchains as long as they can be traded on Uniswap V2.

Inputs

  • wallet:

    • Description: The wallet to be used for the swapping transactions. Requires an EVMWallet instance.

    • Allowed types: EVMWallet

    • Default value: None

  • token_1:

    • Description: The first of the assets that will compose the portfolio on which periodical investments and rebalancing will be performed. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 (wbtc)

  • token_1_chain:

    • Description: The blockchain on which periodical investments and rebalancing of the first asset will be performed.

    • Allowed types: BlockchainName

    • Default value: ethereum

  • token_1_percentage:

    • Description: The percentage of allocation of the first asset in the portfolio on which periodical investments and rebalancing will be performed.

    • Allowed types: decimal

    • Default value: 100

  • token_2 [Optional]:

    • Description: The second of the assets that will compose the portfolio on which periodical investments and rebalancing will be performed. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: None

  • token_2_chain [Optional]:

    • Description: The blockchain on which periodical investments and rebalancing of the second asset will be performed.

    • Allowed types: BlockchainName

    • Default value: None

  • token_2_percentage [Optional]:

    • Description: The percentage of allocation of the second asset in the portfolio on which periodical investments and rebalancing will be performed.

    • Allowed types: decimal

    • Default value: None

  • token_3 [Optional]:

    • Description: The third of the assets that will compose the portfolio on which periodical investments and rebalancing will be performed. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: None

  • token_3_chain [Optional]:

    • Description: The blockchain on which periodical investments and rebalancing of the third asset will be performed.

    • Allowed types: BlockchainName

    • Default value: None

  • token_3_percentage [Optional]:

    • Description: The percentage of allocation of the third asset in the portfolio on which periodical investments and rebalancing will be performed.

    • Allowed types: decimal

    • Default value: None

  • token_4 [Optional]:

    • Description: The fourth of the assets that will compose the portfolio on which periodical investments and rebalancing will be performed. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: None

  • token_4_chain [Optional]:

    • Description: The blockchain on which periodical investments and rebalancing of the fourth asset will be performed.

    • Allowed types: BlockchainName

    • Default value: None

  • token_4_percentage [Optional]:

    • Description: The percentage of allocation of the fourth asset in the portfolio on which periodical investments and rebalancing will be performed.

    • Allowed types: decimal

    • Default value: None

  • token_5 [Optional]:

    • Description: The fifth of the assets that will compose the portfolio on which periodical investments and rebalancing will be performed. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: None

  • token_5_chain [Optional]:

    • Description: The blockchain on which periodical investments and rebalancing of the fifth asset will be performed.

    • Allowed types: BlockchainName

    • Default value: None

  • token_5_percentage [Optional]:

    • Description: The percentage of allocation of the fifth asset in the portfolio on which periodical investments and rebalancing will be performed.

    • Allowed types: decimal

    • Default value: None

  • amount_usdt:

    • Description: The amount of USDT that will be invested at regular intervals.

    • Allowed types: decimal

    • Default value: 0

  • time_interval_min:

    • Description: The time interval between recurring buys and rebalances, expressed in minutes.

    • Allowed types: integer

    • Default value: 0

  • total_iterations [Optional]:

    • Description: The total number of iterations of buying and rebalancing that will be performed. If this field is not set it will keep iterating until the program is stopped.

    • Allowed types: integer

    • Default value: None

  • slippage:

    • Description: The slippage tolerance for the swapping transactions.

    • Allowed types: decimal

    • Default value: 0

Output

  • No output

Tags

  • crypto

  • EVM

  • ERC20

  • uniswap

  • DEX

Last updated