mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
change go-binance to github.com/adshao/go-binance/v2
This commit is contained in:
parent
a71ebdd417
commit
50cd6f7d68
2
go.mod
2
go.mod
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user