Curves in Hadron
At a high-level, curves allow makers to express parameterized functions. Curves determine the following:- 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 received 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

.png?fit=max&auto=format&n=pH37fL0GL14scVCH&q=85&s=5749b485c8c5b2386a4cca404e97d6be)