Menu
Home
About
Our Role
Goals
The Team
Roadmap
Tokenomics
How To Buy
Knowledge Base
Contacts
Sitemap & Links
A.I.
Chart
Shop
IMMORTALITY
🏠
⬇️
Install Mosquito
New name
B
I
U
S
link
image
code
HTML
list
Show page
Syntax
{pre} git clone https://github.com/miti0/mosquito.git {/pre} {pre} cd mosquito {/pre} {pre} pip install -r requirements.txt {/pre} ----------- Uses mongodb... {pre} sudo apt-get install gnupg curl {/pre} To import the MongoDB public GPG key, run the following command: {pre} curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor {/pre} Create the /etc/apt/sources.list.d/mongodb-org-7.0.list file for Ubuntu 22.04 (Jammy): {pre} echo "deb [[arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg]] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list {/pre} Issue the following command to reload the local package database: {pre} sudo apt-get update {/pre} Install the MongoDB packages {pre} sudo apt-get install -y mongodb-org {/pre} {pre} sudo systemctl start mongod {/pre} {pre} mongosh {/pre} {pre} show dbs {/pre} {pre} exit {/pre} ----------- 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 {pre} python mosquito.py --help {/pre} {pre} mv mosquito.sample.ini mosquito.ini {/pre} Next you must back fill and store the back fill to mongodb {pre} python backfill.py --days 5 --pairs USDT_BTC {/pre} or {pre} python backfill.py --days 3 --all {/pre} or {pre} python backfill.py --days 1 --pairs BTC_* {/pre} Backtesting mode {pre} python3 mosquito.py --backtest --plot {/pre} Simulation mode {pre} python mosquito.py --paper {/pre}
Password
Summary of changes
📜
⏱️
⬆️