Class FPSLLoan
java.lang.Object
markets.alpaca.client.openapi.broker.model.FPSLLoan
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class FPSLLoan
extends Object
implements Serializable
A loan of a security by an account on a date.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountNumber(String accountNumber) collateral(Double collateral) correspondent(String correspondent) booleanstatic FPSLLoanCreate an instance of FPSLLoan given an JSON stringAccount's ID at AlpacaAccount's number at AlpacaReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The collateral posted for the loan.Account's correspondentgetDate()Get dateGet interestThe total market value of the shares on loan.The number of shares in the loan.Stock/Ticker symbol of a stock or securityTimestamp of the last update to this loan in RFC-3339 format with microsecond precision with timezone.inthashCode()interest(FPSLInterest interest) marketValue(Double marketValue) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(String accountId) voidsetAccountNumber(String accountNumber) voidsetCollateral(Double collateral) voidsetCorrespondent(String correspondent) voidvoidsetInterest(FPSLInterest interest) voidsetMarketValue(Double marketValue) voidsetQuantity(Long quantity) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of FPSLLoan to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_COLLATERAL
- See Also:
-
SERIALIZED_NAME_CORRESPONDENT
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_INTEREST
- See Also:
-
SERIALIZED_NAME_MARKET_VALUE
- See Also:
-
SERIALIZED_NAME_QUANTITY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FPSLLoan
public FPSLLoan()
-
-
Method Details
-
accountId
-
getAccountId
Account's ID at Alpaca- Returns:
- accountId
-
setAccountId
-
accountNumber
-
getAccountNumber
Account's number at Alpaca- Returns:
- accountNumber
-
setAccountNumber
-
collateral
-
getCollateral
The collateral posted for the loan.- Returns:
- collateral
-
setCollateral
-
correspondent
-
getCorrespondent
Account's correspondent- Returns:
- correspondent
-
setCorrespondent
-
date
-
getDate
Get date- Returns:
- date
-
setDate
-
interest
-
getInterest
Get interest- Returns:
- interest
-
setInterest
-
marketValue
-
getMarketValue
The total market value of the shares on loan.- Returns:
- marketValue
-
setMarketValue
-
quantity
-
getQuantity
The number of shares in the loan. This may be less than the total number of eligible shares held by the account.- Returns:
- quantity
-
setQuantity
-
symbol
-
getSymbol
Stock/Ticker symbol of a stock or security- Returns:
- symbol
-
setSymbol
-
updatedAt
-
getUpdatedAt
Timestamp of the last update to this loan in RFC-3339 format with microsecond precision with timezone. An updated value may indicate adjusted interest values.- Returns:
- updatedAt
-
setUpdatedAt
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the FPSLLoan instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to FPSLLoan
-
fromJson
Create an instance of FPSLLoan given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FPSLLoan
- Throws:
IOException- if the JSON string is invalid with respect to FPSLLoan
-
toJson
Convert an instance of FPSLLoan to an JSON string- Returns:
- JSON string
-