Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-brito committed Mar 20, 2023
1 parent b6a5b44 commit 9b9e76f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions exchange/binance_future.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func (b *BinanceFuture) validate(pair string, quantity float64) error {
return nil
}

func (b *BinanceFuture) CreateOrderOCO(side model.SideType, pair string,
quantity, price, stop, stopLimit float64) ([]model.Order, error) {
func (b *BinanceFuture) CreateOrderOCO(_ model.SideType, _ string,
_, _, _, _ float64) ([]model.Order, error) {
panic("not implemented")
}

Expand Down Expand Up @@ -259,7 +259,7 @@ func (b *BinanceFuture) CreateOrderMarket(side model.SideType, pair string, quan
}, nil
}

func (b *BinanceFuture) CreateOrderMarketQuote(side model.SideType, pair string, quantity float64) (model.Order, error) {
func (b *BinanceFuture) CreateOrderMarketQuote(_ model.SideType, _ string, _ float64) (model.Order, error) {
panic("not implemented")
}

Expand Down
2 changes: 1 addition & 1 deletion order/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (d *Feed) Subscribe(pair string, consumer FeedConsumer, onlyNewOrder bool)
})
}

func (d *Feed) Publish(order model.Order, newOrder bool) {
func (d *Feed) Publish(order model.Order, _ bool) {
if _, ok := d.OrderFeeds[order.Pair]; ok {
d.OrderFeeds[order.Pair].Data <- order
}
Expand Down
2 changes: 1 addition & 1 deletion plot/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (c *Chart) orderStringByPair(pair string) [][]string {
return orders
}

func (c *Chart) handleHealth(w http.ResponseWriter, r *http.Request) {
func (c *Chart) handleHealth(w http.ResponseWriter, _ *http.Request) {
if time.Since(c.lastUpdate) > time.Hour+10*time.Minute {
_, err := w.Write([]byte(c.lastUpdate.String()))
if err != nil {
Expand Down

0 comments on commit 9b9e76f

Please sign in to comment.