Path spellingUnSttledTradingDate (missing the second "e" in "Settled") is exactly how the endpoint is spelled server-side — don't "fix" the typo in client code or it will 404.
Parameters
Field
Type
Required
Description
uid
string
Required
User ID of the logged-in user.
Request Examples
import requests, json
payload = {"uid": "AB1234"}
data = f"jData={json.dumps(payload)}&jKey={accessToken}"
response = requests.post(
"https://api.shoonya.com/NorenWClientAPI/GetUnSttledTradingDate",
data=data,
)
result = response.json()
dates = [row["trd_date"] for row in result.get("trd_date", [])]
print("Unsettled trading dates:", dates)
Array of { trd_date } objects listing unsettled trading dates.
emsg
Present only on failure.
Best Practices
Parse trd_date strings as DD-MM-YYYY, not MM-DD-YYYY — a naive date parser in a US-locale environment will silently misread the month and day for any date past the 12th.
Refresh this list once per session rather than hardcoding a settlement calendar — exchange holidays and settlement cycles shift.
Use it to gate any settlement-dependent logic (e.g. deciding when a delivery-based position becomes eligible for further action) rather than computing T+1/T+2 manually from the current date.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/GetUnSttledTradingDateapplication/x-www-form-urlencodedjData=<JSON payload>&jKey=<AccessToken>UnSttledTradingDate(missing the second "e" in "Settled") is exactly how the endpoint is spelled server-side — don't "fix" the typo in client code or it will 404.Parameters
Request Examples
Response
OKorNot_Ok.{ trd_date }objects listing unsettled trading dates.Best Practices
trd_datestrings asDD-MM-YYYY, notMM-DD-YYYY— a naive date parser in a US-locale environment will silently misread the month and day for any date past the 12th.