Python library for the Coinbase Advanced Trade API.
- Support for all the REST API endpoints trough convenient methods.
- Automatic parsing of API responses into relevant Python objects.
- Support for API Key authentication.
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)
pip install coinbaseadvanced
Any and all contributions are welcome! The process is simple:
- Fork repo.
- Install Requirements:
pip install -r requirements.txt
. - Make your changes.
- Run the test suite
python -m unittest -v
. - Submit a pull request.