Fixed linter issues for Yobit exchange.

This commit is contained in:
Ryan O'Hara-Reid
2018-02-26 16:34:43 +11:00
parent 85393b59b8
commit bd24b00281
2 changed files with 4 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ func (y *Yobit) GetTradeHistory(TIDFrom, Count, TIDEnd int64, order, since, end,
return result, y.SendAuthenticatedHTTPRequest(privateTradeHistory, req, &result)
}
// CoinDepositAddress returns the deposit address for a specific currency
// GetDepositAddress returns the deposit address for a specific currency
func (y *Yobit) GetDepositAddress(coin string) (DepositAddress, error) {
req := url.Values{}
req.Add("coinName", coin)
@@ -217,7 +217,7 @@ func (y *Yobit) GetDepositAddress(coin string) (DepositAddress, error) {
return result, y.SendAuthenticatedHTTPRequest(privateGetDepositAddress, req, &result)
}
// CoinDepositAddress returns the deposit address for a specific currency
// WithdrawCoinsToAddress initiates a withdrawal to a specified address
func (y *Yobit) WithdrawCoinsToAddress(coin string, amount float64, address string) (WithdrawCoinsToAddress, error) {
req := url.Values{}
req.Add("coinName", coin)

View File

@@ -111,14 +111,14 @@ type TradeHistory struct {
Timestamp float64 `json:"timestamp"`
}
// CoinDepositAddress stores a curency deposit address
// DepositAddress stores a curency deposit address
type DepositAddress struct {
Address string `json:"address"`
ProcessedAmount float64 `json:"processed_amount"`
ServerTime int64 `json:"server_time"`
}
// WithdrawCoins stores information for a withdrawcoins request
// WithdrawCoinsToAddress stores information for a withdrawcoins request
type WithdrawCoinsToAddress struct {
ServerTime int64 `json:"server_time"`
}