A quality spread is the price difference between two grades of one commodity (light sweet against heavy sour crude, high- against low-protein wheat), set by the cost of processing the lower grade into the products of the higher one.
s2_fetch_spreads.py.