Deprecated
Get aggregated portfolio
deprecated
Get the aggregated portfolio of the user containing market values.
GET
/
api
/
v1
/
holdings
/
portfolio
Get aggregated portfolio
curl --request GET \
--url https://integration-api.meshconnect.com/api/v1/holdings/portfolio \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>'import requests
url = "https://integration-api.meshconnect.com/api/v1/holdings/portfolio"
headers = {
"X-Client-Secret": "<api-key>",
"X-Client-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Client-Secret': '<api-key>', 'X-Client-Id': '<api-key>'}
};
fetch('https://integration-api.meshconnect.com/api/v1/holdings/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integration-api.meshconnect.com/api/v1/holdings/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Client-Id: <api-key>",
"X-Client-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://integration-api.meshconnect.com/api/v1/holdings/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Client-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://integration-api.meshconnect.com/api/v1/holdings/portfolio")
.header("X-Client-Secret", "<api-key>")
.header("X-Client-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration-api.meshconnect.com/api/v1/holdings/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Secret"] = '<api-key>'
request["X-Client-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"content": {
"portfolioCostBasis": 1819.9,
"actualPortfolioPerformance": 6.1,
"equitiesValue": 1934.78,
"cryptocurrenciesValue": 1185.12,
"nftsValue": 0,
"equityPositions": [
{
"portfolioPercentage": 0.44,
"totalReturn": -1.3,
"returnPercentage": -8.67,
"companyName": "Tesla",
"totalDailyReturn": 0.45,
"dailyReturnPercentage": 3.45,
"marketValue": 13.69,
"lastPrice": 214.44,
"symbol": "TSLA",
"amount": 0.063,
"costBasis": 234.8
},
{
"portfolioPercentage": 38.98,
"totalReturn": 144.97,
"returnPercentage": 13.71,
"companyName": "Apple",
"totalDailyReturn": 31.65,
"dailyReturnPercentage": 2.7,
"marketValue": 1201.67,
"lastPrice": 147.27,
"symbol": "AAPL",
"amount": 8.15,
"costBasis": 129.5
}
],
"cryptocurrencyPositions": [
{
"portfolioPercentage": 11.4018,
"totalReturn": -592.6533,
"returnPercentage": -62.7737,
"companyName": "Ethereum",
"totalDailyReturn": -3.6081,
"dailyReturnPercentage": -1.0162,
"marketValue": 351.457,
"lastPrice": 1350.07,
"symbol": "ETH",
"amount": 0.260325,
"costBasis": 3626.66
},
{
"portfolioPercentage": 7.8,
"totalReturn": -85.45,
"returnPercentage": -26.2,
"companyName": "Dogecoin",
"totalDailyReturn": -2.45,
"dailyReturnPercentage": -1.0103,
"marketValue": 240.5754,
"lastPrice": 0.05977,
"symbol": "DOGE",
"amount": 4025.02,
"costBasis": 0.081
}
],
"nftPositions": []
},
"status": "ok",
"message": "",
"errorHash": "29c0cd7f",
"teamCode": "P4",
"errorType": ""
}Authorizations
Query Parameters
Response
Portfolio obtained
Was this page helpful?
⌘I
Get aggregated portfolio
curl --request GET \
--url https://integration-api.meshconnect.com/api/v1/holdings/portfolio \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>'import requests
url = "https://integration-api.meshconnect.com/api/v1/holdings/portfolio"
headers = {
"X-Client-Secret": "<api-key>",
"X-Client-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Client-Secret': '<api-key>', 'X-Client-Id': '<api-key>'}
};
fetch('https://integration-api.meshconnect.com/api/v1/holdings/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integration-api.meshconnect.com/api/v1/holdings/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Client-Id: <api-key>",
"X-Client-Secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://integration-api.meshconnect.com/api/v1/holdings/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Client-Id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://integration-api.meshconnect.com/api/v1/holdings/portfolio")
.header("X-Client-Secret", "<api-key>")
.header("X-Client-Id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration-api.meshconnect.com/api/v1/holdings/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Secret"] = '<api-key>'
request["X-Client-Id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"content": {
"portfolioCostBasis": 1819.9,
"actualPortfolioPerformance": 6.1,
"equitiesValue": 1934.78,
"cryptocurrenciesValue": 1185.12,
"nftsValue": 0,
"equityPositions": [
{
"portfolioPercentage": 0.44,
"totalReturn": -1.3,
"returnPercentage": -8.67,
"companyName": "Tesla",
"totalDailyReturn": 0.45,
"dailyReturnPercentage": 3.45,
"marketValue": 13.69,
"lastPrice": 214.44,
"symbol": "TSLA",
"amount": 0.063,
"costBasis": 234.8
},
{
"portfolioPercentage": 38.98,
"totalReturn": 144.97,
"returnPercentage": 13.71,
"companyName": "Apple",
"totalDailyReturn": 31.65,
"dailyReturnPercentage": 2.7,
"marketValue": 1201.67,
"lastPrice": 147.27,
"symbol": "AAPL",
"amount": 8.15,
"costBasis": 129.5
}
],
"cryptocurrencyPositions": [
{
"portfolioPercentage": 11.4018,
"totalReturn": -592.6533,
"returnPercentage": -62.7737,
"companyName": "Ethereum",
"totalDailyReturn": -3.6081,
"dailyReturnPercentage": -1.0162,
"marketValue": 351.457,
"lastPrice": 1350.07,
"symbol": "ETH",
"amount": 0.260325,
"costBasis": 3626.66
},
{
"portfolioPercentage": 7.8,
"totalReturn": -85.45,
"returnPercentage": -26.2,
"companyName": "Dogecoin",
"totalDailyReturn": -2.45,
"dailyReturnPercentage": -1.0103,
"marketValue": 240.5754,
"lastPrice": 0.05977,
"symbol": "DOGE",
"amount": 4025.02,
"costBasis": 0.081
}
],
"nftPositions": []
},
"status": "ok",
"message": "",
"errorHash": "29c0cd7f",
"teamCode": "P4",
"errorType": ""
}