Asynchronous Websockets API for the Kraken Cryptocurrency Exchange
Project description
Kraken-async-api
A library for asynchronous communications with the Kraken cryptocurrency exchange.
Quickstart
import asyncio
from kraken_async_api import Kraken, Config, Depth
async def print_(data):
print(data)
async def main():
# Only necessary if you wish to communicate with private endpoints
config = Config(api_key="your api-key", api_sec="your api-sec")
kraken_exchange = await Kraken.connect(async_callback=print_, config=config)
# ... your usage of the API here, for example:
kraken_exchange.public.subscribe_to_book(["XXBTZGBP"], Depth.D25)
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(main())
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
kraken-async-api-0.1.1b1.tar.gz
(14.5 kB
view details)
Built Distribution
File details
Details for the file kraken-async-api-0.1.1b1.tar.gz
.
File metadata
- Download URL: kraken-async-api-0.1.1b1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9455d1d375bc07356b1226aca14afb1c2d719897228b4d792b09233b8762a3a9 |
|
MD5 | af19537f45a9f812f184ec2d4df40e1a |
|
BLAKE2b-256 | b146202477ff812f3d6657484254dceb7744e5ceb1bb0bfa9b30629cb9f07b13 |
File details
Details for the file kraken_async_api-0.1.1b1-py3-none-any.whl
.
File metadata
- Download URL: kraken_async_api-0.1.1b1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1eba8ae30fc57709768ed8876cac985399c0e22258399c61ffde8af499fa01 |
|
MD5 | 9ef51dbbc5d19606f6797d5fdfa76378 |
|
BLAKE2b-256 | c0e6e1326b96e6880860e3cf8113e0104efb7250e58f6a12d82479d93b94063f |