umutseven92 / Plutus

Plutus is a customizable bot that buys and sells cryptocurrencies.
MIT License
9 stars 0 forks source link
binance bitcoin cryptocurrency dotnet trading-bot

Plutus Build Status Codacy Badge

Overview

Plutus is a customizable, exchange agnostic cryptocurrency trading bot. You configure:

It does the rest by predicting if the price is going up or down for a given coin and buying and selling according to your profit and loss stops.

Plutus is currently just a prototype. All contributions are welcome.

Main Loops

Buy Loop

Sell Loop

Requirements

Configuration

Plutus.Server/appsettings.json

This is the main configuration file.

{
  "Exchanges": [
    {
      "Name": "Binance",
      "ApiKey": "API_KEY",
      "SecretKey": "SECRET_KEY"
    }
  ],
  "AppConfig": {
    "RedisUrl": "REDIS_URL",
    "BuyInterval": "0",
    "SellInterval": "0",
    "Test": "true"
  }
}

Exchanges

Add your exchanges to the Exchanges array, like shown above. You will need to put your API_KEY and SECRET_KEY in there. Please note that currently, only Binance is supported.

Redis

Replace REDIS_URL with the URL your Redis instance is running on. Redis is used for recording buy & sell orders. Persistence is not currently supported.

Test Run

If the Test value is true, than Plutus will only do test buys and sells, therefore not losing you real money. Its better to keep this true until you're sure you know what you are doing.

Plutus.Server/orders.json

This is where you define the coin you want to buy & sell.

{
  "Orders": [
    {
      "Base": "BTC",
      "Symbol": "XRP",
      "PLSymbol": "USDT",
      "ProfitStop": "10",
      "LossStop": "10",
      "BuyAmount": "1"
    }
  ]
}

Coins

Add your coins to the Orders array like shown above.

For example, if your base is BTC, and your Symbol is XRP, you will buy XRP with BTC, and you will sell XRP for BTC.

For example, if your PLSymbol is USD, your ProfitStop is 20, your LossStop is 10 and BuyAmount is 40, Plutus will buy 40 BTC's worth of XRP, and will sell if your profit is 20 USD or if your loss is 10 USD.

How to Use

In the root directory,

dotnet build
cd Plutus.Server
dotnet run

Warning

What Is Implemented

What Is Missing

Libraries Used

Binance.NET (MIT)

FluentScheduler (BSD)

StackExchange.Redis (MIT)