mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 23:16:54 +00:00
Use common EncodeURLValues function where possible
This commit is contained in:
@@ -274,11 +274,7 @@ func (b *BTCC) GetTradeHistory(symbol string, limit, sinceTid int64, time time.T
|
||||
v.Set("sincetype", strconv.FormatInt(time.Unix(), 10))
|
||||
}
|
||||
|
||||
values := v.Encode()
|
||||
if len(values) > 0 {
|
||||
req += "?" + values
|
||||
}
|
||||
|
||||
req = EncodeURLValues(req, v)
|
||||
err := SendHTTPGetRequest(req, true, nil)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user