retrieve bids and asks in the same query; fix #30

@zathey I implemented your solution. If you merge this PR, reject the other one.