Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,800 resources
01
Days
04
Hours
13
Mins
48
Secs

Full Source Code | NexusExchange - Stock & Crypto Engine


NexusExchange — Source Code

The complete, documented source for NexusExchange — built to read, learn from, and extend

The full Maven project behind the hybrid stock market & live crypto exchange: a real stochastic price engine, limit orders, dividends, IPOs, Discord integration, a unified Paper/Folia scheduler, and a clean HikariCP persistence layer.

Java 21 • Maven • Paper • Purpur • Folia • fully commented


What is this?

The complete, buildable source code for NexusExchange — not an obfuscated jar, but the real, readable project. Every class is documented, the architecture is cleanly separated into packages, and the whole thing compiles to a shaded, ready-to-run jar with a single Maven command.

This is the source add-on. You need it only if you want the code itself — the compiled plugin is sold separately.


What You Get

  • The full Maven project: mvn clean package produces the finished, shaded jar.
  • Documented throughout: Javadoc explaining the why, not just the what.
  • Clean package layout: market, model, manager, gui, database, scheduler, event, hook, discord, placeholderapi, command, util.
  • Every v1.1 system included: limit orders, dividends, IPOs, watchlists, transaction tax, leaderboards, Discord webhooks, PlaceholderAPI and shop integration — all in source.
  • Transparent build: HikariCP, Gson, bStats bundled and relocated cleanly.


Architecture Highlights

  • Price engine: PriceModel implements GBM in log-space with Ornstein-Uhlenbeck mean reversion; CoinGeckoClient handles batched live fetches with fallback.
  • Asset model: an AbstractMarketAsset base with Stock/CryptoCoin subclasses — add a new asset type and the engine, GUI, and persistence pick it up generically.
  • Order & dividend systems: an in-memory order book checked each tick (OrderManager) and an interval-driven DividendScheduler, each backed by its own repository.
  • IPO lifecycle: IPOManager drives the ANNOUNCED → OPEN → CLOSED/FAILED phases and hands finished offerings over into the live market.
  • Discord layer: a dependency-free webhook client (JDK HttpClient) with a typed MarketReporter and a hand-rolled embed builder.
  • Unified scheduler: a PlatformScheduler abstraction (Bukkit + Folia) behind a factory; one codebase runs on both.
  • Persistence: a HikariCP DatabaseManager over SQLite, H2, and MySQL/MariaDB — holdings, a full transaction audit log, price history, orders, dividends, IPO purchases and watchlists.
  • Optional integrations done right: VaultHook, PlaceholderAPI and the shop hooks load reflectively and degrade gracefully when their plugin is absent.
  • Economy & events: MarketEventEngine drives crash/hype and EconomyInfluenceListener ties gameplay to price pressure.


Why Buy the Source?

  • Total customization: change the price math, add asset types, add order kinds, rework the GUI — no config ceiling.
  • A real learning resource: production-quality stochastic modeling, Folia-safe scheduling, reflective soft-dependency hooks, dependency-free Discord webhooks.
  • Clean base: well-separated, documented packages make a comfortable starting point.
  • No black box: understand exactly what runs on your server.


Requirements

  • Java 21+ and Maven to build.
  • Bukkit / Spigot / Paper / Purpur / Folia 1.20+ to run.
  • Vault + an economy plugin (optional) for live trading.
  • Basic Java knowledge for meaningful changes.


License & Terms

By purchasing this source code, you agree to:

  • No resale: you may not sell, sublicense, or commercialize the source or any modified version.
  • No redistribution: you may not share or hand out the source, in whole or in part, to any third party.
  • No reupload: you may not republish the source or any derivative on any platform, public or private.

You may freely use and modify the source for your own server(s). This grants a personal-use license only; all rights remain with the author.



Own the engine, not just the jar.
Get the full NexusExchange source, build it yourself, and shape the market exactly how you want it.
Top