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 discoinme – (
me) Your 3 letter currency codeloop – (
asyncio.EventLoop) (Optional) Asyncio event loop
Methods
__init__(token, me[, loop])Init client.
create_transaction(code_to, amount, user_id)Create a transaction
Fetch a list of bots compatible with discoin.
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.
-