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

Oanda Samples

  • Re: Help with on samples
    Hi, tried to request the v1 API token from Oanda but the customer support told me today that they don't support that anymore. It does say that v20 token is compatible with V1 API. I then created a token anyway and used the following command as per the above topic to start

    python --account ..##1 --token ..##c1 --data0 GBP_USD --resample --timeframe Minutes --compression 1 --no-backfill_start --stake 1000 --trade

    but then it returned the following:
    File "", line 498
    IndentationError: expected an indented block

    Can you please advise if this is because of the version diffs or something else.
    Thank you

  • administrators

    @fbrand said in Oanda Samples:

    IndentationError: expected an indented block

    This is because you have an error in your code. Proper indentation is mandatory in Python.

Log in to reply