privex.steemengine.objects.SEOrder¶
- class SEOrder(symbol: str, quantity: ~typing.Union[~decimal.Decimal, float, str], price: ~typing.Union[~decimal.Decimal, float, str], timestamp: ~typing.Union[~datetime.datetime, str, int], account: str, expiration: ~typing.Union[~datetime.datetime, str, int], txid: str = None, tokens_locked: ~typing.Union[~decimal.Decimal, float, str] = <factory>, _seng_instance: privex.steemengine.SteemEngineToken.SteemEngineToken = None, raw_data: ~typing.Union[dict, ~privex.helpers.collections.DictObject] = <factory>)[source]¶
Represents an open order 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], account: str, expiration: ~typing.Union[~datetime.datetime, str, int], txid: str = None, tokens_locked: ~typing.Union[~decimal.Decimal, float, str] = <factory>, _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_transaction()Lookup the transaction ID
txidand return aSETransactionInfoobject.set_seng_instance(seng_ins)Attributes
tokensLockedtxidThe transaction ID of the order
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
accountThe username of the person who placed the order
expirationtokens_lockedThe amount of STEEMP or SWAP.HIVE locked into the order
raw_dataThe raw, unmodified data that was passed as kwargs, as a dictionary