Get portfolio
curl --request GET \
--url https://api.daya.co/stocks/v1/wallet/portfolio \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.daya.co/stocks/v1/wallet/portfolio"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.daya.co/stocks/v1/wallet/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://api.daya.co/stocks/v1/wallet/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-API-Key: <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://api.daya.co/stocks/v1/wallet/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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://api.daya.co/stocks/v1/wallet/portfolio")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/stocks/v1/wallet/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"delta_24h": {
"pct": "1.25",
"value_usd": "12.34"
},
"open_positions_value_usd": "473.75",
"positions": [
{
"available": "2.5",
"category": "stock",
"delta_24h": {
"pct": "1.25",
"value_usd": "12.34"
},
"logo_url": "https://cdn.daya.co/logos/aapl.png",
"name": "Apple Inc.",
"price_usd": "189.50",
"priced": true,
"quantity": "2.5",
"status": "enabled",
"symbol": "AAPL",
"value_usd": "473.75"
}
],
"total_value_usd": "1723.75",
"updated_at": "2026-01-15T10:30:00Z",
"usd_balance": "1250.00"
},
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}Account
Get portfolio
GET
/
wallet
/
portfolio
Get portfolio
curl --request GET \
--url https://api.daya.co/stocks/v1/wallet/portfolio \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.daya.co/stocks/v1/wallet/portfolio"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.daya.co/stocks/v1/wallet/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://api.daya.co/stocks/v1/wallet/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-API-Key: <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://api.daya.co/stocks/v1/wallet/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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://api.daya.co/stocks/v1/wallet/portfolio")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/stocks/v1/wallet/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"delta_24h": {
"pct": "1.25",
"value_usd": "12.34"
},
"open_positions_value_usd": "473.75",
"positions": [
{
"available": "2.5",
"category": "stock",
"delta_24h": {
"pct": "1.25",
"value_usd": "12.34"
},
"logo_url": "https://cdn.daya.co/logos/aapl.png",
"name": "Apple Inc.",
"price_usd": "189.50",
"priced": true,
"quantity": "2.5",
"status": "enabled",
"symbol": "AAPL",
"value_usd": "473.75"
}
],
"total_value_usd": "1723.75",
"updated_at": "2026-01-15T10:30:00Z",
"usd_balance": "1250.00"
},
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": "<unknown>",
"fields": {},
"message": "<string>"
},
"message": "<string>",
"success": true,
"timestamp": "<string>"
}Authorizations
Your Daya API key, sent in the X-API-Key header. Issue and scope keys in the Daya dashboard.
⌘I