diff --git a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitExchange.java b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitExchange.java index c56b069ef4e..a2c7a7f4cb0 100644 --- a/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitExchange.java +++ b/xchange-bybit/src/main/java/org/knowm/xchange/bybit/BybitExchange.java @@ -17,6 +17,8 @@ public class BybitExchange extends BaseExchange { + public static final String SPECIFIC_PARAM_ACCOUNT_TYPE = "accountType"; + @Override protected void initServices() { marketDataService = new BybitMarketDataService(this); @@ -25,7 +27,8 @@ protected void initServices() { new BybitAccountService( this, (BybitAccountType) - getExchangeSpecification().getExchangeSpecificParameters().get("accountType")); + getExchangeSpecification() + .getExchangeSpecificParametersItem(SPECIFIC_PARAM_ACCOUNT_TYPE)); } @Override @@ -37,7 +40,7 @@ public ExchangeSpecification getDefaultExchangeSpecification() { exchangeSpecification.setExchangeName("Bybit"); exchangeSpecification.setExchangeDescription("BYBIT"); exchangeSpecification.setExchangeSpecificParametersItem( - "accountType", BybitAccountType.UNIFIED); + SPECIFIC_PARAM_ACCOUNT_TYPE, BybitAccountType.UNIFIED); return exchangeSpecification; }