[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to use rate oracle as provider of rates to calculate … #3492

Merged
merged 14 commits into from
Jun 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change profitability status description to use the correct rate sourc…
…e provider
  • Loading branch information
aarmoa committed Jun 8, 2021
commit 161298f7813bbca3bb29f3323f40cff2ac9c41c4
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.ONESHELL:

test:
nosetests -d -v test/test*.py
find test/hummingbot/ -iname "test_*.py" | xargs nosetests -v -d

coverage:
Expand Down
4 changes: 3 additions & 1 deletion hummingbot/strategy/amm_arb/amm_arb.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ def short_proposal_msg(self, arb_proposal: List[ArbProposal], indented: bool = T
for proposal in arb_proposal:
side1 = "buy" if proposal.first_side.is_buy else "sell"
side2 = "buy" if proposal.second_side.is_buy else "sell"
profit_pct = proposal.profit_pct(True, first_side_quote_eth_rate=self._market_1_quote_eth_rate,
profit_pct = proposal.profit_pct(True,
rate_source=self._rate_source,
first_side_quote_eth_rate=self._market_1_quote_eth_rate,
second_side_quote_eth_rate = self._market_2_quote_eth_rate)
lines.append(f"{' ' if indented else ''}{side1} at {proposal.first_side.market_info.market.display_name}"
f", {side2} at {proposal.second_side.market_info.market.display_name}: "
Expand Down