You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm able to create market orders. I'm able to even create limit orders if the price I put as level is above the current price (if im going long) which means that the order gets executed immediately.
However for the normal use case of putting a lwoer price for my limit, I get an exception from IG.
Let's say SPX is at 5800, and I want to buy at 5300. Therefore I put a buy limit order at 5300:
I'm able to create market orders. I'm able to even create limit orders if the price I put as level is above the current price (if im going long) which means that the order gets executed immediately.
However for the normal use case of putting a lwoer price for my limit, I get an exception from IG.
Let's say SPX is at 5800, and I want to buy at 5300. Therefore I put a buy limit order at 5300:
I get the following error:
{'date': '2025-04-02T19:13:19.134', 'status': None, 'reason': 'LIMIT_ORDER_WRONG_SIDE_OF_MARKET', 'dealStatus': 'REJECTED', 'epic': 'IX.D.SPTRD.DAILY.IP', 'expiry': None, 'dealReference': 'D8VEMD26FGQTYPH', 'dealId': 'DIAAAATAM38RJA2', 'affectedDeals': [], 'level': None, 'size': None, 'direction': 'BUY', 'stopLevel': None, 'limitLevel': None, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': False, 'trailingStop': False, 'profit': None, 'profitCurrency': None}
This is the request my library made to IG:
{"currencyCode": "GBP", "direction": "BUY", "epic": "IX.D.SPTRD.DAILY.IP", "expiry": "DFB", "forceOpen": "true", "guaranteedStop": "false", "level": 5100, "limitDistance": null, "limitLevel": null, "orderType": "LIMIT", "quoteId": null, "size": 1, "stopDistance": null, "trailingStop": false, "trailingStopIncrement": null}
Does this only happen to me?
The text was updated successfully, but these errors were encountered: