| | |
| | | try { |
| | | //实盘 |
| | | config = GateConfig.builder() |
| | | .apiKey("08d6108fc29378fe64d6f0e89745b3fb") |
| | | .apiSecret("4d16e40117477a2344f6fd5872c5b075dc9664a599e65422d3e6791ff64379f1") |
| | | .apiKey("967fe9e50d589621a25d75618a85ba41") |
| | | .apiSecret("9d7a004a5d6b88b38fd6e21e323b0214c4f4e25db071ff45d479c76f0325aabe") |
| | | .contract("ETH_USDT") |
| | | .leverage("100") |
| | | .marginMode("CROSS") |
| | | .positionMode("dual") |
| | | .gridRate(new BigDecimal("0.0025")) |
| | | .expectedProfit(new BigDecimal("0.05")) |
| | | .expectedProfit(new BigDecimal("0.3")) |
| | | .maxLoss(new BigDecimal("1.5")) |
| | | .baseQuantity("2") |
| | | .quantity("1") |
| | | .maxPositionSize(2) |
| | | .quantity("2") |
| | | .maxPositionSize(4) |
| | | .restartGridSpan(2) |
| | | .priceScale(2) |
| | | .contractMultiplier(new BigDecimal("0.01")) |
| | | .unrealizedPnlPriceMode(GateConfig.PnLPriceMode.LAST_PRICE) |