BO: Decimal target value is ignored

vinodhec
0.15 as target is creating 0.10 as target order when first leg is executed.
  • sujith
    Can you let us know the order id and params what you sent?
  • vinodhec
    vinodhec edited April 2018
    { exchange: 'NSE',
    validity: 'DAY',
    price: 102.85,
    order_type: 'LIMIT',
    squareoff: 0.3,
    stoploss: 1.2,
    token: 1214721,
    tradingsymbol: 'BANKINDIA',
    quantity: 1,
    upperRSI: 75,
    lowerRSI: 25,
    transaction_type: 'SELL' }


    {
    "placed_by": "xxxx",
    "order_id": "180424000214078",
    "exchange_order_id": "1000000000614022",
    "parent_order_id": null,
    "status": "COMPLETE",
    "status_message": null,
    "order_timestamp": "2018-04-24T09:28:02.000Z",
    "exchange_update_timestamp": null,
    "exchange_timestamp": "2018-04-24T09:28:00.000Z",
    "variety": "bo",
    "exchange": "NSE",
    "tradingsymbol": "BANKINDIA",
    "instrument_token": 1214721,
    "order_type": "LIMIT",
    "transaction_type": "SELL",
    "validity": "DAY",
    "product": "BO",
    "quantity": 1,
    "disclosed_quantity": 0,
    "price": 102.85,
    "trigger_price": 0,
    "average_price": 102.85,
    "filled_quantity": 1,
    "pending_quantity": 0,
    "cancelled_quantity": 0,
    "market_protection": 0,
    "tag": null,
    "guid": "xsiQsINAAEZl7FEq"
    }
  • vinodhec
    vinodhec edited April 2018
    Limit order placed with 0.25 instead of 0.30 as given in the squareoff


    {
    "placed_by": "xxx",
    "order_id": "180424000214342",
    "exchange_order_id": "1000000000614880",
    "parent_order_id": "180424000214078",
    "status": "COMPLETE",
    "status_message": null,
    "order_timestamp": "2018-04-24T09:30:48.000Z",
    "exchange_update_timestamp": null,
    "exchange_timestamp": "2018-04-24T09:28:02.000Z",
    "variety": "bo",
    "exchange": "NSE",
    "tradingsymbol": "BANKINDIA",
    "instrument_token": 1214721,
    "order_type": "LIMIT",
    "transaction_type": "BUY",
    "validity": "DAY",
    "product": "BO",
    "quantity": 1,
    "disclosed_quantity": 0,
    "price": 102.6,
    "trigger_price": 0,
    "average_price": 102.6,
    "filled_quantity": 1,
    "pending_quantity": 0,
    "cancelled_quantity": 0,
    "market_protection": 0,
    "tag": null,
    "guid": null
    }
  • vinodhec
    @sujith, square off is provided as 0.30, price sold is 102.85, so the buy order should be 102.55, instead, it is placed for 102.6
  • sujith
    @vinodhec,
    Can you let us know from where you placed this order?
    Is it from Kite web or mobile?
    If you placed it via Kite Connect app, can you give us exact params you sent?
  • vinodhec
    @sujith it is reproduced both in kiteconnect and kite mobile app.
    I used node js and following is the parameters used for the bo variety.

    { exchange: 'NSE',
    validity: 'DAY',
    price: 102.85,
    order_type: 'LIMIT',
    squareoff: 0.3,
    stoploss: 1.2,
    token: 1214721,
    tradingsymbol: 'BANKINDIA',
    quantity: 1,
    upperRSI: 75,
    lowerRSI: 25,
    transaction_type: 'SELL' }

    Let me know if u need any other information
  • sujith
    Can you provide current day order id because order status logs are cleared every day? It is difficult to track without the order history.
  • vinodhec
    @sujith

    Please find the order placed today

    Variety BO order:

    Request for nodeJS kite.placeOrder is

    { exchange: 'NSE',
    validity: 'DAY',
    price: '0',
    order_type: 'LIMIT',
    squareoff: 0.3,
    stoploss: 0.5,
    tradingsymbol: 'RCOM',
    transaction_type: 'SELL',
    quantity: 2 }


    Response with order_id
    { order_id: '180508000986223' }


    Issue:
    Eventhough the squareoff is given as 0.3, a order request is placed with 0.25 only. This happens when we try from mobile app also.
  • sujith
    It seems like a there is some issue at OMS level. We have informed the concerned team to look into this.
  • vinodhec
    Thanks @sujith . Any ETA? Seems it is across all platforms and critical one right?
  • sujith
    We will follow up with OMS team, but since it has the dependency on vendors. It might take a while.
    I am afraid we can't guarantee any timeline as of now.
Sign In or Register to comment.