mimo automator is for advanced user to automate their trading with bash scripts using ioctl.
mimo automator is for advanced users only. You need to understand mimo's contract before use any of them. If you don't have enough knoweldge about the contract, ioctl, or bash, please STOP using this tool. Web app is always recommended.
mimo automator is for demostration purpose only. You might need to modify the code to make it work for you.
ioctl
install ioctl following the instructions: https://docs.iotex.io/developer/get-started/ioctl-install.html
ioctl config set defaultacc [default account]
git clone git@github.com:mimoprotocol/mimo-automator.git
You can use
. ./mimo-automator.bashrc
to source the file so all functions can be used in the current bash session.
If you want to add to your bash and use it in all bash sessions, you can add the above command to ~/.bashrc
or ~/.bash_profile
depending on your bash setup.
use getIotxToTokenInputPrice
or getTokenToIotxInputPrice
to get the price.
Usage
getIotxToTokenInputPrice [exchange address][iotx amount]
getTokenToIotxInputPrice [exchange address][token amount]
example:
getTokenToIotxInputPrice io1kwtjyq0n4c4nsfn9egffh55dq4n43klz0u77n7 10000
return from vita to iotx price with 10000 vita tokens.
iotxToTokenSwapInput [exchange adddress] [iotx amount] [minimal token to receive]
example:
iotxToTokenSwapInput io1kwtjyq0n4c4nsfn9egffh55dq4n43klz0u77n7 10 100
means use 10 iotx to buy vita with minimal receiving 100 vita or revert transaction.
You can add password of wallet by modifying the script and adding -P
parameter to ioctl to avoid password input for each trade.