Skip to main content

Coinbase Advanced Trade API client library.

Project description

Coinbase Advanced

Python library for the Coinbase Advanced Trade API.

Features

Example

from coinbaseadvanced.client import CoinbaseAdvancedTradeAPIClient

# Creating the client using Clould API Keys.
client = CoinbaseAdvancedTradeAPIClient.from_cloud_api_keys(API_KEY_NAME, PRIVATE_KEY)

# 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

coinbaseadvanced-0.3.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file coinbaseadvanced-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coinbaseadvanced-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed904174c718b55f204b72384c7f25701f66f95bf913c3b99e7db33127e2d7c6
MD5 4deb056e161b77e593ff26a8639e38fb
BLAKE2b-256 718a6a712014a2c51b6c06e4b62b5f86b2c5dd127a7b18728267236a7228d62a

See more details on using hashes here.

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