Prodigy Dual Investment
Prodigy.Fi - English
Prodigy.Fi - English
  • About Prodigy.Fi
  • Dual Investment Overview
  • Benefits of Dual Investment
  • Buy Low and Sell High
    • Buy Low and Sell High Examples
  • Explore Dual Investment Vaults
    • The Different type of Dual Investment users
  • Vault Creation
    • Vault Parameters
    • Vault States
    • Vault Liquidity
  • APY and Reward Calculations
  • Trading Fees
  • Guides
    • User Guide
      • Connecting your wallet
    • Subscribe to a vault
      • Step-by-step guide: Subscribing to a vault
      • Viewing your vault subscriptions
      • Withdrawing from a subscribed vault
    • Create a vault
      • Step-by-step guide: Creating a vault
      • Viewing your vaults
      • Cancel remaining liquidity in a vault
      • Withdrawing from your vault
    • CLI Guide
  • References
    • Glossary
    • Error Messages
  • LEGAL
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  1. Guides

CLI Guide

PreviousWithdrawing from your vaultNextGlossary

Last updated 5 months ago

Download the latest copy of CLI tools here: Step 1: Download the source code

Step 2: Use a code editor to open the file

Step 3: Copy the file and remove “example” from the name

  1. config.example.json -> config.json

  2. create-vaults.example.csv -> create-vaults.csv

Step 4: Fill in the config.json parameter

  1. account - The wallet address

  2. privateKey - The wallet’s private key

Step 5: Change the create-vaults.csv parameter (You can also open the CSV file with Excel or other spreadsheet app)

  1. CreationDate - The date when the vault will be created

  2. Network - The blockchain network where the vault will be created

  3. TradingPair - The token asset pair

  4. LinkedPrice - The target price at which you want to buy or sell your crypto token at

  5. YieldPercentage - The reward offered to subscribers

  6. ExpireDate - The expiration date of the vault

  7. Direction - The vault strategy. “Buy Low” or “Sell High” Only

  8. Quantity - The amount of digital asset to be bought or sold

  9. Hedge - Experimental feature, please leave it blank for now

Step 6: Once you fill-up the parameter, save both the config.json & create-vaults.csv file

Step 7: Install dependencies.

npm i

Step 8: Run the batch_runner.ts script

npx ts-node ./src/batch_runner.ts

Step 9: Once the vault is created, you will see the message “Vault created successfully”.

rpcNode - The chain’s RPC node. You can find Berachain Testnet public RPC node here: Copy any one of the link shown on the website

https://chainlist.org/chain/80084
https://github.com/prodigyfi/dci-cli