Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitstamp] Replace array with List in api call #4907

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.knowm.xchange.bitstamp;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import org.knowm.xchange.BaseExchange;
Expand Down Expand Up @@ -68,8 +68,8 @@ public SynchronizedValueFactory<String> getTimestampFactory() {
public void remoteInit() throws IOException, ExchangeException {
BitstampMarketDataServiceRaw dataService =
(BitstampMarketDataServiceRaw) this.marketDataService;
BitstampPairInfo[] bitstampPairInfos = dataService.getTradingPairsInfo();
List<BitstampPairInfo> bitstampPairInfos = dataService.getTradingPairsInfo();
exchangeMetaData =
BitstampAdapters.adaptMetaData(Arrays.asList(bitstampPairInfos), exchangeMetaData);
BitstampAdapters.adaptMetaData(bitstampPairInfos, exchangeMetaData);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ BitstampTransaction[] getTransactions(

@GET
@Path("trading-pairs-info/")
BitstampPairInfo[] getTradingPairsInfo() throws IOException, BitstampException;
List<BitstampPairInfo> getTradingPairsInfo() throws IOException, BitstampException;

class Pair {
public final CurrencyPair pair;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public BitstampTransaction[] getTransactions(CurrencyPair pair, @Nullable Bitsta
}
}

public BitstampPairInfo[] getTradingPairsInfo() throws IOException {
public List<BitstampPairInfo> getTradingPairsInfo() throws IOException {
try {
return bitstampV2.getTradingPairsInfo();
} catch (BitstampException e) {
Expand Down
Loading