Hi Team,
I buy stocks using MTF (Margin Trading Facility) from the Kite app and then want to place GTT SELL orders (target only) using the Kite Python API.
While placing GTT orders via API, I noticed that there is no PRODUCT_MTF constant available in kiteconnect.
When I try to use PRODUCT_MTF, I get the error:
'KiteConnect' object has no attribute 'PRODUCT_MTF'
My understanding (please confirm):
MTF is a funding layer
Holdings are internally treated as CNC
Therefore, GTT SELL for MTF positions should be placed using PRODUCT_CNC
Can you please confirm if this is the correct and supported approach?
My Sample Python Code
from kiteconnect import KiteConnect
kite = KiteConnect(api_key="YOUR_API_KEY")
kite.set_access_token("YOUR_ACCESS_TOKEN")
trigger_id = kite.place_gtt(
trigger_type=kite.GTT_TYPE_SINGLE,
tradingsymbol="INFY",
exchange=kite.EXCHANGE_NSE,
trigger_values=[1500],
last_price=1500,
orders=[{
"transaction_type": kite.TRANSACTION_TYPE_SELL,
"quantity": 10,
"order_type": kite.ORDER_TYPE_LIMIT,
"price": 1500,
"product": kite.PRODUCT_CNC
}]
)
print("GTT Trigger ID:", trigger_id)