Skip to content

Commit 9904338

Browse files
committed
2 parents df6f2dd + 34b5fd8 commit 9904338

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
1-
# coinbase-advanced-python
1+
# Coinbase Advanced
22
Python library for the Coinbase Advanced Trade API.
3+
4+
## Features
5+
- Support for all the [REST API endpoints](https://docs.cloud.coinbase.com/advanced-trade-api/docs/rest-api-overview) trough convenient methods.
6+
- Automatic parsing of API responses into relevant Python objects.
7+
- Support for [API Key](https://docs.cloud.coinbase.com/advanced-trade-api/docs/rest-api-auth) authentication.
8+
9+
## Example
10+
```
11+
from coinbaseadvanced.client import CoinbaseAdvancedTradeAPIClient
12+
13+
# Creating the client.
14+
client = CoinbaseAdvancedTradeAPIClient(api_key='apikeyhere', secret_key='yoursecrethere')
15+
16+
# Listing accounts.
17+
accounts_page = client.list_accounts()
18+
print(accounts_page.size)
19+
20+
# Creating a limit order.
21+
order_created = client.create_limit_order(client_order_id="lknalksdj89asdkl", product_id="ALGO-USD", side=Side.BUY, limit_price=".19", base_size=5)
22+
```
23+
24+
## Installation
25+
```
26+
pip install coinbaseadvanced
27+
```
28+
## Contributing/Development
29+
Any and all contributions are welcome! The process is simple:
30+
1. Fork repo.
31+
2. Install Requirements: `pip install -r requirements.txt`.
32+
3. Make your changes.
33+
4. Run the test suite `python -m unittest -v`.
34+
5. Submit a pull request.

0 commit comments

Comments
 (0)