Holding
https://connects.torusdigital.com/api/v1/holdings/Header Parameters
Name
Value
Request Parameter
Name
Value
Mandatory
Description
Request
curl --location 'https://connects.torusdigital.com/api/v1/holdings/' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"source": "N"
}'Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("https://connects.torusdigital.com/api/v1/holdings/")
.header("Authorization", "Bearer {{token}}")
.header("Content-Type", "application/json")
.body("{\r\n \"source\": \"N\"\r\n}")
.asString();package main
import (
"fmt"
"io/ioutil"
"net/http"
"strings"
)
func main() {
url := "https://connects.torusdigital.com/api/v1/holdings/"
method := "POST"
payload := strings.NewReader(`{
"source": "N"
}`)
client := &http.Client{}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer {{token}}")
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))
}{
"data": [
{
"collateral_qty_cur": 0,
"collateral_perc": 25,
"bse_tick_size": 1,
"xirr": 0,
"bse_security_id": "532776",
"remaining_quantity": 20,
"nse_security_id": "13756",
"com_collateral": 0,
"last_traded_price": 39,
"isin_code": "INE637H01024",
"total_quantity": 20,
"row_no": 0,
"nse_symbol": "SHIVAMAUTO",
"collateral_qty_com": 0,
"cost_price": 42.5,
"market_value": 0,
"quantity": 20,
"security_source_type": "HLD",
"cagr": 0,
"nse_tick_size": 5,
"drv_collateral": 0,
"display_name": "SHIVAM AUTO.LTD",
"exchange_inst_name": "Other",
"utilized_quantity": 0,
"collateral_qty": 0,
"pledge_qty": 0,
"bse_symbol": "SHIVAMAUTO",
"exchange": "ALL",
"cur_collateral": 0,
"collateral_qty_drv": 0,
"collateral": 0
}
],
"message": "Success",
"status": "success"
}Parameter
Description
Last updated