AioCrypto is a fairly simple and convenient library for working with the Crypto API, written in Python 3.8 with asyncio and aiohttp.
📚 Click to see some basic examples
Few steps before getting started...
- Install latest stable version of aiocrypto, simply running
pip install AioCrypto
from aiocrypto import CryptoApi
async def main():
app = CryptoApi(token='12345:AaSvhiRsAHazxVB91KIB1dwia0OkmN')
print(await app.get_me()) # App(app_id=12345, name='Magni..
from aiocrypto import CryptoApi
async def main():
app = CryptoApi(token='12345:AaSvhiRsAHazxVB91KIB1dwia0OkmN')
balances = await app.get_balance()
print(balances) # List[Balance(...), Balance(...)]
# print(balances[0]) Balance(currency_code='BTC', available=1.027)
from aiocrypto import CryptoApi
async def main():
app = CryptoApi(token='12345:AaSvhiRsAHazxVB91KIB1dwia0OkmN')
invoice = await app.create_invoice(asset="ETH", amount="0.023")
print(invoice)
# {'invoice_id': 229875, 'status': 'active', ...}
You can find more examples in examples/
directory
- News: @CryptoBotRu
- Community: @CryptoBotRussian
- Pip: AioCrypto
- Source: Github repo
- Issues/Bug tracker: Github issues tracker