gitee.com/quant1x/engine@v1.8.4/trader/safes_test.go (about)

     1  package trader
     2  
     3  import (
     4  	"testing"
     5  	"time"
     6  )
     7  
     8  func TestProhibitTradingToBlackList(t *testing.T) {
     9  	code := "sh000001"
    10  	ProhibitTradingToBlackList(code)
    11  	time.Sleep(1 * time.Second)
    12  	ProhibitTradingToBlackList("sh000002")
    13  	time.Sleep(20 * time.Second)
    14  }
    15  
    16  func TestAddCodeToBlackList(t *testing.T) {
    17  	code := "sh603230"
    18  	secureType := FreeTrading
    19  	AddCodeToBlackList(code, secureType)
    20  }