mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +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 (
|
require (
|
||||||
github.com/DATA-DOG/go-sqlmock v1.5.0
|
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/bitly/go-simplejson v0.5.0 // indirect
|
||||||
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
|
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
|
||||||
github.com/c9s/goose v0.0.0-20200415105707-8da682162a5b
|
github.com/c9s/goose v0.0.0-20200415105707-8da682162a5b
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/adshao/go-binance"
|
"github.com/adshao/go-binance/v2"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/c9s/bbgo/pkg/types"
|
"github.com/c9s/bbgo/pkg/types"
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/adshao/go-binance"
|
"github.com/adshao/go-binance/v2"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
|
@ -406,7 +406,7 @@ func (e *Exchange) SubmitOrders(ctx context.Context, orders ...types.SubmitOrder
|
||||||
TimeInForce: response.TimeInForce,
|
TimeInForce: response.TimeInForce,
|
||||||
Type: response.Type,
|
Type: response.Type,
|
||||||
Side: response.Side,
|
Side: response.Side,
|
||||||
IsIsolated: response.IsIsolated,
|
// IsIsolated: response.IsIsolated,
|
||||||
// StopPrice:
|
// StopPrice:
|
||||||
// IcebergQuantity:
|
// IcebergQuantity:
|
||||||
Time: response.TransactTime,
|
Time: response.TransactTime,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/adshao/go-binance"
|
"github.com/adshao/go-binance/v2"
|
||||||
"github.com/valyala/fastjson"
|
"github.com/valyala/fastjson"
|
||||||
|
|
||||||
"github.com/c9s/bbgo/pkg/fixedpoint"
|
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/adshao/go-binance"
|
"github.com/adshao/go-binance/v2"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
|
|
||||||
"github.com/c9s/bbgo/pkg/fixedpoint"
|
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package binance
|
package binance
|
||||||
|
|
||||||
import "github.com/adshao/go-binance"
|
import "github.com/adshao/go-binance/v2"
|
||||||
|
|
||||||
func BuyerOrSellerLabel(trade *binance.TradeV3) (o string) {
|
func BuyerOrSellerLabel(trade *binance.TradeV3) (o string) {
|
||||||
if trade.IsBuyer {
|
if trade.IsBuyer {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user