项目作者: mtingers

项目描述 :
A simple Coinbase buy/sell bot.
高级语言: Python
项目地址: git://github.com/mtingers/simple-coinbase-bot.git
创建时间: 2020-11-27T05:38:00Z
项目社区:https://github.com/mtingers/simple-coinbase-bot

开源协议:MIT License

下载


simple-coinbase-bot

> This project is being moved to botic

—-


A simple Coinbase Pro buy/sell bot.

The primary purpose of this bot is to buy/sell incrementally as the price goes up and down.
It does not do anything too fancy:

  1. Buy if there are no outstanding sell orders less than the current target sell price.
  2. Target sell price is determined from sell_at_percent config option and current
    fees (e.g. current_price * (sell_at_percent+(fees*2)) + current_price) ).
    See Coinbase Fee structure
  3. After a buy is placed, an immediate limit sell order is placed to the calculated target price.

A few other min/max configuration options exist for safety, but the main logic is
above (see example.conf).

Getting Started

First, create an API key with view/trade permissions in the
Coinbase Pro profile.

Create virtualenv and install requirements:

  1. python3 -m venv venv
  2. . venv/bin/activate
  1. # PyPI
  2. pip install SimpleCoinbaseBot
  1. # Or install manually with setup.py
  2. pip install -r requirements.txt
  3. python setup.py install

Create a new configuration:

  1. mkdir etc/ log/ cache/
  2. cp example.conf etc/btc.conf
  3. chmod 700 etc/btc.conf
  4. # edit config etc/btc.conf

Run the bot with the new config:

  1. simplebot etc/btc.conf
  2. # -or- run the wrapper that will restart the bot if it errors out
  3. persistbot etc/btc.conf

Example Config

See example.conf for more in depth configuration info.

Top Command

The simpeltop script displays stats from the cache files (recent order completion, profits, open
orders, etc).

Example usage:

  1. # Use all .cache files in cache/ directory
  2. simpletop cache/

simpletop
simpletop orders and filter