Package com.qtsurfer.api.client.model
Class LivePaperPosition
java.lang.Object
com.qtsurfer.api.client.model.LivePaperPosition
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class LivePaperPosition
extends Object
LivePaperPosition
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this LivePaperPosition object is equal to o.getBase()Amount held, in the base asset.getCost()What it cost, in the account's currency.Get instrumentMarket time (epoch ms) of that mark.The price the position was valued at in the last mark.`base` times `markPrice`, minus `cost`, in the account's currency.inthashCode()instrument(String instrument) markedAtMs(Long markedAtMs) voidvoidvoidsetInstrument(String instrument) voidsetMarkedAtMs(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_INSTRUMENT
- See Also:
-
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
-
LivePaperPosition
public LivePaperPosition()
-
-
Method Details
-
instrument
-
getInstrument
Get instrument- Returns:
- instrument
-
setInstrument
-
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 the position 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 LivePaperPosition 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
-