privex.steemengine.SteemEngineHistory.SteemEngineHistory

class SteemEngineHistory(hostname='api.steem-engine.net', port: int = 443, username=None, password=None, ssl=True, timeout=120, url: str = 'accounts/history')[source]

Provides simple methods for querying a SteemEngine history node

Copyright:

+===================================================+
|                 © 2019 Privex Inc.                |
|               https://www.privex.io               |
+===================================================+
|                                                   |
|        Python Steem Engine Library                |
|        License: X11/MIT                           |
|                                                   |
|        Core Developer(s):                         |
|                                                   |
|          (+)  Chris (@someguy123) [Privex]        |
|                                                   |
+===================================================+

Basic Usage:

>>> h = SteemEngineHistory()
>>> for tx in h.get_history('someguy123'):
>>>     print(tx['timestamp'], tx['symbol'], tx['quantity'], tx['memo'])
__init__(hostname='api.steem-engine.net', port: int = 443, username=None, password=None, ssl=True, timeout=120, url: str = 'accounts/history')[source]

Configure the remote SteemEngine history server settings. All parameters are optional.

Parameters
  • hostname – The hostname or IP address of the history server

  • port – The HTTP port to connect to

  • username – If the RPC server needs a username, specify it here

  • password – If the RPC server needs a password, specify it here (username must also be set)

  • ssl – If set to True, will use https for requests. Default is True - use SSL

  • timeout – If the server stops sending us data for this many seconds, abort and throw an exception

  • url – The URL to query, e.g. accounts/history (starting /’s will automatically be removed)

Methods

__init__([hostname, port, username, ...])

Configure the remote SteemEngine history server settings.

get_history(account[, symbol, limit, ...])

Get the Steem Engine transaction history for a given account :param account: Account name to filter by :param symbol: Symbol to filter by, e.g.

Attributes

DEF_HOST

DEF_URL

req

url