Jump to content
  • 0

Order Rejected via API


APIGraham

Question

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(
        currency_code='USD',
        direction='BUY',
        epic='UA.D.AAPL.CASH.IP',
        order_type='MARKET',
        expiry='DFB',
        size=10,
        force_open='False',
        guaranteed_stop='False',
        level=None,
        limit_distance=None,
        limit_level=None,
        quote_id=None,
        stop_level=None,
        stop_distance=None,
        trailing_stop=None,
        trailing_stop_increment=None)
resp
 
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.

Thanks

 

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
      22,085
    • Total Posts
      92,934
    • Total Members
      42,475
    • Most Online
      7,522
      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...