Skip to content

Commit

Permalink
fix get_btc_price bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangxn committed Sep 5, 2019
1 parent 02ebea7 commit 476c381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btsprice/c2cbtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_btc_price(self):
buy = result["data"]["buy"][0]["price"]
sell = result["data"]["sell"][-1]["price"]
price = (float(buy)+float(sell))/2
print(price)
#print("get_btc_price", price)
return price
except Exception as e:
print("Error fetching price from c2c okex!")
Expand Down

0 comments on commit 476c381

Please sign in to comment.