Jump to content

Open LIMIT order using API


Recommended Posts

Hi i'm struggling to create a LIMIT order using IG API, can you help please? thanks a lot!

Here are the codes (d = 'BUY', lvl = 11475, size = 1)

    ig_service.create_open_position(
        currency_code='GBP',
        direction=d,
        epic = product,
        order_type='LIMIT',
        expiry='DFB',
        force_open='false',
        guaranteed_stop='false',
        size=abs(size), level=lvl,
        limit_distance=None,
        limit_level=None,
        quote_id=None,
        stop_level=None,
        stop_distance=None,
        trailing_stop=None,
        trailing_stop_increment=None)
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
us