Unit testing trading strategies in Go with synthetic candles
Strategy tests that call a broker API are slow and never give the same answer twice. Here is the small golang helper I use to build fake five minute sessions from a price function, and the tests I write on top of it.