For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

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

  • 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

Log in to reply