Package com.qtsurfer.api.client.model
Class LivePaperInstrumentOpenPosition
java.lang.Object
com.qtsurfer.api.client.model.LivePaperInstrumentOpenPosition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class LivePaperInstrumentOpenPosition
extends Object
What it holds now. Absent when it holds nothing.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this LivePaperInstrument_openPosition object is equal to o.getBase()Amount held, in the base asset.getCost()What it cost, in the account's currency.Market time (epoch ms) of that mark.The price it was valued at in the last mark.`base` times `markPrice`, minus `cost`, in the account's currency.inthashCode()markedAtMs(Long markedAtMs) voidvoidvoidsetMarkedAtMs(Long markedAtMs) voidsetMarkPrice(Double markPrice) voidsetUnrealisedPnl(Double unrealisedPnl) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.unrealisedPnl(Double unrealisedPnl)
-
Field Details
-
JSON_PROPERTY_BASE
- See Also:
-
JSON_PROPERTY_COST
- See Also:
-
JSON_PROPERTY_MARK_PRICE
- See Also:
-
JSON_PROPERTY_MARKED_AT_MS
- See Also:
-
JSON_PROPERTY_UNREALISED_PNL
- See Also:
-
-
Constructor Details
-
LivePaperInstrumentOpenPosition
public LivePaperInstrumentOpenPosition()
-
-
Method Details
-
base
-
getBase
Amount held, in the base asset.- Returns:
- base
-
setBase
-
cost
-
getCost
What it cost, in the account's currency.- Returns:
- cost
-
setCost
-
markPrice
-
getMarkPrice
The price it was valued at in the last mark. Present, with `markedAtMs` and `unrealisedPnl`, only when that mark is of the position as it stands now.- Returns:
- markPrice
-
setMarkPrice
-
markedAtMs
-
getMarkedAtMs
Market time (epoch ms) of that mark.- Returns:
- markedAtMs
-
setMarkedAtMs
-
unrealisedPnl
-
getUnrealisedPnl
`base` times `markPrice`, minus `cost`, in the account's currency.- Returns:
- unrealisedPnl
-
setUnrealisedPnl
-
equals
Return true if this LivePaperInstrument_openPosition object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-