Jump to content

VijayKiran

Community Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by VijayKiran

  1. Hi,

    I'm getting error 'LIMIT_ORDER_WRONG_SIDE_OF_MARKET' when I am trying to initate a new open posistion after closing the existing posistion.

    But the same create new posostion function is working fine when I am trying to initate new posistion at the begening of the day.

    Can someone help what is the mistake with this approach?

    Transaction is working fine or accepeted when executing this code:

    image.png.52d107c8348cdf6c33b3b74401959fae.png

    Transaction is getting rejected when executing this code:

    image.thumb.png.8803d0b2b18c7bfbed8fc3cb788352e8.png

     

    create new posistion endpoint inputs:

    image.thumb.png.bcd083eb3095d258712b1b751e48cd3f.png

     

    2nd trade imn the below screen rejected with LIMIT_ORDER_WRONG_SIDE_OF_MARKET error.

    image.thumb.png.ba6e381fe9579fb11e4bf3e27e793e93.png

  2. Hi,

    I'm new to IG and I am trying to place a new position through API, but it is throwing error. Can someone help how to fix this please?

    ig_service.create_open_position(
            currency_code='GBP',
            direction='SELL',
            epic='OP.D.SPXWEEK.3980C.IP',
            order_type='MARKET',
            expiry='-',
            force_open='false',
            guaranteed_stop='false',
            size=0.5, level=None,
            limit_distance=None,
            limit_level=None,
            quote_id=None,
            stop_level=None,
            stop_distance=None,
            trailing_stop=None,
            trailing_stop_increment=None)

     

    Getting error message : "errorCode":"error.trading.otc.market-orders.not-supported-for-epic"

×
×
  • Create New...
us