BalanceEventRef#

tradeexecutor.state.sync.BalanceEventRef Python class in Trading Strategy framework.

class BalanceEventRef[source]#

Bases: object

Register the balance event in the treasury model.

__init__(balance_event_id, updated_at, cause, position_type, position_id)#
Parameters:
Return type:

None

Methods

__init__(balance_event_id, 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

balance_event_id

updated_at

cause

position_type

position_id

__init__(balance_event_id, updated_at, cause, position_type, position_id)#
Parameters:
Return type:

None