A full-featured, modular stock market simulation system with AI-driven trading, event-based market reactions, and extensible architecture - perfect for finance games, learning simulators.Ultimate Stock Market Simulation Framework for UnityBuild your own real-time stock market world — complete with AI traders, social sentiment, and dynamic events.Whether you're creating a serious financial simulator or a chaotic meme-stock adventure, this framework gives you the tools to make it real.Start trading your virtual market today.OverviewUltimate Stock Market Simulation Framework is a complete and extensible financial simulation engine built with Unity.It replicates a real-time trading environment — with order book mechanics, AI traders, dynamic news feeds, and narrative market events — making it ideal for:Financial & business simulation gamesTrading education or training appsAI trading experiments and backtesting prototypesFintech visualization and marketing demosEverything is modular, event-driven, and fully customizable.Core FeaturesReal-Time Trading EngineFull order book mechanics (limit / market orders, partial fills, cancellations)Thread-safe order matching with coroutine-based parallel processingConfigurable batch processor for high-frequency trading performanceAI Trader & Market MakerMultiple AI trader types: AITrader, SimpleCommandTrader, MarketMakerRealistic market participation, liquidity simulation, and command-based manipulationFully extensible — add your own trading agents easilyDynamic News & Social Media SystemEvent-driven news articles and simulated social postsInfluencers and sentiment-driven reactionsIntegrated with Scenario System for organic storytellingScenario & Event FrameworkJSON-defined narrative events (time, stock, or random triggers)Event actions: publish news, modify prices, post SNS, issue trader commandsFull control of in-game macro events and crisis simulationsCharacter & Relic SystemSelect trader archetypes (AntTrader, MemeTrader, etc.)Each character has unique trading traitsCollect relics with gameplay bonuses (profit boost, fee reduction, early news)Modular & Scalable ArchitectureManager-based system with dependency-safe initializationEventManager for decoupled communication between systemsEasy integration with your own UI, data, or gameplay extensionsSystem Architecture HighlightsEvent-Driven Architecture — clean Observer pattern communicationObject Pooling — efficient reuse of SNS posts, order rows, and eventsParallel Processing — each stock trades in its own coroutineData-Driven Design — scenarios and company info via JSON and ScriptableObjectsExpandable Modules — add new stocks, AI traders, or relics without modifying core logicIncludes full documentation with diagrams and an AI assistant guide for developers.What’s IncludedFull C# Source CodeComplete Trading EngineAI Trader System (3 base implementations)News + SNS Information SystemScenario/Event System with JSON supportCharacter & Relic Framework25+ Modular UI ComponentsDetailed Documentation & AI Assistant Guide (Markdown)Ready-to-run Demo ScenesExtensibility ExamplesAdd a New StockRegister via CompanyManager or VirtualAssetsGenerator — auto-populated in StockMarketSystem and UIAdd a New ScenarioCreate a JSON file in /Resources/Scenarios/, define triggers (time / price / random) and actionsAdd a New CharacterInherit from BasePlayerCharacter and implement InitializeTraits()Add a New RelicInherit from Relic and implement ApplyEffect() / RemoveEffect()Performance OptimizationsBatchOrderProcessor: Groups and processes orders per frameEventBatchProcessor: Efficient event queuing and deliveryFrame-Time Budgeting: EventManager caps to 8 ms per frameCoroutine-based Distribution: Smooth performance for 20+ stocksObject Pools: Minimized GC pressure during gameplayPerfect ForGame Developers – create realistic investment or trading gamesEducators – teach stock trading dynamics interactivelyAI Researchers – simulate trading agents or reinforcement learning environmentsFintech Teams – prototype market behaviors or test UX flowsDocumentation IncludedThree developer-ready documents:PROJECT_OVERVIEW.md — Full system summaryAI_ASSISTANT_GUIDE.md — AI-powered development guidanceARCHITECTURE.md — Architecture diagrams and dependency mapsEach includes initialization order, event flows, and modular extension points.Unity Version 6000.0.58f2 or laterProgramming Language C#Dependencies TextMeshPro, Newtonsoft JSONArchitecture Event-driven, Manager-basedLocalization EnglishPerformance Object pooling, Batch processing,Frame-budgeted event queueThis package was partially created with the assistance of AI tools.Specifically, ChatGPT was used to generate sample character images for the demo scene and to support idea development for architecture and code structure. Claude was used to help review and clean up portions of the source code for clarity and consistency.All final content — including code, logic, and assets — was manually written, reviewed, and tested by the developer to ensure originality, quality, and full functionality.