discoin.Client.fetch_transactions¶
-
async
Client.
fetch_transactions
(**kwargs)¶ Get a list of transactions. It is recommended to run this every 5 minutes in a loop
- Parameters
transaction_id – (
str
) (Optional) Filter results by a transaction id.amount – (
int
) (Optional) Filter results by the original amountuser_id – (
int
) (Optional) Filter by the user’s idhandled – (
bool
) (Optional) Defaults to False. Will filter results to see if they are handled or not. None will fetch allpayout – (
int
) (Optional) Filter by the final amountcode – (
str
) (Optional) 3 letter currency code that you want to search for.None
will just fetch all results. Default is me.code_from – (
str
) (Optional) 3 letter currency code that the transaction is coming fromadvanced_filter – (
str
) (Optional) Optionally, you can create your own filter. Not recommended
- Return type
- Raises
discoin.InternalServerError – If the discoin API returns a 5**
discoin.BadRequest – If the discoin API returns a 4**
discoin.WebTimeoutError – If the API times out