Commit d3e61bd 1 parent d8fca1e commit d3e61bd Copy full SHA for d3e61bd
File tree 2 files changed +28
-25
lines changed
2 files changed +28
-25
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ func (s *Symbol) MarketLotSizeFilter() *MarketLotSizeFilter {
301
301
return nil
302
302
}
303
303
304
- //For specific meanings, please refer to the type definition MaxNumOrders
304
+ // For specific meanings, please refer to the type definition MaxNumOrders
305
305
func (s * Symbol ) MaxNumOrdersFilter () * MaxNumOrdersFilter {
306
306
for _ , filter := range s .Filters {
307
307
if filter ["filterType" ].(string ) == string (SymbolFilterTypeMaxNumOrders ) {
Original file line number Diff line number Diff line change @@ -665,30 +665,33 @@ func (s *orderServiceTestSuite) TestCreateBatchOrders() {
665
665
N : 3 ,
666
666
Orders : []* Order {
667
667
{
668
- Symbol : "BTCUSDT" ,
669
- OrderID : 22542179 ,
670
- ClientOrderID : "testOrder" ,
671
- Price : "100" ,
672
- ReduceOnly : false ,
673
- OrigQuantity : "10" ,
674
- ExecutedQuantity : "0" ,
675
- CumQuantity : "0" ,
676
- CumQuote : "0" ,
677
- Status : "NEW" ,
678
- TimeInForce : "GTC" ,
679
- Type : "TRAILING_STOP_MARKET" ,
680
- Side : "BUY" ,
681
- StopPrice : "9300" ,
682
- Time : 0 ,
683
- UpdateTime : 1566818724722 ,
684
- WorkingType : "CONTRACT_PRICE" ,
685
- ActivatePrice : "9020" ,
686
- PriceRate : "0.3" ,
687
- AvgPrice : "0.00000" ,
688
- OrigType : "TRAILING_STOP_MARKET" ,
689
- PositionSide : "SHORT" ,
690
- PriceProtect : false ,
691
- ClosePosition : false ,
668
+ Symbol : "BTCUSDT" ,
669
+ OrderID : 22542179 ,
670
+ ClientOrderID : "testOrder" ,
671
+ Price : "100" ,
672
+ ReduceOnly : false ,
673
+ OrigQuantity : "10" ,
674
+ ExecutedQuantity : "0" ,
675
+ CumQuantity : "0" ,
676
+ CumQuote : "0" ,
677
+ Status : "NEW" ,
678
+ TimeInForce : "GTC" ,
679
+ Type : "TRAILING_STOP_MARKET" ,
680
+ Side : "BUY" ,
681
+ StopPrice : "9300" ,
682
+ Time : 0 ,
683
+ UpdateTime : 1566818724722 ,
684
+ WorkingType : "CONTRACT_PRICE" ,
685
+ ActivatePrice : "9020" ,
686
+ PriceRate : "0.3" ,
687
+ AvgPrice : "0.00000" ,
688
+ OrigType : "TRAILING_STOP_MARKET" ,
689
+ PositionSide : "SHORT" ,
690
+ PriceProtect : false ,
691
+ ClosePosition : false ,
692
+ PriceMatch : "NONE" ,
693
+ SelfTradePreventionMode : "NONE" ,
694
+ GoodTillDate : 0 ,
692
695
},
693
696
},
694
697
Errors : []error {
You can’t perform that action at this time.
0 commit comments