Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSpuddy committed Aug 22, 2023
1 parent bf8b77a commit b691b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telliot_feeds/sources/ampleforth/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def calculate_vwap_via_all(symbol: dict[str, Any], start: int, end: int, show_de
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 # type: ignore
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 b691b33

Please sign in to comment.