-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
414 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/com/kucoin/futures/core/enums/KLineTypeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.kucoin.futures.core.enums; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum KLineTypeEnum { | ||
|
||
ONE_MIN("1min"), | ||
THREE_MIN("3min"), | ||
FIVE_MIN("5min"), | ||
FIFTEEN_MIN("15min"), | ||
THIRTY_MIN("30min"), | ||
ONE_HOUR("1hour"), | ||
TWO_HOUR("2hour"), | ||
FOUR_HOUR("4hour"), | ||
EIGHT_HOUR("8hour"), | ||
TWELVE_HOUR("12hour"), | ||
ONE_DAY("1day"), | ||
ONE_WEEK("1week"), | ||
ONE_MONTH("1month"); | ||
|
||
KLineTypeEnum(String type) { | ||
this.type = type; | ||
} | ||
|
||
private final String type; | ||
|
||
public String kLineParam(String symbol){ | ||
return symbol+"_" + type; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/main/java/com/kucoin/futures/core/rest/request/HistoryPositionsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright 2019 Mek Global Limited | ||
*/ | ||
|
||
package com.kucoin.futures.core.rest.request; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author blaze.tan | ||
*/ | ||
@Data | ||
@Builder | ||
public class HistoryPositionsRequest { | ||
|
||
/** | ||
* Symbol of the contract | ||
*/ | ||
private String symbol; | ||
|
||
/** | ||
* Closing start time | ||
*/ | ||
private Long from; | ||
|
||
/** | ||
* Closing end time | ||
*/ | ||
private Long to; | ||
|
||
/** | ||
* Number of requests per page, max 200, default 10 | ||
*/ | ||
private Integer limit = 10; | ||
|
||
/** | ||
* Current page number, default 1 | ||
*/ | ||
private Integer pageId = 1; | ||
|
||
} |
Oops, something went wrong.