Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akremstudy committed Aug 14, 2023
1 parent 3b76d5a commit 4450ac2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/telliot_feeds/sources/ampleforth/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ def calculate_vwap_via_all(symbol: dict[str, Any], start: int, end: int, show_de
result["source"].update(source)
result.update(p_result[i])

all_vwaps = [
v["vwap"] * v["volume"] for k, v in result.items() if k != "source" and v != NO_TRADES_FOUND
]
all_vwaps = [v["vwap"] * v["volume"] for k, v in result.items() if k != "source" and v != NO_TRADES_FOUND]
sum_volumes_and_prices = sum(all_vwaps)
sum_volume = sum(v["volume"] for k, v in result.items() if k != "source" and "volume" in v)

Expand Down

0 comments on commit 4450ac2

Please sign in to comment.