Fetch available margin, cash balance, and a full breakdown of margin utilization across segments and products.
Overview
Funds & Limits returns your account's current cash and margin picture — what's available, what's been used, and a detailed breakdown of exactly what's consuming margin (SPAN, exposure, premium, brokerage) segmented by equity/derivative/FX/commodity and by intraday/margin/carry-forward. Check this before sizing any order rather than discovering insufficient margin via a rejection from RMS.
What's actually consuming the used margin — SPAN, exposure, option premium, VaR/ELM, covered-product margin, brokerage, and pledged collateral value.
Risk limits
turnoverlmt, pendordvallmt, turnover, pendordval
Configured ceilings vs. current usage for turnover and pending order value.
Segment/product breakup
rzpnl_e_i, uzpnl_d_m, span_c_i, brkage_f_h, etc.
Every core figure above also comes broken out by segment (e=equity, d=derivative, f=FX, c=commodity) and product (i=intraday, m=margin/carry-forward, c=CNC, h=cover, b=bracket).
Segment/product suffix conventionFields ending in _<segment>_<product> (e.g. rzpnl_d_i = realized P&L, derivatives, intraday) repeat the same handful of metrics per bucket. Parse them generically with a suffix split rather than hardcoding every field name.
Error handling
json
{ "stat": "Not_Ok", "emsg": "Server Timeout : " }
Best practices
Check available margin here before every order that materially changes exposure — don't rely on RMS rejection as your sizing feedback loop, since that rejection happens after the order has already left your system.
For a strategy running across multiple segments, use the segment-suffixed fields to see per-segment margin consumption rather than only the aggregate.
Not every field is populated on every account — treat undocumented/missing fields as 0 or absent rather than erroring.
Notes
This is the same underlying data as the Limits/Margin view in the Shoonya terminal. Field names shown follow standard NorenOMS convention — confirm the exact set returned for your account type before building alerting logic on top of it.
Overview
Funds & Limits returns your account's current cash and margin picture — what's available, what's been used, and a detailed breakdown of exactly what's consuming margin (SPAN, exposure, premium, brokerage) segmented by equity/derivative/FX/commodity and by intraday/margin/carry-forward. Check this before sizing any order rather than discovering insufficient margin via a rejection from RMS.
Parameters
CM(equity),FO(derivatives), orFX(currency).Request example
Response
cash,payin,payout,unclearedcash,daycashmarginused,mtomcurperspan,expo,premium,varelm,marprt,brokerage,collateralturnoverlmt,pendordvallmt,turnover,pendordvalrzpnl_e_i,uzpnl_d_m,span_c_i,brkage_f_h, etc.e=equity,d=derivative,f=FX,c=commodity) and product (i=intraday,m=margin/carry-forward,c=CNC,h=cover,b=bracket)._<segment>_<product>(e.g.rzpnl_d_i= realized P&L, derivatives, intraday) repeat the same handful of metrics per bucket. Parse them generically with a suffix split rather than hardcoding every field name.Error handling
Best practices
0or absent rather than erroring.Notes
This is the same underlying data as the Limits/Margin view in the Shoonya terminal. Field names shown follow standard NorenOMS convention — confirm the exact set returned for your account type before building alerting logic on top of it.