Bin Mathematics
What are Bins?
Key characteristics:
How Bin IDs Work
Bin ID 8388608 (2^23) = Price of 1.0 (X/Y = 1)
Bin ID > 8388608 = Price > 1.0
Bin ID < 8388608 = Price < 1.0Example
Bin ID Calculations
The Reverse Formula
Quick Examples
Code Implementation
Rounding Considerations
Bin step guides
What is Bin Step?
Choosing Your Bin Step
Stable Pairs (1-10 bps)
Blue-chip Pairs (10-50 bps)
Volatile Pairs (50-200 bps)
Trade-offs
Bin Step
Pros
Cons
Quick Reference
Practical Example
Last updated