Skip to content

Exception: error.security.account-token-invalid #328

@NewEconomicsUK

Description

@NewEconomicsUK

Greetings World!

I was testing my simple code:
buy = ig_service.create_open_position(epic='IX.D.DAX.DAILY.IP', direction='BUY') print(buy)

and the error appeared:
Exception: error.security.account-token-invalid

My requests using ig_service.fetch_open_positions() and ig_service.fetch_accounts() worked fine so I don't think the token is the problem?

Or am I wrong gentlemen?

Any guidance is much appreciated.

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions