Invalid Price APIError(code=-1013) on small value coins

I am not able to format coins with really low values like VIB/BTC ( value 1.08e-06 ).
This is my format function.
image
In such coins, format_value returns 0.
Please help

Not API-related question. Please find a python dev forum.

I got it, had to use this repo to see how to properly handle the precision.


This precision thing is not well documented by the API