| | |
| | | log.info("开始买入平空...买入平空队列价格小于开仓价格{}<{}", kaiCang.getValue(), avgPx); |
| | | |
| | | // 手续费 |
| | | BigDecimal feeValue = PositionsWs.getAccountMap(positionAccountName).get("fee"); |
| | | BigDecimal feeValue = PositionsWs.getAccountMap(positionAccountName).get("fee").multiply(new BigDecimal("2")); |
| | | //未实现收益 |
| | | BigDecimal uplValue = PositionsWs.getAccountMap(positionAccountName).get("upl"); |
| | | //已实现收益 |
| | |
| | | |
| | | PING_CANG_SHOUYI("平仓收益比例", "0.5"), |
| | | //下单的总保障金为账户总金额cashBal * TOTAL_ORDER_USDT用来做保证金 |
| | | TOTAL_ORDER_USDTPECENT("总保证金比例total_order_usdtpecent","0.06"), |
| | | TOTAL_ORDER_USDTPECENT("总保证金比例total_order_usdtpecent","0.1"), |
| | | TOTAL_ORDER_USDT("总保证金totalOrderUsdt","0"), |
| | | KANG_CANG("抗压比例KANG_CANG","0.9"), |
| | | ZHI_SUN("止损比例ZHI_SUN","0.8"), |
| | |
| | | */ |
| | | @Getter |
| | | public enum WangGeListEnum { |
| | | UP("上层做空", "2", "3200", "3000", "4", "short", "3100"), |
| | | CENTER("中间做空", "2", "3000", "2700", "4", "short", "2700"), |
| | | DOWN("下层做多", "2", "2700", "2500", "4", "long", "2500"), |
| | | DOWN_ONE("下层做空", "2", "2500", "2200", "4", "short", "2500"); |
| | | UP("上层做空", "2", "3200", "3000", "4", "short", "3200"), |
| | | CENTER("中间做空", "2", "3000", "2700", "4", "short", "3000"), |
| | | DOWN("下层做空", "2", "2700", "2200", "4", "short", "2700"), |
| | | DOWN_ONE("下层做多", "2", "2200", "1800", "4", "long", "1800"); |
| | | |
| | | private String name; |
| | | private String xiaoshu_weishu; |