Skip to content

Commit

Permalink
Updated dependencies and version bump
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Sanino <[email protected]>
  • Loading branch information
saniales committed Jan 18, 2022
1 parent 9cc2118 commit b0c20d4
Show file tree
Hide file tree
Showing 5 changed files with 683 additions and 140 deletions.
2 changes: 1 addition & 1 deletion examples/interval.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var SlackIntegrationExample = strategies.IntervalStrategy{
Name: "SlackIntegrationExample",
Setup: func([]exchanges.ExchangeWrapper, []*environment.Market) error {
// connect slack token
slackBot = slacker.NewClient("YOUR-TOKEN-HERE")
slackBot = slacker.NewClient("YOUR-BOT-TOKEN-HERE", "YOUR-APP-TOKEN-HERE")
slackBot.Init(func() {
log.Println("Slack BOT Connected")
})
Expand Down
2 changes: 1 addition & 1 deletion exchanges/binance.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (wrapper *BinanceWrapper) subscribeOrderbookFeed(market *environment.Market

// Withdraw performs a withdraw operation from the exchange to a destination address.
func (wrapper *BinanceWrapper) Withdraw(destinationAddress string, coinTicker string, amount float64) error {
_, err := wrapper.api.NewCreateWithdrawService().Address(destinationAddress).Asset(coinTicker).Amount(fmt.Sprint(amount)).Do(context.Background())
_, err := wrapper.api.NewCreateWithdrawService().Address(destinationAddress).Coin(coinTicker).Amount(fmt.Sprint(amount)).Do(context.Background())
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions exchanges/bittrex.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (wrapper *BittrexWrapper) BuyLimit(market *environment.Market, amount float
TimeInForce: bittrex.GOOD_TIL_CANCELLED,
MarketSymbol: MarketNameFor(market, wrapper),
Quantity: decimal.NewFromFloat(amount),
Limit: decimal.NewFromFloat(limit),
Limit: limit,
Direction: bittrex.BUY,
})

Expand All @@ -120,7 +120,7 @@ func (wrapper *BittrexWrapper) SellLimit(market *environment.Market, amount floa
TimeInForce: bittrex.GOOD_TIL_CANCELLED,
MarketSymbol: MarketNameFor(market, wrapper),
Quantity: decimal.NewFromFloat(amount),
Limit: decimal.NewFromFloat(limit),
Limit: limit,
Direction: bittrex.SELL,
})

Expand Down
51 changes: 31 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,30 +1,41 @@
module github.com/saniales/golang-crypto-trading-bot

go 1.15
go 1.17

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

0 comments on commit b0c20d4

Please sign in to comment.