Skip to content

Commit

Permalink
[bybit] Specific parameter updated
Browse files Browse the repository at this point in the history
  • Loading branch information
damiano1996 committed Dec 17, 2023
1 parent 02abf41 commit ddf8337
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -25,7 +27,8 @@ protected void initServices() {
new BybitAccountService(
this,
(BybitAccountType)
getExchangeSpecification().getExchangeSpecificParameters().get("accountType"));
getExchangeSpecification()
.getExchangeSpecificParametersItem(SPECIFIC_PARAM_ACCOUNT_TYPE));
}

@Override
Expand All @@ -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;
}

Expand Down

0 comments on commit ddf8337

Please sign in to comment.