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:
asset (AssetIdentifier) –
mined_at (datetime) –
updated_at (datetime) –
past_balance (Decimal) –
new_balance (Decimal) –
- 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
Transfer timestamp (if known)
Strategy cycle timestamp
past_balance
new_balance