privex.steemengine.objects.SETrade¶
- class SETrade(symbol: str, quantity: ~typing.Union[~decimal.Decimal, float, str], price: ~typing.Union[~decimal.Decimal, float, str], timestamp: ~typing.Union[~datetime.datetime, str, int], volume: ~typing.Union[~decimal.Decimal, float, str] = <factory>, direction: str = None, buyer: str = None, seller: str = None, buyTxId: str = None, sellTxId: str = None, _seng_instance: privex.steemengine.SteemEngineToken.SteemEngineToken = None, raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>)[source]¶
Represents a past trade on the SE market.
- __init__(symbol: str, quantity: ~typing.Union[~decimal.Decimal, float, str], price: ~typing.Union[~decimal.Decimal, float, str], timestamp: ~typing.Union[~datetime.datetime, str, int], volume: ~typing.Union[~decimal.Decimal, float, str] = <factory>, direction: str = None, buyer: str = None, seller: str = None, buyTxId: str = None, sellTxId: str = None, _seng_instance: privex.steemengine.SteemEngineToken.SteemEngineToken = None, raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>) None¶
Methods
__init__(symbol, quantity, price, timestamp)from_dict(obj[, seng_ins])from_list(obj_list[, seng_ins])get(key[, fallback])get_buy_transaction()Lookup the transaction ID
buyTxIdand return aSETransactionInfoobject.get_sell_transaction()Lookup the transaction ID
sellTxIdand return aSETransactionInfoobject.set_seng_instance(seng_ins)Attributes
buyTxIdbuyerdirectionThe type of order as a string, either
'buy'or'sell'sellTxIdsellertypeAlias for
direction- either'buy'or'sell'symbolThe token symbol this order is buying/selling
quantityThe amount of tokens being bought/sold
priceThe price per token (
symbol) in STEEMP or SWAP.HIVEtimestampThe date/time which the order was placed
volumeraw_dataThe raw, unmodified data that was passed as kwargs, as a dictionary