Torus Digital Open API
  • Introduction
  • Get Started
  • Authentication
    • Login
    • Session Token
  • SDK
    • Self Generated SDK'S
  • Orders
    • Order Entry
    • Order Modify
    • Order Cancel
    • Order Convert To delivery
    • Order Margin
    • Order Book
    • Order Details
  • Holdings and Portfolio
    • Portfolio
    • Holding
    • Holding Details
    • Net Positions
  • Market
    • Market Status
  • Trade
    • Trade Book
    • Trade Details
  • Funds
    • Fund limits
    • Fund limits details
  • Historical Data
    • Search Stock
    • Company Basic Detail
    • Indices List
    • Monthly/Yearly Returns
    • Share Holding Pattern
    • Balance Sheet
    • Cash Flow
    • Profit and Loss
Powered by GitBook
On this page
  1. Historical Data

Search Stock

The API searches for the desired stock by company name, NSE symbol, or BSE code. It returns details such as the company code, name, listed exchanges with their statuses, NSE symbol or BSE code, market capitalization, industry, and more.

Endpoint

https://connects.torusdigital.com/api/v1/stocks?query={query}&page=1&limit=10

Request Parameter

Name
Mandatory
Description

query

Y

Search query (company name, NSE symbol or BSE code)

page

N

Page number by default 1

limit

N

Result count per page default 10

Request

cURL
curl -X 'GET' \
  'https://connects.torusdigital.com/api/v1/stocks?query=<query>&page=1&limit=10' \
  -H 'accept: application/json'
Java-Unirest
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/stocks?query=<query>&page=1&limit=10")
  .header("Content-Type", "application/json")
  .asString();
Go-Native
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"strings"
)

func main() {
	url := "https://connects.torusdigital.com/api/v1/stocks?query=<query>&page=1&limit=10"
	method := "GET"

	client := &http.Client{}
	req, err := http.NewRequest(method, url, nil)

	if err != nil {
		fmt.Println(err)
		return
	}
	req.Header.Add("Content-Type", "application/json")

	res, err := client.Do(req)
	if err != nil {
		fmt.Println(err)
		return
	}
	defer res.Body.Close()

	body, err := ioutil.ReadAll(res.Body)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(string(body))
}
JavaScript-jQuery
var settings = {
  "url": "https://connects.torusdigital.com/api/v1/stocks?query=<query>&page=1&limit=10",
  "method": "GET",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

Response

[
  {
    "type": "STK",
    "co_code": 5400,
    "bsecode": "532540",
    "nsesymbol": "TCS",
    "companyname": "Tata Consultancy Services Ltd",
    "companyshortname": "TCS",
    "categoryname": "Company",
    "isin": "INE467B01029",
    "bsegroup": "A",
    "mcap": 1632553.45,
    "mcaptype": "Large Cap",
    "displaytype": "SOFTWARE",
    "sectorcode": "00000034",
    "sectorname": "IT - Software",
    "industrycode": "00000072",
    "industryname": "Computers - Software - Large",
    "bselistedflag": "Y",
    "nselistedflag": "Y",
    "BSEStatus": "Active",
    "NSEStatus": "Active"
  }
]

Response Parameters

Parameter
Description

type

Type of security (e.g., "STK" for stock).

co_code

Unique company code identifier.

bsecode

BSE (Bombay Stock Exchange) code for the company.

nsesymbol

NSE (National Stock Exchange) symbol for the company.

companyname

Full name of the company.

companyshortname

Shortened name of the company.

categoryname

Category name indicating the type of entity (e.g., "Company").

isin

International Securities Identification Number (ISIN) for the company's stock.

bsegroup

Group classification on the BSE (e.g., "A" group).

mcap

Market capitalization of the company in crores (or appropriate unit).

mcaptype

Market capitalization classification (e.g., "Large Cap", "Mid Cap").

displaytype

Type of industry or sector (e.g., "SOFTWARE").

sectorcode

Unique sector code identifying the sector the company belongs to.

sectorname

Name of the sector (e.g., "IT - Software").

industrycode

Unique code for the industry to which the company belongs.

industryname

Name of the industry (e.g., "Computers - Software - Large").

bselistedflag

Flag indicating if the company is listed on BSE ("Y" for yes, "N" for no).

nselistedflag

Flag indicating if the company is listed on NSE ("Y" for yes, "N" for no).

BSEStatus

Status of the company's listing on BSE (e.g., "Active").

NSEStatus

Status of the company's listing on NSE (e.g., "Active").

PreviousHistorical DataNextCompany Basic Detail

Last updated 8 months ago