Free api : placing gtt

aditya9241
I am trying to place a gtt, however i found that the python client place_gtt need a "last_price", since there is no free api by which i can get the last_price for an instrument. I am not able to use place_gtt in free api.

Also, last_price is kind of absolute and we don't ask it in UI. Zerodha already has this information, can we make this field as optional or remove it from the function.
Tagged:
  • salim_chisty
    You may refer to the similar discussion here.
  • aditya9241
    checked the discussion, is there any workaround for it, because last_price is not available with free version of api.
  • nagavenij
    You can manually add the last_price while placing a GTT order; however, it is recommended to use the live LTP/last traded price to ensure accuracy. Hence, the GTT expects the last_price field to be provided in the request.
  • aditya9241
    entering manually completely defeats the purpose
Sign In or Register to comment.