The web app for Velque: a single page, no framework, that trades the test market in all three sessions.
The hosted copy is switched off until mainnet. Build it and serve dist/ under /app to trade the devnet test market from your own machine.
- Session card. Day book, night auction or opening cross, with the timer that matters for that session and the reference price broken down as
Nasdaq NVDA $230.47 x 1.0017(exchange price times the token's dividend multiplier). - Book. By day a two-sided ladder with the spread. By night the orders collected in the current window. The test-market maker's orders are labelled.
- Order ticket. By day it previews what will fill at once and at what average price. It refuses a price outside the band and an order under the market minimum before a transaction is built.
- Your orders and fills. Open auction orders, resting Day orders, and everything waiting to be claimed, each with its action.
- Auction log. Every cleared window still stored on chain, with a Verify button that recomputes the result in the browser from the stored orders.
Three test stocks are listed: tNVDAx, tTSLAx and tAAPLx. They are Token-2022 mints with 8 decimals and the same dividend multiplier as the real xStocks, so the app handles the real tokens the same way.
npm install
npm run build # bundles src/app.js with esbuild into dist/dist/ is a static folder: index.html, app.css, app.js. The page loads its files from /app/, so serve the folder under that path. The app expects /api/crank and /api/faucet from velque-keeper on the same origin.
Markets, mints and parameters are in src/config.json. Everything in it is a public address.
Phantom, Solflare and Backpack. The app only asks the wallet to sign transactions it has built and shown, and it never asks for a message signature.
- velque-sdk: the client the app is built on
- velque-program: the on-chain program
MIT