Make candles query work

I hope that's correct. I've started learning go only 2 days ago and wanted to work on some real life example.