format_fees_dollars#

API documentation for tradeexecutor.strategy.trade_pricing.format_fees_dollars Python function.

format_fees_dollars(fees)[source]#

Returns string of formatted fees

Parameters:

fees (list[float] | float) – Can either be a list of fees or a single fee

Return type:

str

e.g. fees = [30, 50] => $30.00 $50.00

Parameters:

fees (list[float] | float) – list of fees paid in absolute value (dollars)

Returns:

formatted str

Return type:

str