JSPM

@neural-trader/portfolio

2.6.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q105514F
  • License MIT OR Apache-2.0

Neural Trader portfolio management and optimization

Package Exports

  • @neural-trader/portfolio
  • @neural-trader/portfolio/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@neural-trader/portfolio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@neural-trader/portfolio

Portfolio management and optimization for Neural Trader.

Installation

npm install @neural-trader/portfolio

Usage

const {
  portfolioRebalance,
  PortfolioManager,
  PortfolioOptimizer
} = require('@neural-trader/portfolio');

// Rebalance portfolio
const result = await portfolioRebalance({
  targetAllocations: {
    'AAPL': 0.3,
    'GOOGL': 0.3,
    'MSFT': 0.4
  }
});

// Use portfolio manager
const manager = new PortfolioManager({
  initialCapital: 100000
});

// Optimize portfolio
const optimizer = new PortfolioOptimizer({
  riskTolerance: 0.5,
  targetReturn: 0.15
});

API

Classes

  • PortfolioManager - Manage portfolio positions and rebalancing
  • PortfolioOptimizer - Optimize portfolio allocation

Functions

  • portfolioRebalance() - Rebalance portfolio to target allocations
  • getPortfolioStatus() - Get current portfolio status
  • getPredictionPositions() - Get prediction market positions
  • getBettingPortfolioStatus() - Get sports betting portfolio
  • crossAssetCorrelationMatrix() - Calculate correlation matrix
  • correlationAnalysis() - Analyze asset correlations

License

MIT OR Apache-2.0