urani-trade
urani-orderbook-mvp-ts
TypeScript

Orderbook PoC for the demo day at the Solana Colosseum Accelerator (This is not the Urani Protocol).

Last updated Oct 18, 2025
264
Stars
46
Forks
0
Issues
0
Stars/day
Attention Score
63
Language breakdown
TypeScript 99.3%
JavaScript 0.4%
Dockerfile 0.3%
Files click to expand
README

Urani Orderbook MVP


👉🏼 "Quick n' dirty" proof-of-concept of a batching orderbook, presented at the Solana Colosseum Accelerator's Demo Day.

👉🏼 Note: this is NOT the Urani Protocol (which is authored by bt3gl), but rather our first MVP, authored by Sage (aka Gman).



Overview


This orderbook:

  • receives orders from the frontend
  • creates a batch every 10s (configured in config.ts)
  • generates bullshit agent solutions and finalizes the batch 2.5s after the batch is created

Notes for the Demo
  • To reproduce the same batch solution scripted in the demo, uncomment this in routes.ts
  • To disable the mock orders and agent solutions, remove this code from app.ts and replace it with logic that submits the solution with the highest score for the batch.
setInterval(addMockOrders, batchInterval);

setTimeout(() => { setInterval(addMockSolutionsAndFillData, batchInterval); }, 3 * batchInterval / 4);



Production Deployment


Create the AWS Instance


Create a t4g.small ec2 instance in the us-east-1 region:

  • ssh into the ec2 instance
  • clone the repo
  • install docker
  • create and fill .env.development.
  • run docker-compose:
docker compose up -d


Configure the TLS Certificate


Request a TLS certificate for the desired domains in the same region (e.g., us-east-1). Validate domain ownership via CNAME.


Configure CloudFront


Create a CloudFront distribution with the following settings (legacy cache settings and CORs are important):


Complete the Routing


Forward the desired domain (e.g., api.urani.trade) to the Cloudfront domain.

Then Update the env variables in Vercel to point to this domain



License and Contributing


This project is distributed under the Apache 2.0 license.

You are welcome to contribute. See the guidelines here.


© 2026 GitRepoTrend · urani-trade/urani-orderbook-mvp-ts · Updated daily from GitHub