btrade_api_client
Bit Trade API Client library
This document describes the available API calls, for more information on the API vist the API Documentation.
Installation
pip3 install btrade-api-client
Usage
Create client instance
from btrade_api_client.client import ApiClient
client = ApiClient(api_key, api_secret)
Bankaccount
Get customer registered bank accounts
bankaccounts = client.bankaccounts()
See API Documentation for response.
Get Wallets
Get customer registered wallets
wallets = client.wallets()
See API Documentation for response.
Get Orders
Get all orders
orders = client.orders()
See API Documentation for response.
Get Order
Get single order details
order = client.order(12345)
See API Documentation for response.
Get Quote
To get a quote from the API use the quote method as below.
quote = client.quote(src="aud", dst="btc", dst_volume=1, src_volume=None)
See API Documentation for response.
Accept Quote
To accept a quote use the token from the quote, and one of the following scenarios :
To an existing wallet :
order = c.accept(quote['token'], wallet_id=12345)
To a new wallet with the given address :
order = c.accept(quote['token'], wallet_address=3abcdf12345)
To an existing bank account, this is only valid when the dst currency is a fiat currency:
order = c.accept(quote['token'], bank_account=12345)
See API Documentation for response.
Get Transactions
Get all customer transactions for the given currency
transactions = client.transactions("aud")
See API Documentation for response.
Get Balance
Get current balance for the given currency
balance = client.balance("aud")
See API Documentation for response.
Get Ticker
Get current indicative rates
tickers = client.ticker()
See API Documentation for response.
Credits
This library is based on https://github.com/guardian/httpie-hmac-auth/
Release files for btrade-api-client 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| btrade_api_client-0.2.7.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| btrade_api_client-0.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / btrade_api_client-0.2.7.tar.gz
| Download URL | btrade_api_client-0.2.7.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0cd656bb4c50349eb60dfcb7bb28c4231875d3e63fab2bd4b2bff1e8c0fbc2e
|
|
BLAKE2b-256 checksum How to use checksums |
8cbb7538e2d1de26d29b4af91071b8952fbe74ad29a122e11262503b848b30cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / btrade_api_client-0.2.7-py3-none-any.whl
| Download URL | btrade_api_client-0.2.7-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a92a325f0207f720549370498fd33a81dfce8b7f2ee5ceab72e1728b67e86dc
|
|
BLAKE2b-256 checksum How to use checksums |
271727564964d08059a6fed4eed3139de7bfc7c1465dae701c3dbc7cc300c049
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|