Install Mosquito

git clone

cd mosquito

pip install -r requirements.txt

Uses mongodb...

sudo apt-get install gnupg curl

To import the MongoDB public GPG key, run the following command:

curl -fsSL | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor

Create the /etc/apt/sources.list.d/mongodb-org-7.0.list file for Ubuntu 22.04 (Jammy):

echo "deb [[arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg]] jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

Issue the following command to reload the local package database:

sudo apt-get update

Install the MongoDB packages

sudo apt-get install -y mongodb-org

sudo systemctl start mongod


show dbs


In the mosquito directory there is a sample ini, API keys from either Bitrex or Polo are required. Open the sample file and place the API keys in the sample.ini

python --help

mv mosquito.sample.ini mosquito.ini

Next you must back fill and store the back fill to mongodb

python --days 5 --pairs USDT_BTC


python --days 3 --all


python --days 1 --pairs BTC_*

Backtesting mode

python3 --backtest --plot

Simulation mode

python --paper


📝 📜 ⏱️  ⬆️