So I'm pretty sure the test buying function works now for all 3 steps.
However, the buytime is 1.9 seconds...which is long enough that the order book could change.
We will need to somehow get that down
The only remaining API pulls in the buying function are the 3 market orders (plus ending balance pull which doesn't impact buy time).
Buy time is down ~50% since this issue was raised
So I'm pretty sure the test buying function works now for all 3 steps. However, the buytime is 1.9 seconds...which is long enough that the order book could change. We will need to somehow get that down