I encounter the same issue with v3.1b, on Linux. When I restart gunbot (kill him and then restart) I have this message on some pairs:
Error: BoughtPrice not set!!!
Note that this pairs have been buy by gunbot.
I see the patch #601, but it's only for Windows. What I'm supposed to do?
Now, I let gunbot do what it wants, perhaps it will be solved with time (# cycles)?