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 buyTxId and return a SETransactionInfo object.

get_sell_transaction()

Lookup the transaction ID sellTxId and return a SETransactionInfo object.

set_seng_instance(seng_ins)

Attributes

buyTxId

buyer

direction

The type of order as a string, either 'buy' or 'sell'

sellTxId

seller

type

Alias for direction - either 'buy' or 'sell'

symbol

The token symbol this order is buying/selling

quantity

The amount of tokens being bought/sold

price

The price per token ( symbol ) in STEEMP or SWAP.HIVE

timestamp

The date/time which the order was placed

volume

raw_data

The raw, unmodified data that was passed as kwargs, as a dictionary