-
Notifications
You must be signed in to change notification settings - Fork 2
API Guide
Durva Dongre edited this page Jun 4, 2025
·
1 revision
This document provides a detailed breakdown of the 5 main modular components in the api/components/ directory. Each component is a self-contained microservice that returns structured financial or analytical data.
Path: /api/components/market-data/
Method: GET
-
symbol(string) β e.g.,"RELIANCE" -
exchange(string) β e.g.,"NSE" -
segment(string) β"cash" | "futures" | "options" -
fields[](array of string) β subset of:-
ltp,percent_change,net_change -
bid_ask_spread,top_bids,top_asks -
depth_imbalance_ratio,volume -
ohlc,vwap,52w_high_low -
iv,option_greeks,put_call_ratio -
oi_change,oi_concentration_zscore -
sector_perf_change,fii_dii_activity -
market_sentiment_score,beta,volatility_percentile
-
GET /api/components/market-data/?symbol=RELIANCE&fields[]=ltp&fields[]=ivPath: /api/components/portfolio/
Method: GET
-
segment(string) β"equity" | "futures" | "options" -
details(boolean) β Whether to include full breakdown
-
holding_quantity,avg_buy_price,current_market_value -
unrealized_pnl,realized_pnl,pnl_percent -
asset_allocation_percent,portfolio_turnover -
margin_utilized,margin_breakdown(span, exposure) -
order_history,time_in_market -
liquidity_score,holding_period_avg_days -
execution_quality_rating,slippage_percent
Path: /api/components/stock-screener/
Method: POST
{
"filters": {
"pe_ratio": {"max": 20},
"debt_to_equity": {"lt": 0.5},
"dividend_yield": {"gte": 2},
"rsi": {"lt": 30},
"volume": {"gte": 1000000}
}
}- Valuation:
pe_ratio,pb_ratio,peg_ratio,ev_ebitda - Growth:
revenue_cagr_5y,eps_growth_5y,fcf_yield - Quality:
roe,roce,altman_z_score,piotroski_score - Technical:
rsi,macd_signal,bollinger_band_position - Sentiment:
delivery_percent,short_interest_ratio,fii_dii_holding_trend - Risk:
beta,volatility,moat_score - Tags:
sector,industry,market_cap
Path: /api/components/technical-analysis/
Method: GET
-
symbol(string) β e.g.,"INFY" -
interval(string) β"1m","5m","1d", etc. -
study[](array of string) β"macd","rsi","supertrend", etc. -
chart_type(optional) β"candlestick" | "heikin_ashi" | "renko" -
brick_size(number) β Required ifchart_type = renko
-
ohlc_series,volume_series -
indicator_series: keyed bystudy[] -
event_annotations: earnings, dividends, splits -
correlation_matrix(ifcompare_with[]passed)
Path: /api/components/fundamental-analysis/
Method: GET
-
symbol(string) β Stock name or ticker -
data_type(string) β"ratios" | "financials" | "ownership"
-
pe_ratio,pb_ratio,dividend_yield,dividend_payout_ratio -
roe,roce,debt_to_equity,interest_coverage_ratio -
cash_conversion_cycle,net_profit_margin,ebitda_margin -
revenue_cagr_5y,eps_cagr_3y -
altman_z_score,moat_score,comparative_sector_score -
shareholding_pattern,pledged_percent,insider_trades
β
Note: Each of these components plugs into the orchestrator (/api/assemble) and query analyzer (/api/query) to create seamless user responses in real-time chat or dashboard formats.
- π Research
What we're actually going to build vs what we dream about - πΊοΈ Roadmap
Our master plan (subject to reality checks) - π§© Components
The building blocks that hopefully work together - π‘ API Guide
Interfaces to every modular service, from market data to tax - π° Funding
How we keep the lights on (and the servers running) - ποΈ Architecture
The technical deep dive for masochists - β
Todo List
Whatβs pending, whatβs burning, and whoβs guilty - π€ Contributing
Join the chaos, we have cookies*
*Cookies not guaranteed