Skip to main content

The unofficial Python client for the Coinbase Advanced Trade API

Project description

Coinbase Advanced Trader API Python Wrapper

This project provides a Python wrapper for the Coinbase Advanced Trader API and an example AWS limit order script that uses the wrapper. The Coinbase Advanced Trader API allows users to access advanced trading functionality, such as placing and managing orders, accessing account information, and retrieving market data.

Features

  • Access account and portfolio information.
  • Place and manage orders.
  • Retrieve historical orders and fills.
  • Access product information and market data.
  • Perform advanced trading operations.

Setup

  1. Clone this repository or download the source files.

  2. Install the required Python packages:

        pip install -r requirements.txt
    
  3. Set your API key and secret in config.py. To obtain your API key and secret, follow the steps below:

    • Log in to your Coinbase account.
    • Navigate to API settings.
    • Create a new API key with the appropriate permissions.
    • Copy the API key and secret to config.py.

Usage

Using the Python Wrapper

  • Import the required functions and classes from coinbase_api_wrapper.py to interact with the Coinbase API:

        from coinbase_api_wrapper import listAccounts, getAccount, createOrder, cancelOrders, listOrders, listFills, getOrder, listProducts, getProduct, getProductCandles, getMarketTrades, getTransactionsSummary
    
  • You can now use these functions to interact with the API. For example, to retrieve your accounts:

        accounts = listAccounts()
        print(accounts)
    

Documentation

For more information about the Coinbase Advanced Trader API, consult the official API documentation.

Disclaimer

This project is not affiliated with, maintained, or endorsed by Coinbase. Use this software at your own risk. Trading cryptocurrencies carries a risk of financial loss. The developers of this software are not responsible for any financial losses or damages incurred while using this software.

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

coinbase-advancedtrade-python-0.1.3.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file coinbase-advancedtrade-python-0.1.3.tar.gz.

File metadata

File hashes

Hashes for coinbase-advancedtrade-python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9f2de8117c03dbe93ccff916e79684b18120c8a6512164c3fb8b71af23fd5d9e
MD5 86e1a2635186ae6562d1210e8f253689
BLAKE2b-256 3d410166c7c450f728672384888367f903785a19c57d99264540e909ff279c57

See more details on using hashes here.

Provenance

File details

Details for the file coinbase_advancedtrade_python-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for coinbase_advancedtrade_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2f4dd8fa35bac8d48c8f344bf6c161ba403f88fddb5cb1ad25f15d8e02e16e6d
MD5 9344aa72a299af8176f5853f6379ff3f
BLAKE2b-256 cff6fd279d8c75fbe459a8c57de8600ea9ce875c9f1bb498ea65818295080170

See more details on using hashes here.

Provenance

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