From 8c1c9c9735f76bb6544ee9e414c657f10bceac80 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Thu, 7 Sep 2023 07:58:49 +0700 Subject: [PATCH] Bitstamp: Rename OHLC const --- exchanges/bitstamp/bitstamp.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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