diff --git a/exchanges/bitstamp/bitstamp.go b/exchanges/bitstamp/bitstamp.go index f6003a10fcf..5f32e9d99c6 100644 --- a/exchanges/bitstamp/bitstamp.go +++ b/exchanges/bitstamp/bitstamp.go @@ -31,6 +31,7 @@ const ( bitstampAPIEURUSD = "eur_usd" bitstampAPIBalance = "balance" bitstampAPIUserTransactions = "user_transactions" + bitstampAPIOHLC = "ohlc" bitstampAPIOpenOrders = "open_orders" bitstampAPIOrderStatus = "order_status" bitstampAPICancelOrder = "cancel_order" @@ -50,8 +51,6 @@ const ( bitstampAPIWSMyOrders = "my_orders" bitstampAPIWSMyTrades = "my_trades" - bitstampOHLC = "ohlc" - bitstampRateInterval = time.Minute * 10 bitstampRequestRate = 8000 bitstampTimeLayout = "2006-1-2 15:04:05" @@ -526,7 +525,7 @@ func (b *Bitstamp) OHLC(ctx context.Context, currency string, start, end time.Ti if !end.IsZero() { v.Add("end", strconv.FormatInt(end.Unix(), 10)) } - return resp, b.SendHTTPRequest(ctx, exchange.RestSpot, common.EncodeURLValues("/v"+bitstampAPIVersion+"/"+bitstampOHLC+"/"+currency, v), &resp) + return resp, b.SendHTTPRequest(ctx, exchange.RestSpot, common.EncodeURLValues("/v"+bitstampAPIVersion+"/"+bitstampAPIOHLC+"/"+currency, v), &resp) } // TransferAccountBalance transfers funds from either a main or sub account