Hi, I want to place order with some tag so that i can list out all orders which is executed from my application. Doing like this it will help me to generate report for my application about Profit/Loss over a month/week.
in PlaceOrderTag is already an argument provided, you just have to fill it and crosscheck it with the order details you download, or receive through websocket connection.
Length of Tag word cannot be more then 8 characters.
@ankur0101, It can only take alphanumeric characters of maximum length 8. Are you sure you are not sending special characters and length of the string is not more than length 8?
No, I am using pure REST API. While placing an order from python, I am using the above code, I believe given tag "tag1" should be visible when I login to Kite > Orders > Locate respective order > Order info
Thanks @sujith I think it would be good idea to have them in Kite too, because user will understand whether the order has been placed manually or using algo.
Order tag is already available. You can check out documentation.
Length of Tag word cannot be more then 8 characters.
Thanks
Regards
It can only take alphanumeric characters of maximum length 8.
Are you sure you are not sending special characters and length of the string is not more than length 8?
url = "https://api.kite.trade/orders/regular"
zerodhaToken = "token "+api_key+":" + access_token
headers = {"X-Kite-Version": "3", "Authorization": zerodhaToken}
data = { "tradingsymbol" : tradingSymbol,
"exchange" : exchange,
"transaction_type" : transaction_type,
"product" : product,
"order_type" : order_type,
"quantity" : quantity,
"price" : price,
"trigger_price" : trigger_price,
"disclosed_quantity" : disclosed_quantity, "validity" : validity, "tag" : "tag1"
}
response = requests.post(url, headers=headers, data=data)
Can you elaborate your issue, tags are not there in the orderbook response or it is not visible on Kite web/mobile?