Engine: Remove test file/folder (#685)

This commit is contained in:
Ryan O'Hara-Reid
2021-05-10 15:13:02 +10:00
committed by GitHub
parent 051675255d
commit f34cce1b86

View File

@@ -1,34 +0,0 @@
package main
import (
"fmt"
"log"
"github.com/thrasher-corp/gocryptotrader/currency"
"github.com/thrasher-corp/gocryptotrader/exchanges/asset"
"github.com/thrasher-corp/gocryptotrader/exchanges/okex"
"github.com/thrasher-corp/gocryptotrader/exchanges/order"
)
func main() {
var o okex.OKEX
o.SetDefaults()
o.API.Credentials.Key = "your_key"
o.API.Credentials.Secret = "your_secret"
o.API.Credentials.ClientID = "your_clientid"
ord := &order.Submit{
Pair: currency.NewPair(currency.BTC, currency.USDT),
Side: order.Buy,
Type: order.Limit,
Price: 50000,
Amount: 0.1,
AssetType: asset.Spot,
}
resp, err := o.SubmitOrder(ord)
if err != nil {
log.Printf("Unable to place order: %s", err)
}
fmt.Println(resp.OrderID)
}