change go-binance to github.com/adshao/go-binance/v2

This commit is contained in:
c9s 2021-01-11 13:36:49 +08:00
parent a71ebdd417
commit 50cd6f7d68
6 changed files with 7 additions and 7 deletions

2
go.mod
View File

@ -6,7 +6,7 @@ go 1.13
require (
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/adshao/go-binance/v2 v2.2.0 // indirect
github.com/adshao/go-binance/v2 v2.2.0
github.com/bitly/go-simplejson v0.5.0 // indirect
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
github.com/c9s/goose v0.0.0-20200415105707-8da682162a5b

View File

@ -5,7 +5,7 @@ import (
"strconv"
"time"
"github.com/adshao/go-binance"
"github.com/adshao/go-binance/v2"
"github.com/pkg/errors"
"github.com/c9s/bbgo/pkg/types"

View File

@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/adshao/go-binance"
"github.com/adshao/go-binance/v2"
"github.com/google/uuid"
"github.com/pkg/errors"
@ -406,7 +406,7 @@ func (e *Exchange) SubmitOrders(ctx context.Context, orders ...types.SubmitOrder
TimeInForce: response.TimeInForce,
Type: response.Type,
Side: response.Side,
IsIsolated: response.IsIsolated,
// IsIsolated: response.IsIsolated,
// StopPrice:
// IcebergQuantity:
Time: response.TransactTime,

View File

@ -6,7 +6,7 @@ import (
"fmt"
"time"
"github.com/adshao/go-binance"
"github.com/adshao/go-binance/v2"
"github.com/valyala/fastjson"
"github.com/c9s/bbgo/pkg/fixedpoint"

View File

@ -8,7 +8,7 @@ import (
"sync"
"time"
"github.com/adshao/go-binance"
"github.com/adshao/go-binance/v2"
"github.com/gorilla/websocket"
"github.com/c9s/bbgo/pkg/fixedpoint"

View File

@ -1,6 +1,6 @@
package binance
import "github.com/adshao/go-binance"
import "github.com/adshao/go-binance/v2"
func BuyerOrSellerLabel(trade *binance.TradeV3) (o string) {
if trade.IsBuyer {