| | |
| | | # url: jdbc:mysql://127.0.0.1:6306/8.4?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&serverTimezone=Europe/Paris&useLegacyDatetimeCode=false |
| | | url: jdbc:mysql://127.0.0.1:3306/cme?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&serverTimezone=Europe/Paris&useLegacyDatetimeCode=false |
| | | username: root |
| | | password: 9a64ce6be2011e9d |
| | | password: 123456 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | type: com.zaxxer.hikari.HikariDataSource |
| | | hikari: |
| | |
| | | admin_url=https://127.0.0.1:8080/admin |
| | | web_url=http://127.0.0.1:8080/wap/ |
| | | |
| | | images_http=https://img.cme-coin.com/ |
| | | images_http=https://img.durocaspitall.com/ |
| | | loca.images.dir=/www/wwwroot/img |
| | | email.host=smtp.gmail.com |
| | | email.username=coinzne.com@gmail.com |
| | |
| | | # 单节点设置 |
| | | singleServerConfig: |
| | | address: redis://127.0.0.1:6379 |
| | | database: 2 |
| | | database: 10 |
| | | password: |
| | | idleConnectionTimeout: 10000 |
| | | connectTimeout: 10000 |
| | |
| | | |
| | | Item item = itemService.findBySymbol(order.getSymbol()); |
| | | |
| | | |
| | | if(null != order.getProfitLossRatio()){//根据后台设置的盈亏比来 |
| | | order.setProfit(order.getDepositOpen().multiply(new BigDecimal((order.getProfitLossRatio()/100))).setScale(2, RoundingMode.DOWN)); |
| | | }else{ |
| | | /* |
| | | * 根据偏 差点数和手数算出盈亏金额 |
| | | */ |
| | |
| | | } else{ |
| | | order.setProfit(amount.negate()); |
| | | } |
| | | } |
| | | |
| | | |
| | | double faceValue = 0.01; // 合约面值(固定面值不能调整) |
| | | double maintenanceMarginRate = 0.004; // 维持保证金率(固定不变) |