Portfolio
https://connects.torusdigital.com/api/v1/portfolio/Name
Value
curl -X 'GET' \
'https://connects.torusdigital.com/api/v1/portfolio' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {{token}}'\Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://connects.torusdigital.com/api/v1/portfolio/")
.header("Authorization", "Bearer {{token}}")
.header("Content-Type", "application/json")
.asString();package main
import (
"fmt"
"io/ioutil"
"net/http"
"strings"
)
func main() {
url := "https://connects.torusdigital.com/api/v1/portfolio/"
method := "GET"
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
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))
}{
"status": "S",
"message": "SUCCESS",
"lastUpdatedOn": null,
"url": "",
"id": null,
"userID": null,
"data": [
{
"ScripID": 0,
"L3_ClientID": 0,
"L4_AccountTypeID": 1,
"L5_AccountID": 4,
"ProcessDate": "2024-09-16T00:00:00",
"AssetClassID": 14,
"ID": 0,
"ScripName": "Vodafone Idea Ltd",
"MaturityDate": "",
"Units": 3.000,
"PurchaseNav": 29.157,
"ValueAtcost": 87.47,
"CurrentNAV": 13.410,
"CurrentMarketValuation": 40,
"Dividend": 0.0000,
"AbsoluteGainOrLoss": -47.24,
"AbsoluteGainORLossPercentage": -117.4,
"XIRR": -74.4,
"AvgDaysInvested": 50,
"Category": "Direct Equity",
"SIP": 0.00,
"AsonDate": "13 Sep 2024",
"realizedGainLossValue": 0.0000,
"realizedGainLossPercentage": 0.00,
"NetPL": -47.24,
"DividendPayout": 0.00,
"currentValuePercentage": 100.0,
"CategorycurrentValuePercentage": 100.0,
"TotalXIRR": -74.4,
"CategoryXIRR": -74.4,
"TotalDividend": 0.00,
"TotalNetPl": -47.24,
"CategoryDividend": 0.00,
"CategoryNetPl": -47.24,
"TotalValuetAtCost": 87.47,
"CategoryValuetAtCost": 87.47,
"TotalMarketValue": 40.00,
"CategoryMarketValue": 40.23,
"CategoryAbsoluteGainOrLoss": -47.24,
"TotalAbsoluteGainOrLoss": -47.24,
"UCC": "",
"ISIN": "ISINNumber",
"StrCategoryXIRR": "-74.4",
"PurchaseAllowed": true,
"RedemptionAllowed": true,
"STPAllowed": true,
"SwitchAllowed": true,
"SWPAllowed": false
}
],
"table1": null,
"table2": null,
"table3": null,
"table4": null,
"table5": null,
"table6": null,
"table7": null,
"table8": null,
"table9": null,
"table10": null,
"table11": null,
"table12": null
}Parameter
Last updated