Skip to main content

Coinbase Advanced Trade API client library.

Project description

Coinbase Advanced

Python library for the Coinbase Advanced Trade API.

Features

  • Support for all the REST API endpoints trough convenient methods.
  • Automatic parsing of API responses into relevant Python objects.
  • Support for API Key authentication.

Example

from coinbaseadvanced.client import CoinbaseAdvancedTradeAPIClient

# Creating the client.
client = CoinbaseAdvancedTradeAPIClient(api_key='apikeyhere', secret_key='yoursecrethere')

# Listing accounts.
accounts_page = client.list_accounts()
print(accounts_page.size)

# Creating a limit order.
order_created = client.create_limit_order(client_order_id="lknalksdj89asdkl", product_id="ALGO-USD", side=Side.BUY, limit_price=".19", base_size=5)

Installation

pip install coinbaseadvanced

Contributing/Development

Any and all contributions are welcome! The process is simple:

  1. Fork repo.
  2. Install Requirements: pip install -r requirements.txt.
  3. Make your changes.
  4. Run the test suite python -m unittest -v.
  5. Submit a pull request.

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

coinbaseadvanced-0.1.1.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distributions

coinbaseadvanced-0.1.1-py3.7.egg (32.9 kB view hashes)

Uploaded Source

coinbaseadvanced-0.1.1-py3-none-any.whl (14.9 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