---
title: "ClosureOption class"
url: "https://reference.aspose.com/finance/python-net/aspose.finance.ofx.investment/closureoption/"
product: "Aspose.Finance for Python via .NET API References"
---


## ClosureOption class

Investment close a position for an option transaction class.



**Inheritance:** [ClosureOption](/finance/python-net/aspose.finance.ofx.investment/closureoption) → 
[AbstractInvestmentTransaction](/finance/python-net/aspose.finance.ofx.investment/abstractinvestmenttransaction) → 
[AbstractInvestmentTransactionBase](/finance/python-net/aspose.finance.ofx.investment/abstractinvestmenttransactionbase)



The ClosureOption type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [ClosureOption()](/finance/python-net/aspose.finance.ofx.investment/closureoption/__init__/#) | Initializes a new instance of [ClosureOption](/finance/python-net/aspose.finance.ofx.investment/closureoption) class. |


### Properties
| Property | Description |
| :- | :- |
| [investment_transaction](/finance/python-net/aspose.finance.ofx.investment/closureoption/investment_transaction) | Gets or sets the [AbstractInvestmentTransaction.investment_transaction](/finance/python-net/aspose.finance.ofx.investment/abstractinvestmenttransaction#investment_transaction). |
| [security_id](/finance/python-net/aspose.finance.ofx.investment/closureoption/security_id) | Gets or sets the [ClosureOption.security_id](/finance/python-net/aspose.finance.ofx.investment/closureoption#security_id). |
| [option_action](/finance/python-net/aspose.finance.ofx.investment/closureoption/option_action) | Gets or sets the option action type. |
| [units](/finance/python-net/aspose.finance.ofx.investment/closureoption/units) | Gets or sets the units. For security-based actions other than stock splits. Shares for stocks, mutual funds, and others. Face value for bonds. Contracts for options. |
| [share_per_contract](/finance/python-net/aspose.finance.ofx.investment/closureoption/share_per_contract) | Gets or sets the number of shares per contract. |
| [sub_account_security](/finance/python-net/aspose.finance.ofx.investment/closureoption/sub_account_security) | Gets or sets the sub-account type for the security |
| [relate_fi_transaction_id](/finance/python-net/aspose.finance.ofx.investment/closureoption/relate_fi_transaction_id) | Gets or sets the ID of related trade. |
| [gain](/finance/python-net/aspose.finance.ofx.investment/closureoption/gain) | Gets or sets the total gain. |


### See Also

* module [aspose.finance.ofx.investment](../)
* class [AbstractInvestmentTransaction](/finance/python-net/aspose.finance.ofx.investment/abstractinvestmenttransaction)
