AssetInterestData#
API documentation for tradeexecutor.state.interest_distribution.AssetInterestData Python class in Trading Strategy framework.
- class AssetInterestData[source]#
Bases:
object
Per-asset data we track in interest calculations.
- __init__(total=Decimal('0'), effective_rate=None)#
Methods
__init__
([total, effective_rate])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
Portfolio total quantity of interest bearing assets before the update.
Calculated the effective interest rate for this asset.