Skip to content

Commit b0c20d4

Browse files
committed
Updated dependencies and version bump
Signed-off-by: Alessandro Sanino <alessandro@sanino.dev>
1 parent 9cc2118 commit b0c20d4

File tree

5 files changed

+683
-140
lines changed

5 files changed

+683
-140
lines changed

examples/interval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var SlackIntegrationExample = strategies.IntervalStrategy{
6868
Name: "SlackIntegrationExample",
6969
Setup: func([]exchanges.ExchangeWrapper, []*environment.Market) error {
7070
// connect slack token
71-
slackBot = slacker.NewClient("YOUR-TOKEN-HERE")
71+
slackBot = slacker.NewClient("YOUR-BOT-TOKEN-HERE", "YOUR-APP-TOKEN-HERE")
7272
slackBot.Init(func() {
7373
log.Println("Slack BOT Connected")
7474
})

exchanges/binance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func (wrapper *BinanceWrapper) subscribeOrderbookFeed(market *environment.Market
406406

407407
// Withdraw performs a withdraw operation from the exchange to a destination address.
408408
func (wrapper *BinanceWrapper) Withdraw(destinationAddress string, coinTicker string, amount float64) error {
409-
_, err := wrapper.api.NewCreateWithdrawService().Address(destinationAddress).Asset(coinTicker).Amount(fmt.Sprint(amount)).Do(context.Background())
409+
_, err := wrapper.api.NewCreateWithdrawService().Address(destinationAddress).Coin(coinTicker).Amount(fmt.Sprint(amount)).Do(context.Background())
410410
if err != nil {
411411
return err
412412
}

exchanges/bittrex.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (wrapper *BittrexWrapper) BuyLimit(market *environment.Market, amount float
106106
TimeInForce: bittrex.GOOD_TIL_CANCELLED,
107107
MarketSymbol: MarketNameFor(market, wrapper),
108108
Quantity: decimal.NewFromFloat(amount),
109-
Limit: decimal.NewFromFloat(limit),
109+
Limit: limit,
110110
Direction: bittrex.BUY,
111111
})
112112

@@ -120,7 +120,7 @@ func (wrapper *BittrexWrapper) SellLimit(market *environment.Market, amount floa
120120
TimeInForce: bittrex.GOOD_TIL_CANCELLED,
121121
MarketSymbol: MarketNameFor(market, wrapper),
122122
Quantity: decimal.NewFromFloat(amount),
123-
Limit: decimal.NewFromFloat(limit),
123+
Limit: limit,
124124
Direction: bittrex.SELL,
125125
})
126126

go.mod

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
11
module github.com/saniales/golang-crypto-trading-bot
22

3-
go 1.15
3+
go 1.17
44

55
require (
6-
github.com/adshao/go-binance/v2 v2.2.0
7-
github.com/beldur/kraken-go-api-client v0.0.0-20210113103835-3f11c80eba1a
8-
github.com/bitfinexcom/bitfinex-api-go v0.0.0-20210101155619-bb56f756df78
9-
github.com/bwmarrin/discordgo v0.22.1
10-
github.com/dgrr/fastws v1.0.3 // indirect
6+
github.com/adshao/go-binance/v2 v2.3.3
7+
github.com/andybalholm/brotli v1.0.4 // indirect
8+
github.com/beldur/kraken-go-api-client v0.0.0-20210512194559-2c29669c4ecc
9+
github.com/bitfinexcom/bitfinex-api-go v0.0.0-20210608095005-9e0b26f200fb
10+
github.com/bwmarrin/discordgo v0.23.2
11+
github.com/dgrr/fastws v1.0.4 // indirect
1112
github.com/fatih/structs v1.1.0
1213
github.com/fiore/kucoin-go v0.0.0-20190107105632-5a814c26befa
13-
github.com/gofrs/uuid v4.0.0+incompatible
14-
github.com/juju/errors v0.0.0-20200330140219-3fe23663418f
15-
github.com/nlopes/slack v0.6.0
14+
github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf // indirect
15+
github.com/gofrs/uuid v4.2.0+incompatible
16+
github.com/google/go-querystring v1.1.0 // indirect
17+
github.com/juju/errors v0.0.0-20210818161939-5560c4c073ff
18+
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
19+
github.com/klauspost/compress v1.14.1 // indirect
20+
github.com/onsi/gomega v1.17.0 // indirect
1621
github.com/pharrisee/poloniex-api v0.0.0-20200602104112-ce8fafd80b26
22+
github.com/pkg/errors v0.9.1 // indirect
23+
github.com/recws-org/recws v1.4.0 // indirect
1724
github.com/saniales/go-hitbtc v0.0.0-20190107211814-7468d66640dd
18-
github.com/satori/go.uuid v1.2.0
19-
github.com/shomali11/slacker v0.0.0-20201209125859-873a67578e50
20-
github.com/shopspring/decimal v1.2.0
21-
github.com/sirupsen/logrus v1.7.0
22-
github.com/slack-go/slack v0.6.3
23-
github.com/sourcegraph/jsonrpc2 v0.0.0-20200429184054-15c2290dcb37 // indirect
24-
github.com/spf13/cobra v1.1.1
25-
github.com/thebotguys/golang-bittrex-api v0.0.0-20180802202435-20ec1f520379
26-
github.com/toorop/go-bittrex v0.0.2
27-
github.com/valyala/fasthttp v1.19.0 // indirect
28-
gopkg.in/tucnak/telebot.v2 v2.3.5
25+
github.com/shomali11/proper v0.0.0-20190608032528-6e70a05688e7 // indirect
26+
github.com/shomali11/slacker v0.0.0-20211215041426-c14027d091d5
27+
github.com/shopspring/decimal v1.3.1
28+
github.com/sirupsen/logrus v1.8.1
29+
github.com/slack-go/slack v0.10.1
30+
github.com/smartystreets/goconvey v1.6.4 // indirect
31+
github.com/sourcegraph/jsonrpc2 v0.1.0 // indirect
32+
github.com/spf13/cobra v1.3.0
33+
github.com/thebotguys/golang-bittrex-api v0.0.0-20210125125813-27a8629619aa
34+
github.com/toorop/go-bittrex v0.0.4
35+
github.com/ugorji/go v1.2.6 // indirect
36+
github.com/valyala/fasthttp v1.32.0 // indirect
37+
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce // indirect
38+
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
39+
gopkg.in/tucnak/telebot.v2 v2.5.0
2940
gopkg.in/yaml.v2 v2.4.0
3041
)

0 commit comments

Comments
 (0)