mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 23:16:53 +00:00
Remove unwanted wrapper name stuttering and standardise common error returns (#213)
This commit is contained in:
committed by
Adrian Gallagher
parent
c41f611d96
commit
92534249bf
@@ -185,8 +185,8 @@ func (e *EXMO) CreateOrder(pair, orderType string, price, amount float64) (int64
|
||||
return result.OrderID, err
|
||||
}
|
||||
|
||||
// CancelOrder cancels an order by the orderID
|
||||
func (e *EXMO) CancelOrder(orderID int64) error {
|
||||
// CancelExistingOrder cancels an order by the orderID
|
||||
func (e *EXMO) CancelExistingOrder(orderID int64) error {
|
||||
v := url.Values{}
|
||||
v.Set("order_id", strconv.FormatInt(orderID, 10))
|
||||
var result interface{}
|
||||
@@ -256,8 +256,8 @@ func (e *EXMO) GetRequiredAmount(pair string, amount float64) (RequiredAmount, e
|
||||
return result, err
|
||||
}
|
||||
|
||||
// GetDepositAddress returns a list of addresses for cryptocurrency deposits
|
||||
func (e *EXMO) GetDepositAddress() (map[string]string, error) {
|
||||
// GetCryptoDepositAddress returns a list of addresses for cryptocurrency deposits
|
||||
func (e *EXMO) GetCryptoDepositAddress() (map[string]string, error) {
|
||||
result := make(map[string]string)
|
||||
err := e.SendAuthenticatedHTTPRequest("POST", exmoDepositAddress, url.Values{}, &result)
|
||||
log.Println(reflect.TypeOf(result).String())
|
||||
|
||||
Reference in New Issue
Block a user