Skip to content
Open
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<!-- Core -->
<spring.version>3.3.5</spring.version>
<reactor.version>Dysprosium-SR25</reactor.version>
<xchange.version>5.0.13</xchange.version>
<xchange.version>5.2.1</xchange.version>
<bucket4j.version>8.0.1</bucket4j.version>
<liquibase.version>4.29.1</liquibase.version>
<opencsv.version>5.9</opencsv.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tech.cassandre.trading.bot.batch;

import info.bitrich.xchangestream.core.StreamingExchange;
import io.reactivex.disposables.Disposable;
import io.reactivex.rxjava3.disposables.Disposable;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
import org.springframework.context.ApplicationContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public enum AccountFeatureDTO {
MARGIN_TRADING,

/** You can fund other margin traders with funds allocated to this wallet to earn an interest. */
MARGIN_FUNDING
MARGIN_FUNDING,

/** Wallet for futures trading. */
FUTURES_TRADING
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public class ExchangeServiceXChangeImplementation extends BaseService implements
public Set<CurrencyPairDTO> getAvailableCurrencyPairs() {
logger.debug("Retrieving available currency pairs");
return exchange.getExchangeMetaData()
.getCurrencyPairs()
.getInstruments()
.keySet()
.stream()
.peek(cp -> logger.debug(" - {} available", cp))
.peek(instrument -> logger.debug(" - {} available", instrument))
.map(CURRENCY_MAPPER::mapToCurrencyPairDTO)
.collect(Collectors.toCollection(LinkedHashSet::new));
}
Expand Down