Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

# simple-coinbase-bot 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](https://help.coinbase.com/en/pro/trading-and-funding/trading-rules-and-fees/fees) 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](example.conf)).

# Getting Started First, create an API key with view/trade permissions in the [Coinbase Pro profile](https://pro.coinbase.com/profile/api).

Create virtualenv and install requirements: `bash python3 -m venv venv . venv/bin/activate `

`bash # PyPI pip install SimpleCoinbaseBot `

`bash # Or install manually with setup.py pip install -r requirements.txt python setup.py install `

Create a new configuration: `bash mkdir etc/ log/ cache/ cp example.conf etc/btc.conf chmod 700 etc/btc.conf # edit config etc/btc.conf `

Run the bot with the new config: ` simplebot etc/btc.conf # -or- run the wrapper that will restart the bot if it errors out persistbot etc/btc.conf `

# Example Config

See [example.conf](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:

`bash # Use all .cache files in cache/ directory simpletop cache/ ` ![simpletop](/top1.png) ![simpletop orders and filter](/top2.png)

Metadata

Release files for SimpleCoinbaseBot 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SimpleCoinbaseBot 1.4.0
File Size Uploaded
SimpleCoinbaseBot-1.4.0.tar.gz 15.3 kB Details

Release files / SimpleCoinbaseBot-1.4.0.tar.gz

Download URL SimpleCoinbaseBot-1.4.0.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fbc8a3855eecf62662fb96ce91558878b3050b00a68b28443e70a0818dbd8386
BLAKE2b-256 checksum
How to use checksums
053412dc5ec81b7bc967dcc243f2814fca53588ef7724a681f84d148e23bbbe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.6.1 requests/2.13.0 setuptools/32.3.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.5.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page