The home of Bloxburg’s political economy
One open stock and trading API for every website, Discord bot and app. One set of prices, one set of rules, one economy for all of Bloxburg Politics.
The problem and the proposal
Each server or group tracks its own stocks, balances and trades today. That duplicates work, produces prices that disagree and stops players trading across communities.
Today
- Every community keeps its own ledger, often in a spreadsheet.
- The same company can have a different price in each server.
- Bot developers rebuild market logic from scratch.
- Holdings cannot move between communities.
With a shared API
- One public source of truth for prices, listings and trades.
- Any site or bot reads it with a single HTTP request.
- Developers add a market in minutes, not weeks.
- Portfolios follow players wherever they play.
What the API would provide
A small REST interface returning JSON. Reading is open. Trading needs an API key tied to a verified player account. The base URL is proposed and may change.
| Endpoint | What it returns |
|---|---|
GET/v1/stocks | Every listed stock with its latest price and daily change. |
GET/v1/stocks/{symbol} | One stock’s details, issuer, volume and price history. |
GET/v1/players/{id}/portfolio | A player’s holdings and cash balance. |
POST/v1/orders | Places a buy or sell order. Requires an API key. |
GET/v1/leaderboard | Top traders and biggest movers for a chosen period. |
POST/v1/webhooks | Sends price alerts and trade events to a Discord channel or URL. |
Build with it
// Show a live price on any web page const res = await fetch("https://api.bse.jyeridley.dev/v1/stocks/BCF"); const stock = await res.json(); document.querySelector("#price").textContent = `B$${stock.price}`;
// discord.js slash command: /price BCF const res = await fetch(`https://api.bse.jyeridley.dev/v1/stocks/${symbol}`); const { name, price, change_pct } = await res.json(); await interaction.reply(`${name}: B$${price} (${change_pct}%)`);
# Place a buy order (API key required) curl -X POST https://api.bse.jyeridley.dev/v1/orders \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"symbol":"BCF","side":"buy","quantity":10}'
How a trade flows
Request
A site or bot sends an order with its API key.
Validate
The exchange checks the balance, the symbol and rate limits.
Match
The order fills at the current market price and is recorded.
Broadcast
Webhooks notify subscribed channels and every client sees the new price.
One feed, every community
This is the kind of board any site or bot could display from the same data. Figures are simulated.
| Symbol | Company | Price (B$) | Change |
|---|
Principles and roadmap
Open by default
Market data is free to read, with clear rate limits, so small projects can use it too.
Fair and auditable
Every trade is logged and viewable, so players can verify prices and history.
Community governed
Listing rules and changes are decided in public with representatives from participating communities.
- Phase 1: ProposalPublish this page and gather input from community leaders, bot developers and players.
- Phase 2: Read-only prototypeLaunch listings, prices and history endpoints with sample companies.
- Phase 3: Trading and accountsAdd player accounts, API keys, portfolios and order placement.
- Phase 4: IntegrationsRelease a Discord bot template, a JavaScript SDK and webhook alerts.
- Phase 5: Public launchOpen listings to participating communities with published governance rules.
Questions people ask
Is this live yet?
No. This is an open proposal. The prices on this page are simulated so you can see how the data would look.
Does it cost anything?
The proposal is for free read access and free keys for community projects. Any change would be announced and discussed first.
Who decides which stocks are listed?
Listing criteria would be written publicly, with a review process involving participating communities rather than a single owner.
Is the currency real money?
No. Everything is in-game Bloxburg economy value (B$) for roleplay. No real money is involved.
Is this affiliated with Bloxburg, Roblox or the NYSE?
No. BSE is an independent community project and is not endorsed by Welcome to Bloxburg, Roblox or any real-world exchange.
Help shape the exchange
Run a community, build bots, or want fair markets? Tell us what you would need from a shared API.
