public class OptionsPosition extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_CLOSE_ORDER |
static String |
SERIALIZED_NAME_CONTRACT |
static String |
SERIALIZED_NAME_ENTRY_PRICE |
static String |
SERIALIZED_NAME_MARK_PRICE |
static String |
SERIALIZED_NAME_PENDING_ORDERS |
static String |
SERIALIZED_NAME_REALISED_PNL |
static String |
SERIALIZED_NAME_SIZE |
static String |
SERIALIZED_NAME_UNREALISED_PNL |
static String |
SERIALIZED_NAME_USER |
| Constructor and Description |
|---|
OptionsPosition() |
| Modifier and Type | Method and Description |
|---|---|
OptionsPosition |
closeOrder(OptionsPositionCloseOrder closeOrder) |
boolean |
equals(Object o) |
OptionsPositionCloseOrder |
getCloseOrder()
Get closeOrder
|
String |
getContract()
Options contract name
|
String |
getEntryPrice()
Entry size (quote currency)
|
String |
getMarkPrice()
Current mark price (quote currency)
|
Integer |
getPendingOrders()
Current open orders
|
String |
getRealisedPnl()
Realized PNL
|
Long |
getSize()
Position size (contract size)
|
String |
getUnrealisedPnl()
Unrealized PNL
|
Integer |
getUser()
User ID
|
int |
hashCode() |
void |
setCloseOrder(OptionsPositionCloseOrder closeOrder) |
String |
toString() |
public static final String SERIALIZED_NAME_USER
public static final String SERIALIZED_NAME_CONTRACT
public static final String SERIALIZED_NAME_SIZE
public static final String SERIALIZED_NAME_ENTRY_PRICE
public static final String SERIALIZED_NAME_MARK_PRICE
public static final String SERIALIZED_NAME_REALISED_PNL
public static final String SERIALIZED_NAME_UNREALISED_PNL
public static final String SERIALIZED_NAME_PENDING_ORDERS
public static final String SERIALIZED_NAME_CLOSE_ORDER
@Nullable public String getEntryPrice()
@Nullable public String getMarkPrice()
@Nullable public Integer getPendingOrders()
public OptionsPosition closeOrder(OptionsPositionCloseOrder closeOrder)
@Nullable public OptionsPositionCloseOrder getCloseOrder()
public void setCloseOrder(OptionsPositionCloseOrder closeOrder)
Copyright © 2023. All rights reserved.