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

Company Basic Detail

This API retrieves detailed stock information for a company by its name. It returns the company's BSE and NSE symbols, market capitalization type, industry, and stock price details, including the latest closing price, percentage change, and price difference for both BSE and NSE exchanges.

Note: Pass companySlug from Search Stock API.

Endpoint:

https://connects.torusdigital.com/api/v1/stocks/{companySlug}

Request Parameter

Name
Mandatory
Description

companySlug

Y

The name of the companySlug for which the stock information is being retrieved.

Request

cURL
curl -X 'GET' \
  'https://connects.torusdigital.com/api/v1/stocks/{companySlug}' \
  -H 'accept: application/json'
Java-Unirest
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/stocks/{companySlug}")
  .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/{companySlug}"
	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/{companySlug}",
  "method": "GET",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json"
  },
};

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

Response

{
  "bseSymbol": "532540",
  "cocode": 5400,
  "companyName": "Tata Consultancy Services Ltd",
  "date": "2024-09-16T15:38:39",
  "exchanges": [
    "BSE",
    "NSE"
  ],
  "industryName": "Computers - Software - Large",
  "isin": "INE467B01029",
  "mcapType": "Large Cap",
  "nseSymbol": "TCS",
  "price": {
    "BSE": {
      "changePer": -0.2045441981314611,
      "close": 4513,
      "diff": -9.25
    },
    "NSE": {
      "changePer": -0.20673948613630133,
      "close": 4513.25,
      "diff": -9.350000000000364
    }
  }
}

Response Parameters

Parameter
Description

bseSymbol

The BSE symbol of the company.

cocode

Unique identifier for the company.

companyName

Full name of the company.

date

The date and time of the stock information retrieval in ISO 8601 format.

exchanges

The stock exchanges where the company is listed (e.g., BSE, NSE).

industryName

The industry to which the company belongs.

isin

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

mcapType

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

nseSymbol

The NSE symbol of the company.

price

Contains the latest stock price information for both BSE and NSE exchanges or either one if listed.

Exchange (NSE or BSE)

Contains price change based on exchange

changePer

The percentage change in the stock price on NSE/BSE.

close

The closing price of the stock on NSE/BSE.

diff

The difference between the current and previous prices on NSE/BSE.

PreviousSearch StockNextIndices List

Last updated 5 months ago