Skip to main content
Awoken Banking ships a full stock market players trade from the Invest tab of the bank app. Prices move on a server tick, trades run through the same ledger and fees as everything else, and businesses can list themselves to raise capital and pay dividends. Everything here is in config/stocks.lua.

The three kinds of stock

Every ticker is one of three kinds. Each is independently toggleable, so you can run any mix.

Public

NPC flavour tickers (Maze Bank, Fleeca, …). The price drifts on its own by its volatility, pulled gently back toward its seed price. Pure speculation. Config kind: ambient.

Sector

Unowned, activity-driven tickers - e.g. a job’s economy. No shares are issued by anyone; an external script pushes the price with adjustStockPrice as work happens. Config kind: index.

Business

A player- or org-owned business floats part of itself. Buyers of the primary float pay the business (a capital raise); shares then trade peer-to-peer, and the business can pay dividends. Config kind: business.
config/stocks.lua
Turn a kind off and its tickers are hidden and untradeable, while the others keep working. Set enabled = false to switch the whole market off.

What moves a price

Buying from a business’s primary float pays the company at the current price but does not move the price itself - only peer-to-peer fills and the book-value pull do.

Market settings

Public / Sector price band

Public and Sector tickers are clamped to a price band so a spammed or runaway ticker can’t spiral. These are the defaults; a per-ticker cap set in registerStock (or the in-game add command) overrides them.
config/stocks.lua

Business stocks

Business tickers are the deep end: a real business account issues shares, sells a float to raise capital, and pays dividends out of its balance. The owner manages all of this from the Company Stock page in the bank app (a job account they’re an admin on). Investors trade from the normal Invest tab.

Book value

A business share is anchored to the company’s book value:
Each tick the price is pulled bookValuePull of the way toward that book value, so a cash-rich business drifts up and one that bleeds its account drifts down.
bookValueMultiplier lets you keep sensible share prices without huge share counts. A business holding **670,000across10,000sharesbooksat670,000** across **10,000** shares books at `67/share at 1.0, 335at5.0,or335` at `5.0`, or `670at10.0`.

Business guard rails

All of these live under Config.Stocks.business and apply only when kinds.business is on. Every cap uses 0 to mean “no cap”. The owner can also set a reserve from the Company Stock page - a block of treasury shares kept out of the float so they can never be sold by accident.

Who can list a business

By default only trusted resources and staff can create a business listing (via the registerStock export or the in-game add command). You can let job owners self-list from the app, gated so it can’t be spammed.

Seeded tickers

On first run, an empty market is seeded with the Public tickers under Config.Stocks.symbols. Each is { symbol, name, price, volatility }. Edit the list to change the NPC market; add Sector and Business tickers at runtime through the exports.
config/stocks.lua

Driving prices from your scripts

Sector and Business tickers are meant to move with your server’s economy. Register a ticker and push its price from real activity through the stock exports:
server-side only
Money in the market is whole units, like everywhere else in Awoken Banking. Prices, dividends, and share counts are all integers.