Skip to content

Commit

Permalink
Fixed project version in pom.xml's
Browse files Browse the repository at this point in the history
  • Loading branch information
jkolobok committed Jun 18, 2018
1 parent 6becbb3 commit cd072ae
Show file tree
Hide file tree
Showing 80 changed files with 461 additions and 197 deletions.
4 changes: 2 additions & 2 deletions xchange-abucoins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>xchange-parent</artifactId>
<groupId>org.knowm.xchange</groupId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-abucoins</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion xchange-acx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>
<artifactId>xchange-acx</artifactId>
<name>XChange ACX.IO</name>
Expand Down
4 changes: 2 additions & 2 deletions xchange-anx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-anx</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

<!-- Test dependencies -->
Expand Down
4 changes: 2 additions & 2 deletions xchange-binance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>xchange-parent</artifactId>
<groupId>org.knowm.xchange</groupId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-binance</artifactId>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
4 changes: 2 additions & 2 deletions xchange-bitbay/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitbay</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions xchange-bitcoinaverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitcoinaverage</artifactId>
Expand All @@ -27,9 +27,9 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
4 changes: 2 additions & 2 deletions xchange-bitcoincharts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitcoincharts</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions xchange-bitcoincore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitcoincore</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions xchange-bitcoinde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitcoinde</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions xchange-bitcoinium/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitcoinium</artifactId>
Expand All @@ -27,9 +27,9 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitfinex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitfinex</artifactId>
Expand All @@ -27,9 +27,9 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
6 changes: 3 additions & 3 deletions xchange-bitflyer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>xchange-parent</artifactId>
<groupId>org.knowm.xchange</groupId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -22,9 +22,9 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

</dependencies>

</project>
</project>
4 changes: 2 additions & 2 deletions xchange-bitmarket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitmarket</artifactId>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

<dependency>
Expand Down
6 changes: 3 additions & 3 deletions xchange-bitmex/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-parent</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>4.3.9-SNAPSHOT</version>
</parent>

<artifactId>xchange-bitmex</artifactId>
Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>org.knowm.xchange</groupId>
<artifactId>xchange-core</artifactId>
<version>4.3.8-SNAPSHOT</version>
<version>${project.version}</version>
</dependency>

<dependency>
Expand All @@ -37,4 +37,4 @@
<version>19.0</version>
</dependency>
</dependencies>
</project>
</project>
62 changes: 62 additions & 0 deletions xchange-bitmex/src/main/java/org/knowm/xchange/bitmex/Bitmex.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package org.knowm.xchange.bitmex;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import javax.annotation.Nullable;
Expand Down Expand Up @@ -184,6 +186,46 @@ BitmexPrivateOrder placeOrder(
@Nullable @FormParam("clOrdID") String clOrdID,
@Nullable @FormParam("execInst") String executionInstructions);

@POST
@Path("order/bulk")
// @Consumes("application/json")
// @Produces("application/json")
List<BitmexPrivateOrder> placeOrderBulk(
@HeaderParam("api-key") String apiKey,
@HeaderParam("api-expires") SynchronizedValueFactory<Long> nonce,
@HeaderParam("api-signature") ParamsDigest paramsDigest,
@FormParam("orders") String orderCommands);

public static class PlaceOrderCommand {
private @JsonProperty("symbol") String symbol;
private @Nullable @JsonProperty("side") String side;
private @JsonProperty("orderQty") int orderQuantity;
private @JsonProperty("price") BigDecimal price;
private @Nullable @JsonProperty("stopPx") BigDecimal stopPrice;
private @Nullable @JsonProperty("ordType") String orderType;
private @Nullable @JsonProperty("clOrdID") String clOrdID;
private @Nullable @JsonProperty("execInst") String executionInstructions;

public PlaceOrderCommand(
String symbol,
@Nullable String side,
int orderQuantity,
BigDecimal price,
@Nullable BigDecimal stopPrice,
@Nullable String orderType,
@Nullable String clOrdID,
@Nullable String executionInstructions) {
this.symbol = symbol;
this.side = side;
this.orderQuantity = orderQuantity;
this.price = price;
this.stopPrice = stopPrice;
this.orderType = orderType;
this.clOrdID = clOrdID;
this.executionInstructions = executionInstructions;
}
}

@PUT
@Path("order")
// for some reason underlying library doesn't add contenty type for PUT requests automatically
Expand All @@ -200,6 +242,26 @@ BitmexPrivateOrder replaceOrder(
@Nullable @FormParam("clOrdID") String clOrdID,
@Nullable @FormParam("origClOrdID") String origClOrdID);

@PUT
@Path("order/bulk")
// for some reason underlying library doesn't add contenty type for PUT requests automatically
@Consumes("application/x-www-form-urlencoded")
BitmexPrivateOrder replaceOrderBulk(
@HeaderParam("api-key") String apiKey,
@HeaderParam("api-expires") SynchronizedValueFactory<Long> nonce,
@HeaderParam("api-signature") ParamsDigest paramsDigest,
@FormParam("orders") Collection<ReplaceOrderCommand> commands);

public static class ReplaceOrderCommand {
private @JsonProperty("orderQty") int orderQuantity;
private @Nullable @JsonProperty("price") BigDecimal price;
private @Nullable @JsonProperty("stopPx") BigDecimal stopPrice;
private @Nullable @JsonProperty("ordType") String orderType;
private @Nullable @JsonProperty("orderID") String orderId;
private @Nullable @JsonProperty("clOrdID") String clOrdID;
private @Nullable @JsonProperty("origClOrdID") String origClOrdID;
}

@DELETE
@Path("order")
List<BitmexPrivateOrder> cancelOrder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public static OrderStatus adaptOrderStatus(BitmexPrivateOrder.OrderStatus status
switch (status) {
case New:
return OrderStatus.NEW;
case Partially_filled:
case PartiallyFilled:
return OrderStatus.PARTIALLY_FILLED;
case Filled:
return OrderStatus.FILLED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public String toString() {

public enum OrderStatus {
New,
Partially_filled,
PartiallyFilled,
Filled,
Canceled,
Rejected
Expand Down
Loading

0 comments on commit cd072ae

Please sign in to comment.