ReserveUpdateEvent#

tradeexecutor.ethereum.wallet.ReserveUpdateEvent Python class in Trading Strategy framework.

class ReserveUpdateEvent[source]#

Bases: object

A legacy reserve update event.

Maintained for old code compatibility.

See tradeeexecutor.state.sync for the current approach.

TODO: This should be removed as is partially part of old treasury sync code.

__init__(asset, mined_at, updated_at, past_balance, new_balance)#
Parameters:
Return type:

None

Methods

__init__(asset, mined_at, updated_at, ...)

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

Attributes

change

asset

mined_at

Transfer timestamp (if known)

updated_at

Strategy cycle timestamp

past_balance

new_balance

mined_at: datetime#

Transfer timestamp (if known)

updated_at: datetime#

Strategy cycle timestamp

__init__(asset, mined_at, updated_at, past_balance, new_balance)#
Parameters:
Return type:

None