Python (SDK)
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.company.get_financial_metrics(symbol="AAPL", metric=models.GetCompanyMetricsMetric.ALL)
assert res.basic_financials is not None
# Handle response
print(res.basic_financials)import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.company.getFinancialMetrics({
symbol: "AAPL",
metric: "all",
});
console.log(result);
}
run();curl --request GET \
--url https://api.aries.com/v1/company/metrics \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/company/metrics', 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.aries.com/v1/company/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.aries.com/v1/company/metrics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.aries.com/v1/company/metrics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/company/metrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"metric": {
"10DayAverageTradingVolume": 32.50147,
"52WeekHigh": 310.43,
"52WeekLow": 149.22,
"52WeekLowDate": "2019-01-14",
"52WeekPriceReturnDaily": 101.96334,
"beta": 1.2989
},
"metricType": "all",
"series": {
"annual": {
"currentRatio": [
{
"period": "2019-09-28",
"v": 1.5401
},
{
"period": "2018-09-29",
"v": 1.1329
}
],
"netMargin": [
{
"period": "2019-09-28",
"v": 0.2124
},
{
"period": "2018-09-29",
"v": 0.2241
}
],
"salesPerShare": [
{
"period": "2019-09-28",
"v": 55.9645
},
{
"period": "2018-09-29",
"v": 53.1178
}
]
}
},
"symbol": "AAPL"
}Company
Company Financial Metrics
Retrieve key financial metrics and ratios including market capitalization, P/E ratio, dividend yield, profit margins, and return on equity. Perfect for fundamental analysis and stock screening.
Use Case: Filter stocks with P/E ratio below 15 and dividend yield above 3% for value investing.
GET
/
v1
/
company
/
metrics
Python (SDK)
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.company.get_financial_metrics(symbol="AAPL", metric=models.GetCompanyMetricsMetric.ALL)
assert res.basic_financials is not None
# Handle response
print(res.basic_financials)import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.company.getFinancialMetrics({
symbol: "AAPL",
metric: "all",
});
console.log(result);
}
run();curl --request GET \
--url https://api.aries.com/v1/company/metrics \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/company/metrics', 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.aries.com/v1/company/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.aries.com/v1/company/metrics"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.aries.com/v1/company/metrics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/company/metrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"metric": {
"10DayAverageTradingVolume": 32.50147,
"52WeekHigh": 310.43,
"52WeekLow": 149.22,
"52WeekLowDate": "2019-01-14",
"52WeekPriceReturnDaily": 101.96334,
"beta": 1.2989
},
"metricType": "all",
"series": {
"annual": {
"currentRatio": [
{
"period": "2019-09-28",
"v": 1.5401
},
{
"period": "2018-09-29",
"v": 1.1329
}
],
"netMargin": [
{
"period": "2019-09-28",
"v": 0.2124
},
{
"period": "2018-09-29",
"v": 0.2241
}
],
"salesPerShare": [
{
"period": "2019-09-28",
"v": 55.9645
},
{
"period": "2018-09-29",
"v": 53.1178
}
]
}
},
"symbol": "AAPL"
}Authorizations
Query Parameters
Response
Successful response
Basic financial metrics for company research. Use these values for valuation, profitability, and balance-sheet trend displays.
Was this page helpful?