discoin.Client

class discoin.Client(token: str, me: str, loop=None)

Main used class for discoin

__init__(token: str, me: str, loop=None)

Init client.

Parameters
  • token – (str) Your api token for discoin

  • me – (me) Your 3 letter currency code

  • loop – (asyncio.EventLoop) (Optional) Asyncio event loop

Methods

__init__(token, me[, loop])

Init client.

create_transaction(code_to, amount, user_id)

Create a transaction

fetch_bots()

Fetch a list of bots compatible with discoin.

fetch_currencies()

This allows you to fetch the available currencies from the API

fetch_transactions(**kwargs)

Get a list of transactions.

handle_transaction(transaction_id[, handled])

Handling a transaction just marks it as handled, or processed.