| | |
| | | private final PnLPriceMode unrealizedPnlPriceMode; |
| | | private final BigDecimal maxPosSize; |
| | | private BigDecimal step; |
| | | private Long instIdCode; |
| | | |
| | | private OkxConfig(Builder builder) { |
| | | this.apiKey = builder.apiKey; |
| | |
| | | public String getRestBaseUrl() { |
| | | return isProduction |
| | | ? "https://www.okx.com" |
| | | : "https://www.okx.cab"; |
| | | : "https://www.okx.com"; |
| | | } |
| | | |
| | | // ==================== 认证信息 ==================== |
| | |
| | | public BigDecimal getStep() { return step; } |
| | | public void setStep(BigDecimal step) { this.step = step; } |
| | | |
| | | public Long getInstIdCode() { return instIdCode; } |
| | | public void setInstIdCode(Long instIdCode) { this.instIdCode = instIdCode; } |
| | | |
| | | // ==================== 环境 ==================== |
| | | |
| | | public boolean isProduction() { return isProduction; } |