Skip to content

Work with FOREX but volume error with US500 #36

Open
@mehmetcigerli

Description

Hello, thank you for the library.

I tried the lib with EURUSD which worked fine.

However I ran into this weird volume error with US500.

My code:
symbol = "US500"
volume = 0.1 # order size
price = api.quote()
price = np.round(price['US500']['bid'] + 0.002, 1)

id = api.buyLimit(symbol, volume, price)

And I received this as error.

ERROR:root:Order volume 10000.00 is bigger than maxVolume=100.00.

Which is not the volume I entered clearly.

Please help.

Thank you very much.

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