Added initial implementation for Cryptsy Exchange.

This commit is contained in:
Adrian Gallagher
2015-03-19 20:58:54 +11:00
parent b4e90fb2ee
commit 9c03284d80
5 changed files with 496 additions and 1 deletions

View File

@@ -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.")
}