Unable to place market order
-
This post is deleted! -
@Moderator_1 Any update for this ? Thanks
-
Hello @pkrawat1,
I'll get it checked tomorrow with our tech team. Thanks for reporting this issue.
Thank you.
Regards
SmartAPI Team -
-
@Moderator_1 Does it have to do with upper circuit ?? The stock was on upper circuit limit
-
@Moderator_1
This my own elixir sdk I created which helps calling the api
https://github.com/pkrawat1/trade_galleon/blob/36d0f9918a27008d563f79d6ff196b83516d29c9/lib/trade_galleon/brokers/angel_one.ex#L107 -
@Moderator_1 Here is the code open sourced https://github.com/pkrawat1/angel-trading/blob/master/lib/angel_trading/api.ex#L83
The place order works for limit order but not market order
-
@Moderator_1
You can check that in response, all the fields are correct. Still it got rejected with no error in "text" field -
@Moderator_1
This is elixir language code, It automatically converts this to json.
This same code is working for placing limit orders. But only fails in case of MARKET order. -
Hello @pkrawat1,
This looks like a parsing error. Please enclose the keys in the request body inside "" so that it can be interpreted as a String, i.e. "exchange" instead of exchange.
If you still have any issue, please let us know.
Thank you.
Regards
SmartAPI Team