Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

madmis/kuna-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

Kuna.io trading bot

Resources

License

Stars

Watchers

Forks

Packages

No packages published