using pyleus to calculate moving avg of bid prices