{"_id":"@aeon-games/stock-exchange","_rev":"2-77d14bf634bd3c6617f5e4458dad254e","name":"@aeon-games/stock-exchange","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0":{"name":"@aeon-games/stock-exchange","version":"5.0.0","_id":"@aeon-games/stock-exchange@5.0.0","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"dist":{"shasum":"87a2ac7bf4e56dc0a92cee1935d31902b20e1a73","tarball":"https://registry.npmjs.org/@aeon-games/stock-exchange/-/stock-exchange-5.0.0.tgz","fileCount":8,"integrity":"sha512-jzyxZVJ92mWSIwkGCrLGoUpVZZUnOyw1UCrXW9iFmsyw3o53TRhfQ6yseYEK7yp4R74qFUS6L1LzF2GhTocdEA==","signatures":[{"sig":"MEUCIQDZwJer+7J5Lh6FQkK9EWGCafwAU1BE+5wiQIFO/WqD5AIgQtBkXkmfjzYBkU57EaVgw1Yyl16AV0KCrYAOjT3QCF8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101925},"main":"src/index.tsx","gitHead":"50ee9b90d00baf68ad1cb93dd5bf9e32eab9b983","scripts":{"forge:deploy":"bun ../../../apps/aeon-forge/src/cli/cli.tsx deploy . --oneshot"},"_npmUser":{"name":"buley","email":"buley@outlook.com"},"_npmVersion":"11.8.0","description":"Stock Exchange","directories":{},"_nodeVersion":"25.5.0","dependencies":{"react":"^19.0.0","@aeon-games/engine":"workspace:*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/stock-exchange_5.0.0_1773156843844_0.5191366718768231","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated and no longer supported. Do not use."}},"time":{"created":"2026-03-10T15:34:03.749Z","modified":"2026-03-27T20:31:10.196Z","5.0.0":"2026-03-10T15:34:03.985Z"},"description":"Stock Exchange","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"readme":"# Stock Exchange\n\n## Purpose\n**Stock Exchange** is a financial simulation and strategy game within the Aeon Games ecosystem. Players (and agents) navigate a volatile market of futuristic stocks, using news events and historical trends to buy low and sell high. The game tests risk management, pattern recognition, and decisive action in a fast-paced trading environment.\n\n## Key Features\n- **Dynamic Market Simulation**: Stocks have varying prices, trends, and volatility levels that evolve each turn.\n- **News Event Integration**: Real-time news items provide clues about upcoming price movements and sector-wide shifts.\n- **Advanced Trading Options**: Support for long positions, short selling, and portfolio management.\n- **Visual Analytics**: Price history charts and trend indicators help players make informed trading decisions.\n\n## Key Files\n- `src/index.tsx`: Core game implementation, including the market engine, news generation, and trading logic.\n- `package.json`: Package metadata and dependencies.\n- `tsconfig.json`: TypeScript configuration.\n\n## Usage\nThe `StockExchange` component is integrated into the Aeon Games platform:\n\n```tsx\nimport StockExchange from '@aeon-games/stock-exchange';\n\n<StockExchange \n  gameId=\"neo-tokyo-exchange\"\n  startingCapital={10000}\n  onSessionComplete={...}\n/>\n```\n\n## Mechanics\n- **Portfolio**: Track cash balance, long positions (shares owned), and short positions (shares owed).\n- **Market Dynamics**:\n    - **Trend**: Long-term price direction bias.\n    - **Volatility**: Magnitude of random price fluctuations.\n    - **Impact**: News events that force immediate and significant price changes.\n- **Win Condition**: Maximize total net worth (cash + position value) over a fixed number of turns.\n","readmeFilename":"README.md"}