mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-23 15:10:15 +00:00
Added initial implementation for Cryptsy Exchange.
This commit is contained in:
@@ -122,7 +122,7 @@ func CalculateNetProfit(amount, priceThen, priceNow, costs float64) (float64) {
|
||||
func SendHTTPRequest(method, path string, headers map[string]string, body io.Reader) (string, error) {
|
||||
result := strings.ToUpper(method)
|
||||
|
||||
if result != "POST" && result != "GET" {
|
||||
if result != "POST" && result != "GET" && result != "DELETE" {
|
||||
return "", errors.New("Invalid HTTP method specified.")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user