Order tag: underscores allowed? Over-20-char rejected or truncated? Also: default market_protection

prashantgupta129
Two on the `tag` param:
1. Does `tag` accept underscores, or strictly alphanumeric only?
If a tag longer than 20 characters is submitted, is the whole order rejected, or is the tag silently truncated to 20 chars?
Separate question on the same call: if `market_protection` is omitted entirely (not set to 0, just not passed) on a market or SL-M order, is it rejected the same as an explicit 0, or does Kite apply a default protection percentage automatically? If there's a default, what is it?
  • salim_chisty
    Non-alphanumeric characters are currently accepted in the tag parameter. tag has a maximum length of 20 characters. If tag exceeds 20 characters, the order is rejected with the corresponding validation error; it is not truncated.

    Market orders will require market protection. Orders placed with market protection set to "0" will be rejected. Omitting market_protection does not apply a default protection values of -1 or 0. Use market_protection= -1 for automatic protection, or a positive value for a specific protection percentage. Please check the market protection API documentation for more details.
Sign In or Register to comment.