diff --git a/spot/client/trade.go b/spot/client/trade.go index f6d4841..c39fbda 100644 --- a/spot/client/trade.go +++ b/spot/client/trade.go @@ -10,6 +10,7 @@ import ( "github.com/dirname/binance/spot/client/orderRespType" "github.com/shopspring/decimal" "net/http" + "runtime/debug" "strings" "time" ) @@ -51,6 +52,7 @@ func (t *TradeClient) TestNewOrder(symbol, side, orderType, timeInForce, newClie // NewOrder Send in a new order. func (t *TradeClient) NewOrder(symbol, side, orderType, timeInForce, newClientOderID, newOrderRespType string, quantity, quoteOrderQTY, price, stopPrice, icebergQTY decimal.Decimal, recv time.Duration) (interface{}, error) { var err error + debug.PrintStack() params, err := buildOrder(symbol, side, orderType, timeInForce, newClientOderID, newOrderRespType, quantity, quoteOrderQTY, price, stopPrice, icebergQTY) if err != nil { return nil, err