privex.steemengine.objects

This file contains various classes used to represent different dictionaries returned from the Steem/HiveEngine APIs, making the data easier to handle:

* IDE attribute assistance (aka IntelliSense),
* converting certain attributes into more sensible types, e.g. from :class:`.str` / :class:`.float` into :class:`.Decimal`
* new properties / methods to automate certain data queries and ease conversion to/from different types.

Functions

conv_dec(number)

Convert an object into a Decimal, but only if it isn't already a Decimal

Classes

ObjBase([raw_data])

A base class to be extended by data storage classes, allowing their attributes to be accessed as if the class was a dict/list.

SEBalance(account, symbol, balance, float, ...)

Represents an account token balance on SteemEngine

SEContractTransfer(sender, to, symbol, ...)

Represents the data for a transferToContract / transferFromContract SETransactionLogEvent

SEOrder(symbol, quantity, float, str], ...)

Represents an open order on the SE market.

SEPlacedOrder(symbol, quantity, price, ...)

SETicker(symbol, volume, lastPrice, ...)

SETrade(symbol, quantity, float, str], ...)

Represents a past trade on the SE market.

SETransaction(block, txid, symbol, sender, ...)

Represents a standard transaction from account history on SteemEngine

SETransactionInfo(blockNumber, ...)

Represents transaction data from /rpc/blockchain JSON-RPC method getTransactionInfo

SETransactionLogEvent(contract, event, data, ...)

Represents events contained within the list SETransactionInfo .logs['events']

SteemEngineInstanceInject()

Token(symbol, name, issuer, metadata, str, ...)

Represents a token's information on SteemEngine

TokenMetadata(url, icon, desc, raw_data, ...)

Represents the metadata field on a token object on SteemEngine