| | |
| | | import com.xcong.excoin.modules.coin.entity.OrderCoinsEntity; |
| | | import com.xcong.excoin.modules.coin.service.OrderCoinService; |
| | | import com.xcong.excoin.trade.CoinTrader; |
| | | import com.xcong.excoin.utils.CoinTypeConvert; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | import lombok.SneakyThrows; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | | @SpringBootTest |
| | | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
| | | public class TradeTest { |
| | | |
| | | @Resource |
| | |
| | | |
| | | @Test |
| | | public void buy(){ |
| | | redisUtils.set("ROC_NEW_PRICE",new BigDecimal("12.33")); |
| | | redisUtils.set("GBZ_NEW_PRICE",new BigDecimal("12.33")); |
| | | } |
| | | |
| | | public static void main(String[] args) throws InterruptedException { |
| | | String s = SecureUtil.md5("123456"); |
| | | String s = SecureUtil.md5("330021"); |
| | | System.out.println(s); |
| | | } |
| | | |
| | | @Test |
| | | public void gbz() { |
| | | System.out.println(redisUtils.getString(CoinTypeConvert.convertToKey("GBZ"+"/USDT"))); |
| | | } |
| | | } |