Fixes upstream issue #2

Takes into account price of bid and ask.