Skip to content

Commit 75cbd6c

Browse files
renaming repo
1 parent 45a05d7 commit 75cbd6c

36 files changed

+128
-117
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# If you prefer the allow list template instead of the deny list, see community template:
2-
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
2+
# github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
33
#
44
# Binaries for programs and plugins
55
*.exe

backtest/backtester.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package backtest
33
import (
44
"fmt"
55
"time"
6-
"xoney/common/data"
7-
"xoney/exchange"
8-
"xoney/internal"
96

10-
exec "xoney/internal/executing"
11-
st "xoney/strategy"
7+
"github.com/quick-trade/xoney/common/data"
8+
"github.com/quick-trade/xoney/exchange"
9+
"github.com/quick-trade/xoney/internal"
10+
11+
exec "github.com/quick-trade/xoney/internal/executing"
12+
st "github.com/quick-trade/xoney/strategy"
1213
)
1314

1415
type StepByStepBacktester struct {

backtest/metrics.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package backtest
22

33
import (
44
"math"
5-
"xoney/common/data"
6-
"xoney/internal"
5+
6+
"github.com/quick-trade/xoney/common/data"
7+
"github.com/quick-trade/xoney/internal"
78
)
89

910
type Metric interface {

common/account.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package common
22

33
import (
4-
"xoney/common/data"
5-
"xoney/errors"
6-
"xoney/internal"
4+
"github.com/quick-trade/xoney/common/data"
5+
"github.com/quick-trade/xoney/errors"
6+
"github.com/quick-trade/xoney/internal"
77
)
88

99
type BaseDistribution map[data.Currency]float64

common/data/candlestick.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package data
33
import (
44
"sort"
55
"time"
6-
"xoney/errors"
7-
"xoney/internal"
6+
7+
"github.com/quick-trade/xoney/errors"
8+
"github.com/quick-trade/xoney/internal"
89
)
910

1011
type Period struct {

common/data/candlestick_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import (
44
"reflect"
55
"testing"
66
"time"
7-
"xoney/errors"
7+
8+
"github.com/quick-trade/xoney/errors"
89
)
910

1011
func timeFrameMinute() TimeFrame {

common/data/equity.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package data
22

33
import (
44
"time"
5-
"xoney/internal"
5+
6+
"github.com/quick-trade/xoney/internal"
67
)
78

89
type Equity struct {

common/data/instrument.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"strings"
55
"time"
66

7-
"xoney/errors"
8-
"xoney/internal"
7+
"github.com/quick-trade/xoney/errors"
8+
"github.com/quick-trade/xoney/internal"
99
)
1010

1111
type Exchange string

events/events.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"sync"
66

7-
"xoney/errors"
8-
"xoney/exchange"
9-
"xoney/internal"
7+
"github.com/quick-trade/xoney/errors"
8+
"github.com/quick-trade/xoney/exchange"
9+
"github.com/quick-trade/xoney/internal"
1010
)
1111

1212
// Event is an interface designed for interaction with the exchange.

exchange/connection.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"fmt"
55
"math"
66

7-
"xoney/common"
8-
"xoney/common/data"
9-
"xoney/errors"
10-
"xoney/internal"
11-
"xoney/internal/structures"
7+
"github.com/quick-trade/xoney/common"
8+
"github.com/quick-trade/xoney/common/data"
9+
"github.com/quick-trade/xoney/errors"
10+
"github.com/quick-trade/xoney/internal"
11+
"github.com/quick-trade/xoney/internal/structures"
1212
)
1313

1414
// OrderHeap is a utility structure for efficient management of a collection of orders.

exchange/order.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package exchange
22

33
import (
4-
"xoney/common/data"
5-
"xoney/errors"
6-
"xoney/internal"
4+
"github.com/quick-trade/xoney/common/data"
5+
"github.com/quick-trade/xoney/errors"
6+
"github.com/quick-trade/xoney/internal"
77
)
88

99
type OrderType string

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module xoney
1+
module github.com/quick-trade/xoney
22

33
go 1.21.6

internal/executing/events.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package executing
33
import (
44
"fmt"
55

6-
"xoney/events"
7-
"xoney/exchange"
6+
"github.com/quick-trade/xoney/events"
7+
"github.com/quick-trade/xoney/exchange"
88
)
99

1010
// ProcessEvent takes an exchange.Connector and an events.Event as parameters and processes the

internal/math.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package internal
33
import (
44
"math"
55

6-
"xoney/errors"
6+
"github.com/quick-trade/xoney/errors"
77
)
88

99
type Data []float64

internal/structures/heap.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package structures
22

33
import (
4-
"xoney/errors"
5-
"xoney/internal"
4+
"github.com/quick-trade/xoney/errors"
5+
"github.com/quick-trade/xoney/internal"
66
)
77

88
type Equaler[T any] interface {

realtime/executor.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"context"
55
"fmt"
66

7-
"xoney/common/data"
8-
conn "xoney/exchange"
9-
"xoney/internal"
10-
exec "xoney/internal/executing"
11-
st "xoney/strategy"
7+
"github.com/quick-trade/xoney/common/data"
8+
conn "github.com/quick-trade/xoney/exchange"
9+
"github.com/quick-trade/xoney/internal"
10+
exec "github.com/quick-trade/xoney/internal/executing"
11+
st "github.com/quick-trade/xoney/strategy"
1212
)
1313

1414
type DataSupplier interface {

strategy/strategy.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package strategy
33
import (
44
"time"
55

6-
"xoney/common/data"
7-
"xoney/events"
8-
"xoney/exchange"
6+
"github.com/quick-trade/xoney/common/data"
7+
"github.com/quick-trade/xoney/events"
8+
"github.com/quick-trade/xoney/exchange"
99
)
1010

1111
type Durations map[data.Instrument]time.Duration

test/backtesting/backtest_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"testing"
66
"time"
77

8-
bt "xoney/backtest"
9-
"xoney/common"
10-
"xoney/common/data"
11-
"xoney/exchange"
12-
testdata "xoney/testdata/backtesting"
13-
dtr "xoney/testdata/dataread"
8+
bt "github.com/quick-trade/xoney/backtest"
9+
"github.com/quick-trade/xoney/common"
10+
"github.com/quick-trade/xoney/common/data"
11+
"github.com/quick-trade/xoney/exchange"
12+
testdata "github.com/quick-trade/xoney/testdata/backtesting"
13+
dtr "github.com/quick-trade/xoney/testdata/dataread"
1414
)
1515

1616
var (

test/common/data/candlestick_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package data_test
33
import (
44
"testing"
55
"time"
6-
"xoney/common/data"
7-
"xoney/errors"
6+
7+
"github.com/quick-trade/xoney/common/data"
8+
"github.com/quick-trade/xoney/errors"
89
)
910

1011
func newTestTimeFrame() data.TimeFrame {

test/common/data/instrument_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"testing"
55
"time"
66

7-
"xoney/common/data"
8-
"xoney/errors"
7+
"github.com/quick-trade/xoney/common/data"
8+
"github.com/quick-trade/xoney/errors"
99
)
1010

1111
func TestSymbolString(t *testing.T) {

test/common/portfolio_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"strings"
55
"testing"
66

7-
"xoney/common"
8-
"xoney/common/data"
9-
"xoney/errors"
7+
"github.com/quick-trade/xoney/common"
8+
"github.com/quick-trade/xoney/common/data"
9+
"github.com/quick-trade/xoney/errors"
1010
)
1111

1212
func usd() data.Currency {

test/debug/bollinger/main.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ package main
33
import (
44
"time"
55

6-
bt "xoney/backtest"
7-
"xoney/common"
8-
"xoney/common/data"
9-
"xoney/exchange"
10-
st "xoney/strategy"
11-
testdata "xoney/testdata/backtesting"
12-
dtr "xoney/testdata/dataread"
6+
bt "github.com/quick-trade/xoney/backtest"
7+
"github.com/quick-trade/xoney/common"
8+
"github.com/quick-trade/xoney/common/data"
9+
"github.com/quick-trade/xoney/exchange"
10+
st "github.com/quick-trade/xoney/strategy"
11+
testdata "github.com/quick-trade/xoney/testdata/backtesting"
12+
dtr "github.com/quick-trade/xoney/testdata/dataread"
1313
)
1414

1515
var (

test/debug/grid/main.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package main
33
import (
44
"time"
55

6-
bt "xoney/backtest"
7-
"xoney/common"
8-
"xoney/common/data"
9-
"xoney/exchange"
10-
st "xoney/strategy"
11-
testdata "xoney/testdata/backtesting"
12-
dtr "xoney/testdata/dataread"
13-
tk "xoney/toolkit"
6+
bt "github.com/quick-trade/xoney/backtest"
7+
"github.com/quick-trade/xoney/common"
8+
"github.com/quick-trade/xoney/common/data"
9+
"github.com/quick-trade/xoney/exchange"
10+
st "github.com/quick-trade/xoney/strategy"
11+
testdata "github.com/quick-trade/xoney/testdata/backtesting"
12+
dtr "github.com/quick-trade/xoney/testdata/dataread"
13+
tk "github.com/quick-trade/xoney/toolkit"
1414
)
1515

1616
var (

test/events/events_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"fmt"
66
"testing"
77

8-
"xoney/common"
9-
"xoney/common/data"
10-
"xoney/events"
11-
"xoney/exchange"
8+
"github.com/quick-trade/xoney/common"
9+
"github.com/quick-trade/xoney/common/data"
10+
"github.com/quick-trade/xoney/events"
11+
"github.com/quick-trade/xoney/exchange"
1212
)
1313

1414
func usd() data.Currency {

test/exchange/connetor_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"testing"
66
"time"
77

8-
"xoney/common"
9-
"xoney/common/data"
10-
"xoney/errors"
11-
"xoney/exchange"
8+
"github.com/quick-trade/xoney/common"
9+
"github.com/quick-trade/xoney/common/data"
10+
"github.com/quick-trade/xoney/errors"
11+
"github.com/quick-trade/xoney/exchange"
1212
)
1313

1414
func usd() data.Currency {

test/exchange/order_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package exchange_test
33
import (
44
"testing"
55

6-
"xoney/common/data"
7-
"xoney/exchange"
6+
"github.com/quick-trade/xoney/common/data"
7+
"github.com/quick-trade/xoney/exchange"
88
)
99

1010
func eth() data.Symbol {

test/internal/heap_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package internal_test
22

33
import (
44
"testing"
5-
"xoney/errors"
6-
"xoney/internal/structures"
5+
6+
"github.com/quick-trade/xoney/errors"
7+
"github.com/quick-trade/xoney/internal/structures"
78
)
89

910
type MockEqualer int

test/internal/math_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package internal_test
33
import (
44
"testing"
55

6-
"xoney/errors"
7-
"xoney/internal"
6+
"github.com/quick-trade/xoney/errors"
7+
"github.com/quick-trade/xoney/internal"
88
)
99

1010
func array() []float64 {

test/internal/system_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import (
44
"reflect"
55
"sort"
66
"testing"
7-
"xoney/internal"
7+
8+
"github.com/quick-trade/xoney/internal"
89
)
910

1011
func Map() map[string]int {

test/toolkit/rebalancer_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"math"
66
"testing"
77

8-
"xoney/common"
9-
"xoney/common/data"
10-
"xoney/errors"
11-
"xoney/exchange"
12-
"xoney/internal"
13-
"xoney/toolkit"
8+
"github.com/quick-trade/xoney/common"
9+
"github.com/quick-trade/xoney/common/data"
10+
"github.com/quick-trade/xoney/errors"
11+
"github.com/quick-trade/xoney/exchange"
12+
"github.com/quick-trade/xoney/internal"
13+
"github.com/quick-trade/xoney/toolkit"
1414
)
1515

1616
const epsilon = 0.001

0 commit comments

Comments
 (0)