BO order is executing as normal order

PRCHAKR
PRCHAKR edited June 2018 in API clients
I have tried below CURL but the order is getting placed as normal MIS order (with out stoploss or target)

curl https://api.kite.trade/orders/regular \
-H "X-Kite-Version: 3" \
-H "Authorization: token api_key-XX:access_token-XX" \
-d "tradingsymbol=GAIL" \
-d "exchange=NSE" \
-d "transaction_type=BUY" \
-d "order_type=LIMIT" \
-d "quantity=1" \
-d "product=MIS" \
-d "validity=DAY" \
-d "squareoff=0.5" \
-d "stoploss=1"

Please confirm the above URL whether it is correct or not ?
  • rakeshr
    Hi @PRCHAKR
    You need to add variety=bo.
  • PRCHAKR
    @rakeshr @sujith
    Below is the sample which i try. This runs fine & got the orderID as well - 180627001967942

    curl https://api.kite.trade/orders/regular -H "X-Kite-Version: 3" -H "Authorization: XX:YY" -d "tradingsymbol=GAIL" -d "exchange=NSE" -d "transaction_type=BUY" -d "order_type=LIMIT" -d "quantity=100" -d "product=MIS" -d "validity=DAY" -d "price=310" -d "squareoff=1" -d "stoploss=2

    And Kite webclient screenshot below


    "
    Questions are,
    1)how or where do i see stoploss & target parameters for verification ?
    2) Can you please confirm stoploss & target with the orderid I placed 180627001967942 ?
    3) where do i put "variety=bo" parameter ? can you please post complete sample CURL command with this parameter ? (You can use the sample which i mentioned here)

  • PRCHAKR
    More over there is no such parameter in the documentation as "variety=bo".
    Please post complete sample url, which would be highly helpful.
  • PRCHAKR
    @sujith @rakeshr @tonystark
    This issue still exist.
    Please check on this & revert ASAP.

  • PRCHAKR
    Someone from zerodha pls check on this.
    I am not sure why this API is not working.
    Even documentation is also not very helpful in this case.
    I am keep on chasing on this, but no getting proper resolution at all.
  • PRCHAKR
    @sujith @rakeshr @zerodha1 @tonystark

    Guys this looks like api defect on ur end
    How long do i need to wait for this ?
    I send email to support.zerodha as well but no response.

    How long you guys want us to wait???
  • rakeshr
    rakeshr edited June 2018
    @PRCHAKR
    Your posting url is wrong, it should be https://api.kite.trade/orders/bo.
    Variety params is explained clearly in doc, here.
This discussion has been closed.