OnChainBalance#
tradeexecutor.strategy.sync_model.OnChainBalance Python class in Trading Strategy framework.
- class OnChainBalance[source]#
Bases:
object
Describe on-chain token position.
Amount of tokens held at the certain point of time.
- __init__(block_number, timestamp, asset, amount)#
- Parameters:
block_number (int | None) –
timestamp (datetime.datetime | None) –
asset (AssetIdentifier) –
amount (Decimal) –
- Return type:
None
Methods
__init__
(block_number, timestamp, asset, amount)Attributes
block_number
timestamp
asset
amount
- __init__(block_number, timestamp, asset, amount)#
- Parameters:
block_number (int | None) –
timestamp (datetime.datetime | None) –
asset (AssetIdentifier) –
amount (Decimal) –
- Return type:
None