public enum TradePolicy extends Enum<TradePolicy>
| Enum Constant and Description |
|---|
ALL
Allow opening and closing of positions
|
CLOSE_ONLY
Only allow closing
|
DENIED
Prohibit trading
|
| Modifier and Type | Method and Description |
|---|---|
static TradePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TradePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TradePolicy ALL
public static final TradePolicy CLOSE_ONLY
public static final TradePolicy DENIED
public static TradePolicy[] values()
for (TradePolicy c : TradePolicy.values()) System.out.println(c);
public static TradePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2025 Webull. All rights reserved.