Skip to content

Commit

Permalink
Merge pull request #9 from casoc/master
Browse files Browse the repository at this point in the history
 update event and response attribute
  • Loading branch information
casoc committed Apr 22, 2019
2 parents 26bb4af + a0dd867 commit 0b461ae
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -6,7 +6,7 @@

<groupId>com.kucoin</groupId>
<artifactId>kucoin-java-sdk</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<name>kucoin-java-sdk</name>
<url>http://www.kucoin.com</url>
Expand Down
Expand Up @@ -28,4 +28,6 @@ public class MarketTickerResponse {

private BigDecimal last;

private BigDecimal volValue;

}
Expand Up @@ -31,4 +31,6 @@ public class AccountChangeEvent {

private String time;

private String accountId;

}
Expand Up @@ -3,10 +3,10 @@
*/
package com.kucoin.sdk.websocket.event;

import java.math.BigDecimal;

import lombok.Data;

import java.math.BigDecimal;

/**
* Created by chenshiwei on 2019/1/19.
*/
Expand All @@ -25,6 +25,8 @@ public class Level3ChangeEvent {

private String orderId;

private String clientOid;

private BigDecimal price;

private long time;
Expand Down
Expand Up @@ -29,7 +29,7 @@ public class MatchExcutionChangeEvent {

private String type;

private String markerOrderId;
private String makerOrderId;

private String tradeId;

Expand Down
Expand Up @@ -49,4 +49,6 @@ public class OrderActivateEvent {

private String stopType;

private String clientOid;

}
3 changes: 0 additions & 3 deletions src/test/java/com/kucoin/sdk/KucoinPrivateWSClientTest.java
Expand Up @@ -12,7 +12,6 @@
import org.hamcrest.core.Is;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -55,7 +54,6 @@ public static void afterClass() throws Exception {
}

@Test
@Ignore // TODO broken
public void onOrderActivate() throws Exception {
AtomicReference<OrderActivateEvent> event = new AtomicReference<>();
CountDownLatch gotEvent = new CountDownLatch(1);
Expand Down Expand Up @@ -85,7 +83,6 @@ public void onOrderActivate() throws Exception {
}

@Test
@Ignore // TODO broken
public void onAccountBalance() throws Exception {
AtomicReference<AccountChangeEvent> event = new AtomicReference<>();
CountDownLatch gotEvent = new CountDownLatch(1);
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/com/kucoin/sdk/KucoinPublicWSClientTest.java
Expand Up @@ -13,7 +13,6 @@
import org.hamcrest.core.Is;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;
Expand Down Expand Up @@ -51,7 +50,6 @@ public static void afterClass() throws Exception {
}

@Test
@Ignore
public void onTicker() throws Exception {
AtomicReference<TickerResponse> event = new AtomicReference<>();
CountDownLatch gotEvent = new CountDownLatch(1);
Expand All @@ -70,7 +68,6 @@ public void onTicker() throws Exception {
}

@Test
@Ignore // TODO broken
public void onLevel2Data() throws Exception {
AtomicReference<Level2ChangeEvent> event = new AtomicReference<>();
CountDownLatch gotEvent = new CountDownLatch(1);
Expand All @@ -89,7 +86,6 @@ public void onLevel2Data() throws Exception {
}

@Test
@Ignore
public void onMatchExecutionData() throws Exception {
AtomicReference<MatchExcutionChangeEvent> event = new AtomicReference<>();
CountDownLatch gotEvent = new CountDownLatch(1);
Expand All @@ -108,7 +104,6 @@ public void onMatchExecutionData() throws Exception {
}

@Test
@Ignore // TODO broken
public void onLevel3Data() throws Exception {
AtomicReference<Level3ChangeEvent> event = new AtomicReference<>();
CountDownLatch gotEvent = new CountDownLatch(1);
Expand Down

0 comments on commit 0b461ae

Please sign in to comment.