use the bitpay api for weighted prices