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

Feat/telegram sell msg #424

Merged
merged 5 commits into from Jan 23, 2018
Merged

Feat/telegram sell msg #424

merged 5 commits into from Jan 23, 2018

Conversation

shusso
Copy link
Member

@shusso shusso commented Jan 22, 2018

Summary

Add more information about the trade on Sell message to telegram. Also /status reports now the total amount of trades

Solve the issue: #410

Copy link
Member

@vertti vertti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the few cosmetic corrections, looks good.

*Amount:* `{amount}`
*Open Rate:* `{open_rate:.8f}`
*Current Rate:* `{current_rate:.8f}`
*Current Profit:* `{current_profit:.2f}%`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say because you are selling it, we should say "Profit", not "Current profit".

@@ -107,7 +107,7 @@ def test_status_handle(default_conf, update, ticker, mocker):
_status(bot=MagicMock(), update=update)

assert msg_mock.call_count == 1
assert '[BTC_ETH]' in msg_mock.call_args_list[0][0][0]
assert '[BTC/ETH]' in msg_mock.call_args_list[0][0][0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The slash seems awkward, I haven't seen it used in currency pairs, it seems to always be BTC-ETH or BTC_ETH. Should we stick with that?

@shusso shusso merged commit b11fe2f into develop Jan 23, 2018
@shusso shusso deleted the feat/telegram-sell-msg branch January 23, 2018 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants