Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
fix: tweak BNB trading fees
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeyax committed Mar 7, 2024
1 parent e33b677 commit b23db70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ trading_options:
# Trading fee in % per trade.
#
# Binance:
# - If using 0.15% (using BNB for fees) you must have BNB in your account to cover trading fees.
# - If using BNB for fees, it MUST be enabled in your Binance 'Dashboard' page (checkbox).
trading_fee: .15
# - If using BNB for fees, set this to 0.075 and make sure have enough BNB in your account.
trading_fee: 0.075

# The amount of time in MINUTES to wait before buying the same coin again.
# This is to prevent buying the same coin multiple times in a short period of time.
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestLoad(t *testing.T) {
assert.Equal(t, float64(10), config.TradingOptions.ChangeInPrice)
assert.Equal(t, float64(5), config.TradingOptions.StopLoss)
assert.Equal(t, 0.8, config.TradingOptions.TakeProfit)
assert.Equal(t, 0.15, config.TradingOptions.TradingFee)
assert.Equal(t, 0.075, config.TradingOptions.TradingFee)
assert.Equal(t, 0, config.TradingOptions.CoolOffDelay)

assert.Equal(t, true, config.TradingOptions.TrailingStopOptions.Enable)
Expand Down

0 comments on commit b23db70

Please sign in to comment.