Sync#

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

class Sync[source]#

Bases: object

On-chain sync state.

  • Store persistent information about the vault on transactions we have synced, so that the strategy knows its available capital

  • Updated before the strategy execution step

__init__(deployment=<factory>, treasury=<factory>, accounting=<factory>, interest=<factory>)#
Parameters:
Return type:

None

Methods

__init__([deployment, treasury, accounting, ...])

from_dict(kvs, *[, infer_missing])

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

is_initialised()

Have we scanned the initial deployment event for the sync model.

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

to_dict([encode_json])

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

Attributes

deployment

treasury

accounting

interest

is_initialised()[source]#

Have we scanned the initial deployment event for the sync model.

Return type:

bool

__init__(deployment=<factory>, treasury=<factory>, accounting=<factory>, interest=<factory>)#
Parameters:
Return type:

None