Docs localnet · batch — · opens in —

The library

  1. 01OverviewUnison is a Solana exchange that trades in sealed batches. Every order is sealed until its batch opens, and everyone in the batch trades at one price.
  2. 02SealingAn order is sealed in the browser to a round of the drand beacon that hasn't been published yet. Until that round exists, nobody can read it.
  3. 03The batchA batch is every order sealed in one window, named by the round it opens on.
  4. 04ClearingOpposite orders cross at one price; solvers compete for the rest; the program checks the result before a token moves.
  5. 05Your accountThe program holds every trader's balances per token. Funding, sealing and withdrawing are separate steps.
  6. 06Fees and the tokenEvery fill pays a fill fee in the token it receives. Every fee and every forfeited seal deposit accrues to the fee PDA, which no key signs for.
  7. 07SolversA solver opens batches, bids for the net, clears and settles. Anyone with a bond can.
  8. 08ProgramOne Anchor program, unison.
  9. 09APIThe read API the site uses. Every route is GET; responses are validated by the same schemas on both sides.