Jump to content
  • 0

error LIMIT_ORDER_WRONG_SIDE_OF_MARKET


VijayKiran

Question

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

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
×
×
  • Create New...
us