Skip to content

Set up help #6

@Bogmadur

Description

@Bogmadur

Hi i am new to python and have some coding experience before but not much.

I try to use this code and to run the test_ig_service.py
It seems that the username from my ig_service_config.py do not send the username password etc.

I have set up:
ig_service.py
ig_service_config.py
test_ig_service.py
kodamed.py

The last is where i have this code:
from ig_service import IGService
from ig_service_config import *

ig_service = IGService(username, password, api_key, acc_type)
ig_service.create_session()

account_info = ig_service.switch_account(acc_number, False)
print(account_info)

open_positions = ig_service.fetch_open_positions()
print(open_positions)

Have i setup something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions