Skip to main content

Defining mid-price

Defining and updating mid-price on Hadron has three variables
  • Input: Mid-price is defined in quote atoms per base atom
  • Sequence: Sequence is a nonce sent by the operator to prevent stale quotes from block builders re-ordering transactions. Instructions with a sequence strictly less than the current sequence will be fail.
  • Base spread (optional): Operators can initialize an optional base spread with the mid-price update.

Building Bid and Ask Curves

Simple 3 point curve Points on Hadron are a function of 3 input values:
  • Volume: Input volume in atoms
  • Spread: Distance from the Mid-price
  • Interpolation mode: Moving between any two points

Curve Visualization:

Bid Ask