The task is to make a cryptocurrency trading bot:
Script 1: Use CoinMarketCap API. Retrieve all crypto with the following properties:
a. Needs to have a market cap of $[beta] million. Beta is configurable.
b. Is not a fork of bitcoin/bitcoin
c. Order these by their volatility (descending order, in a list).
d. Put these in a text file.
e. Runs once every [alpha] minutes -> alpha is configurable.
Develop script 2 and 3 for both binance and bittrex.
Script 2: Every (x) minutes [which is configurable]
a. Loop through the coins in the text file.
i. For all coins, look at the BTC-COIN pair price. Decrease it by 2% and put a market order for the same.(eg. if XMRBTC -> 100 then place an order for 98) with the relevant quantity as mentioned in the next point.
b. Constraint: Any given coin is only allowed to access z % (configurable) of the total funds.
Script 3: Every (w) minutes [which is configurable]
a. Check if any of the market orders put were fulfilled. If not cancel them.
b. If price has gone up by v % (configurable) of the price at which it was bought, then sell the coin at MARKET price.
c. No Stop loss criteria.
For the data storage, the scripts should use a simple file based approach.
The scripts can be in python/java/js any other language.
There should also be password protected web UI which has manual sell order capability(not buy - only sell).