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/portfolioUsage
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 rebalancingPortfolioOptimizer- Optimize portfolio allocation
Functions
portfolioRebalance()- Rebalance portfolio to target allocationsgetPortfolioStatus()- Get current portfolio statusgetPredictionPositions()- Get prediction market positionsgetBettingPortfolioStatus()- Get sports betting portfoliocrossAssetCorrelationMatrix()- Calculate correlation matrixcorrelationAnalysis()- Analyze asset correlations
License
MIT OR Apache-2.0