python ttl example

asto
@rakeshr @sujith @SRIJAN
heyy ,any python examples of placing order with validity=validity.ttl ... i am confused the docs say it send in mins but how ?
type(kite.VALIDITY_TTL) returns str, so how to exactly pass number of mins in place_order/place_gtt

</code>
validity=kite.VALIDITY_TTL(1) # returns str object not callable
validity=kite.VALIDITY_TTL[1] # returns Invalid `validity`
validity=kite.VALIDITY_TTL*1 # returns 'content-type'


what is the syntax for the same exactly?
thanx in advance :)
  • asto
    Figured it out
    validity=kite.VALIDITY_TTL
    validity_ttl= 1 ( num of mins)

    (gotta stop using text editor :# need that autocomplete)
This discussion has been closed.