FreqtradeValuator#

API documentation for tradeexecutor.strategy.freqtrade.freqtrade_valuation.FreqtradeValuator Python class in Trading Strategy framework.

class FreqtradeValuator[source]#

Bases: ValuationModel

Revalue Freqtrade positions based on current balance from API.

Queries the Freqtrade REST API to get the current account balance and reconciles it against the executor’s internal tracking.

__init__(pricing_model)[source]#

Initialize valuation model.

Args:

pricing_model: FreqtradePricingModel for API access

Parameters:

pricing_model (FreqtradePricingModel) –

Methods

__init__(pricing_model)

Initialize valuation model.

__init__(pricing_model)[source]#

Initialize valuation model.

Args:

pricing_model: FreqtradePricingModel for API access

Parameters:

pricing_model (FreqtradePricingModel) –

__call__(ts, position)[source]#

Revalue Freqtrade position by querying API.

Compares the API balance with executor’s tracked amount and warns if there’s drift >1% (which could indicate manual deposits or trading losses not yet accounted for).

Args:

ts: Timestamp for valuation position: Freqtrade position to revalue

Returns:

ValuationUpdate event with new value

Parameters:
Return type:

ValuationUpdate