From 4a0bd45301013c19b5a54694f8f3ab48fcad8a05 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 11 Feb 2021 00:30:37 +0800 Subject: [PATCH] remove order test code --- Makefile | 2 +- go.sum | 1 + pkg/strategy/sat/strategy.go | 15 --------------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 8dbbd46e4..5ea053b07 100644 --- a/Makefile +++ b/Makefile @@ -61,4 +61,4 @@ desktop: static build/BBGO.app/Contents/MacOS/bbgo-desktop tools: GO111MODULES=off go get github.com/markbates/pkger/cmd/pkger -.PHONY: dist migrations static desktop .FORCE +.PHONY: bbgo dist migrations static desktop .FORCE diff --git a/go.sum b/go.sum index 84f5ec691..b1645b58c 100644 --- a/go.sum +++ b/go.sum @@ -140,6 +140,7 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.3 h1:x95R7cp+rSeeqAMI2knLtQ0DKlaBhv2NrtrOvafPHRo= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= diff --git a/pkg/strategy/sat/strategy.go b/pkg/strategy/sat/strategy.go index ad95256c6..ce85d99d6 100644 --- a/pkg/strategy/sat/strategy.go +++ b/pkg/strategy/sat/strategy.go @@ -66,21 +66,6 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se return fmt.Errorf("market %s is not defined", s.Symbol) } - _, err := orderExecutor.SubmitOrders(ctx, types.SubmitOrder{ - Symbol: s.Symbol, - Market: market, - Type: types.OrderTypeLimit, - Side: types.SideTypeSell, - Price: 27.0, - Quantity: 0.5, - MarginSideEffect: types.SideEffectTypeAutoRepay, - TimeInForce: "GTC", - }) - if err != nil { - log.WithError(err).Error("submit profit target order error") - return err - } - standardIndicatorSet, ok := session.StandardIndicatorSet(s.Symbol) if !ok { return fmt.Errorf("standardIndicatorSet is nil, symbol %s", s.Symbol)