Indices List
https://connects.torusdigital.com/api/v1/indicescurl -X 'GET' \
'https://connects.torusdigital.com/api/v1/indices' \
-H 'accept: application/json'Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/indices")
.header("Content-Type", "application/json")
.asString();package main
import (
"fmt"
"io/ioutil"
"net/http"
"strings"
)
func main() {
url := "https://connects.torusdigital.com/api/v1/indices"
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))
}[
{
"code": 20559,
"exchange": "NSE",
"name": "Nifty50",
"price": 25383.75,
"priceChange": 27.25,
"changePercent": 0.10746751326089958
},
{
"code": 26753,
"exchange": "NSE",
"name": "BankNifty",
"price": 52153.15,
"priceChange": 215.09999999999854,
"changePercent": 0.41414723887400184
},
{
"code": 41384,
"exchange": "NSE",
"name": "FINNifty",
"price": 23989.85,
"priceChange": 10.299999999999272,
"changePercent": 0.0429532664291001
},
{
"code": 20558,
"exchange": "BSE",
"name": "Sensex",
"price": 82988.78,
"priceChange": 97.83999999999651,
"changePercent": 0.11803461270917727
},
{
"code": 23998,
"exchange": "BSE",
"name": "BANKEX",
"price": 58908.78,
"priceChange": 179.22999999999593,
"changePercent": 0.30471384399961077
}
]Parameter
Description
Last updated