Class OptionDeliverable
java.lang.Object
markets.alpaca.client.openapi.trading.model.OptionDeliverable
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OptionDeliverable
extends Object
implements Serializable
OptionDeliverable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIndicates the settlement method that will be used: - **BTOB**: Broker to Broker - **CADF**: Cash Difference - **CAFX**: Cash Fixed - **CCC**: Correspondent Clearing Corpstatic enumIndicates when the deliverable will be settled if the contract is exercised/assigned.static enumType of deliverable, indicating whether it's cash or equity. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationPercentage(String allocationPercentage) delayedSettlement(Boolean delayedSettlement) booleanstatic OptionDeliverableCreate an instance of OptionDeliverable given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Cost allocation percentage of the deliverable.The deliverable amount.Unique identifier of the deliverable asset.If true, the settlement of the deliverable will be delayed.Indicates the settlement method that will be used: - **BTOB**: Broker to Broker - **CADF**: Cash Difference - **CAFX**: Cash Fixed - **CCC**: Correspondent Clearing CorpIndicates when the deliverable will be settled if the contract is exercised/assigned.Symbol of the deliverable.getType()Type of deliverable, indicating whether it's cash or equity.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAllocationPercentage(String allocationPercentage) voidvoidsetAssetId(UUID assetId) voidsetDelayedSettlement(Boolean delayedSettlement) voidsetSettlementMethod(OptionDeliverable.SettlementMethodEnum settlementMethod) voidsetSettlementType(OptionDeliverable.SettlementTypeEnum settlementType) voidsettlementMethod(OptionDeliverable.SettlementMethodEnum settlementMethod) settlementType(OptionDeliverable.SettlementTypeEnum settlementType) voidtoJson()Convert an instance of OptionDeliverable to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALLOCATION_PERCENTAGE
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_ASSET_ID
- See Also:
-
SERIALIZED_NAME_DELAYED_SETTLEMENT
- See Also:
-
SERIALIZED_NAME_SETTLEMENT_METHOD
- See Also:
-
SERIALIZED_NAME_SETTLEMENT_TYPE
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OptionDeliverable
public OptionDeliverable()
-
-
Method Details
-
allocationPercentage
-
getAllocationPercentage
Cost allocation percentage of the deliverable. This is used to determine the cost basis of the equity shares received from the exercise, specially for non-standard contracts with multiple deliverables.- Returns:
- allocationPercentage
-
setAllocationPercentage
-
amount
-
getAmount
The deliverable amount. For cash deliverables, this is the cash amount. For standard contract, this is always 100. This field can be null in case the deliverable settlement is delayed and the amount is yet to be determined.- Returns:
- amount
-
setAmount
-
assetId
-
getAssetId
Unique identifier of the deliverable asset. For standard contracts, this is equivalent to underlying_asset_id of the contracts. This field is not returned for cash deliverables.- Returns:
- assetId
-
setAssetId
-
delayedSettlement
-
getDelayedSettlement
If true, the settlement of the deliverable will be delayed. For instance, in the event of a contract with a delayed deliverable being exercised, both the availability of the deliverable and its settlement may be postponed beyond the typical timeframe.- Returns:
- delayedSettlement
-
setDelayedSettlement
-
settlementMethod
public OptionDeliverable settlementMethod(@Nonnull OptionDeliverable.SettlementMethodEnum settlementMethod) -
getSettlementMethod
Indicates the settlement method that will be used: - **BTOB**: Broker to Broker - **CADF**: Cash Difference - **CAFX**: Cash Fixed - **CCC**: Correspondent Clearing Corp- Returns:
- settlementMethod
-
setSettlementMethod
-
settlementType
public OptionDeliverable settlementType(@Nonnull OptionDeliverable.SettlementTypeEnum settlementType) -
getSettlementType
Indicates when the deliverable will be settled if the contract is exercised/assigned.- Returns:
- settlementType
-
setSettlementType
-
symbol
-
getSymbol
Symbol of the deliverable. For standard contracts, this is equivalent to the underlying symbol of the contract.- Returns:
- symbol
-
setSymbol
-
type
-
getType
Type of deliverable, indicating whether it's cash or equity. For standard contracts, it is always \"equity\".- Returns:
- type
-
setType
-
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 OptionDeliverable 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 OptionDeliverable
-
fromJson
Create an instance of OptionDeliverable given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OptionDeliverable
- Throws:
IOException- if the JSON string is invalid with respect to OptionDeliverable
-
toJson
Convert an instance of OptionDeliverable to an JSON string- Returns:
- JSON string
-