You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
748 B
35 lines
748 B
6 years ago
|
package com.sigmaflare.binancej.entities;
|
||
|
|
||
|
public enum Interval {
|
||
|
ONE_MINUTE("1m"),
|
||
|
THREE_MINUTES("3m"),
|
||
|
FIVE_MINUTES("5m"),
|
||
|
FIFTEEN_MINUTES("15m"),
|
||
|
THIRTY_MINUTES("30m"),
|
||
|
ONE_HOUR("1h"),
|
||
|
TWO_HOURS("2h"),
|
||
|
FOUR_HOURS("4h"),
|
||
|
SIX_HOURS("6h"),
|
||
|
EIGHT_HOURS("8h"),
|
||
|
TWELVE_HOURS("12h"),
|
||
|
ONE_DAY("1d"),
|
||
|
THREE_DAYS("3d"),
|
||
|
ONE_WEEK("1w"),
|
||
|
ONE_MONTH("1M");
|
||
|
|
||
|
private final String representation;
|
||
|
|
||
|
/**
|
||
|
* Constructor
|
||
|
* @param representation The string representation of the time interval to construct
|
||
|
*/
|
||
|
Interval(String representation) {
|
||
|
this.representation = representation;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String toString() {
|
||
|
return representation;
|
||
|
}
|
||
|
}
|