From Stream to Pool: Dynamic Pricing Beyond i.i.d. Arrivals