getStrategyPerformance
curl --request GET \
--url https://alphainsider.com/api/getStrategyPerformanceconst options = {method: 'GET'};
fetch('https://alphainsider.com/api/getStrategyPerformance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/getStrategyPerformance"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/getStrategyPerformance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://alphainsider.com/api/getStrategyPerformance"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": [
{
"strategy_id": "YdNf91nP-Q-YB39RwtlHQ",
"created_at": "2024-10-07T00:00:00.000Z",
"strategy_value": "1.000000000000000",
"activity": "",
"trade_count": "0"
},
{
"strategy_id": "YdNf91nP-Q-YB39RwtlHQ",
"created_at": "2024-10-08T00:00:00.000Z",
"strategy_value": "1.000000000000000",
"activity": "buy",
"trade_count": "1"
},
{
"strategy_id": "YdNf91nP-Q-YB39RwtlHQ",
"created_at": "2024-10-11T00:00:00.000Z",
"strategy_value": "1.000000000000000",
"activity": "sell",
"trade_count": "1"
}
]
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Strategies
getStrategyPerformance
Get strategy performance data.
GET
/
getStrategyPerformance
getStrategyPerformance
curl --request GET \
--url https://alphainsider.com/api/getStrategyPerformanceconst options = {method: 'GET'};
fetch('https://alphainsider.com/api/getStrategyPerformance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/getStrategyPerformance"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/getStrategyPerformance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://alphainsider.com/api/getStrategyPerformance"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": [
{
"strategy_id": "YdNf91nP-Q-YB39RwtlHQ",
"created_at": "2024-10-07T00:00:00.000Z",
"strategy_value": "1.000000000000000",
"activity": "",
"trade_count": "0"
},
{
"strategy_id": "YdNf91nP-Q-YB39RwtlHQ",
"created_at": "2024-10-08T00:00:00.000Z",
"strategy_value": "1.000000000000000",
"activity": "buy",
"trade_count": "1"
},
{
"strategy_id": "YdNf91nP-Q-YB39RwtlHQ",
"created_at": "2024-10-11T00:00:00.000Z",
"strategy_value": "1.000000000000000",
"activity": "sell",
"trade_count": "1"
}
]
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Headers
User API token.
Query Parameters
AlphaInsider strategy identifier.
The number of intervals per tick.
The timeframe per tick.
Available options:
hour, day, week Start date.
End timestamp for the current period or range.