Consultar posiciones en fondos de inversión de la Company
curl --request GET \
--url https://api.cresium.app/v3/investment-fund/positions \
--header 'x-api-key: <api-key>' \
--header 'x-company-id: <api-key>' \
--header 'x-signature: <api-key>' \
--header 'x-timestamp: <api-key>'import requests
url = "https://api.cresium.app/v3/investment-fund/positions"
headers = {
"x-api-key": "<api-key>",
"x-signature": "<api-key>",
"x-timestamp": "<api-key>",
"x-company-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-signature': '<api-key>',
'x-timestamp': '<api-key>',
'x-company-id': '<api-key>'
}
};
fetch('https://api.cresium.app/v3/investment-fund/positions', 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.cresium.app/v3/investment-fund/positions",
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>",
"x-company-id: <api-key>",
"x-signature: <api-key>",
"x-timestamp: <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.cresium.app/v3/investment-fund/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-signature", "<api-key>")
req.Header.Add("x-timestamp", "<api-key>")
req.Header.Add("x-company-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://api.cresium.app/v3/investment-fund/positions")
.header("x-api-key", "<api-key>")
.header("x-signature", "<api-key>")
.header("x-timestamp", "<api-key>")
.header("x-company-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cresium.app/v3/investment-fund/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-signature"] = '<api-key>'
request["x-timestamp"] = '<api-key>'
request["x-company-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 12,
"companyId": 456,
"investmentFundId": 1,
"shareAmount": 1523.456789,
"depositAddressId": 87,
"amount": 154200.35,
"createdAt": "<string>",
"investmentFund": {
"id": 1,
"title": "Fondo Money Market",
"subtitle": "Liquidez inmediata",
"apr": 32.5,
"aprDaily": 0.089,
"aprWeekly": 0.62,
"aprMonthly": 2.7,
"aprYearly": 32.5,
"fileUrl": "<string>",
"type": "MONEY_MARKET",
"horizon": "SHORT",
"shareValueA": 101.23,
"shareValueB": 101.25,
"profile": "MODERATE",
"ticker": "MMKT",
"rescue": "IMMEDIATE",
"createdAt": "<string>",
"argClosingTime": "15:00"
}
}
]
}{
"code": 401,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 500,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}Fondos de Inversión
Consultar posiciones en fondos de inversión de la Company
Devuelve las posiciones de la empresa en fondos de inversión. Cada posición es la tenencia de cuotapartes de un fondo, asociada a una cuenta de la empresa.
GET
/
v3
/
investment-fund
/
positions
Consultar posiciones en fondos de inversión de la Company
curl --request GET \
--url https://api.cresium.app/v3/investment-fund/positions \
--header 'x-api-key: <api-key>' \
--header 'x-company-id: <api-key>' \
--header 'x-signature: <api-key>' \
--header 'x-timestamp: <api-key>'import requests
url = "https://api.cresium.app/v3/investment-fund/positions"
headers = {
"x-api-key": "<api-key>",
"x-signature": "<api-key>",
"x-timestamp": "<api-key>",
"x-company-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-signature': '<api-key>',
'x-timestamp': '<api-key>',
'x-company-id': '<api-key>'
}
};
fetch('https://api.cresium.app/v3/investment-fund/positions', 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.cresium.app/v3/investment-fund/positions",
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>",
"x-company-id: <api-key>",
"x-signature: <api-key>",
"x-timestamp: <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.cresium.app/v3/investment-fund/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-signature", "<api-key>")
req.Header.Add("x-timestamp", "<api-key>")
req.Header.Add("x-company-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://api.cresium.app/v3/investment-fund/positions")
.header("x-api-key", "<api-key>")
.header("x-signature", "<api-key>")
.header("x-timestamp", "<api-key>")
.header("x-company-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cresium.app/v3/investment-fund/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-signature"] = '<api-key>'
request["x-timestamp"] = '<api-key>'
request["x-company-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 12,
"companyId": 456,
"investmentFundId": 1,
"shareAmount": 1523.456789,
"depositAddressId": 87,
"amount": 154200.35,
"createdAt": "<string>",
"investmentFund": {
"id": 1,
"title": "Fondo Money Market",
"subtitle": "Liquidez inmediata",
"apr": 32.5,
"aprDaily": 0.089,
"aprWeekly": 0.62,
"aprMonthly": 2.7,
"aprYearly": 32.5,
"fileUrl": "<string>",
"type": "MONEY_MARKET",
"horizon": "SHORT",
"shareValueA": 101.23,
"shareValueB": 101.25,
"profile": "MODERATE",
"ticker": "MMKT",
"rescue": "IMMEDIATE",
"createdAt": "<string>",
"argClosingTime": "15:00"
}
}
]
}{
"code": 401,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}{
"code": 500,
"error": "INTERNAL_SERVER_ERROR",
"message": "<unknown>"
}