Annual report pursuant to Section 13 and 15(d)

Schedule of Notional Amounts of Derivative Positions (Details)

v2.4.1.9
Schedule of Notional Amounts of Derivative Positions (Details) (USD $)
In Thousands, unless otherwise specified
12 Months Ended
Dec. 31, 2014
Dec. 31, 2013
Dec. 31, 2012
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance $ (37,366,610)invest_DerivativeNotionalAmount $ (22,377,656)invest_DerivativeNotionalAmount  
Derivative, Notional Amount, Additions 83,937,800two_DerivativeNotionalAmountAdditions 68,614,416two_DerivativeNotionalAmountAdditions  
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (73,188,887)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise (53,625,462)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise  
Derivative, Notional Amount, Ending Balance (48,115,523)invest_DerivativeNotionalAmount (37,366,610)invest_DerivativeNotionalAmount  
Derivative, Average Notional Amount 48,367,024two_DerivativeAverageNotionalAmount 34,518,856two_DerivativeAverageNotionalAmount  
Gain (Loss) on Sale of Derivatives (111,750)us-gaap_GainLossOnSaleOfDerivatives 96,312us-gaap_GainLossOnSaleOfDerivatives  
Inverse Interest-Only Securities [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (1,525,845)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
(1,909,351)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
 
Derivative, Notional Amount, Additions 29,372two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
245,260two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (386,991)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
(628,766)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
 
Derivative, Notional Amount, Ending Balance (1,168,226)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
(1,525,845)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
 
Derivative, Average Notional Amount 1,324,581two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
1,782,306two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
 
Gain (Loss) on Sale of Derivatives 414us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
0us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= two_InverseInterestOnlySecuritiesMember
 
Interest Rate Swap [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (19,619,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
(14,070,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
 
Derivative, Notional Amount, Additions 24,215,598two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
27,787,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (25,250,598)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
(22,238,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
 
Derivative, Notional Amount, Ending Balance (18,584,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
(19,619,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
(14,070,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
Derivative, Average Notional Amount 23,329,504two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
16,965,918two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
9,891,749two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
Gain (Loss) on Sale of Derivatives (803)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
41,096us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwapMember
 
Credit Default Swap [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (427,073)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
(438,440)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
 
Derivative, Notional Amount, Additions 0two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
2,500,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (302,073)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
(2,511,367)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
 
Derivative, Notional Amount, Ending Balance (125,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
(427,073)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
 
Derivative, Average Notional Amount 138,418two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
1,031,857two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
 
Gain (Loss) on Sale of Derivatives (13,705)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
(53,154)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_CreditDefaultSwapMember
 
Interest Rate Swaption [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (5,130,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
(4,950,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
 
Derivative, Notional Amount, Additions 15,860,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
420,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (8,580,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
(240,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
 
Derivative, Notional Amount, Ending Balance (12,410,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
(5,130,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
 
Derivative, Average Notional Amount 9,460,438two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
5,592,274two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
 
Gain (Loss) on Sale of Derivatives (54,586)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
(28,803)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_InterestRateSwaptionMember
 
Forward Contracts [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (603,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
(953,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
 
Derivative, Notional Amount, Additions (10,882,000)two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
2,734,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise 8,954,000two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
(3,084,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
 
Derivative, Notional Amount, Ending Balance (1,325,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
(603,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
 
Derivative, Average Notional Amount 827,140two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
677,180two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
 
Gain (Loss) on Sale of Derivatives (33,985)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
157,696us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_ForwardContractsMember
 
Options Held [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance 0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
 
Derivative, Notional Amount, Additions 5,500,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
3,748,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (3,500,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
(3,748,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
 
Derivative, Notional Amount, Ending Balance (2,000,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
 
Derivative, Average Notional Amount 772,603two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
420,334two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
 
Gain (Loss) on Sale of Derivatives (13,555)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
7,798us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_OptionMember
 
Swap [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (10,000,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
 
Derivative, Notional Amount, Additions 46,000,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
31,000,000two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (42,000,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
(21,000,000)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
 
Derivative, Notional Amount, Ending Balance (14,000,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
(10,000,000)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
 
Derivative, Average Notional Amount 11,715,068two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
7,972,527two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
 
Gain (Loss) on Sale of Derivatives 1,037us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
(7,665)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_SwapMember
 
Total Return Swap [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (49,629)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
 
Derivative, Notional Amount, Additions 586,550two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
50,574two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (37,720)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
(945)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
 
Derivative, Notional Amount, Ending Balance (598,459)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
(49,629)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
 
Derivative, Average Notional Amount 437,604two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
12,313two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
 
Gain (Loss) on Sale of Derivatives 0us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
0us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_TotalReturnSwapMember
 
Short US Treasury Securities [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance 0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
 
Derivative, Notional Amount, Additions (125,000)two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
(400,000)two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise 125,000two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
400,000two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
 
Derivative, Notional Amount, Ending Balance 0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
0invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
 
Derivative, Average Notional Amount 342two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
6,658two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
 
Gain (Loss) on Sale of Derivatives 2us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
(876)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= two_ShortUsTreasurySecuritiesMember
 
Forward Purchase Commitments [Member]      
Derivatives, Fair Value [Line Items]      
Derivative, Notional Amount, Beginning Balance (12,063)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
(56,865)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
 
Derivative, Notional Amount, Additions 2,753,280two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
529,582two_DerivativeNotionalAmountAdditions
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
 
Derivative, Notional Amount, Settlement Termination Expiration or Exercise (2,210,505)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
(574,384)two_DerivativeNotionalAmountSettlementTerminationExpirationorExercise
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
 
Derivative, Notional Amount, Ending Balance (554,838)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
(12,063)invest_DerivativeNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
 
Derivative, Average Notional Amount 361,326two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
57,489two_DerivativeAverageNotionalAmount
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
 
Gain (Loss) on Sale of Derivatives $ 3,431us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember
$ (19,780)us-gaap_GainLossOnSaleOfDerivatives
/ us-gaap_DerivativeInstrumentRiskAxis
= us-gaap_LoanPurchaseCommitmentsMember