update import

This commit is contained in:
lychiyu 2024-06-26 00:44:05 +08:00
parent 33d670ab30
commit 4298902948
19 changed files with 37 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import (
"reflect" "reflect"
"time" "time"
. "git.qtrade.icu/coin-quant/trademodel"
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
"github.com/tidwall/gjson" "github.com/tidwall/gjson"
) )

View File

@ -7,11 +7,11 @@ import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
"git.qtrade.icu/coin-quant/trade/pkg/event" "git.qtrade.icu/coin-quant/trade/pkg/event"
"git.qtrade.icu/coin-quant/trade/pkg/process/dbstore" "git.qtrade.icu/coin-quant/trade/pkg/process/dbstore"
"git.qtrade.icu/coin-quant/trade/pkg/process/rpt" "git.qtrade.icu/coin-quant/trade/pkg/process/rpt"
"git.qtrade.icu/coin-quant/trade/pkg/process/vex" "git.qtrade.icu/coin-quant/trade/pkg/process/vex"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -8,9 +8,11 @@ import (
"git.qtrade.icu/coin-quant/trade/pkg/process/goscript" "git.qtrade.icu/coin-quant/trade/pkg/process/goscript"
"git.qtrade.icu/coin-quant/trade/pkg/process/notify" "git.qtrade.icu/coin-quant/trade/pkg/process/notify"
"git.qtrade.icu/coin-quant/trade/pkg/process/rpt" "git.qtrade.icu/coin-quant/trade/pkg/process/rpt"
"sync" "sync"
"time" "time"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -3,6 +3,7 @@ package helper
import ( import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
"git.qtrade.icu/coin-quant/base/engine" "git.qtrade.icu/coin-quant/base/engine"
. "git.qtrade.icu/coin-quant/trademodel"
) )
type CandleFn func(candle Candle) type CandleFn func(candle Candle)

View File

@ -2,6 +2,7 @@ package helper
import ( import (
"fmt" "fmt"
. "git.qtrade.icu/coin-quant/trademodel"
) )
type DemoStrategy struct { type DemoStrategy struct {

View File

@ -3,6 +3,7 @@ package dbstore
import ( import (
"fmt" "fmt"
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
"reflect" "reflect"
"regexp" "regexp"
"sync" "sync"

View File

@ -2,7 +2,9 @@ package dbstore
import ( import (
"fmt" "fmt"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -7,7 +7,10 @@ import (
"time" "time"
"git.qtrade.icu/coin-quant/exchange" "git.qtrade.icu/coin-quant/exchange"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
"git.qtrade.icu/coin-quant/trademodel" "git.qtrade.icu/coin-quant/trademodel"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -8,6 +8,9 @@ import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
"git.qtrade.icu/coin-quant/indicator" "git.qtrade.icu/coin-quant/indicator"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -3,6 +3,7 @@ package engine
import ( import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -6,6 +6,8 @@ import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
"git.qtrade.icu/coin-quant/base/engine" "git.qtrade.icu/coin-quant/base/engine"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
) )
type NewRunnerFn func(file string) (r Runner, err error) type NewRunnerFn func(file string) (r Runner, err error)

View File

@ -9,6 +9,9 @@ import (
bengine "git.qtrade.icu/coin-quant/base/engine" bengine "git.qtrade.icu/coin-quant/base/engine"
"git.qtrade.icu/coin-quant/trade/pkg/process/goscript/engine" "git.qtrade.icu/coin-quant/trade/pkg/process/goscript/engine"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -4,6 +4,7 @@ import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
"git.qtrade.icu/coin-quant/base/engine" "git.qtrade.icu/coin-quant/base/engine"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel" . "git.qtrade.icu/coin-quant/trademodel"
) )

View File

@ -8,7 +8,9 @@ import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
bengine "git.qtrade.icu/coin-quant/base/engine" bengine "git.qtrade.icu/coin-quant/base/engine"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
"git.qtrade.icu/coin-quant/trade/pkg/process/goscript/engine" "git.qtrade.icu/coin-quant/trade/pkg/process/goscript/engine"
. "git.qtrade.icu/coin-quant/trademodel"
) )
func init() { func init() {

View File

@ -8,6 +8,9 @@ import (
"net/http" "net/http"
"text/template" "text/template"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -5,6 +5,7 @@ import (
"path" "path"
"testing" "testing"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -3,6 +3,9 @@ package rpt
import ( import (
"fmt" "fmt"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -11,6 +11,9 @@ import (
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
"git.qtrade.icu/coin-quant/trademodel" "git.qtrade.icu/coin-quant/trademodel"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trade/pkg/event"
. "git.qtrade.icu/coin-quant/trademodel"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )

View File

@ -11,6 +11,8 @@ import (
"sort" "sort"
"git.qtrade.icu/coin-quant/base/common" "git.qtrade.icu/coin-quant/base/common"
. "git.qtrade.icu/coin-quant/trade/pkg/core"
. "git.qtrade.icu/coin-quant/trademodel"
jsoniter "github.com/json-iterator/go" jsoniter "github.com/json-iterator/go"
"github.com/montanaflynn/stats" "github.com/montanaflynn/stats"
"github.com/shopspring/decimal" "github.com/shopspring/decimal"