def parse_bid_ask(self, bidask, price_key=0, amount_key=0):
    return [float(bidask[price_key]), float(bidask[amount_key])]
def parse_bid_ask(self, bidask, price_key=0, amount_key=0):
    return [float(bidask[price_key]), float(bidask[amount_key])]