Skip to content

Commit

Permalink
prepare for 4.3.18 release
Browse files Browse the repository at this point in the history
  • Loading branch information
timmolter committed May 7, 2019
1 parent fd7e0a2 commit c91c8f2
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 54 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTORS
Expand Up @@ -178,6 +178,7 @@ Muffon
Nathan King
Nicolas Pinot
Niels
Niels Draaisma
Nikita Belenkiy
Niko Schmuck
Norbert Sándor
Expand All @@ -196,6 +197,7 @@ Peter Keeler
Peter N. Steinmetz
Piotr Ladyzynski
Piotr Ładyżyński
Premek
Premysl Vyhnal
RadeK
Radu
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright 2015-2018 Knowm Inc. (http://knowm.org) and contributors.
Copyright 2015-2019 Knowm Inc. (http://knowm.org) and contributors.
Copyright 2012-2015 Xeiam LLC (http://xeiam.com) and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -101,17 +101,17 @@ Add the following dependencies in your pom.xml file. You will need at least xcha
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.17</version>
<version>4.3.18</version>
</dependency>
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-examples</artifactId>
<version>4.3.17</version>
<version>4.3.18</version>
</dependency>
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-XYZ</artifactId>
<version>4.3.17</version>
<version>4.3.18</version>
</dependency>

For snapshots, add the following repository to your pom.xml file.
Expand All @@ -124,7 +124,7 @@ For snapshots, add the following repository to your pom.xml file.

The current snapshot version is:

4.3.18-SNAPSHOT
4.3.19-SNAPSHOT

## Building with Maven

Expand Down
Expand Up @@ -480,7 +480,8 @@ public static OpenOrders adaptOrders(BitfinexOrderStatusResponse[] activeOrders)
limitOrder = limitOrderCreator.get();
break;
default:
log.warn("Unhandled Bitfinex order type [{}]. Defaulting to limit order", order.getType());
log.warn(
"Unhandled Bitfinex order type [{}]. Defaulting to limit order", order.getType());
limitOrder = limitOrderCreator.get();
break;
}
Expand All @@ -501,9 +502,10 @@ public static OpenOrders adaptOrders(BitfinexOrderStatusResponse[] activeOrders)

private static void stopLimitWarning() {
if (warnedStopLimit.compareAndSet(false, true)) {
log.warn("Found a stop-limit order. Bitfinex v1 API does not return limit prices for stop-limit "
+ "orders so these are returned as stop-at-market orders. This warning will only appear "
+ "once.");
log.warn(
"Found a stop-limit order. Bitfinex v1 API does not return limit prices for stop-limit "
+ "orders so these are returned as stop-at-market orders. This warning will only appear "
+ "once.");
}
}

Expand Down
Expand Up @@ -42,6 +42,6 @@ public static String getPair(CurrencyPair currencyPair) {
}

public static CurrencyPair getPair(String currencyPair) {
return new CurrencyPair(currencyPair.replace("_","/"));
return new CurrencyPair(currencyPair.replace("_", "/"));
}
}
Expand Up @@ -54,7 +54,7 @@ public static enum OrderStatus {
clientOrderIdTooLong, // the client id is longer than the permissible limit
maxPositionViolation, // not documented
outsidePriceCollar, // the limit order crosses the spread but is an order of magnitude away from
// the mark price - fat finger control
// the mark price - fat finger control
postWouldExecute, // the post-only order would be filled upon placement, thus is cancelled
iocWouldNotExecute, // the immediate-or-cancel order would not call

Expand Down
Expand Up @@ -4,12 +4,12 @@
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.dsx.DSXExchange;

/** @author Mikhail Wall */
public class DSXExamplesUtils {

public static Exchange createExchange(Class<? extends Exchange> exchangeClass) throws IOException {
public static Exchange createExchange(Class<? extends Exchange> exchangeClass)
throws IOException {

ExchangeSpecification exSpec = new ExchangeSpecification(exchangeClass);
exSpec.setSecretKey("6FY66EC0YJ7YL4OHAC1X5ZEYAUUFRJBFI21I9S7A5PW7");
Expand Down
@@ -1,5 +1,7 @@
package org.knowm.xchange.examples.dsx.account;

import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.Currency;
import org.knowm.xchange.dsx.DSXExchangeV3;
Expand All @@ -9,9 +11,6 @@
import org.knowm.xchange.examples.dsx.DSXExamplesUtils;
import org.knowm.xchange.service.account.AccountService;

import java.io.IOException;
import java.math.BigDecimal;

/** @author Pavel Chertalev */
public class DSXAccountInfoDemoV3 {

Expand Down
Expand Up @@ -40,8 +40,7 @@ private static void generic(Exchange exchange) throws IOException {

private static void raw(Exchange exchange) throws IOException {

DSXMarketDataService marketDataService =
(DSXMarketDataService) exchange.getMarketDataService();
DSXMarketDataService marketDataService = (DSXMarketDataService) exchange.getMarketDataService();

Map<String, DSXOrderbook> depth =
marketDataService.getDSXOrderbook("ltcusd", "LIVE").getOrderbookMap();
Expand Down
@@ -1,5 +1,7 @@
package org.knowm.xchange.examples.dsx.marketdata;

import java.io.IOException;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
Expand All @@ -9,9 +11,6 @@
import org.knowm.xchange.dto.marketdata.OrderBook;
import org.knowm.xchange.service.marketdata.MarketDataService;

import java.io.IOException;
import java.util.Map;

/** @author Pavel Chertalev */
public class DSXDepthDemoV3 {

Expand Down
Expand Up @@ -39,8 +39,7 @@ private static void generic(Exchange exchange) throws IOException {

private static void raw(Exchange exchange) throws IOException {

DSXMarketDataService marketDataService =
(DSXMarketDataService) exchange.getMarketDataService();
DSXMarketDataService marketDataService = (DSXMarketDataService) exchange.getMarketDataService();

DSXTickerWrapper ticker = marketDataService.getDSXTicker("btcusd", "LIVE");
System.out.println(ticker.toString());
Expand Down
@@ -1,5 +1,6 @@
package org.knowm.xchange.examples.dsx.marketdata;

import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
Expand All @@ -10,8 +11,6 @@
import org.knowm.xchange.service.marketdata.MarketDataService;
import org.knowm.xchange.utils.CertHelper;

import java.io.IOException;

/** @author Mikhail Wall */
public class DSXTickerDemoV3 {

Expand Down
Expand Up @@ -32,8 +32,7 @@ private static void generic(Exchange exchange) throws IOException {

private static void raw(Exchange exchange) throws IOException {

DSXMarketDataService marketDataService =
(DSXMarketDataService) exchange.getMarketDataService();
DSXMarketDataService marketDataService = (DSXMarketDataService) exchange.getMarketDataService();

Map<String, DSXTrade[]> trades =
marketDataService.getDSXTrades("btcusd", 7, "LIVE").getTradesMap();
Expand Down
@@ -1,5 +1,7 @@
package org.knowm.xchange.examples.dsx.marketdata;

import java.io.IOException;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
Expand All @@ -9,9 +11,6 @@
import org.knowm.xchange.dto.marketdata.Trades;
import org.knowm.xchange.service.marketdata.MarketDataService;

import java.io.IOException;
import java.util.Map;

/** @author Mikhail Wall */
public class DSXTradesDemoV3 {

Expand Down
@@ -1,5 +1,7 @@
package org.knowm.xchange.examples.dsx.meta;

import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dsx.DSXExchangeV3;
Expand All @@ -11,9 +13,6 @@
import org.knowm.xchange.dto.trade.MarketOrder;
import org.knowm.xchange.examples.dsx.DSXExamplesUtils;

import java.io.IOException;
import java.math.BigDecimal;

/** @author Mikhail Wall */
public class DSXMetaDataDemoV3 {

Expand Down
@@ -1,5 +1,9 @@
package org.knowm.xchange.examples.dsx.trade;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dsx.DSXExchangeV3;
Expand All @@ -14,11 +18,6 @@
import org.knowm.xchange.exceptions.ExchangeException;
import org.knowm.xchange.service.trade.TradeService;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/** @author Mikhail Wall */
public class DSXTradeDemoV3 {

Expand Down
@@ -1,5 +1,7 @@
package org.knowm.xchange.examples.dsx.trade;

import java.io.IOException;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dsx.DSXExchangeV3;
Expand All @@ -11,9 +13,6 @@
import org.knowm.xchange.exceptions.ExchangeException;
import org.knowm.xchange.service.trade.TradeService;

import java.io.IOException;
import java.util.Map;

/** @author Mikhail Wall */
public class DSXUserTradeHistoryDemoV3 {

Expand Down
@@ -1,5 +1,7 @@
package org.knowm.xchange.examples.dsx.trade;

import java.io.IOException;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.dsx.DSXExchangeV3;
import org.knowm.xchange.dsx.dto.trade.DSXOrder;
Expand All @@ -9,9 +11,6 @@
import org.knowm.xchange.examples.dsx.DSXExamplesUtils;
import org.knowm.xchange.exceptions.ExchangeException;

import java.io.IOException;
import java.util.Map;

/** @author Mikhail Wall */
public class DSXUserTransHistoryDemoV3 {

Expand Down
Expand Up @@ -7,7 +7,6 @@
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.knowm.xchange.itbit.dto.ItBitException;
import org.knowm.xchange.itbit.dto.marketdata.ItBitDepth;
import org.knowm.xchange.itbit.dto.marketdata.ItBitTrades;
Expand Down
Expand Up @@ -35,12 +35,12 @@
import org.knowm.xchange.itbit.dto.ItBitFunding;
import org.knowm.xchange.itbit.dto.account.ItBitAccountBalance;
import org.knowm.xchange.itbit.dto.account.ItBitAccountInfoReturn;
import org.knowm.xchange.itbit.dto.trade.ItBitOrder;
import org.knowm.xchange.itbit.dto.trade.ItBitTradeHistory;
import org.knowm.xchange.itbit.dto.trade.ItBitUserTrade;
import org.knowm.xchange.itbit.dto.marketdata.ItBitTicker;
import org.knowm.xchange.itbit.dto.marketdata.ItBitTrade;
import org.knowm.xchange.itbit.dto.marketdata.ItBitTrades;
import org.knowm.xchange.itbit.dto.trade.ItBitOrder;
import org.knowm.xchange.itbit.dto.trade.ItBitTradeHistory;
import org.knowm.xchange.itbit.dto.trade.ItBitUserTrade;
import org.knowm.xchange.utils.DateUtils;

public final class ItBitAdapters {
Expand Down
Expand Up @@ -13,18 +13,17 @@
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.knowm.xchange.itbit.dto.ItBitException;
import org.knowm.xchange.itbit.dto.ItBitFundingHistoryResponse;
import org.knowm.xchange.itbit.dto.trade.ItBitOrder;
import org.knowm.xchange.itbit.dto.trade.ItBitPlaceOrderRequest;
import org.knowm.xchange.itbit.dto.trade.ItBitTradeHistory;
import org.knowm.xchange.itbit.dto.account.ItBitAccountInfoReturn;
import org.knowm.xchange.itbit.dto.account.ItBitDepositRequest;
import org.knowm.xchange.itbit.dto.account.ItBitDepositResponse;
import org.knowm.xchange.itbit.dto.account.ItBitWithdrawalRequest;
import org.knowm.xchange.itbit.dto.account.ItBitWithdrawalResponse;
import org.knowm.xchange.itbit.dto.marketdata.ItBitTicker;
import org.knowm.xchange.itbit.dto.trade.ItBitOrder;
import org.knowm.xchange.itbit.dto.trade.ItBitPlaceOrderRequest;
import org.knowm.xchange.itbit.dto.trade.ItBitTradeHistory;
import si.mazi.rescu.ParamsDigest;
import si.mazi.rescu.SynchronizedValueFactory;

Expand Down
Expand Up @@ -29,8 +29,7 @@ public interface SymbolAPI {
KucoinResponse<List<SymbolResponse>> getSymbols() throws IOException;

/**
* Ticker include only the inside (i.e. best) bid and ask data , last price and
* last trade size.
* Ticker include only the inside (i.e. best) bid and ask data , last price and last trade size.
*
* @param symbol The currency
* @return The ticker.
Expand Down

0 comments on commit c91c8f2

Please sign in to comment.