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
-
Clone this repository or download the source files.
-
Install the required Python packages:
pip install -r requirements.txt
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coinbase-advancedtrade-python-0.1.3.tar.gz
.
File metadata
- Download URL: coinbase-advancedtrade-python-0.1.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2de8117c03dbe93ccff916e79684b18120c8a6512164c3fb8b71af23fd5d9e |
|
MD5 | 86e1a2635186ae6562d1210e8f253689 |
|
BLAKE2b-256 | 3d410166c7c450f728672384888367f903785a19c57d99264540e909ff279c57 |
Provenance
File details
Details for the file coinbase_advancedtrade_python-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: coinbase_advancedtrade_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4dd8fa35bac8d48c8f344bf6c161ba403f88fddb5cb1ad25f15d8e02e16e6d |
|
MD5 | 9344aa72a299af8176f5853f6379ff3f |
|
BLAKE2b-256 | cff6fd279d8c75fbe459a8c57de8600ea9ce875c9f1bb498ea65818295080170 |