Switched the price pay and price sell as they were backwards and giving me the wrong results.