Hi @Anjali_Jaiswal ,
Please share the exact request structure you are using to fetch the data via API, including the endpoint, parameters, and payload, so we can review and assist you accordingly.
import time
import datetime
import sys
import getpass
from Dhan_Tradehull_V2 import Tradehull
import os
# ————————————————
# Configuration / Inputs
# ————————————————
client_code = "1103063216"
token_id =
# --- setup (keep yours) ---
tsl = Tradehull(client_code, token_id)
# --- CORRECT order placement ---
# Use CE/PE (not CALL/PUT), uppercase enums, and PRICE=0 for MARKET orders.
order_id = tsl.order_placement(
tradingsymbol="SBIN 28 AUG 520 CALL", # CE not CALL; match your instruments file exactly
exchange="NFO", # NFO is valid for NSE F&O
quantity=75, # must be a multiple of lot size
price=0, # 0 for MARKET
trigger_price=0, # 0 when not using SL/trigger
order_type="MARKET", # UPPERCASE: MARKET/LIMIT/STOPMARKET/STOPLIMIT
transaction_type="BUY", # BUY or SELL
trade_type="MIS" # MIS for intraday
)
print(f"✅ Entry Order Placed! Order ID: {order_id}")
if not order_id:
print("⚠️ Order ID is None — order likely rejected. Re-check symbol and fields.")
@Shubham_Singh
I am unable to place order for stock options. tried with all option related to exchange but nothing working. Please help.
Best Regards,
Yogesh