more decimal places for cryptocurrencies



  • Hello

    I'm wokring on backtrading on cryptocurrency market and most of cryptocurrencies do have much more than 2 decimal places (in most cases 6-10 decimal places).
    How can I set more (i.e. 8 ) decimal places for backtrader?

    kind regards
    Silverbald


  • administrators

    The question would be where are you missing some decimal places?



  • Hello

    Looks like it's my mistake. I've wrongly assumed that it's rounding currency calculations to 2 decimal places - but it's not.
    I've corrected numbers format printing and it's OK.
    So thank You for inspirational question.
    And I'm sorry for bothering with simple problem.

    kind regards
    silverbald


Log in to reply
 

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.