Curves in Hadron
At a high-level, curves allow makers to express parameterized functions. The main questions answered by these curves are- Price Curve: I have defined a mid-price and base spread, but how do my quotes scale if a user tries to swap 1, 10, 100, 1000, 10000 SOL?
- Risk Curve: I just recieved multiple orders within or across blocks, how do I automatically change my quotes now that my inventory is imbalanced?
Curve Types
- Price Curves Explained
- Risk Curves Explained
Each side of the market (bid and ask) has its own pricing curve. These curves define how price changes as a function of input size. They allow makers to express spread ladders, nonlinear depth, and asymmetric behavior between buying and selling.A curve is defined by a set of control points - example curve constructed here.

Example Pricing Curve
