Skip to content

orders are messed up #33

Open
Open
@vism211

Description

hi, could you please explain why the following code is resulting in the 3 orders/positions you can see in the images below?

api = Ctrader(server,account,password)
api.subscribe("EURUSD")
print(api.quote())
print(api.buy(symbol="EURUSD", volume=0.01, stoploss=1, takeprofit=1.5, price=1.08))
api.logout()

ord
pos

moreover, the quote() method is returning {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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