Mind
  • 👋Introduction
    • 🧠What is the Mind language?
  • 👟Getting Started With Mindtrade
    • 📈What is MindTrade?
    • 🤯What can I do with Mindtrade?
    • 🏗️Program structure
      • 🧱Program Components
      • 📀What is a Node?
        • ▶️Start Node
        • ⚙️Action Node
        • ❓Conditional Node
        • 🔚Output Node
      • 🔄Execution Flow
    • 👷‍♀️How to Create a Program?
      • 🔧Creating Projects
      • ✂️Editing Programs
        • ✨Chat to Program
      • ⚡Executing programs
    • 🗃️Templates
    • 🤫Secrets
  • ❓Nodes Details
    • 🔄Execution Control Nodes
      • Start node
      • Conditional node
      • Output Node
    • ⚙️Action Nodes
      • ☘️Common
        • Addition
        • Subtraction
        • Multiplication
        • Division
        • Power
        • Absolute Value
        • Random integer
        • Print Output
        • Print String
        • Wait
      • 💰Crypto
        • ⛓️On-chain
          • 🌐EVM
            • EVM Wallet
            • Get EVM Coin Balance
            • Send EVM Coin
            • 💲ERC20
              • Get ERC20 Allowance
              • ERC20 Approve
              • ERC20 Balance Of
              • ERC20 Total Supply
              • ERC20 Transfer
              • ERC20 Transfer From
              • Check balance and send
              • Send ERC20 USD Value
            • 💱Uniswap V2 DEX
              • UniV2 - Swap Tokens for Tokens
              • UniV2 - Buy Tokens for ETH
              • UniV2 - Sell Tokens For ETH
              • UniV2 - Limit Buy
              • UniV2 - Limit Sell
              • UniV2 - Catch Next Trade
              • UniV2 - Copy Trading
              • UniV2 - Get Token Bought in Trade
              • UniV2 - Get Token Sold in Trade
              • UniV2 - DCA With Coin
              • UniV2 - DCA With USDT
              • UniV2 - DCA Portfolio With Rebalancing
              • UniV2 - Get Price
              • UniV2 - Get Price Impact
              • UniV2 - Get Price Variation Percentage
              • UniV2 - Add LP ETH
              • UniV2 - Add LP Token
              • UniV2 - Remove LP ETH
              • UniV2 - Remove LP Token
              • Buy And Send ERC20 USD value
              • 📊Technical analysis
                • UniV2 - Get OHLCV Candles
                • UniV2 - Buy on Indicator Signal
                • UniV2 - Sell on indicator signal
          • ☀️Solana
            • Solana Wallet
            • Get SOL Balance
            • Send SOL
            • 💲SPL
              • Get SPL balance
              • Send SPL Token
            • 💱Jupiter DEX
              • Solana Get Token Price in USD
              • Solana Get Token Price
              • Solana Swap Tokens Jupiter
              • Solana Limit Order Jupiter
              • Solana - DCA With SOL
              • Solana - DCA with USDC
        • 💹CEX
          • CEX Instance
          • CEX Create Limit Buy Order
          • CEX Create Limit Sell Order
          • CEX Create Market Buy Order
          • CEX Create Market Sell Order
          • CEX Create Stop Limit Buy Order
          • CEX Create Stop Limit Sell Order
          • CEX Create Stop Market Buy Order
          • CEX Create Stop Market Sell Order
          • CEX Cancel Order
          • Cex cancel all orders
          • CEX DCA
          • CEX DCA portfolio with rebalancing
          • CEX Fetch Current Ask
          • CEX Fetch Current Ask Volume
          • CEX Fetch Current Bid
          • CEX Fetch Current Bid Volume
          • CEX Fetch Free Balance
          • CEX Fetch Total Balance
          • CEX Fetch Used Balance
          • CEX Get Price Variation Percentage
          • 📊Technical analysis
            • CEX - Get OHLCV Candles
            • CEX - Buy on indicator signal
            • CEX - Sell on indicator signal
        • 📊Technical analysis
          • Technical Analysis
          • Check indicator latest signal
      • 🫂Social
  • 🔠OBJECT TYPES
    • Introduction
    • Types
      • Secret
      • CryptoExchangeOrder
      • ExchangeType
      • CryptoExchangeTimeframe
      • CryptoExhange
      • BlockchainName
      • EVMAddress
      • EVMPrivateKey
      • EVMTransaction
      • EVMWallet
      • UniswapV2Trade
      • OHLCV
      • IndicatorName
      • OperatorType
      • IndicatorData
      • SolanaAddress
      • SolanaPrivateKey
      • SolanaTransaction
      • SolanaWallet
Powered by GitBook
On this page

Was this helpful?

  1. Nodes Details
  2. Action Nodes
  3. Crypto
  4. On-chain
  5. EVM
  6. Uniswap V2 DEX

UniV2 - DCA Portfolio With Rebalancing

PreviousUniV2 - DCA With USDTNextUniV2 - Get Price

Last updated 10 months ago

Was this helpful?

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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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:

    • 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

❓
⚙️
💰
⛓️
🌐
💱
EVMWallet
EVMAddress
BlockchainName
EVMAddress
BlockchainName
EVMAddress
BlockchainName
EVMAddress
BlockchainName
EVMAddress
BlockchainName