Search Stock
https://connects.torusdigital.com/api/v1/stocks?query={query}&page=1&limit=10Request Parameter
Name
Mandatory
Description
curl -X 'GET' \
'https://connects.torusdigital.com/api/v1/stocks?query=<query>&page=1&limit=10' \
-H 'accept: application/json'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();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))
}[
{
"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"
}
]Parameter
Description
Last updated