I see order.tag = "tfc". Is this a new/permanent change?

swas99
swas99 edited March 2021 in Java client
I see the webHook for `OnOrderUpdate` is now receiving order.tag = "tfc", perhaps for orders placed not using the API.
Previously order.tag was `null`.

I ask:
Is this a new/permanent behaviour?
Is there other enums used? What do they mean?

I comment: Why make breaking changes without informing the users?
Tagged:
  • sujith
    If you send a tag you will see a value or else you will get null. This has been like this.
  • swas99
    Previously:
    - Place an order via kite desktop (not API), OnOrderUpdate receives the update & tag was `null`

    Now:
    - Place an order via kite desktop (not API), OnOrderUpdate receives the update & tag = `"tfc"`
  • rakeshr
    Place an order via kite desktop (not API), OnOrderUpdate receives the update & tag = `"tfc"`
    We just placed a couple of different types of orders from the Kite web and check Postback data. , 'tag': None, is still showing None i.e NULL for all KiteWeb placed Order.
  • swas99
    I had the implementation something like:
            if(order.tag == null)
    printErr("TAG MISSING FROM KITE_ORDER!!"+"\nKO_ID:"+order.orderId);
    else
    int id = Integer.parseInt(order.tag);
    This started breaking and I added a scrappy check if(order.tag == null || order.tag.equals("tfc")) to handle it.

    I can add logs to see if this happens again. Would be good to be certain of the behaviour.
Sign In or Register to comment.