API Reference


Client

discoin.Client(token, me[, loop])

Main used class for discoin

discoin.Client.fetch_transactions(**kwargs)

Get a list of transactions.

discoin.Client.create_transaction(code_to, …)

Create a transaction

discoin.Client.handle_transaction(transaction_id)

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

discoin.Client.fetch_currencies()

This allows you to fetch the available currencies from the API

discoin.Client.fetch_bots()

Fetch a list of bots compatible with discoin.


Classes

discoin.Transaction(transaction_obj)

Transaction object

discoin.Currency(currency_obj)

Currency Object

discoin.Bot(bot_obj)

Discoin Bot Object


Errors

discoin.InternalServerError

This error is raised when the API returns a status code of 5**

discoin.BadRequest

This error is raised when the API returns a status code of 4**

discoin.InvalidMethod

This error is raised when the user tries to use an incorrect method with utils.api_request

discoin.WebTimeoutError

This error is raised when utils.api_request times out