Skip to content

Commit

Permalink
修改包名
Browse files Browse the repository at this point in the history
  • Loading branch information
HomWang committed Oct 22, 2021
1 parent 558582c commit f857f65
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 585 deletions.
13 changes: 6 additions & 7 deletions backtest/strategytester_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package backtest

import (
"github.com/516310460/trade-api"
"github.com/coinrust/crex"
"testing"
"time"
)
Expand All @@ -15,11 +14,11 @@ func TestStrategyTester_CalAnnReturn(t *testing.T) {
backtest := NewBacktest(nil, "", startTime, endTime, nil, nil, "")
st.backtest = backtest

st.logs = append(st.logs, &crex.LogItem{
st.logs = append(st.logs, &trade.LogItem{
Time: startTime,
RawTime: startTime,
Prices: []float64{5000.0, 5000.0},
Stats: []crex.LogStats{
Stats: []trade.LogStats{
{
Balance: 100000,
Equity: 100000,
Expand All @@ -31,11 +30,11 @@ func TestStrategyTester_CalAnnReturn(t *testing.T) {
},
})

st.logs = append(st.logs, &crex.LogItem{
st.logs = append(st.logs, &trade.LogItem{
Time: startTime.Add(1 * time.Hour),
RawTime: startTime.Add(1 * time.Hour),
Prices: []float64{5000.0, 5000.0},
Stats: []crex.LogStats{
Stats: []trade.LogStats{
{
Balance: 95000,
Equity: 95000,
Expand All @@ -47,11 +46,11 @@ func TestStrategyTester_CalAnnReturn(t *testing.T) {
},
})

st.logs = append(st.logs, &crex.LogItem{
st.logs = append(st.logs, &trade.LogItem{
Time: endTime,
RawTime: endTime,
Prices: []float64{5500.0, 5500.0},
Stats: []crex.LogStats{
Stats: []trade.LogStats{
{
Balance: 100000,
Equity: 101000,
Expand Down
116 changes: 0 additions & 116 deletions exchanges/bitmex/bitmex_test.go

This file was deleted.

48 changes: 0 additions & 48 deletions exchanges/bybit/websocket_test.go

This file was deleted.

111 changes: 0 additions & 111 deletions exchanges/deribit/deribit_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions exchanges/exsim/helper_test.go

This file was deleted.

44 changes: 0 additions & 44 deletions exchanges/hbdm/websocket_test.go

This file was deleted.

Loading

0 comments on commit f857f65

Please sign in to comment.