Jump to content
  • 0

Web API Edit Working Order rejected with reason: ATTACHED_ORDER_LEVEL_ERROR

Question

I encountered Web API edit working order (url  \workingorder_otc\DealId  _ rejected with reason:  ATTACHED_ORDER_LEVEL_ERROR.

What are the possible causes for this rejection? Most of the the times I don't gt this error.

  • Sad 1

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

The possible responses for the `reason` field are documented on the /confirms/{dealReference} page here

 

ATTACHED_ORDER_LEVEL_ERROR The level of the attached stop or limit is not valid

 

Share this post


Link to post
  • 0

It was a limit order. I look at the order level, it  is  a correct numeric value.

I suspect, there is some constraint imposed on the limit level in relation to the market price being traded at the point the order was placed. But I can't find any documentation on this. I would appreciate if you /anyone can shed light on this.

Note: the same limit order was successfully accepted in subsequent API call.

Share this post


Link to post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
You are posting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Member Statistics

    • Total Topics
      12,513
    • Total Posts
      63,758
    • Total Members
      84,623
    Newest Member
    i25dotus
    Joined 30/09/20 02:17
  • Posts

    • For me your stop is large, I use close to the minimum for the market. But I think same applies. I think basically I like tight stops because you can't lose too much but when you win hopefully you win big relative to that. I've been using a 4:1 reward/risk ratio for example.  When I started out I thought the likelihood of pulling this off given how close the stop was to entry was unlikely but actually it does happen fairly often. The issue I have is that I average a win every 4 trades so essentially make nothing in the end but that's just my mean, I have a massive standard deviation that I need to get way down i.e. increase win rate if possible before this is useful. So for me I think I need better timing signals to enter and I enter too readily without really using indicators to help me. To be honest though what I've found which might be obvious to most is that if the market trends for a period of time it's much easier to make money. When it isn't it's very difficult, the problem is you often don't know when it's not trending to a large enough degree until you're in it and then you need to know to take some time and return later. Like sailing with a strong wind and then all of a sudden it's doldrums.
    • Why am I 50% successful on TradingView and 100% unsuccessful on IG? Inadvertent hindsight?  
×
×