Skip to content

Commit

Permalink
Bitstamp: Rename OHLC const
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Sep 7, 2023
1 parent 930e4f5 commit 8c1c9c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions exchanges/bitstamp/bitstamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const (
bitstampAPIEURUSD = "eur_usd"
bitstampAPIBalance = "balance"
bitstampAPIUserTransactions = "user_transactions"
bitstampAPIOHLC = "ohlc"
bitstampAPIOpenOrders = "open_orders"
bitstampAPIOrderStatus = "order_status"
bitstampAPICancelOrder = "cancel_order"
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8c1c9c9

Please sign in to comment.