Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@treno.solutions/finance-sdk

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@treno.solutions/finance-sdk

Official TypeScript SDK for the Treno Finance API

latest
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

@treno-solutions/finance-sdk

Official TypeScript SDK for the Treno Finance API.

Auto-generated from our OpenAPI spec with hand-written additions for session-authenticated endpoints (risk catalogue).

Install

npm install @treno-solutions/finance-sdk

Quick Start

import {
  Configuration,
  PortfoliosApi,
  AccountsApi,
  ReportsApi,
} from '@treno-solutions/finance-sdk';

const config = new Configuration({
  basePath: 'https://app.treno.finance/api',
  fetchApi: (url, init) => {
    const u = new URL(url);
    u.searchParams.set('api-key', 'YOUR_API_KEY');
    return fetch(u.toString(), init);
  },
});

const portfolios = new PortfoliosApi(config);
const result = await portfolios.getPortfolios();

API Classes

ClassDescription
AccountsApiAsset account management (wallets, virtual accounts)
AnnotationsApiTransaction annotations and notes
ExportApiData export (CSV, Excel)
InvestmentsApiInvestment tracking and DCA strategies
LendingApiDeFi lending market data and yields
MarketApiMarket data, prices, forex, benchmarks
PortfoliosApiPortfolio management, positions, transactions, capital flows
PublicApiPublic market data (no auth required)
ReportsApiPerformance reports, tax reports, statement reports
TagsApiPortfolio tags and categorization
UsersApiUser info and subscription management

Risk Catalogue (PRO/ENTERPRISE)

For risk catalogue endpoints that use session-based authentication:

import {
  createRiskCatalogueSessionClient,
} from '@treno-solutions/finance-sdk';

const riskClient = createRiskCatalogueSessionClient(
  'https://app.treno.finance/api',
  'YOUR_API_KEY',
);

const risks = await riskClient.getRiskCatalogue({ categories: ['FINANCIAL'] });

Configuration

OptionDescriptionDefault
basePathAPI base URLhttps://app.treno.finance/api
fetchApiCustom fetch function (inject auth headers/params here)Native fetch

Requirements

  • Node.js >= 20 (or any environment with native fetch)
  • A valid Treno Finance API key (get one here)

License

MIT

Keywords

treno

FAQs

Package last updated on 15 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts