diff --git a/exchanges/yobit/yobit.go b/exchanges/yobit/yobit.go index 9eb5d559..5669605a 100644 --- a/exchanges/yobit/yobit.go +++ b/exchanges/yobit/yobit.go @@ -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) diff --git a/exchanges/yobit/yobit_types.go b/exchanges/yobit/yobit_types.go index 7f8b3c20..11b24c9c 100644 --- a/exchanges/yobit/yobit_types.go +++ b/exchanges/yobit/yobit_types.go @@ -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"` }