Skip to content

Commit

Permalink
ticker params
Browse files Browse the repository at this point in the history
  • Loading branch information
aliereno committed May 5, 2020
1 parent 9a1b4ba commit f461c7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion btcturk/ticker.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package btcturk

import "fmt"

// https://docs.btcturk.com/#ticker
type Ticker struct {
Pair string `json:"pair"`
Expand All @@ -25,7 +27,7 @@ type Ticker struct {
// Or
// GET ?symbol=USDT
func (c *Client) Ticker() ([]Ticker, error) {
req, err := c.newRequest("GET", "/api/v2/ticker", nil)
req, err := c.newRequest("GET", fmt.Sprintf("/api/v2/ticker?%s", c.params.Encode()), nil)
if err != nil {
return []Ticker{}, err
}
Expand Down

0 comments on commit f461c7a

Please sign in to comment.