Jump to content
  • 0

Order Rejected via API



Hi all,

I have a very similar issue to what is presented in this topic

however the resolution is not working for me in any way.

In the same manner I am using the trading_ig github repository for connectivity. I am using a spread bet (demo) account, not a CFD account. 

With the command:

 resp = ig_service.create_open_position(
I get the following response.
{'affectedDeals': [], 'date': '2022-02-23T11:39:14.102', 'dealId': 'DIAAAAHR2HZCAAR', 'dealReference': 'TTTXL7BVZNYTYN7', 'dealStatus': 'REJECTED', 'direction': 'BUY', 'epic': 'UA.D.AAPL.CASH.IP', 'expiry': None, 'guaranteedStop': False, 'level': None, 'limitDistance': None, 'limitLevel': None, 'profit': None, 'profitCurrency': None, 'reason': 'UNKNOWN', 'size': None, 'status': None, 'stopDistance': None, 'stopLevel': None, 'trailingStop': False}

I can see the size goes to "none" in the response which I find odd and also get an unknown rejected reason. As per the other post I have also tried a limit order and that gave the exact same error (with a limit value at both 15000 and 17000 for the current apple price). Any advice would be appreciated to support on this issue.



Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
  • General Statistics

    • Total Topics
    • Total Posts
    • Total Members
    • Most Online
      10/06/21 10:53

    Newest Member
    IPS Temp Admin
    Joined 06/10/22 15:40
  • Posts

    • Hi @AndaIG, Please could the [LOUP] Innovator Deepwater Frontier Tech ETF be listed and made available for the ISA tax wrapper, pretty please? Many thanks, Sam
    • Look ahead to 31/5/23: China PMI; France GDP; Germany CPI Economic data is key on Wednesday. It starts in Japan with retail sales, followed by Chinese PMI.  Jeremy Naylor | Analyst, London | Publication date: Tuesday 30 May 2023  IGTV’s Jeremy Naylor looks at the chances that the Chinese yuan will weaken further as it becomes more and more obvious that the recovery in China is further away than initially expected. Then in the eurozone we’re looking at the CAC 40 and DAX as growth and inflation data is released. The only corporate on the schedule is from stationers, WH Smith.          
    • Charting the Markets: 30 May FTSE 100 lower while DAX moves higher in early trading, and Dow looks to edge up following reports of debt ceiling deal. EUR/USD declining and USD/JPY holding firm, while GBP/USD begins to show signs of a higher low. Chris Beauchamp | Chief Market Analyst, London | Publication date: Tuesday 30 May 2023  Gold’s pullback slows down, while Brent crude turns lower and natural gas struggles to hold the 50-day MA.               This is here for you to catch up but if you have any ideas on markets or events you want us to relay to the TV team we’re more than happy to.
  • Create New...