Git Product home page Git Product logo

kuna-bot's Introduction

kuna-bot

This is php bot with simple strategy to trade bitcoin on the https://kuna.io/ exchange.

Warning!!! Use this bot at your own risk. Don't use this bot if you don't understand how it's working or you will lose your money.

Please look into bot source code to understand how it's working

Table Of Contents

Installation

Download latest release here and extract sources to a project (destination) folder or clone project

    $ git clone https://github.com/madmis/kuna-bot.git ~/kuna-bot

Create configuration file:

    $ cp ~/kuna-bot/app/simple-bot-config.yaml.dist ~/kuna-bot/app/conf.btcuah.yaml

and change configuration parameters with your requirements.

Running the bot

You can run bot on the local machine or in the Docker container.

Run on the local machine

To run bot on the local machine please install:

Then do next steps:

    $ cd ~/kuna-bot/app
    $ composer install

and run the bot:

    $ php ~/kuna-bot/app/bin/console simple-bot:run ~/kuna-bot/app/conf.btcuah.yaml 

Run in the Docker container

To run bot in the Docker container:

Then do next steps:

    $ cd ~/kuna-bot
    $ docker-compose up -d
    $ docker exec -ti kunabot_php_1 bash

and run the bot:

    $ php /var/www/bin/console simple-bot:run /var/www/conf.btcuah.yaml 

Concurrent Running

! Notice Don't run more than one bot instance for one trading (exchange) account.

You can run 2 (or more) bot instances from one application/container. For this create separate trading (exchange) accounts for different pairs.

To run 2 bot instances:

  • Create 2 configuration files, for different pairs
  • Create different trading (exchange) accounts and generate API keys for it. Then put this case to configuration files (each api key in the corresponding config file)
  • Run 2 bot instances (in separate terminal windows)
    $ php ~/kuna-bot/app/bin/console simple-bot:run ~/kuna-bot/app/conf.btcuah.yaml 
    $ php ~/kuna-bot/app/bin/console simple-bot:run ~/kuna-bot/app/conf.ethuah.yaml 

kuna-bot's People

Watchers

Denis Bebikh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.