Accounting#

API documentation for tradeexecutor.state.sync.Accounting Python class in Trading Strategy framework.

class Accounting[source]#

Bases: object

State of accounting corrections.

__init__(last_updated_at=None, last_block_scanned=None, balance_update_refs=<factory>)#
Parameters:
Return type:

None

Methods

__init__([last_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

last_block_scanned

What is the last processed block for deposit

last_updated_at

Wall clock time.

balance_update_refs

List of refernces to all balance update events.

last_updated_at: Optional[datetime] = None#

Wall clock time. timestamp for which we run the last sync

Wall clock time, at the beginning on the sync cycle.

last_block_scanned: Optional[int] = None#

What is the last processed block for deposit

0 = not scanned yet

balance_update_refs: List[BalanceEventRef]#

List of refernces to all balance update events.

The actual balance update content is stored on the position itself.

__init__(last_updated_at=None, last_block_scanned=None, balance_update_refs=<factory>)#
Parameters:
Return type:

None