format_price#

API documentation for tradingstrategy.utils.format.format_price Python function.

format_price(v, decimals=6)[source]#

Crypto prices in dollars may have significant decimals up to 6 decimal points.

Returns:

Price as $ prefixed string.

Parameters:

v (float) –

Return type:

str