Skip to main content


Project description


Coinbase Pro Automation for making buy orders from a default bank account.


  1. Install with pip

    pip install cbpa
  2. Create a Coinbase API Key, you will need to select all fields of access.

  3. (Optional). Create a Discord webhook.

  4. Make your config file. See the examples for more.

        key: "myKey"
        secret: "mySecret"
        passphrase: "myPassphrase"
        url: ""
        auto_funding_limit: 20
        fiat_currency: USD
        - send_currency: USD
            send_amount: 2
            receive_currency: BTC
        - send_currency: USD
            send_amount: 2
            receive_currency: ETH
        - send_currency: USD
            send_amount: 2
            receive_currency: DOGE
  5. Make your orders!

    cbpa run -f my-buys.yaml

Running cbpa in Google Cloud Run

You can run cbpa as a server in Google Cloud Run, which can called by Google Cloud Scheduler to automatically place buys for you each day, or on any cron schedule you like.

These steps assume you have installed and configured gcloud already.

  1. Store your buy order file as a secret in GCP.

    gcloud secrets versions add my_buys --data-file=my-buys.yaml
  2. Build and push your docker container to Google Cloud, and then deploy your container.

    ./scripts/ && ./scripts/; SECRET_ID=my_buys ./scripts/
  3. Create an authenticated scheduler that uses an http target to hit the buy endpoint.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbpa-0.1.1.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

cbpa-0.1.1-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page