:feat: 行情
parent
b4b09fd2bb
commit
2a9e71b5b5
@ -0,0 +1,43 @@
|
||||
package org.alis.blackchain.constanst;
|
||||
|
||||
/**
|
||||
* @author lc
|
||||
* @date 2023/11/24 17:14
|
||||
**/
|
||||
public final class InstType {
|
||||
private final String type;
|
||||
|
||||
private InstType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
private static InstType of(String type) {
|
||||
return new InstType(type);
|
||||
}
|
||||
|
||||
/**
|
||||
* 币币
|
||||
*/
|
||||
public static final InstType SPOT = InstType.of("SPOT");
|
||||
/**
|
||||
* 币币杠杆
|
||||
*/
|
||||
public static final InstType MARGIN = InstType.of("MARGIN");
|
||||
/**
|
||||
* 永续合约
|
||||
*/
|
||||
public static final InstType SWAP = InstType.of("SWAP");
|
||||
/**
|
||||
* 交割合约
|
||||
*/
|
||||
public static final InstType FUTURES = InstType.of("FUTURES");
|
||||
|
||||
/**
|
||||
* 期权
|
||||
*/
|
||||
public static final InstType OPTION = InstType.of("OPTION");
|
||||
}
|
Loading…
Reference in New Issue