{
 "instance": {
  "nymt-20220331.htm": {
   "axisCustom": 0,
   "axisStandard": 42,
   "contextCount": 756,
   "dts": {
    "calculationLink": {
     "local": [
      "nymt-20220331_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "nymt-20220331_def.xml"
     ]
    },
    "inline": {
     "local": [
      "nymt-20220331.htm"
     ]
    },
    "labelLink": {
     "local": [
      "nymt-20220331_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "nymt-20220331_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "nymt-20220331.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-roles-2021-01-31.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-types-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-roles-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-types-2021-01-31.xsd",
      "https://xbrl.sec.gov/country/2021/country-2021.xsd",
      "https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd",
      "https://xbrl.sec.gov/stpr/2021/stpr-2021.xsd"
     ]
    }
   },
   "elementCount": 828,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2021-01-31": 16,
    "http://nymtrust.com/20220331": 8,
    "http://xbrl.sec.gov/dei/2021q4": 5,
    "total": 29
   },
   "keyCustom": 115,
   "keyStandard": 350,
   "memberCustom": 95,
   "memberStandard": 71,
   "nsprefix": "nymt",
   "nsuri": "http://nymtrust.com/20220331",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "000010001 - Document - Cover",
     "role": "http://nymtrust.com/role/Cover",
     "shortName": "Cover",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210021002 - Disclosure - Summary of Significant Accounting Policies",
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ia7202927d1904dac881d63b3613a6466_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240814053 - Disclosure - Fair Value of Financial Instruments - Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities (Details)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
     "shortName": "Fair Value of Financial Instruments - Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ia7202927d1904dac881d63b3613a6466_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240824054 - Disclosure - Fair Value of Financial Instruments - Carrying Value and Estimated Fair Value of the Company's Financial Assets (Details)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
     "shortName": "Fair Value of Financial Instruments - Carrying Value and Estimated Fair Value of the Company's Financial Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i8c471cebba3a4a5290fc19e6ffb2f844_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "seriesofpreferredstock",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240854055 - Disclosure - Stockholders' Equity - Narrative (Details)",
     "role": "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
     "shortName": "Stockholders' Equity - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "seriesofpreferredstock",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240864056 - Disclosure - Stockholders' Equity - Schedule of Preferred Stock Issued and Outstanding (Details)",
     "role": "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails",
     "shortName": "Stockholders' Equity - Schedule of Preferred Stock Issued and Outstanding (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ie7b18928c1ed4fd49cbf52ecf687482e_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:PreferredStockValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DividendsDeclaredTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id85cd95c2ff74c35b5c8d32a05f57582_D20220314-20220314",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240874057 - Disclosure - Stockholders' Equity - Cash Dividends Declared - Preferred Stock (Details)",
     "role": "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
     "shortName": "Stockholders' Equity - Cash Dividends Declared - Preferred Stock (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:DividendsDeclaredTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id85cd95c2ff74c35b5c8d32a05f57582_D20220314-20220314",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PreferredStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240884058 - Disclosure - Stockholders' Equity - Cash Dividends Declared - Common Stock (Details)",
     "role": "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredCommonStockDetails",
     "shortName": "Stockholders' Equity - Cash Dividends Declared - Common Stock (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockDividendsPerShareDeclared",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i386a5774c27249af942c302260f3d401_D20220115-20220115",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ExtinguishmentOfDebtAmount",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240914059 - Disclosure - (Loss) Earnings Per Common Share - Narrative (Details)",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
     "shortName": "(Loss) Earnings Per Common Share - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240924060 - Disclosure - (Loss) Earnings Per Common Share - Computation of Basic and Diluted (Loss) Earnings per Common Share (Details)",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
     "shortName": "(Loss) Earnings Per Common Share - Computation of Basic and Diluted (Loss) Earnings per Common Share (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersDiluted",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:AllocatedShareBasedCompensationExpense",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240954061 - Disclosure - Stock Based Compensation - Narrative (Details)",
     "role": "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
     "shortName": "Stock Based Compensation - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:AllocatedShareBasedCompensationExpense",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:NonvestedRestrictedStockSharesActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i6de49b60e84e4e99a8d81242daf74c52_I20211231",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unitRef": "shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240964062 - Disclosure - Stock Based Compensation - Non-vested Restricted Stock, PSU and RSU Award Activity (Details)",
     "role": "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails",
     "shortName": "Stock Based Compensation - Non-vested Restricted Stock, PSU and RSU Award Activity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:NonvestedRestrictedStockSharesActivityTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7e6d9cbfded14a39a4f3dcc66c1c3f40_D20220101-20220331",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "shares",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansatFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210041003 - Disclosure - Residential Loans, at Fair Value",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValue",
     "shortName": "Residential Loans, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansatFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240994063 - Disclosure - Income Taxes - Income Tax Provision (Benefit) (Details)",
     "role": "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails",
     "shortName": "Income Taxes - Income Tax Provision (Benefit) (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CurrentIncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R111": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwards",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "241004064 - Disclosure - Income Taxes - Deferred Tax Assets and Liabilities (Details)",
     "role": "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails",
     "shortName": "Income Taxes - Deferred Tax Assets and Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DeferredTaxAssetsOperatingLossCarryforwards",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R112": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ValuationAllowanceDeferredTaxAssetChangeInAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "241014065 - Disclosure - Income Taxes - Narrative (Details)",
     "role": "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
     "shortName": "Income Taxes - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ValuationAllowanceDeferredTaxAssetChangeInAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R113": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "241044066 - Disclosure - Net Interest Income - Components of Interest Income and Interest Expense (Details)",
     "role": "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
     "shortName": "Net Interest Income - Components of Interest Income and Interest Expense (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "iaec97eb8d0154edda9a7138d0376df54_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestExpenseMediumTermNotes",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R114": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "241064067 - Disclosure - Subsequent Events (Details)",
     "role": "http://nymtrust.com/role/SubsequentEventsDetails",
     "shortName": "Subsequent Events (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i505aee5609af419cbdccff9783906d89_D20220401-20220430",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:MultiFamilyLoansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210111004 - Disclosure - Multi-family Loans, at Fair Value",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValue",
     "shortName": "Multi-family Loans, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:MultiFamilyLoansTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210171005 - Disclosure - Investment Securities Available for Sale, at Fair Value",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValue",
     "shortName": "Investment Securities Available for Sale, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210241006 - Disclosure - Equity Investments, at Fair Value",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValue",
     "shortName": "Equity Investments, at Fair Value",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210301007 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIE",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": null,
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210381008 - Disclosure - Derivative Instruments and Hedging Activities",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivities",
     "shortName": "Derivative Instruments and Hedging Activities",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210431009 - Disclosure - Real Estate, Net",
     "role": "http://nymtrust.com/role/RealEstateNet",
     "shortName": "Real Estate, Net",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RealEstateDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210491010 - Disclosure - Other Assets and Other Liabilities",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilities",
     "shortName": "Other Assets and Other Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SupplementalBalanceSheetDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210531011 - Disclosure - Repurchase Agreements",
     "role": "http://nymtrust.com/role/RepurchaseAgreements",
     "shortName": "Repurchase Agreements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesAvailableForSaleIncludingFairValueOption",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010002 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:OperatingRealEstateNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210611012 - Disclosure - Collateralized Debt Obligations",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligations",
     "shortName": "Collateralized Debt Obligations",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtDisclosureTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210651013 - Disclosure - Debt",
     "role": "http://nymtrust.com/role/Debt",
     "shortName": "Debt",
     "subGroupType": "",
     "uniqueAnchor": null
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210731014 - Disclosure - Commitments and Contingencies",
     "role": "http://nymtrust.com/role/CommitmentsandContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210751015 - Disclosure - Fair Value of Financial Instruments",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstruments",
     "shortName": "Fair Value of Financial Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210831016 - Disclosure - Stockholders' Equity",
     "role": "http://nymtrust.com/role/StockholdersEquity",
     "shortName": "Stockholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210891017 - Disclosure - (Loss) Earnings Per Common Share",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShare",
     "shortName": "(Loss) Earnings Per Common Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210931018 - Disclosure - Stock Based Compensation",
     "role": "http://nymtrust.com/role/StockBasedCompensation",
     "shortName": "Stock Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210971019 - Disclosure - Income Taxes",
     "role": "http://nymtrust.com/role/IncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "211021020 - Disclosure - Net Interest Income",
     "role": "http://nymtrust.com/role/NetInterestIncome",
     "shortName": "Net Interest Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "211051021 - Disclosure - Subsequent Events",
     "role": "http://nymtrust.com/role/SubsequentEvents",
     "shortName": "Subsequent Events",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SubsequentEventsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100020003 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS - (Parenthetical)",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
     "shortName": "CONDENSED CONSOLIDATED BALANCE SHEETS - (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ib4732f2d243842babe0bf723fb584f14_I20220331",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:PreferredStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usdPerShare",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "220032001 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "role": "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansAtFairValueTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230053001 - Disclosure - Residential Loans, at Fair Value (Tables)",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueTables",
     "shortName": "Residential Loans, at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansAtFairValueTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ScheduleOfPreferredEquityAndMezzanineLoanInvestmentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230123002 - Disclosure - Multi-family Loans, at Fair Value (Tables)",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
     "shortName": "Multi-family Loans, at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "nymt:ScheduleOfPreferredEquityAndMezzanineLoanInvestmentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230183003 - Disclosure - Investment Securities Available for Sale, at Fair Value (Tables)",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables",
     "shortName": "Investment Securities Available for Sale, at Fair Value (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230253004 - Disclosure - Equity Investments, at Fair Values (Tables)",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValuesTables",
     "shortName": "Equity Investments, at Fair Values (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230313005 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) (Tables)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": null,
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230393006 - Disclosure - Derivative Instruments and Hedging Activities (Tables)",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables",
     "shortName": "Derivative Instruments and Hedging Activities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": null
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230443007 - Disclosure - Real Estate, Net (Tables)",
     "role": "http://nymtrust.com/role/RealEstateNetTables",
     "shortName": "Real Estate, Net (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230503008 - Disclosure - Other Assets and Other Liabilities (Tables)",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables",
     "shortName": "Other Assets and Other Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRepurchaseAgreements",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230543009 - Disclosure - Repurchase Agreements (Tables)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsTables",
     "shortName": "Repurchase Agreements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRepurchaseAgreements",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestAndDividendIncomeOperating",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100030004 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:NoninterestIncomeExpenseOther",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230623010 - Disclosure - Collateralized Debt Obligations (Tables)",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
     "shortName": "Collateralized Debt Obligations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": null
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230663011 - Disclosure - Debt (Tables)",
     "role": "http://nymtrust.com/role/DebtTables",
     "shortName": "Debt (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentRedemptionTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230763012 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230843013 - Disclosure - Stockholders' Equity (Tables)",
     "role": "http://nymtrust.com/role/StockholdersEquityTables",
     "shortName": "Stockholders' Equity (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfStockholdersEquityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230903014 - Disclosure - (Loss) Earnings Per Common Share (Tables)",
     "role": "http://nymtrust.com/role/LossEarningsPerCommonShareTables",
     "shortName": "(Loss) Earnings Per Common Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NonvestedRestrictedStockSharesActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230943015 - Disclosure - Stock Based Compensation (Tables)",
     "role": "http://nymtrust.com/role/StockBasedCompensationTables",
     "shortName": "Stock Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NonvestedRestrictedStockSharesActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "230983016 - Disclosure - Income Taxes (Tables)",
     "role": "http://nymtrust.com/role/IncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
      "reportCount": 1,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "231033017 - Disclosure - Net Interest Income (Tables)",
     "role": "http://nymtrust.com/role/NetInterestIncomeTables",
     "shortName": "Net Interest Income (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": null
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ResidentialMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "srt:MortgageLoansOnRealEstateFaceAmountOfMortgages",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240064001 - Disclosure - Residential Loans, at Fair Value - Schedule of Residential Loans at Fair Value (Details)",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
     "shortName": "Residential Loans, at Fair Value - Schedule of Residential Loans at Fair Value (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ResidentialMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "srt:MortgageLoansOnRealEstateFaceAmountOfMortgages",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id7675b82a20c421680be092807754cc0_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossOnRealEstateMortgageLoansNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240074002 - Disclosure - Residential Loans, at Fair Value - Components of Net Gain (Loss) on Residential Mortgages (Details)",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
     "shortName": "Residential Loans, at Fair Value - Components of Net Gain (Loss) on Residential Mortgages (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id7675b82a20c421680be092807754cc0_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossOnRealEstateMortgageLoansNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAvailableToCommonStockholdersBasic",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040005 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:OtherComprehensiveIncomeLossNetOfTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NetRealizedGainLossOnPayoffOfMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240084003 - Disclosure - Residential Loans, at Fair Value - Narrative (Details)",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
     "shortName": "Residential Loans, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:NetRealizedGainLossOnPayoffOfMortgageLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i5a24c4ce73cf4d478a8272042d5ca064_D20220101-20220331",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240094004 - Disclosure - Residential Loans, at Fair Value - Concentration of Risk (Details)",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
     "shortName": "Residential Loans, at Fair Value - Concentration of Risk (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i5a24c4ce73cf4d478a8272042d5ca064_D20220101-20220331",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ResidentialMortgageLoansAtFairValueTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240104005 - Disclosure - Residential Loans, at Fair Value - Differences Between Fair Value and Aggregate Unpaid Principal (Details)",
     "role": "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
     "shortName": "Residential Loans, at Fair Value - Differences Between Fair Value and Aggregate Unpaid Principal (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i809761bde19a46e8adebe97c26e7fbdb_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:MortgageLoansOnRealEstate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "nymt:ScheduleOfPreferredEquityAndMezzanineLoanInvestmentsTableTextBlock",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7bbf306f3c0b448d910231bd81ec9caf_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240134006 - Disclosure - Multi-family Loans, at Fair Value - Preferred Equity and Mezzanine Loan Investments (Details)",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
     "shortName": "Multi-family Loans, at Fair Value - Preferred Equity and Mezzanine Loan Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "nymt:ScheduleOfPreferredEquityAndMezzanineLoanInvestmentsTableTextBlock",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7bbf306f3c0b448d910231bd81ec9caf_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240144007 - Disclosure - Multi-family Loans, at Fair Value - Narrative (Details)",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails",
     "shortName": "Multi-family Loans, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id20066d2e2b74bb3a300cef755816555_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:EquityandMezzanineLoansFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240154008 - Disclosure - Multi-family Loans, at Fair Value - Unpaid Principal Balance (Details)",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
     "shortName": "Multi-family Loans, at Fair Value - Unpaid Principal Balance (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id20066d2e2b74bb3a300cef755816555_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:EquityandMezzanineLoansFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i8a7a3914b10246e9b780086cdf8f388b_D20220101-20220331",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240164009 - Disclosure - Multi-family Loans, at Fair Value - Geographic Concentration Risk (Details)",
     "role": "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
     "shortName": "Multi-family Loans, at Fair Value - Geographic Concentration Risk (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i8a7a3914b10246e9b780086cdf8f388b_D20220101-20220331",
      "decimals": "3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ConcentrationRiskPercentage1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240194010 - Disclosure - Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale (Details)",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestReceivable",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240204011 - Disclosure - Investment Securities Available for Sale, at Fair Value - Narrative (Details)",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "lang": "en-US",
      "name": "nymt:ContractualMaturities",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240214012 - Disclosure - Investment Securities Available for Sale, at Fair Value - Proceeds from Sale (Details)",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Proceeds from Sale (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i3e12afc8f77346e7bbae7efdb120a7f0_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100050006 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i3e12afc8f77346e7bbae7efdb120a7f0_I20201231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240224013 - Disclosure - Investment Securities Available for Sale, at Fair Value - Weighted Average Lives for Available-for-Sale Securities (Details)",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Weighted Average Lives for Available-for-Sale Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240234014 - Disclosure - Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale in Unrealized Loss Position (Details)",
     "role": "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
     "shortName": "Investment Securities Available for Sale, at Fair Value - Schedule of Investment Securities Available for Sale in Unrealized Loss Position (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "iceceda91d9f7483590451b1bc2370f4b_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240264015 - Disclosure - Equity Investments, at Fair Value - Schedule of Equity Investments Accounted under the Equity Method (Details)",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
     "shortName": "Equity Investments, at Fair Value - Schedule of Equity Investments Accounted under the Equity Method (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i07d0d36c27b4447c8ea52d294d1450a5_I20211231",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i99c6cd8c4372481f88b11d29a30d03fe_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240274016 - Disclosure - Equity Investments, at Fair Value - Schedule of Income From Multi-Family Preferred Equity Ownership Interests (Details)",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
     "shortName": "Equity Investments, at Fair Value - Schedule of Income From Multi-Family Preferred Equity Ownership Interests (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i99c6cd8c4372481f88b11d29a30d03fe_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240284017 - Disclosure - Equity Investments, at Fair Value - Narrative (Details)",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
     "shortName": "Equity Investments, at Fair Value - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:IncomeLossFromEquityMethodInvestments",
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ia64d7297d9d34f0f914ed22e4bdbfa6a_D20220101-20220331",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:UnrealizedGainLossOnInvestments",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240294018 - Disclosure - Equity Investments, at Fair Value - Schedule of Income (Loss) From Investments (Details)",
     "role": "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
     "shortName": "Equity Investments, at Fair Value - Schedule of Income (Loss) From Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9e9e42b21ef348e395d45c8138fe40bb_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentOwnedBalancePrincipalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240324019 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Narrative (Details)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-5",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentOwnedBalancePrincipalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OtherAssets",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240334020 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Fair Value of the Assets, Liabilities and Non-controlling Interests (Details)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Fair Value of the Assets, Liabilities and Non-controlling Interests (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ie4cc77288ec046dfaeab1d3397c9198e_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:Cash",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240344021 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Assets and Liabilities of Consolidated VIEs (Details)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Assets and Liabilities of Consolidated VIEs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i13b797b4a13f402f96a953d9637dac5c_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InterestExpense",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240354022 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Operations (Details)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Schedule of Operations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ieaded7470be84ff8ac913b66cdbbb20a_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:InterestAndOtherIncome",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060007 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240364023 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Redeemable Noncontrolling Interest in Consolidated VIEs (Details)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Redeemable Noncontrolling Interest in Consolidated VIEs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:RedeemableNoncontrollingInterestTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Assets",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240374024 - Disclosure - Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Classification and Carrying Value of Unconsolidated VIEs (Details)",
     "role": "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
     "shortName": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE) - Classification and Carrying Value of Unconsolidated VIEs (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7286b33ac4e84a4c9436a824e7f76c88_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:VariableInterestEntityEntityMaximumLossExposureAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": null,
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240404025 - Disclosure - Derivative Instruments and Hedging Activities - Narrative (Details)",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R73": {
     "firstAnchor": null,
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240414026 - Disclosure - Derivative Instruments and Hedging Activities - Activity of Derivative Instruments Not Designated as Hedges (Details)",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Activity of Derivative Instruments Not Designated as Hedges (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R74": {
     "firstAnchor": null,
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240424027 - Disclosure - Derivative Instruments and Hedging Activities - Components of Investment Fair Value Changes (Details)",
     "role": "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails",
     "shortName": "Derivative Instruments and Hedging Activities - Components of Investment Fair Value Changes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i526a57413b924b199c96e072c3fd1242_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Land",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240454028 - Disclosure - Real Estate, Net - Summary of Investments (Details)",
     "role": "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
     "shortName": "Real Estate, Net - Summary of Investments (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRealEstatePropertiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i526a57413b924b199c96e072c3fd1242_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:Land",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromSaleOfRealEstateHeldforinvestment",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240464029 - Disclosure - Real Estate, Net - Narrative (Details)",
     "role": "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
     "shortName": "Real Estate, Net - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i757bbf6192814d4581bd8afee5386cc4_D20220301-20220331",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:ProceedsFromSaleOfRealEstateHeldforinvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "if584d43b1ee341bc9d678471e354e9c4_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FiniteLivedIntangibleAssetsGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240474030 - Disclosure - Real Estate, Net - Lease Intangibles (Details)",
     "role": "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails",
     "shortName": "Real Estate, Net - Lease Intangibles (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "if584d43b1ee341bc9d678471e354e9c4_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FiniteLivedIntangibleAssetsGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ProfitLossFromRealEstateOperations",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240484031 - Disclosure - Real Estate, Net - Components of Income From Real Estate and Expenses (Details)",
     "role": "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
     "shortName": "Real Estate, Net - Components of Income From Real Estate and Expenses (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i5530c08ca84c4f7c9d4c77e91f19a993_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:RentalIncomeNonoperating",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RestrictedCashAndCashEquivalents",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240514032 - Disclosure - Other Assets and Other Liabilities - Other Assets (Details)",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails",
     "shortName": "Other Assets and Other Liabilities - Other Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfOtherAssetsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:LeaseIntangiblesNetInConsolidatedMultiFamilyProperties",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070008 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "role": "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
     "shortName": "CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AccretionAmortizationOfDiscountsAndPremiumsInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:AdvancedRemittancesFromResidentialLoanServicers",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240524033 - Disclosure - Other Assets and Other Liabilities - Other Liabilities (Details)",
     "role": "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails",
     "shortName": "Other Assets and Other Liabilities - Other Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:OtherLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:AdvancedRemittancesFromResidentialLoanServicers",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i84567e879a594c578c32f29d324dcdc7_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240554034 - Disclosure - Repurchase Agreements - Company's Repurchase Agreements (Details)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
     "shortName": "Repurchase Agreements - Company's Repurchase Agreements (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfRepurchaseAgreements",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7a540d3843954049854986abbfbfacfe_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:RepurchaseAgreementsNumberOfFinancialInstitutions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "financialinstitution",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240564035 - Disclosure - Repurchase Agreements - Narrative (Details)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
     "shortName": "Repurchase Agreements - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "nymt:RepurchaseAgreementsNumberOfFinancialInstitutions",
      "reportCount": 1,
      "unique": true,
      "unitRef": "financialinstitution",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240574036 - Disclosure - Repurchase Agreements - Borrowings Under Financing Arrangements and Associated Assets Pledged as Collateral (Details)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
     "shortName": "Repurchase Agreements - Borrowings Under Financing Arrangements and Associated Assets Pledged as Collateral (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "if8ef0518e23847e9918a523f9aad6192_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240584037 - Disclosure - Repurchase Agreements - Repurchase Agreements Secured by Investment Securities (Details)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
     "shortName": "Repurchase Agreements - Repurchase Agreements Secured by Investment Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfSecuritiesFinancingTransactionsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i84567e879a594c578c32f29d324dcdc7_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240594038 - Disclosure - Repurchase Agreements - Maturities (Details)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
     "shortName": "Repurchase Agreements - Maturities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "nymt:ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i21cd4e7587b9433c900e71400a5749b3_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i84567e879a594c578c32f29d324dcdc7_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SecuritiesBorrowed",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240604039 - Disclosure - Repurchase Agreements - Unencumbered Securities (Details)",
     "role": "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails",
     "shortName": "Repurchase Agreements - Unencumbered Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9c433618c75f4a2db1d649a319272b00_I20220331",
      "decimals": "-5",
      "lang": "en-US",
      "name": "us-gaap:SecuritiesBorrowed",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i4491c7ca6f5d4ba08bb671e02fd24df3_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240634040 - Disclosure - Collateralized Debt Obligations - Summary of Debt (Details)",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
     "shortName": "Collateralized Debt Obligations - Summary of Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i4491c7ca6f5d4ba08bb671e02fd24df3_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240644041 - Disclosure - Collateralized Debt Obligations - Maturities (Details)",
     "role": "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
     "shortName": "Collateralized Debt Obligations - Maturities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i4491c7ca6f5d4ba08bb671e02fd24df3_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240674042 - Disclosure - Debt - Narrative (Details)",
     "role": "http://nymtrust.com/role/DebtNarrativeDetails",
     "shortName": "Debt - Narrative (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i818ebe778ab844f58f79e8f04569a049_I20211231",
      "decimals": "INF",
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "210011001 - Disclosure - Organization",
     "role": "http://nymtrust.com/role/Organization",
     "shortName": "Organization",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i9842e95c67b24d908d9f63b093d12c54_D20220101-20220331",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7ec12e1233204fbd9f5ca47bffe4517d_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ContractualInterestExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240684043 - Disclosure - Debt - Schedule of Interest Expense from Convertible Debt (Details)",
     "role": "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
     "shortName": "Debt - Schedule of Interest Expense from Convertible Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7ec12e1233204fbd9f5ca47bffe4517d_D20220101-20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:ContractualInterestExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ib05ffefd50c141f282f72dca447f0041_D20210427-20210427",
      "decimals": "5",
      "first": true,
      "lang": "en-US",
      "name": "nymt:DebtInstrumentRedemptionPricePercentageMultiplyer",
      "reportCount": 1,
      "unitRef": "number",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240694044 - Disclosure - Debt - Schedule of Debt Redemption Details (Details)",
     "role": "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
     "shortName": "Debt - Schedule of Debt Redemption Details (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7bd4b7e9d11143bbb3bc73ed88fb46c1_D20210427-20210427",
      "decimals": "6",
      "lang": "en-US",
      "name": "nymt:DebtInstrumentRedemptionPricePercentageMultiplyer",
      "reportCount": 1,
      "unique": true,
      "unitRef": "number",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:DebtInstrumentFaceAmount",
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i2c64995749ff404fa70191efd8ae35a2_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240704045 - Disclosure - Debt - Preferred Securities (Details)",
     "role": "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
     "shortName": "Debt - Preferred Securities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:DebtInstrumentFaceAmount",
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i2c64995749ff404fa70191efd8ae35a2_I20220331",
      "decimals": "INF",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentFaceAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240714046 - Disclosure - Debt - Schedule of Mortgage Notes Payable On Operating Real Estate (Details)",
     "role": "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
     "shortName": "Debt - Schedule of Mortgage Notes Payable On Operating Real Estate (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "ic94e151021ca49998fba61d3378e8601_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:LongTermDebtMaximumCommittedMortgagePrincipalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240724047 - Disclosure - Debt - Schedule of Maturities of Long-Term Debt (Details)",
     "role": "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails",
     "shortName": "Debt - Schedule of Maturities of Long-Term Debt (Details)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:AmountAgreedToFundJointVentureEquityInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240744048 - Disclosure - Commitments and Contingencies (Details)",
     "role": "http://nymtrust.com/role/CommitmentsandContingenciesDetails",
     "shortName": "Commitments and Contingencies (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "nymt:AmountAgreedToFundJointVentureEquityInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "icf1164b73aae4b82865b3897956aab50_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240774049 - Disclosure - Fair Value of Financial Instruments - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
     "shortName": "Fair Value of Financial Instruments - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i39b1173413fe437abc15420863bdf877_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "us-gaap:EquityMethodInvestmentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i2f5f62cc1f54420cbc323f21ad3a2a5f_I20211231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240784050 - Disclosure - Fair Value of Financial Instruments - Valuation for Level 3 Assets (Details)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
     "shortName": "Fair Value of Financial Instruments - Valuation for Level 3 Assets (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i2f5f62cc1f54420cbc323f21ad3a2a5f_I20211231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7489d7e0cb3b402faa1907a75184a87f_I20211231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240794051 - Disclosure - Fair Value of Financial Instruments - Valuation for Level 3 Liabilities (Details)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
     "shortName": "Fair Value of Financial Instruments - Valuation for Level 3 Liabilities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i7489d7e0cb3b402faa1907a75184a87f_I20211231",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "i11ba99979d544a4a93136aba381417c2_I20220331",
      "decimals": "-3",
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SecuredDebt",
      "reportCount": 1,
      "unitRef": "usd",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "240804052 - Disclosure - Fair Value of Financial Instruments - Schedule of Quantitative Information Regarding Significant and Unobservable Inputs Used in the Valuation of Level 3 Assets and Liabilities Measured at Fair Value (Details)",
     "role": "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
     "shortName": "Fair Value of Financial Instruments - Schedule of Quantitative Information Regarding Significant and Unobservable Inputs Used in the Valuation of Level 3 Assets and Liabilities Measured at Fair Value (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "baseRef": "nymt-20220331.htm",
      "contextRef": "id39cf3642fe94f5084196f72d236c46d_I20220331",
      "decimals": "-3",
      "lang": "en-US",
      "name": "nymt:ResidentialMortgageLoansFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "usd",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 198,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag",
        "terseLabel": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code",
        "terseLabel": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]",
        "terseLabel": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date",
        "terseLabel": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus",
        "terseLabel": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus",
        "terseLabel": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Document Information [Line Items]",
        "terseLabel": "Document Information [Line Items]"
       }
      }
     },
     "localname": "DocumentInformationLineItems",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_DocumentInformationTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package.",
        "label": "Document Information [Table]",
        "terseLabel": "Document Information [Table]"
       }
      }
     },
     "localname": "DocumentInformationTable",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date",
        "terseLabel": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r674"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an quarterly report.",
        "label": "Document Quarterly Report",
        "terseLabel": "Document Quarterly Report"
       }
      }
     },
     "localname": "DocumentQuarterlyReport",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r675"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report",
        "terseLabel": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type",
        "terseLabel": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One",
        "terseLabel": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town",
        "terseLabel": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code",
        "terseLabel": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province",
        "terseLabel": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key",
        "terseLabel": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding",
        "terseLabel": "Entity Common Stock, Shares Outstanding (in shares)"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status",
        "terseLabel": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]",
        "terseLabel": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company",
        "terseLabel": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number",
        "terseLabel": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category",
        "terseLabel": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code",
        "terseLabel": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r684"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current",
        "terseLabel": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name",
        "terseLabel": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company",
        "terseLabel": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business",
        "terseLabel": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number",
        "terseLabel": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]",
        "terseLabel": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number",
        "terseLabel": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r671"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security",
        "terseLabel": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r673"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name",
        "terseLabel": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol",
        "terseLabel": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "nymt_A1122ChicagoDELLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "1122 Chicago DE, LLC [Member]",
        "label": "1122 Chicago DE, LLC [Member]",
        "terseLabel": "1122 Chicago DE, LLC"
       }
      }
     },
     "localname": "A1122ChicagoDELLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A2017PlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "2017 Plan [Member]",
        "label": "2017 Plan [Member]",
        "terseLabel": "2017 Incentive Plan"
       }
      }
     },
     "localname": "A2017PlanMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A6875SeriesFFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "6.875% Series F Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A6875SeriesFFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A7.875SeriesEFixedtoFloatingRateCumulativeRedeemablePreferredStockParValue0.01pershare25.00LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable, Preferred Stock, Par Value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "label": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable, Preferred Stock, Par Value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "7.875% Series E Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A7.875SeriesEFixedtoFloatingRateCumulativeRedeemablePreferredStockParValue0.01pershare25.00LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A7000SeriesGCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "7.000% Series G Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A7000SeriesGCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_A8000SeriesDFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference",
        "label": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference [Member]",
        "terseLabel": "8.000% Series D Fixed-to-Floating Rate Cumulative Redeemable Preferred Stock, par value $0.01 per share, $25.00 Liquidation Preference"
       }
      }
     },
     "localname": "A8000SeriesDFixedToFloatingRateCumulativeRedeemablePreferredStockParValue001PerShare2500LiquidationPreferenceMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AdvancedRemittancesFromResidentialLoanServicers": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Advanced Remittances From Residential Loan Servicers",
        "label": "Advanced Remittances From Residential Loan Servicers",
        "terseLabel": "Advanced remittances from residential loan servicers"
       }
      }
     },
     "localname": "AdvancedRemittancesFromResidentialLoanServicers",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AmericaWalksAtPortStLucieLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "America Walks at Port St. Lucie, LLC",
        "label": "America Walks at Port St. Lucie, LLC [Member]",
        "terseLabel": "America Walks at Port St. Lucie, LLC"
       }
      }
     },
     "localname": "AmericaWalksAtPortStLucieLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AmortizationOfUnderwritersDiscountAndDeferredCharges": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestExpenseBorrowings",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortization Of Underwriter's Discount And Deferred Charges",
        "label": "Amortization Of Underwriter's Discount And Deferred Charges",
        "terseLabel": "Amortization of underwriter's discount and deferred charges"
       }
      }
     },
     "localname": "AmortizationOfUnderwritersDiscountAndDeferredCharges",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AmountAgreedToFundJointVentureEquityInvestments": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount Agreed To Fund Joint Venture Equity Investments",
        "label": "Amount Agreed To Fund Joint Venture Equity Investments",
        "terseLabel": "Amount agreed to fund joint venture equity investments"
       }
      }
     },
     "localname": "AmountAgreedToFundJointVentureEquityInvestments",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CommitmentsandContingenciesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets Sold Under Agreements To Repurchase, Amortized Cost Of Collateral Pledged",
        "label": "Assets Sold Under Agreements To Repurchase, Amortized Cost Of Collateral Pledged",
        "terseLabel": "Amortized Cost of Collateral Pledged"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAmortizedCostOfCollateralPledged",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseDeferredFinanceCostsNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets Sold under Agreements to Repurchase, Deferred Finance Costs, Net",
        "label": "Assets Sold under Agreements to Repurchase, Deferred Finance Costs, Net",
        "negatedTerseLabel": "Net Deferred Finance Costs"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseDeferredFinanceCostsNet",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of repossession that is available under the repurchase agreement.",
        "label": "Assets Sold Under Agreements to Repurchase, Maximum Repurchase Amount",
        "terseLabel": "Maximum Aggregate Uncommitted Principal Amount"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaximumRepurchaseAmount",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_AudubonMezzanineHoldingsL.L.C.SeriesAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Audubon Mezzanine Holdings, L.L.C. (Series A) [Member]",
        "label": "Audubon Mezzanine Holdings, L.L.C. (Series A) [Member]",
        "terseLabel": "Audubon Mezzanine Holdings, L.L.C. (Series A)"
       }
      }
     },
     "localname": "AudubonMezzanineHoldingsL.L.C.SeriesAMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_AvailableForSaleSecuritiesPortfolioLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the weighted average life of the available for sale securities portfolio.",
        "label": "Available For Sale Securities Portfolio Life",
        "terseLabel": "Weighted average life of available for sale securities portfolio"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesPortfolioLife",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_AxisApartmentsHoldingsLLCArborStratfordHoldingsIILLCSeriesBHighlandsMtg.HoldingsLLCSeriesBOakleyShoalsApartmentsLLCSeriesCandWoodlandParkMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Axis Apartments Holdings, LLC, Arbor-Stratford Holdings II, LLC - Series B, Highlands - Mtg. Holdings, LLC - Series B, Oakley Shoals Apartments, LLC - Series C, and Woodland Park [Member]",
        "label": "Axis Apartments Holdings, LLC, Arbor-Stratford Holdings II, LLC - Series B, Highlands - Mtg. Holdings, LLC - Series B, Oakley Shoals Apartments, LLC - Series C, and Woodland Park [Member]",
        "terseLabel": "Axis Apartments Holdings, LLC, Arbor-Stratford Holdings II, LLC - Series B, Highlands - Mtg. Holdings, LLC - Series B, Oakley Shoals Apartments, LLC - Series C, and Woodland Park Apartments II, LLC (collectively)"
       }
      }
     },
     "localname": "AxisApartmentsHoldingsLLCArborStratfordHoldingsIILLCSeriesBHighlandsMtg.HoldingsLLCSeriesBOakleyShoalsApartmentsLLCSeriesCandWoodlandParkMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BBAEP320IIL.L.C.BBATen10IIL.L.C.andLexingtonontheGreenApartmentsL.L.C.collectivelyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "BBA-EP320 II, L.L.C., BBA-Ten 10 II, L.L.C., and Lexington on the Green Apartments, L.L.C. (collectively)",
        "label": "BBA-EP320 II, L.L.C., BBA-Ten 10 II, L.L.C., and Lexington on the Green Apartments, L.L.C. (collectively) [Member]",
        "terseLabel": "BBA-EP320 II, L.L.C., BBA-Ten10 II, L.L.C., and Lexington on the Green Apartments, L.L.C. (collectively)"
       }
      }
     },
     "localname": "BBAEP320IIL.L.C.BBATen10IIL.L.C.andLexingtonontheGreenApartmentsL.L.C.collectivelyMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BOrBelowCreditRatingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "B+ Or Below Credit Rating",
        "label": "B+ Or Below Credit Rating [Member]",
        "terseLabel": "B+ or Below Credit Rating"
       }
      }
     },
     "localname": "BOrBelowCreditRatingMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BetweenBBAndBCreditRatingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Between BB+ And B+ Credit Rating",
        "label": "Between BB+ And B+ Credit Rating [Member]",
        "terseLabel": "Between BB+ and B+ Credit Rating"
       }
      }
     },
     "localname": "BetweenBBAndBCreditRatingMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_BighausLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Bighaus, LLC",
        "label": "Bighaus, LLC [Member]",
        "terseLabel": "Bighaus, LLC"
       }
      }
     },
     "localname": "BighausLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CMBSMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "CMBS.",
        "label": "CMBS [Member]",
        "terseLabel": "CMBS"
       }
      }
     },
     "localname": "CMBSMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CommonStockParValue001PerShareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Common Stock, par value $0.01 per share",
        "label": "Common Stock, par value $0.01 per share [Member]",
        "terseLabel": "Common Stock, par value $0.01 per share"
       }
      }
     },
     "localname": "CommonStockParValue001PerShareMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/Cover"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_CommonStockValueofSharesReservedforFutureIssuanceValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate value of common shares reserved for future issuance.",
        "label": "Common Stock, Value of Shares Reserved for Future Issuance, Value",
        "terseLabel": "Common stock reserved for issuance"
       }
      }
     },
     "localname": "CommonStockValueofSharesReservedforFutureIssuanceValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components Of Net Gains (Losses) On Residential Mortgage Loans At Fair Value [Table Text Block]",
        "label": "Components Of Net Gains (Losses) On Residential Mortgage Loans At Fair Value [Table Text Block]",
        "terseLabel": "Schedule of Components of Net Gain on Residential Mortgage Loans at Fair Value"
       }
      }
     },
     "localname": "ComponentsOfNetGainsLossesOnResidentialMortgageLoansAtFairValueTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ConsolidatedMultiFamilyPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consolidated Multi-family Properties",
        "label": "Consolidated Multi-family Properties [Member]",
        "terseLabel": "Consolidated Multi-family Properties"
       }
      }
     },
     "localname": "ConsolidatedMultiFamilyPropertiesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ConsolidatedRealEstateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consolidated Real Estate",
        "label": "Consolidated Real Estate [Member]",
        "terseLabel": "Consolidated Real Estate"
       }
      }
     },
     "localname": "ConsolidatedRealEstateMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ConsolidatedSLSTMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Consolidated SLST [Member]",
        "label": "Consolidated SLST [Member]",
        "terseLabel": "Consolidated SLST",
        "verboseLabel": "Consolidated SLST"
       }
      }
     },
     "localname": "ConsolidatedSLSTMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ConstructiveLoansLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Constructive Loans LLC",
        "label": "Constructive Loans LLC [Member]",
        "terseLabel": "Constructive Loans, LLC"
       }
      }
     },
     "localname": "ConstructiveLoansLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ContractualInterestExpense": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestExpenseBorrowings",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual Interest Expense",
        "label": "Contractual Interest Expense",
        "terseLabel": "Contractual interest expense"
       }
      }
     },
     "localname": "ContractualInterestExpense",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ContractualMaturities": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual maturities of investments.",
        "label": "Contractual Maturities",
        "terseLabel": "Contractual maturities (up to)"
       }
      }
     },
     "localname": "ContractualMaturities",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_DCPGoldCreekLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "DCP Gold Creek, LLC [Member]",
        "label": "DCP Gold Creek, LLC [Member]",
        "terseLabel": "DCP Gold Creek, LLC"
       }
      }
     },
     "localname": "DCPGoldCreekLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_DebtInstrumentIssuancePercentageofFaceAmount": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument, Issuance Percentage of Face Amount",
        "label": "Debt Instrument, Issuance Percentage of Face Amount",
        "terseLabel": "Notes issued, percentage of principle"
       }
      }
     },
     "localname": "DebtInstrumentIssuancePercentageofFaceAmount",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtInstrumentPercentageOfPrincipalIssued": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument, Percentage Of Principal Issued",
        "label": "Debt Instrument, Percentage Of Principal Issued",
        "terseLabel": "Debt instrument, percentage of principal issued"
       }
      }
     },
     "localname": "DebtInstrumentPercentageOfPrincipalIssued",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtInstrumentRedemptionPricePercentageMultiplyer": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Instrument, Redemption Price, Percentage Multiplyer",
        "label": "Debt Instrument, Redemption Price, Percentage Multiplyer",
        "terseLabel": "Debt instrument, redemption price, percentage multiplyer"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPricePercentageMultiplyer",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtIssuanceCostPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Issuance Cost, Percentage",
        "label": "Debt Issuance Cost, Percentage",
        "terseLabel": "Debt issuance cost, percentage"
       }
      }
     },
     "localname": "DebtIssuanceCostPercentage",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtIssuanceCostsAmortizationRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Issuance Costs, Amortization Rate",
        "label": "Debt Issuance Costs, Amortization Rate",
        "terseLabel": "Debt issuance costs, amortization rate"
       }
      }
     },
     "localname": "DebtIssuanceCostsAmortizationRate",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleCECLAndFairValueOptionAmortizedCost": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Amortized Cost",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Amortized Cost",
        "terseLabel": "Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleCECLAndFairValueOptionAmortizedCost",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleGrossUnrealizedLossFairValueOption": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Gross Unrealized Losses, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Gross Unrealized Loss, Fair Value Option",
        "negatedLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleGrossUnrealizedLossFairValueOption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleIncludingFairValueOption": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-For-Sale, Including Fair Value Option",
        "label": "Debt Securities, Available-For-Sale, Including Fair Value Option",
        "terseLabel": "Investment securities available for sale, at fair value",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleIncludingFairValueOption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-For-Sale, Weighted Average Lives [Table Text Block]",
        "label": "Debt Securities, Available-For-Sale, Weighted Average Lives [Table Text Block]",
        "terseLabel": "Schedule of Weighted Average Lives of Investment Securities"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleWeightedAverageLivesTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Amortized Cost, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Amortized Cost, Fair Value Option",
        "terseLabel": "Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleAmortizedCostFairValueOption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOption": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedGainbeforeTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Gain, before Tax",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedGainbeforeTax",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedLossbeforeTax": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Loss, before Tax",
        "label": "Debt Securities, Available-for-sale, CECL and Fair Value Option, Accumulated Gross Unrealized Loss, before Tax",
        "negatedTerseLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleCECLandFairValueOptionAccumulatedGrossUnrealizedLossbeforeTax",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleFairValueOption": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Fair Value Option",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleFairValueOption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesAvailableforsaleGrossUnrealizedGainsFairValueOption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Available-for-sale, Unrealized Gains, Fair Value Option",
        "label": "Debt Securities, Available-for-sale, Gross Unrealized Gains, Fair Value Option",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableforsaleGrossUnrealizedGainsFairValueOption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": 1.0,
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleIncludingFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Trading, Available-For-Sale, Debt Maturities, Zero Through Year Five, Fair Value",
        "label": "Debt Securities, Trading, Available-For-Sale, Debt Maturities, Zero Through Year Five, Fair Value",
        "terseLabel": "0 to 5 years"
       }
      }
     },
     "localname": "DebtSecuritiesTradingAvailableForSaleDebtMaturitiesZeroThroughYearFiveFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafter10YearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": 3.0,
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleIncludingFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "label": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "terseLabel": "10+ years"
       }
      }
     },
     "localname": "DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafter10YearsFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafterFiveThroughTenYearsFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails": {
       "order": 2.0,
       "parentTag": "nymt_DebtSecuritiesAvailableForSaleIncludingFairValueOption",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "label": "Debt Securities, Trading, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "terseLabel": "Over 5 to 10 years"
       }
      }
     },
     "localname": "DebtSecuritiesTradingAvailableforsaleMaturityAllocatedandSingleMaturityDateafterFiveThroughTenYearsFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueWeightedAverageLivesforAvailableforSaleSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DerivativeAssetLiabilityNotionalAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Asset (Liability), Notional Amount",
        "label": "Derivative Asset (Liability), Notional Amount",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "DerivativeAssetLiabilityNotionalAmount",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_DerivativeInstrumentsandHedgingActivitiesDisclosuresRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Roll Forward]"
       }
      }
     },
     "localname": "DerivativeInstrumentsandHedgingActivitiesDisclosuresRollForward",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_EP320GrowthFundLLCSeriesAAndTurnburyParkApartmentsBCLLCSeriesAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "EP 320 Growth Fund, LLC (Series A) And Turnbury Park Apartments - BC, LLC (Series A) [Member]",
        "label": "EP 320 Growth Fund, LLC (Series A) And Turnbury Park Apartments - BC, LLC (Series A) [Member]",
        "terseLabel": "EP 320 Growth Fund, L.L.C. (Series A) and Turnbury Park Apartments - BC, L.L.C. (Series A) (collectively)"
       }
      }
     },
     "localname": "EP320GrowthFundLLCSeriesAAndTurnburyParkApartmentsBCLLCSeriesAMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EmployeeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Employee [Member]",
        "label": "Employee [Member]",
        "terseLabel": "Employee"
       }
      }
     },
     "localname": "EmployeeMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EquityAndMezzanineLoansPrincipalAmountOfDelinquentLoans": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity And Mezzanine Loans, Principal Amount Of Delinquent Loans",
        "label": "Equity And Mezzanine Loans, Principal Amount Of Delinquent Loans",
        "terseLabel": "Unpaid Principal Balance"
       }
      }
     },
     "localname": "EquityAndMezzanineLoansPrincipalAmountOfDelinquentLoans",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_EquityDistributionAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents information pertaining to the separate equity distribution agreements (collectively, the \"Equity Distribution Agreements\") with each of JMP Securities LLC (\"JMP\") and MLV &amp; Co. LLC (\"MLV\").",
        "label": "Equity Distribution Agreements [Member]",
        "terseLabel": "Equity Distribution Agreements"
       }
      }
     },
     "localname": "EquityDistributionAgreementsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EquityInvestmentinEntitiesthatInvestinMultifamilyPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Investment in Entities that Invest in Multi-family Properties [Member]",
        "label": "Equity Investment in Entities that Invest in Multi-family Properties [Member]",
        "terseLabel": "Equity investments in entities that invest in residential properties"
       }
      }
     },
     "localname": "EquityInvestmentinEntitiesthatInvestinMultifamilyPropertiesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_EquityMethodInvestmentMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Method Investment, Measurement Input",
        "label": "Equity Method Investment, Measurement Input",
        "terseLabel": "Investments in unconsolidated entities, measurement input"
       }
      }
     },
     "localname": "EquityMethodInvestmentMeasurementInput",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "nymt_EquityandMezzanineLoansFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity and Mezzanine Loans, Fair Value",
        "label": "Equity and Mezzanine Loans, Fair Value",
        "terseLabel": "Fair Value"
       }
      }
     },
     "localname": "EquityandMezzanineLoansFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ExpensesRelatedToOperatingRealEstate": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      },
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses Related To Operating Real Estate",
        "label": "Expenses Related To Operating Real Estate",
        "terseLabel": "Expenses related to real estate",
        "totalLabel": "Total expenses related to real estate"
       }
      }
     },
     "localname": "ExpensesRelatedToOperatingRealEstate",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FFRMI20MidtownLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "FF RMI 20 Midtown, LLC",
        "label": "FF RMI 20 Midtown, LLC [Member]",
        "terseLabel": "FF/RMI 20 Midtown, LLC"
       }
      }
     },
     "localname": "FFRMI20MidtownLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetFundingContributions": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Funding/Contributions",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Funding/Contributions",
        "terseLabel": "Funding/Contributions"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetFundingContributions",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3ToSecuritizationTrustNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers Out of Level 3 to Out of Securitization Trust, Net",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers Out of Level 3 to Securitization Trust, Net",
        "negatedTerseLabel": "Transfers to securitization trust"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3ToSecuritizationTrustNet",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialAssetsLessthan90daysMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Assets, Less than 90 days [Member]",
        "label": "Financial Assets, Less than 90 days [Member]",
        "terseLabel": "Less than 90 days past due"
       }
      }
     },
     "localname": "FinancialAssetsLessthan90daysMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FinancialInstrumentOwnedDeferredLoanFees": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instrument Owned, Deferred Loan Fees",
        "label": "Financial Instrument Owned, Deferred Loan Fees",
        "negatedTerseLabel": "Deferred loan fees, net"
       }
      }
     },
     "localname": "FinancialInstrumentOwnedDeferredLoanFees",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instrument Owned, Loans And Preferred Equity, Net",
        "label": "Financial Instrument Owned, Loans And Preferred Equity, Net",
        "terseLabel": "Multi-family loans, at fair value",
        "totalLabel": "Total, at Fair Value"
       }
      }
     },
     "localname": "FinancialInstrumentOwnedLoansAndPreferredEquityNet",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentsOwnedMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Measurement Input",
        "label": "Financial Instruments Owned, Measurement Input",
        "terseLabel": "Financial instruments owned, measurement input"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMeasurementInput",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "nymt_FinancialInstrumentsOwnedMeasurementInputAssumedRedemptionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Measurement Input, Assumed Redemption Period",
        "label": "Financial Instruments Owned, Measurement Input, Assumed Redemption Period",
        "terseLabel": "Financial instruments owned, assumed redemption period (in months)"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMeasurementInputAssumedRedemptionPeriod",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_FinancialInstrumentsOwnedMultiFamilyLoans": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Multi-family Loans",
        "label": "Financial Instruments Owned, Multi-family Loans",
        "verboseLabel": "Multi-family loans"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMultiFamilyLoans",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentsOwnedResidentialLoansAtFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Residential Loans At Fair Value",
        "label": "Financial Instruments Owned, Residential Loans At Fair Value",
        "verboseLabel": "Residential loans, at fair value"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedResidentialLoansAtFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancialInstrumentsOwnedResidentialLoansatFairValue": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial Instruments Owned, Residential Loans at Fair Value",
        "label": "Financial Instruments Owned, Residential Loans at Fair Value",
        "verboseLabel": "Residential loans, at fair value"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedResidentialLoansatFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancingAndOtherVIEsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing And Other VIEs",
        "label": "Financing And Other VIEs [Member]",
        "terseLabel": "Financing And Other VIEs"
       }
      }
     },
     "localname": "FinancingAndOtherVIEsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_FinancingReceivableAfterAllowanceForCreditLossCollectionsReceivable": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, After Allowance For Credit Loss, Collections Receivable",
        "label": "Financing Receivable, After Allowance For Credit Loss, Collections Receivable",
        "terseLabel": "Collections receivable from residential loan servicers"
       }
      }
     },
     "localname": "FinancingReceivableAfterAllowanceForCreditLossCollectionsReceivable",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FinancingReceivableAfterAllowanceForCreditLossRecoverableAdvances": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing Receivable, After Allowance For Credit Loss, Recoverable Advances",
        "label": "Financing Receivable, After Allowance For Credit Loss, Recoverable Advances",
        "terseLabel": "Recoverable advances on residential loans"
       }
      }
     },
     "localname": "FinancingReceivableAfterAllowanceForCreditLossRecoverableAdvances",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_FivePointSevenFivePercentSeniorNotesDueTwoThousandTwentySixMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Five Point Seven Five Percent Senior Notes Due Two Thousand Twenty Six",
        "label": "Five Point Seven Five Percent Senior Notes Due Two Thousand Twenty Six [Member]",
        "terseLabel": "5.75% Senior Notes Due 2026"
       }
      }
     },
     "localname": "FivePointSevenFivePercentSeniorNotesDueTwoThousandTwentySixMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_GWRCedarsPartnersLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GWR Cedars Partners, LLC",
        "label": "GWR Cedars Partners, LLC [Member]",
        "terseLabel": "GWR Cedars Partners, LLC"
       }
      }
     },
     "localname": "GWRCedarsPartnersLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_GWRGatewayPartnersLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "GWR Gateway Partners, LLC",
        "label": "GWR Gateway Partners, LLC [Member]",
        "terseLabel": "GWR Gateway Partners, LLC"
       }
      }
     },
     "localname": "GWRGatewayPartnersLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_GainLossOnTransferToRealEstateHeldForSale": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gain (Loss) On Transfer To Real Estate Held-For-Sale",
        "label": "Gain (Loss) On Transfer To Real Estate Held-For-Sale",
        "terseLabel": "Loss on transfer to real estate held-for-sale"
       }
      }
     },
     "localname": "GainLossOnTransferToRealEstateHeldForSale",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_Gen1814LLCAndSeriesAHighlandsAndMtgHoldingsLLCAndSeriesAAndPolosatHudsonInvestmentsLLCAndSeriesAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gen1814 LLC And Series A Highlands And Mtg Holdings LLC And Series A And Polos at Hudson Investments LLC And Series A [Member]",
        "label": "Gen1814 LLC And Series A Highlands And Mtg Holdings LLC And Series A And Polos at Hudson Investments LLC And Series A [Member]",
        "terseLabel": "Gen1814, LLC - Series A, Highlands - Mtg. Holdings, LLC - Series A, and Polos at Hudson Investments, LLC - Series A (collectively)"
       }
      }
     },
     "localname": "Gen1814LLCAndSeriesAHighlandsAndMtgHoldingsLLCAndSeriesAAndPolosatHudsonInvestmentsLLCAndSeriesAMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_HeadlandsAssetManagementFundIIICaymanLPHeadlandsFlagshipOpportunityFundSeriesIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Headlands Asset Management Fund III, Cayman, LP, Headlands Flagship Opportunity Fund Series I [Member]",
        "label": "Headlands Asset Management Fund III, Cayman, LP, Headlands Flagship Opportunity Fund Series I [Member]",
        "terseLabel": "Headlands Asset Management Fund III (Cayman), LP (Headlands Flagship Opportunity Fund Series I) (2)"
       }
      }
     },
     "localname": "HeadlandsAssetManagementFundIIICaymanLPHeadlandsFlagshipOpportunityFundSeriesIMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_IncomeLossFromEquityMethodInvestmentsPreferredEquityAndMezzanineLoan": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income (Loss) From Equity Method Investments, Preferred Equity and Mezzanine Loan",
        "label": "Income (Loss) From Equity Method Investments, Preferred Equity and Mezzanine Loan",
        "negatedLabel": "Income from preferred equity, mezzanine loan and equity investments"
       }
      }
     },
     "localname": "IncomeLossFromEquityMethodInvestmentsPreferredEquityAndMezzanineLoan",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_IncreaseInNoncontrollingInterestInitialConsolidationOfVariableInterestEntity": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase in Noncontrolling Interest, Initial Consolidation of Variable Interest Entity",
        "label": "Increase in Noncontrolling Interest, Initial Consolidation of Variable Interest Entity",
        "terseLabel": "Increase in non-controlling interest related to initial consolidation of VIEs"
       }
      }
     },
     "localname": "IncreaseInNoncontrollingInterestInitialConsolidationOfVariableInterestEntity",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_InterestIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "INTEREST INCOME:",
        "terseLabel": "NET INTEREST INCOME:"
       }
      }
     },
     "localname": "InterestIncomeAbstract",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_InvestmentSecuritiesAvailableforSaleAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment Securities Available for Sale At Fair Value [Member]",
        "label": "Investment Securities Available for Sale At Fair Value [Member]",
        "terseLabel": "Investment securities available for sale",
        "verboseLabel": "Investment securities available for sale, at fair value"
       }
      }
     },
     "localname": "InvestmentSecuritiesAvailableforSaleAtFairValueMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_InvestmentinUnconsolidatedEntitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in Unconsolidated Entities [Member]",
        "label": "Investment in Unconsolidated Entities [Member]",
        "terseLabel": "Equity investments"
       }
      }
     },
     "localname": "InvestmentinUnconsolidatedEntitiesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_JointVentureEquityInvestmentsInMultiFamilyPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Joint Venture Equity Investments In Multi-family Properties",
        "label": "Joint Venture Equity Investments In Multi-family Properties [Member]",
        "terseLabel": "Joint venture equity investments in multi-family properties"
       }
      }
     },
     "localname": "JointVentureEquityInvestmentsInMultiFamilyPropertiesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_JointVentureInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Joint Venture Investment",
        "label": "Joint Venture Investment [Member]",
        "terseLabel": "Joint Venture Investment"
       }
      }
     },
     "localname": "JointVentureInvestmentMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_LeaseIntangiblesNetInConsolidatedMultiFamilyProperties": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lease Intangibles, Net In Consolidated Multi-Family Properties",
        "label": "Lease Intangibles, Net In Consolidated Multi-Family Properties",
        "terseLabel": "Lease intangibles, net in consolidated multi-family properties"
       }
      }
     },
     "localname": "LeaseIntangiblesNetInConsolidatedMultiFamilyProperties",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_LiquidAssetsPercentOfOutstandingRepurchaseAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Liquid Assets, Percent Of Outstanding Repurchase Agreements",
        "label": "Liquid Assets, Percent Of Outstanding Repurchase Agreements",
        "terseLabel": "Liquid assets, percent of outstanding repurchase agreements"
       }
      }
     },
     "localname": "LiquidAssetsPercentOfOutstandingRepurchaseAgreements",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan Premiums, Loans and Preferred Equity and Mezzanine Loans, Early Redemption",
        "label": "Loan Premiums, Loans and Preferred Equity and Mezzanine Loans, Early Redemption",
        "terseLabel": "Loan premiums, early redemption"
       }
      }
     },
     "localname": "LoanPremiumsLoansAndPreferredEquityAndMezzanineLoansEarlyRedemption",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_LongTermDebtMaximumCommittedMortgagePrincipalAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long Term Debt, Maximum Committed Mortgage Principal Amount",
        "label": "Long Term Debt, Maximum Committed Mortgage Principal Amount",
        "terseLabel": "Maximum Committed Mortgage Principal Amount"
       }
      }
     },
     "localname": "LongTermDebtMaximumCommittedMortgagePrincipalAmount",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_LucieAtTraditionHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lucie at Tradition Holdings, LLC",
        "label": "Lucie at Tradition Holdings, LLC [Member]",
        "terseLabel": "Lucie at Tradition Holdings, LLC"
       }
      }
     },
     "localname": "LucieAtTraditionHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_LurinRMILLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lurin-RMI, LLC",
        "label": "Lurin-RMI, LLC [Member]",
        "terseLabel": "Lurin-RMI, LLC"
       }
      }
     },
     "localname": "LurinRMILLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MansionsPropertyHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mansions Property Holdings LLC [Member]",
        "label": "Mansions Property Holdings LLC [Member]",
        "terseLabel": "Mansions Property Holdings, LLC"
       }
      }
     },
     "localname": "MansionsPropertyHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputAnnualHomePriceAppreciationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Annual Home Price Appreciation [Member]",
        "label": "Measurement Input, Annual Home Price Appreciation [Member]",
        "terseLabel": "Annual home price appreciation"
       }
      }
     },
     "localname": "MeasurementInputAnnualHomePriceAppreciationMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputCollateralDefaultRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Collateral Default Rate [Member]",
        "label": "Measurement Input, Collateral Default Rate [Member]",
        "terseLabel": "Collateral default rate"
       }
      }
     },
     "localname": "MeasurementInputCollateralDefaultRateMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputCollateralPrepaymentRateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Collateral Prepayment Rate [Member]",
        "label": "Measurement Input, Collateral Prepayment Rate [Member]",
        "terseLabel": "Collateral prepayment rate"
       }
      }
     },
     "localname": "MeasurementInputCollateralPrepaymentRateMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputLifetimeCDRMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Lifetime CDR [Member]",
        "label": "Measurement Input, Lifetime CDR [Member]",
        "terseLabel": "Lifetime CDR"
       }
      }
     },
     "localname": "MeasurementInputLifetimeCDRMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputLifetimeCPRMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Lifetime CPR [Member]",
        "label": "Measurement Input, Lifetime CPR [Member]",
        "terseLabel": "Lifetime CPR"
       }
      }
     },
     "localname": "MeasurementInputLifetimeCPRMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputLiquidationTimelinePeriodMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Liquidation Timeline, Period [Member]",
        "label": "Measurement Input, Liquidation Timeline, Period [Member]",
        "terseLabel": "Liquidation timeline (months)"
       }
      }
     },
     "localname": "MeasurementInputLiquidationTimelinePeriodMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputMonthsToAssumedRedemptionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Months To Assumed Redemption [Member]",
        "label": "Measurement Input, Months To Assumed Redemption [Member]",
        "terseLabel": "Months to assumed redemption"
       }
      }
     },
     "localname": "MeasurementInputMonthsToAssumedRedemptionMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MeasurementInputYieldMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement Input, Yield [Member]",
        "label": "Measurement Input, Yield [Member]",
        "terseLabel": "Yield"
       }
      }
     },
     "localname": "MeasurementInputYieldMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MezzanineLoanandPreferredEquityInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mezzanine Loan and Preferred Equity Investments [Member]",
        "label": "Mezzanine Loan and Preferred Equity Investments [Member]",
        "verboseLabel": "Preferred Equity and Mezzanine Loan Investments"
       }
      }
     },
     "localname": "MezzanineLoanandPreferredEquityInvestmentsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MinimumNumberofQuarterswithNoDividendsthatResultsinVotingRights": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum Number of Quarters with No Dividends that Results in Voting Rights",
        "label": "Minimum Number of Quarters with No Dividends that Results in Voting Rights",
        "terseLabel": "Number of quarters with no dividends that results in voting rights"
       }
      }
     },
     "localname": "MinimumNumberofQuarterswithNoDividendsthatResultsinVotingRights",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_MorrocroftNeighborhoodStabilizationFundIILPMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Morrocroft Neighborhood Stabilization Fund II, LP [Member]",
        "label": "Morrocroft Neighborhood Stabilization Fund II, LP [Member]",
        "terseLabel": "Morrocroft Neighborhood Stabilization Fund II, LP (1)"
       }
      }
     },
     "localname": "MorrocroftNeighborhoodStabilizationFundIILPMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MortgagesPayableOnRealEstateMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Mortgages Payable On Real Estate",
        "label": "Mortgages Payable On Real Estate [Member]",
        "terseLabel": "Mortgages payable on real estate"
       }
      }
     },
     "localname": "MortgagesPayableOnRealEstateMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MultiFamilyLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi-family Loans",
        "label": "Multi-family Loans [Member]",
        "terseLabel": "Multi-family loans",
        "verboseLabel": "Multi-family loans"
       }
      }
     },
     "localname": "MultiFamilyLoansMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MultiFamilyLoansTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi Family Loans",
        "label": "Multi Family Loans [Text Block]",
        "terseLabel": "Multi-family Loans, at Fair Value"
       }
      }
     },
     "localname": "MultiFamilyLoansTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_MultiFamilyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi Family",
        "label": "Multi Family [Member]",
        "terseLabel": "Multi-Family Apartment Properties"
       }
      }
     },
     "localname": "MultiFamilyMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_MultiFamilyPreferredEquityOwnershipInterestsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Multi-Family Preferred Equity Ownership Interests",
        "label": "Multi-Family Preferred Equity Ownership Interests [Member]",
        "terseLabel": "Multi-Family Preferred Equity Ownership Interests"
       }
      }
     },
     "localname": "MultiFamilyPreferredEquityOwnershipInterestsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NYMPreferredTrustIIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "NYM Preferred Trust II.",
        "label": "NYM Preferred Trust II [Member]",
        "terseLabel": "NYM Preferred Trust II"
       }
      }
     },
     "localname": "NYMPreferredTrustIIMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NYMPreferredTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "NYM Preferred Trust I.",
        "label": "NYM Preferred Trust I [Member]",
        "terseLabel": "NYM Preferred Trust I"
       }
      }
     },
     "localname": "NYMPreferredTrustIMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NetRealizedGainLossOnPayoffOfMortgageLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net Realized Gain (Loss) On Payoff Of Mortgage Loans",
        "label": "Net Realized Gain (Loss) On Payoff Of Mortgage Loans",
        "terseLabel": "Net realized gain on payoff of residential loans"
       }
      }
     },
     "localname": "NetRealizedGainLossOnPayoffOfMortgageLoans",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NonAgencyRMBSMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-agency RMBS.",
        "label": "Non Agency RMBS [Member]",
        "terseLabel": "Non-Agency RMBS",
        "verboseLabel": "Non-Agency RMBS"
       }
      }
     },
     "localname": "NonAgencyRMBSMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NonAgencyRMBSReSecuritizationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-Agency RMBS Re-Securitizations [Member]",
        "label": "Non-Agency RMBS Re-Securitizations [Member]",
        "terseLabel": "Non-Agency RMBS Re-Securitization"
       }
      }
     },
     "localname": "NonAgencyRMBSReSecuritizationsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_NonCashFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Cash Financing Activities:",
        "verboseLabel": "Non-Cash Financing Activities:"
       }
      }
     },
     "localname": "NonCashFinancingActivitiesAbstract",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_NonCashInvestmentActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Cash Investment Activities:",
        "terseLabel": "Non-Cash Investment Activities:"
       }
      }
     },
     "localname": "NonCashInvestmentActivitiesAbstract",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_NoncashOrPartNoncashAcquisitionConsolidationOfMortgagesPayableOnRealEstateHeld": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncash Or Part Noncash Acquisition, Consolidation Of Mortgages Payable On Real Estate Held",
        "label": "Noncash Or Part Noncash Acquisition, Consolidation Of Mortgages Payable On Real Estate Held",
        "terseLabel": "Consolidation of mortgages payable on real estate held in Consolidated VIEs"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionConsolidationOfMortgagesPayableOnRealEstateHeld",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NoncashOrPartNoncashAcquisitionConsolidationOfRealEstateHeld": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noncash Or Part Noncash Acquisition, Consolidation Of Real Estate Held",
        "label": "Noncash Or Part Noncash Acquisition, Consolidation Of Real Estate Held",
        "terseLabel": "Consolidation of real estate held in Consolidated VIEs"
       }
      }
     },
     "localname": "NoncashOrPartNoncashAcquisitionConsolidationOfRealEstateHeld",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NoninterestIncomeExpenseOther": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Noninterest Income (Expense), Other",
        "label": "Noninterest Income (Expense), Other",
        "terseLabel": "Other loss"
       }
      }
     },
     "localname": "NoninterestIncomeExpenseOther",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NotionalAmountOfOtherDerivativeAdditions": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additions for notional amount of other derivatives..",
        "label": "Notional Amount Of Other Derivative Additions",
        "terseLabel": "Additions"
       }
      }
     },
     "localname": "NotionalAmountOfOtherDerivativeAdditions",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NotionalAmountOfOtherDerivativesSettlementExpirationOrExercise": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Settlement, expiration, or exercise for notional amount of other derivatives.",
        "label": "Notional Amount Of Other Derivatives, Settlement Expiration Or Exercise",
        "negatedLabel": "Terminations"
       }
      }
     },
     "localname": "NotionalAmountOfOtherDerivativesSettlementExpirationOrExercise",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_NumberOfConsecutiveTradingDaysForTotalShareholderReturnTSRCalculation": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Consecutive Trading Days For Total Shareholder Return (TSR) Calculation",
        "label": "Number Of Consecutive Trading Days For Total Shareholder Return (TSR) Calculation",
        "terseLabel": "Number of consecutive trading days for Total Shareholder Return (TSR) calculation"
       }
      }
     },
     "localname": "NumberOfConsecutiveTradingDaysForTotalShareholderReturnTSRCalculation",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Counterparties With Amounts Outstanding Under Repurchase Agreements",
        "label": "Number Of Counterparties With Amounts Outstanding Under Repurchase Agreements",
        "terseLabel": "Number of counterparties with amounts outstanding under repurchase agreements"
       }
      }
     },
     "localname": "NumberOfCounterpartiesWithAmountsOutstandingUnderRepurchaseAgreements",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_NumberOfPropertiesPurchased": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Properties Purchased",
        "label": "Number Of Properties Purchased",
        "terseLabel": "Number of properties purchased"
       }
      }
     },
     "localname": "NumberOfPropertiesPurchased",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_NumberOfSecuritizationsCompleted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Securitizations Completed",
        "label": "Number Of Securitizations Completed",
        "terseLabel": "Number of securitizations completed"
       }
      }
     },
     "localname": "NumberOfSecuritizationsCompleted",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number Of Series Of Cumulative Redeemable Preferred Stock Outstanding",
        "label": "Number Of Series Of Cumulative Redeemable Preferred Stock Outstanding",
        "terseLabel": "Number of series of cumulative redeemable preferred stock outstanding"
       }
      }
     },
     "localname": "NumberOfSeriesOfCumulativeRedeemablePreferredStockOutstanding",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_OTHERINCOMEEXPENSEAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "OTHER INCOME (EXPENSE)",
        "label": "OTHER INCOME (EXPENSE) [Abstract]",
        "terseLabel": "NON-INTEREST (LOSS) INCOME:"
       }
      }
     },
     "localname": "OTHERINCOMEEXPENSEAbstract",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_OperatingRealEstateNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operating Real Estate, Net",
        "label": "Operating Real Estate, Net",
        "terseLabel": "Real estate, net"
       }
      }
     },
     "localname": "OperatingRealEstateNet",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OptionToPurchaseIssuedAndOutstandingInterestsPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Option To Purchase Issued And Outstanding Interests, Percentage",
        "label": "Option To Purchase Issued And Outstanding Interests, Percentage",
        "terseLabel": "Option to purchase issued and outstanding interests, percentage"
       }
      }
     },
     "localname": "OptionToPurchaseIssuedAndOutstandingInterestsPercentage",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_OtherLiabilitiesMiscellaneous": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Liabilities, Miscellaneous",
        "label": "Other Liabilities, Miscellaneous",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherLiabilitiesMiscellaneous",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_OtherReceivablesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Receivables",
        "label": "Other Receivables [Member]",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherReceivablesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PalmsAtCapeCoralLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Palms at Cape Coral, LLC",
        "label": "Palms at Cape Coral, LLC [Member]",
        "terseLabel": "Palms at Cape Coral, LLC"
       }
      }
     },
     "localname": "PalmsAtCapeCoralLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PaymentForDistributionsToNoncontrollingInterestInVariableInterestEntities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment for Distributions to Noncontrolling Interest in Variable Interest Entities",
        "label": "Payment for Distributions to Noncontrolling Interest in Variable Interest Entities",
        "negatedTerseLabel": "Distributions to non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "PaymentForDistributionsToNoncontrollingInterestInVariableInterestEntities",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Payment for Distributions to Redeemable Noncontrolling Interest in Variable Interest Entities",
        "label": "Payment for Distributions to Redeemable Noncontrolling Interest in Variable Interest Entities",
        "negatedTerseLabel": "Distributions"
       }
      }
     },
     "localname": "PaymentForDistributionsToRedeemableNoncontrollingInterestInVariableInterestEntities",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PercentOfOutstandingSharesAffirmativeVotesMaterialAndAdverseChangesToPreferredStockTerms": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percent Of Outstanding Shares Affirmative Votes, Material And Adverse Changes To Preferred Stock Terms",
        "label": "Percent Of Outstanding Shares Affirmative Votes, Material And Adverse Changes To Preferred Stock Terms",
        "terseLabel": "Percent of outstanding shares affirmative votes needed for material and adverse changes to preferred stock terms"
       }
      }
     },
     "localname": "PercentOfOutstandingSharesAffirmativeVotesMaterialAndAdverseChangesToPreferredStockTerms",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_PerformanceSharesTargetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance Shares, Target",
        "label": "Performance Shares, Target [Member]",
        "terseLabel": "PSUs, Target"
       }
      }
     },
     "localname": "PerformanceSharesTargetMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PortfolioInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type or description of the financial arrangement.",
        "label": "Portfolio Investments [Member]",
        "terseLabel": "Portfolio Investments"
       }
      }
     },
     "localname": "PortfolioInvestmentsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityAndMezzanineLoansAccumulatedGrossUnrealizedGainlossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity and Mezzanine Loans, Accumulated Gross Unrealized Gain(loss), before Tax",
        "label": "Preferred Equity and Mezzanine Loans, Accumulated Gross Unrealized Gain(loss), before Tax",
        "negatedNetLabel": "Unrealized gains, net"
       }
      }
     },
     "localname": "PreferredEquityAndMezzanineLoansAccumulatedGrossUnrealizedGainlossBeforeTax",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PreferredEquityDistributionAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Distribution Agreement [Member]",
        "label": "Preferred Equity Distribution Agreement [Member]",
        "terseLabel": "Preferred Equity Distribution Agreement"
       }
      }
     },
     "localname": "PreferredEquityDistributionAgreementMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Investment",
        "label": "Preferred Equity Investment [Member]",
        "terseLabel": "Preferred Equity Investment"
       }
      }
     },
     "localname": "PreferredEquityInvestmentMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityInvestmentonMultifamilyPropertiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Investment on Multi-family Properties [Member]",
        "label": "Preferred Equity Investment on Multi-family Properties [Member]",
        "terseLabel": "Preferred equity investments in multi-family properties"
       }
      }
     },
     "localname": "PreferredEquityInvestmentonMultifamilyPropertiesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityOwnershipInterestsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity Ownership Interests [Member]",
        "label": "Preferred Equity Ownership Interests [Member]",
        "terseLabel": "Preferred Equity Ownership Interests"
       }
      }
     },
     "localname": "PreferredEquityOwnershipInterestsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "label": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "terseLabel": "Preferred Equity and Mezzanine Loans, Fair Value Compared to Unpaid Principal"
       }
      }
     },
     "localname": "PreferredEquityandMezzanineLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_PreferredStockDividendPaymentRateBasisSpreadOnVariableRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Dividend Payment Rate, Basis Spread On Variable Rate",
        "label": "Preferred Stock, Dividend Payment Rate, Basis Spread On Variable Rate",
        "terseLabel": "Preferred stock, floating annual rate, percentage"
       }
      }
     },
     "localname": "PreferredStockDividendPaymentRateBasisSpreadOnVariableRate",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_PreferredStockRedemptionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock Redemption Period",
        "label": "Preferred Stock Redemption Period",
        "terseLabel": "Preferred stock redemption period"
       }
      }
     },
     "localname": "PreferredStockRedemptionPeriod",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_PreferredStockSeriesSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Series Shares",
        "label": "Preferred Stock, Series Shares [Member]",
        "terseLabel": "Preferred Stock, Series Shares"
       }
      }
     },
     "localname": "PreferredStockSeriesSharesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_PreferredStockSharesReservedForFutureIssuanceValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Shares Reserved For Future Issuance, Value",
        "label": "Preferred Stock, Shares Reserved For Future Issuance, Value",
        "terseLabel": "Preferred stock available for future issuance, value"
       }
      }
     },
     "localname": "PreferredStockSharesReservedForFutureIssuanceValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_PreferredStockVotingRightsNumberofAdditionalDirectorsElected": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred Stock, Voting Rights, Number of Additional Directors Elected",
        "label": "Preferred Stock, Voting Rights, Number of Additional Directors Elected",
        "terseLabel": "Number of elected directors pending preferred stock voting rights"
       }
      }
     },
     "localname": "PreferredStockVotingRightsNumberofAdditionalDirectorsElected",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_ProceedsFromIssuanceOfCollateralizedDebtObligationsNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds from Issuance of Collateralized Debt Obligations, Net",
        "label": "Proceeds from Issuance of Collateralized Debt Obligations, Net",
        "terseLabel": "Proceeds from issuance of collateralized debt obligations, net"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCollateralizedDebtObligationsNet",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeds Including Receivable For Unsettled Trades From Sale of Debt Securities, Available-for-sale",
        "label": "Proceeds Including Receivable For Unsettled Trades From Sale of Debt Securities, Available-for-sale",
        "terseLabel": "Sales Proceeds"
       }
      }
     },
     "localname": "ProceedsIncludingReceivableForUnsettledTradesFromSaleofDebtSecuritiesAvailableforsale",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RSSWDOwnerLLCRSSWDMitchellOwnerLLCIFOwnerLLCMullisOwnerLLCJHMullisOwnerandSaltzmanOwnerLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "RS SWD Owner, LLC RS SWD ,Mitchell Owner, LLC, IF Owner, LLC, Mullis Owner, LLC, JH Mullis Owner and Saltzman Owner, LLC( Collectively) [Member]",
        "label": "RS SWD Owner, LLC RS SWD, Mitchell Owner, LLC, IF Owner, LLC, Mullis Owner, LLC, JH Mullis Owner and Saltzman Owner, LLC [Member]",
        "terseLabel": "RS SWD Owner, LLC, RS SWD Mitchell Owner, LLC, RS SWD IF Owner, LLC, RS SWD Mullis Owner, LLC, RS SWD JH Mullis Owner, LLC and RS SWD Saltzman Owner, LLC (collectively)"
       }
      }
     },
     "localname": "RSSWDOwnerLLCRSSWDMitchellOwnerLLCIFOwnerLLCMullisOwnerLLCJHMullisOwnerandSaltzmanOwnerLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_RealEstateOwned": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 10.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Real Estate Owned",
        "label": "Real Estate Owned",
        "terseLabel": "Real estate owned"
       }
      }
     },
     "localname": "RealEstateOwned",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ReceivablesAndOtherAssetsFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents fair value disclosure for receivables and other assets.",
        "label": "Receivables And Other Assets Fair Value",
        "terseLabel": "Preferred equity and mezzanine loan investments, estimated fair value"
       }
      }
     },
     "localname": "ReceivablesAndOtherAssetsFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ReceivablesandOtherAssets": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amounts of receivables due as of the balance sheet date from parties or arising from transactions not otherwise specified in the taxonomy. Sum of the carrying amount for an unclassified balance sheet date of expenditures made in advance of when the economic benefit of the cost will be realized, and which will be expensed in future periods with the passage of time or when a triggering event occurs and the carrying amount as of the balance sheet date of assets not otherwise specified in the taxonomy. Also includes assets not individually reported in the financial statements, or not separately disclosed in notes.",
        "label": "Receivables and Other Assets",
        "verboseLabel": "Preferred equity and mezzanine loan investments, carrying value"
       }
      }
     },
     "localname": "ReceivablesandOtherAssets",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RedeemableNonControllingInterestInConsolidatedVariableInterestEntities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Redeemable Non-Controlling Interest In Consolidated Variable Interest Entities",
        "label": "Redeemable Non-Controlling Interest In Consolidated Variable Interest Entities",
        "terseLabel": "Redeemable Non-Controlling Interest in Consolidated Variable Interest Entities"
       }
      }
     },
     "localname": "RedeemableNonControllingInterestInConsolidatedVariableInterestEntities",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RelativeTSRPerformanceIsEqualToTheFiftiethPercentileMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Relative TSR Performance Is Equal To The Fiftieth Percentile [Member]",
        "label": "Relative TSR Performance Is Equal To The Fiftieth Percentile [Member]",
        "terseLabel": "Relative TSR Performance is Equal to the 50th Percentile"
       }
      }
     },
     "localname": "RelativeTSRPerformanceIsEqualToTheFiftiethPercentileMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_RelativeTSRperformanceIsLessThanTheThirtiethPercentileMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "TSR performance Is Less Than The Thirtieth Percentile [Member]",
        "label": "Relative TSR performance Is Less Than The Thirtieth Percentile [Member]",
        "terseLabel": "Relative TSR Performance is Less Than the 30th Percentile"
       }
      }
     },
     "localname": "RelativeTSRperformanceIsLessThanTheThirtiethPercentileMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_RepaymentOfCollateralizedDebtResidential": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repayment Of Collateralized Debt, Residential",
        "label": "Repayment Of Collateralized Debt, Residential",
        "negatedLabel": "Payments made on and extinguishment of collateralized debt obligations"
       }
      }
     },
     "localname": "RepaymentOfCollateralizedDebtResidential",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RepurchaseAgreementCounterpartyAccruedInterestPayable": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement Counterparty, Accrued Interest Payable",
        "label": "Repurchase Agreement Counterparty, Accrued Interest Payable",
        "terseLabel": "Accrued interest payable"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyAccruedInterestPayable",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_RepurchaseAgreementCounterpartyWeightedAverageInterestRateOfAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement Counterparty, Weighted Average Interest Rate Of Agreements",
        "label": "Repurchase Agreement Counterparty, Weighted Average Interest Rate Of Agreements",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyWeightedAverageInterestRateOfAgreements",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RepurchaseAgreementNonMarkToMarketMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreement, Non Mark-to Market",
        "label": "Repurchase Agreement, Non Mark-to Market [Member]",
        "terseLabel": "Repurchase Agreement, Non Mark-to Market"
       }
      }
     },
     "localname": "RepurchaseAgreementNonMarkToMarketMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_RepurchaseAgreementsAverageInterestRateHaircut": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements, Average Interest Rate Haircut",
        "label": "Repurchase Agreements, Average Interest Rate Haircut",
        "terseLabel": "Average interest rate haircut"
       }
      }
     },
     "localname": "RepurchaseAgreementsAverageInterestRateHaircut",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_RepurchaseAgreementsNumberOfCounterparties": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of counterparties the entity has repurchase agreements with.",
        "label": "Repurchase Agreements, Number of Counterparties",
        "terseLabel": "Repurchase agreements, number of counterparties"
       }
      }
     },
     "localname": "RepurchaseAgreementsNumberOfCounterparties",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_RepurchaseAgreementsNumberOfFinancialInstitutions": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements, Number Of Financial Institutions",
        "label": "Repurchase Agreements, Number Of Financial Institutions",
        "terseLabel": "Repurchase agreements, number of financial institutions"
       }
      }
     },
     "localname": "RepurchaseAgreementsNumberOfFinancialInstitutions",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "nymt_RepurchaseAgreementsWeightedAverageAdvanceRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Repurchase Agreements, Weighted Average Advance Rate",
        "label": "Repurchase Agreements, Weighted Average Advance Rate",
        "terseLabel": "Weighted average advance rate"
       }
      }
     },
     "localname": "RepurchaseAgreementsWeightedAverageAdvanceRate",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "nymt_ResidentialCollateralizedDebtObligationsAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Collateralized Debt Obligations, At Fair Value [Member]",
        "label": "Residential Collateralized Debt Obligations, At Fair Value [Member]",
        "terseLabel": "Consolidated SLST CDOs"
       }
      }
     },
     "localname": "ResidentialCollateralizedDebtObligationsAtFairValueMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialCollateralizedDebtObligationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential collateralized debt obligations.",
        "label": "Residential Collateralized Debt Obligations [Member]",
        "terseLabel": "Residential collateralized debt obligations"
       }
      }
     },
     "localname": "ResidentialCollateralizedDebtObligationsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoanSecuritizationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loan Securitization [Member]",
        "label": "Residential Loan Securitization [Member]",
        "terseLabel": "Residential Loan Securitizations",
        "verboseLabel": "Residential loan securitizations"
       }
      }
     },
     "localname": "ResidentialLoanSecuritizationMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoanSecuritizationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loan Securitizations",
        "label": "Residential Loan Securitizations [Member]",
        "terseLabel": "Residential loan securitizations"
       }
      }
     },
     "localname": "ResidentialLoanSecuritizationsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoansHeldinSecuritizationTrustsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans Held in Securitization Trusts [Member]",
        "label": "Residential Loans Held in Securitization Trusts [Member]",
        "terseLabel": "Residential Loans Held in Securitization Trusts",
        "verboseLabel": "Residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialLoansHeldinSecuritizationTrustsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans [Member]",
        "label": "Residential Loans [Member]",
        "terseLabel": "Residential loans"
       }
      }
     },
     "localname": "ResidentialLoansMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialLoansandResidentialLoansHeldinSecuritizationTrustsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Loans and Residential Loans Held in Securitization Trusts [Member]",
        "label": "Residential Loans and Residential Loans Held in Securitization Trusts [Member]",
        "terseLabel": "Residential loans and residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialLoansandResidentialLoansHeldinSecuritizationTrustsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansAccumulatedGrossUnrealizedGainLossBeforeTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Accumulated Gross Unrealized Gain(loss), before Tax",
        "label": "Residential Mortgage Loans, Accumulated Gross Unrealized Gain (Loss),Before Tax",
        "terseLabel": "Unrealized (losses) gains"
       }
      }
     },
     "localname": "ResidentialMortgageLoansAccumulatedGrossUnrealizedGainLossBeforeTax",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ResidentialMortgageLoansAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans At Fair Value [Member]",
        "label": "Residential Mortgage Loans At Fair Value [Member]",
        "terseLabel": "Residential loans",
        "verboseLabel": "Residential loans, at fair value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansAtFairValueMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansAtFairValueTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans At Fair Value [Table Text Block]",
        "label": "Residential Mortgage Loans At Fair Value [Table Text Block]",
        "terseLabel": "Schedule of Residential Mortgage Loans At Fair Value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansAtFairValueTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "label": "Residential Mortgage Loans, Fair Value Compared to Unpaid Principal [Table Text Block]",
        "terseLabel": "Schedule of Residential Mortgage Loans, Fair Value Compared to Unpaid Principal"
       }
      }
     },
     "localname": "ResidentialMortgageLoansFairValueComparedtoUnpaidPrincipalTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ResidentialMortgageLoansFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Fair Value Disclosure",
        "label": "Residential Mortgage Loans, Fair Value Disclosure",
        "verboseLabel": "Residential mortgage loans, at fair value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ResidentialMortgageLoansHeldInSecuritizationTrustAtFairValueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans Held In Securitization Trust, At Fair Value [Member]",
        "label": "Residential Mortgage Loans Held In Securitization Trust, At Fair Value [Member]",
        "terseLabel": "Residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialMortgageLoansHeldInSecuritizationTrustAtFairValueMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansHeldInSecuritizationTrustMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of distressed mortgage loans held in a securitized trust.",
        "label": "Residential Mortgage Loans Held In Securitization Trust [Member]",
        "terseLabel": "Residential loans held in securitization trusts"
       }
      }
     },
     "localname": "ResidentialMortgageLoansHeldInSecuritizationTrustMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansMeasurementInput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Measurement Input",
        "label": "Residential Mortgage Loans, Measurement Input",
        "terseLabel": "Residential mortgage loans, measurement input"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMeasurementInput",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "nymt_ResidentialMortgageLoansMeasurementInputLiquidationTimelinePeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Measurement Input, Liquidation Timeline, Period",
        "label": "Residential Mortgage Loans, Measurement Input, Liquidation Timeline, Period",
        "terseLabel": "Residential mortgage loans, measurement input, liquidation timeline (in months)"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMeasurementInputLiquidationTimelinePeriod",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_ResidentialMortgageLoansMeasurementInputRedemptionPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Measurement Input, Redemption Period",
        "label": "Residential Mortgage Loans, Measurement Input, Redemption Period",
        "terseLabel": "Residential mortgage loans, measurement input, redemption period (in months)"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMeasurementInputRedemptionPeriod",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_ResidentialMortgageLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans [Member]",
        "label": "Residential Mortgage Loans [Member]",
        "terseLabel": "Residential loans",
        "verboseLabel": "Residential loans"
       }
      }
     },
     "localname": "ResidentialMortgageLoansMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ResidentialMortgageLoansPremiumDiscountAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans, Premium (Discount) Amount",
        "label": "Residential Mortgage Loans, Premium (Discount) Amount",
        "negatedTerseLabel": "(Discount)/premium"
       }
      }
     },
     "localname": "ResidentialMortgageLoansPremiumDiscountAmount",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_ResidentialMortgageLoansatFairValueTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential Mortgage Loans at Fair Value [Text Block]",
        "label": "Residential Mortgage Loans at Fair Value [Text Block]",
        "terseLabel": "Residential Loans, at Fair Value"
       }
      }
     },
     "localname": "ResidentialMortgageLoansatFairValueTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_RigsbeeAveHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rigsbee Ave Holdings, LLC [Member]",
        "label": "Rigsbee Ave Holdings, LLC [Member]",
        "terseLabel": "Rigsbee Ave Holdings, LLC"
       }
      }
     },
     "localname": "RigsbeeAveHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SabinaMontgomeryHoldingsLLCAndSeriesBAndOakleyShoalsApartmentsLLCAndSeriesAMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sabina Montgomery Holdings LLC And Series B And Oakley Shoals Apartments LLC And Series A [Member]",
        "label": "Sabina Montgomery Holdings LLC And Series B And Oakley Shoals Apartments LLC And Series A [Member]",
        "terseLabel": "Sabina Montgomery Holdings, LLC - Series B and Oakley Shoals Apartments, LLC - Series A (collectively)"
       }
      }
     },
     "localname": "SabinaMontgomeryHoldingsLLCAndSeriesBAndOakleyShoalsApartmentsLLCAndSeriesAMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ScheduleOfClassificationAndCarryingValueOfUnconsolidatedVIEsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Table disclosure of classification and carrying value of unconsolidated VIEs.",
        "label": "Schedule of Classification and Carrying Value of Unconsolidated VIEs [Table Text Block]",
        "terseLabel": "Schedule of Classification and Carrying Value of Unconsolidated VIEs"
       }
      }
     },
     "localname": "ScheduleOfClassificationAndCarryingValueOfUnconsolidatedVIEsTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Components Of Income From Real Estate And Expenses",
        "label": "Schedule Of Components Of Income From Real Estate And Expenses [Table Text Block]",
        "terseLabel": "Schedule Of Components Of Income From Real Estate And Expenses"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeFromRealEstateAndExpensesTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfComponentsOfLeaseIntangiblesNetTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Components of Lease Intangibles, Net",
        "label": "Schedule of Components of Lease Intangibles, Net [Table Text Block]",
        "terseLabel": "Schedule of Components of Lease Intangibles, Net"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfLeaseIntangiblesNetTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Table disclosure of components of realized and unrealized gains and losses to derivatives instruments.",
        "label": "Schedule Of Components Of Realized And Unrealized Gains And Losses To Derivative Instruments [Table Text Block]",
        "terseLabel": "Schedule of Components of Realized and Unrealized Gains and Losses"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfRealizedAndUnrealizedGainsAndLossesToDerivativeInstrumentsTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfPreferredEquityAndMezzanineLoanInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Preferred Equity and Mezzanine Loan Investments",
        "label": "Schedule of Preferred Equity and Mezzanine Loan Investments [Table Text Block]",
        "terseLabel": "Schedule of Preferred Equity and Mezzanine Loan Investments"
       }
      }
     },
     "localname": "ScheduleOfPreferredEquityAndMezzanineLoanInvestmentsTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule Of Repurchase Agreements, Maturities",
        "label": "Schedule Of Repurchase Agreements, Maturities [Table Text Block]",
        "terseLabel": "Schedule Of Repurchase Agreements, Maturities"
       }
      }
     },
     "localname": "ScheduleOfRepurchaseAgreementsMaturitiesTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleOfUnencumberedSecuritiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Unencumbered Securities",
        "label": "Schedule of Unencumbered Securities [Table Text Block]",
        "terseLabel": "Schedule of Unencumbered Securities"
       }
      }
     },
     "localname": "ScheduleOfUnencumberedSecuritiesTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ScheduleofInvestmentsSecuritiesSoldTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of Investments Securities Sold [Table Text Block]",
        "label": "Schedule of Investments Securities Sold [Table Text Block]",
        "terseLabel": "Schedule of Investments Securities Sold"
       }
      }
     },
     "localname": "ScheduleofInvestmentsSecuritiesSoldTableTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_SecuredDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of secured debt.",
        "label": "Secured Debt Fair Value",
        "verboseLabel": "Secured debt, estimated fair value"
       }
      }
     },
     "localname": "SecuredDebtFairValue",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_SeniorConvertibleNotesdue2022Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Senior Convertible Notes due 2022 [Member]",
        "label": "Senior Convertible Notes due 2022 [Member]",
        "terseLabel": "6.25% senior convertible notes due 2022"
       }
      }
     },
     "localname": "SeniorConvertibleNotesdue2022Member",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedTarget": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-Based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Vested Target",
        "label": "Share-Based Compensation Arrangement By Share-based Payment Award, Equity Instruments Other Than Options, Vested Target",
        "negatedTerseLabel": "Vested shares target (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedTarget",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "nymt_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedTermforExpectedVolatilityRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term for Expected Volatility Rate",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term for Expected Volatility Rate",
        "terseLabel": "Fair value, expected term for volatility rate"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsExpectedTermforExpectedVolatilityRate",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "nymt_SingleFamilyEquityOwnershipInterestsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Single-Family Equity Ownership Interests",
        "label": "Single-Family Equity Ownership Interests [Member]",
        "terseLabel": "Single-Family Equity Ownership Interests"
       }
      }
     },
     "localname": "SingleFamilyEquityOwnershipInterestsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SomersetDeerfieldInvestorLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Somerset Deerfield Investor, LLC [Member]",
        "label": "Somerset Deerfield Investor, LLC [Member]",
        "terseLabel": "Somerset Deerfield Investor, LLC"
       }
      }
     },
     "localname": "SomersetDeerfieldInvestorLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SunsetApartmentsPreferredLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sunset Apartments Preferred, LLC",
        "label": "Sunset Apartments Preferred, LLC [Member]",
        "terseLabel": "EHOF-NYMT Sunset Apartments Preferred, LLC"
       }
      }
     },
     "localname": "SunsetApartmentsPreferredLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_SyracuseApartmentsAndTownhomesLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Syracuse Apartments And Townhomes, LLC",
        "label": "Syracuse Apartments And Townhomes, LLC [Member]",
        "terseLabel": "Syracuse Apartments and Townhomes, LLC"
       }
      }
     },
     "localname": "SyracuseApartmentsAndTownhomesLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TaxableREITSubsidiariesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Taxable REIT subsidiaries.",
        "label": "Taxable REIT Subsidiaries [Member]",
        "terseLabel": "Taxable REIT Subsidiaries"
       }
      }
     },
     "localname": "TaxableREITSubsidiariesMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TotalCollateralizedDebtObligationsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Collateralized Debt Obligations",
        "label": "Total Collateralized Debt Obligations [Member]",
        "terseLabel": "Total collateralized debt obligations"
       }
      }
     },
     "localname": "TotalCollateralizedDebtObligationsMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TotalDebtSecuritiesAvailableforSaleCECLandFairValueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Debt Securities, Available for Sale, CECL and Fair Value [Abstract]",
        "label": "Total Debt Securities, Available for Sale, CECL and Fair Value [Abstract]",
        "terseLabel": "Total CECL Securities and Fair Value Option"
       }
      }
     },
     "localname": "TotalDebtSecuritiesAvailableforSaleCECLandFairValueAbstract",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "nymt_TotalResidentialLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total Residential Loans",
        "label": "Total Residential Loans [Member]",
        "terseLabel": "Total residential loans"
       }
      }
     },
     "localname": "TotalResidentialLoansMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_TowersPropertyHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Towers Property Holdings LLC [Member]",
        "label": "Towers Property Holdings LLC [Member]",
        "terseLabel": "Towers Property Holdings, LLC"
       }
      }
     },
     "localname": "TowersPropertyHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_UnderwrittenPublicOfferingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Underwritten Public Offering [Member]",
        "label": "Underwritten Public Offering [Member]",
        "terseLabel": "Underwritten Public Offering"
       }
      }
     },
     "localname": "UnderwrittenPublicOfferingMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_UnfundedCommitmentsForResidentialLoans": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unfunded Commitments For Residential Loans",
        "label": "Unfunded Commitments For Residential Loans",
        "terseLabel": "Unfunded commitments for residential loans"
       }
      }
     },
     "localname": "UnfundedCommitmentsForResidentialLoans",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized Gain (Loss) Loans and Preferred Equity",
        "label": "Unrealized Gain (Loss) Loans and Preferred Equity and Mezzanine Loans",
        "verboseLabel": "Unrealized gains (losses)"
       }
      }
     },
     "localname": "UnrealizedGainLossLoansandPreferredEquityandMezzanineLoans",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UnrealizedGainLossOnRealEstateMortgageLoansNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unrealized Gain (Loss) On Real Estate Mortgage Loans, Net",
        "label": "Unrealized Gain (Loss) On Real Estate Mortgage Loans, Net",
        "terseLabel": "Unrealized (losses) gains, net"
       }
      }
     },
     "localname": "UnrealizedGainLossOnRealEstateMortgageLoansNet",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UnsecuredDebtFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unsecured Debt, Fair Value Disclosure",
        "label": "Unsecured Debt, Fair Value Disclosure",
        "terseLabel": "Senior unsecured notes, estimated fair value"
       }
      }
     },
     "localname": "UnsecuredDebtFairValueDisclosure",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "nymt_UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of special purpose entities and variable interest entities.",
        "label": "Use Of Special Purpose Entities And Variable Interest Entities [Text Block]",
        "terseLabel": "Use of Special Purpose Entities (SPE) and Variable Interest Entities (VIE)"
       }
      }
     },
     "localname": "UseOfSpecialPurposeEntitiesAndVariableInterestEntitiesTextBlock",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIE"
     ],
     "xbrltype": "textBlockItemType"
    },
    "nymt_ValuationTechniqueLiquidationModelMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation Technique, Liquidation Model [Member]",
        "label": "Valuation Technique, Liquidation Model [Member]",
        "terseLabel": "Liquidation model"
       }
      }
     },
     "localname": "ValuationTechniqueLiquidationModelMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "nymt_WalnutCreekPropertiesHoldingsLLCMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Walnut Creek Properties Holdings, LLC [Member]",
        "label": "Walnut Creek Properties Holdings, LLC [Member]",
        "terseLabel": "Walnut Creek Properties Holdings, L.L.C."
       }
      }
     },
     "localname": "WalnutCreekPropertiesHoldingsLLCMember",
     "nsuri": "http://nymtrust.com/20220331",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r121",
      "r248",
      "r252",
      "r257",
      "r412",
      "r413",
      "r420",
      "r421",
      "r498",
      "r663",
      "r687",
      "r700",
      "r701",
      "r702"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by consolidated entity or group of entities.",
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r121",
      "r248",
      "r252",
      "r257",
      "r412",
      "r413",
      "r420",
      "r421",
      "r498",
      "r663",
      "r687",
      "r700",
      "r701",
      "r702"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity or group of entities consolidated into reporting entity.",
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_DirectorMember": {
     "auth_ref": [
      "r183"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Person serving on board of directors.",
        "label": "Director [Member]",
        "terseLabel": "Director"
       }
      }
     },
     "localname": "DirectorMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of investment including named security. Excludes entity that is consolidated.",
        "label": "Investment, Name [Domain]",
        "terseLabel": "Investment, Name [Domain]"
       }
      }
     },
     "localname": "EquityMethodInvesteeNameDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r263",
      "r309",
      "r350",
      "r351",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r539",
      "r609",
      "r611",
      "r667",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum [Member]",
        "terseLabel": "Maximum"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r263",
      "r309",
      "r350",
      "r351",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r539",
      "r609",
      "r611",
      "r667",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum [Member]",
        "terseLabel": "Minimum"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Abstract]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Abstract]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionLoanCategoryAxis": {
     "auth_ref": [
      "r650",
      "r688"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Axis]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionLoanCategoryAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis": {
     "auth_ref": [
      "r650",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r685",
      "r688"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of real estate property.",
        "label": "Real Estate, Type of Property [Axis]",
        "terseLabel": "Real Estate, Type of Property [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateDescriptionTypeOfPropertyAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateFaceAmountOfMortgages": {
     "auth_ref": [
      "r646",
      "r694"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contractual principal due at origination of mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Face Amount of Mortgages",
        "terseLabel": "Principal"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateFaceAmountOfMortgages",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "srt_MortgageLoansOnRealEstateLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Line Items]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate [Line Items]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateLoanCategoryDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Loan category for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Domain]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Loan Category [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateLoanCategoryDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateNamePropertyTypeDomain": {
     "auth_ref": [
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r685",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r695",
      "r696",
      "r698"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Land and any structures permanently fixed to it.",
        "label": "Real Estate [Domain]",
        "terseLabel": "Real Estate [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateNamePropertyTypeDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstateOriginalLoanAmountAxis": {
     "auth_ref": [
      "r649",
      "r686"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by original amount of mortgage loan for investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Amount [Axis]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Amount [Axis]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateOriginalLoanAmountAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_MortgageLoansOnRealEstateOriginalLoanAmountDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Group of similar original loan amounts for investment in real estate mortgage loan by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Loan Amount [Domain]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Original Loan Amount [Domain]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateOriginalLoanAmountDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans": {
     "auth_ref": [
      "r648",
      "r697"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of principal due on delinquent mortgage loan within investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate, Principal Amount of Delinquent Loans",
        "terseLabel": "Principal amount of delinquent loans",
        "verboseLabel": "Unpaid Principal Balance"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstatePrincipalAmountOfDelinquentLoans",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "srt_MortgageLoansOnRealEstateScheduleTable": {
     "auth_ref": [
      "r651",
      "r699"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate Schedule [Table]",
        "terseLabel": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate Schedule [Table]"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateScheduleTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r263",
      "r309",
      "r341",
      "r350",
      "r351",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r539",
      "r609",
      "r611",
      "r667",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Axis]",
        "terseLabel": "Statistical Measurement [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r263",
      "r309",
      "r341",
      "r350",
      "r351",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r539",
      "r609",
      "r611",
      "r667",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Statistical Measurement [Domain]",
        "terseLabel": "Statistical Measurement [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "auth_ref": [
      "r209"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated.",
        "label": "Investment, Name [Axis]",
        "terseLabel": "Investment, Name [Axis]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_SegmentGeographicalDomain": {
     "auth_ref": [
      "r180",
      "r181",
      "r337",
      "r340",
      "r610",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r685",
      "r689",
      "r690",
      "r691",
      "r692",
      "r693",
      "r695",
      "r696",
      "r698"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Geographical area.",
        "label": "Geographical [Domain]",
        "terseLabel": "Geographical [Domain]"
       }
      }
     },
     "localname": "SegmentGeographicalDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_StatementGeographicalAxis": {
     "auth_ref": [
      "r180",
      "r181",
      "r337",
      "r340",
      "r610",
      "r650",
      "r654",
      "r655",
      "r656",
      "r657",
      "r658",
      "r659",
      "r660",
      "r661",
      "r662",
      "r685",
      "r688"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by geographical components.",
        "label": "Geographical [Axis]",
        "terseLabel": "Geographical [Axis]"
       }
      }
     },
     "localname": "StatementGeographicalAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualAxis": {
     "auth_ref": [
      "r183",
      "r497"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by title of individual or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Axis]",
        "terseLabel": "Title of Individual [Axis]"
       }
      }
     },
     "localname": "TitleOfIndividualAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_TitleOfIndividualWithRelationshipToEntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of individual, or nature of relationship to individual or group of individuals.",
        "label": "Title of Individual [Domain]",
        "terseLabel": "Title of Individual [Domain]"
       }
      }
     },
     "localname": "TitleOfIndividualWithRelationshipToEntityDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_WeightedAverageMember": {
     "auth_ref": [
      "r511",
      "r513",
      "r516",
      "r667",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance.",
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average"
       }
      }
     },
     "localname": "WeightedAverageMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_AL": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ALABAMA",
        "terseLabel": "Alabama"
       }
      }
     },
     "localname": "AL",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_CA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "CALIFORNIA",
        "verboseLabel": "California"
       }
      }
     },
     "localname": "CA",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_FL": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "FLORIDA",
        "terseLabel": "Florida"
       }
      }
     },
     "localname": "FL",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_GA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "GEORGIA",
        "terseLabel": "Georgia"
       }
      }
     },
     "localname": "GA",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_IL": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ILLINOIS",
        "terseLabel": "Illinois"
       }
      }
     },
     "localname": "IL",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_LA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "LOUISIANA",
        "terseLabel": "Louisiana"
       }
      }
     },
     "localname": "LA",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_MA": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "MASSACHUSETTS",
        "terseLabel": "Massachusetts"
       }
      }
     },
     "localname": "MA",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_NJ": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NEW JERSEY",
        "terseLabel": "New Jersey"
       }
      }
     },
     "localname": "NJ",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_NY": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "NEW YORK",
        "terseLabel": "New York"
       }
      }
     },
     "localname": "NY",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_OH": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "OHIO",
        "terseLabel": "Ohio"
       }
      }
     },
     "localname": "OH",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_TN": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "TENNESSEE",
        "terseLabel": "Tennessee"
       }
      }
     },
     "localname": "TN",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "stpr_TX": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "TEXAS",
        "terseLabel": "Texas"
       }
      }
     },
     "localname": "TX",
     "nsuri": "http://xbrl.sec.gov/stpr/2021",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]",
        "terseLabel": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis": {
     "auth_ref": [
      "r36"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of receivable.",
        "label": "Receivable Type [Axis]",
        "terseLabel": "Receivable Type [Axis]"
       }
      }
     },
     "localname": "AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments": {
     "auth_ref": [
      "r95"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The sum of the periodic adjustments of the differences between securities' face values and purchase prices that are charged against earnings. This is called accretion if the security was purchased at a discount and amortization if it was purchased at premium. As a noncash item, this element is an adjustment to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Accretion (Amortization) of Discounts and Premiums, Investments",
        "negatedLabel": "Net amortization"
       }
      }
     },
     "localname": "AccretionAmortizationOfDiscountsAndPremiumsInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other.",
        "label": "Accrued Liabilities and Other Liabilities",
        "terseLabel": "Accrued expenses and other liabilities in consolidated multi-family properties"
       }
      }
     },
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedLiabilitiesCurrentAndNoncurrent": {
     "auth_ref": [
      "r556",
      "r596"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of obligations incurred and payable, pertaining to costs that are statutory in nature, are incurred on contractual obligations, or accumulate over time and for which invoices have not yet been received or will not be rendered. Examples include taxes, interest, rent and utilities.",
        "label": "Accrued Liabilities",
        "terseLabel": "Accrued expenses"
       }
      }
     },
     "localname": "AccruedLiabilitiesCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r21",
      "r47",
      "r48",
      "r49",
      "r587",
      "r616",
      "r617"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "terseLabel": "Accumulated other comprehensive (loss) income"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r46",
      "r49",
      "r58",
      "r59",
      "r60",
      "r123",
      "r124",
      "r125",
      "r418",
      "r612",
      "r613",
      "r703"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapital": {
     "auth_ref": [
      "r19",
      "r373",
      "r501"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of excess of issue price over par or stated value of stock and from other transaction involving stock or stockholder. Includes, but is not limited to, additional paid-in capital (APIC) for common and preferred stock.",
        "label": "Additional Paid in Capital",
        "terseLabel": "Additional paid-in capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r370",
      "r371",
      "r372",
      "r453"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Additional Paid-In Capital"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r352",
      "r354",
      "r376",
      "r377"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "APIC, Share-based Payment Arrangement, Increase for Cost Recognition",
        "terseLabel": "Stock based compensation expense, net"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Adjustments to reconcile net (loss) income to net cash provided by operating activities:"
       }
      }
     },
     "localname": "AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r354",
      "r367",
      "r375"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Share-based Payment Arrangement, Expense",
        "terseLabel": "Share-based compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfIntangibleAssets": {
     "auth_ref": [
      "r94",
      "r230",
      "r235"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 3.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate expense charged against earnings to allocate the cost of intangible assets (nonphysical assets not used in production) in a systematic and rational manner to the periods expected to benefit from such assets. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Intangible Assets",
        "terseLabel": "Amortization of lease intangibles related to operating real estate"
       }
      }
     },
     "localname": "AmortizationOfIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "auth_ref": [
      "r193",
      "r342"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
        "label": "Asset-backed Securities [Member]",
        "terseLabel": "ABS"
       }
      }
     },
     "localname": "AssetBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetRetirementObligationDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation Disclosure [Abstract]"
       }
      }
     },
     "localname": "AssetRetirementObligationDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r109",
      "r171",
      "r174",
      "r178",
      "r211",
      "r248",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r412",
      "r420",
      "r478",
      "r499",
      "r501",
      "r547",
      "r583"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "terseLabel": "Total assets",
        "totalLabel": "Total Assets",
        "verboseLabel": "Assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "ASSETS"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets, Fair Value Disclosure",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets, Fair Value Disclosure [Abstract]",
        "terseLabel": "Assets carried at fair value",
        "verboseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsNet": {
     "auth_ref": [
      "r4",
      "r621",
      "r625",
      "r626",
      "r627"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net assets (liabilities).",
        "label": "Net Assets",
        "totalLabel": "Net assets consolidated"
       }
      }
     },
     "localname": "AssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseAxis": {
     "auth_ref": [
      "r119"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by securities or other assets sold under repurchase agreements. Repurchase agreements are agreements under which the transferor (repo party) transfers a security to a transferee (repo counterparty or reverse party) in exchange for cash and concurrently agrees to reacquire that security at a future date for an amount equal to the cash exchanged plus a stipulated interest factor.",
        "label": "Securities or Other Assets Sold under Agreements to Repurchase [Axis]",
        "terseLabel": "Securities or Other Assets Sold under Agreements to Repurchase [Axis]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts": {
     "auth_ref": [
      "r113",
      "r117"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of assets sold under agreements to repurchase when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Carrying Amount",
        "verboseLabel": "Carrying Value of Repurchase Agreements"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseCarryingAmounts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseInterestRate": {
     "auth_ref": [
      "r118"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate on the amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Interest Rate",
        "terseLabel": "Weighted Average Rate"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Assets Sold under Agreements to Repurchase [Line Items]",
        "terseLabel": "Assets Sold under Agreements to Repurchase [Line Items]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain": {
     "auth_ref": [
      "r119",
      "r522"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]",
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis": {
     "auth_ref": [
      "r119",
      "r522"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]",
        "terseLabel": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability": {
     "auth_ref": [
      "r113",
      "r118"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Repurchase Liability",
        "terseLabel": "Repurchase agreements, maturities",
        "verboseLabel": "Outstanding Repurchase Agreements"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseTypeDomain": {
     "auth_ref": [
      "r119"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is the type of such assets (for example, US Treasury Obligations, US Government agency obligations and loans, and so forth). This item may be presented as an element in the table that is disclosed when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under repurchase agreements exceed 10 percent of total assets, as of the most recent balance sheet date.",
        "label": "Assets Sold under Agreements to Repurchase, Type [Domain]",
        "terseLabel": "Assets Sold under Agreements to Repurchase, Type [Domain]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r190"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [
      "r191"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Accumulated Gross Unrealized Loss, before Tax",
        "negatedLabel": "Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss [Abstract]",
        "terseLabel": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss [Abstract]"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Securities, Available-for-Sale, Fair Value to Amortized Cost, after Allowance for Credit Loss [Abstract]",
        "terseLabel": "CECL Securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableforsaleSecuritiesMember": {
     "auth_ref": [
      "r199"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Available-for-sale Securities [Member]",
        "terseLabel": "Available-for-sale Securities"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r355",
      "r369"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r440",
      "r443"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankingAndThriftInterestAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banking and Thrift, Interest [Abstract]"
       }
      }
     },
     "localname": "BankingAndThriftInterestAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CarryingValueOfFederalFundsSoldSecuritiesPurchasedUnderAgreementsToResellAndDepositsPaidForSecuritiesBorrowedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying Value of Federal Funds Sold, Securities Purchased under Agreements to Resell, and Deposits Paid for Securities Borrowed [Abstract]",
        "terseLabel": "Carrying Value of Federal Funds Sold, Securities Purchased under Agreements to Resell, and Deposits Paid for Securities Borrowed [Abstract]"
       }
      }
     },
     "localname": "CarryingValueOfFederalFundsSoldSecuritiesPurchasedUnderAgreementsToResellAndDepositsPaidForSecuritiesBorrowedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_Cash": {
     "auth_ref": [
      "r25",
      "r501",
      "r622",
      "r623"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash",
        "terseLabel": "Cash"
       }
      }
     },
     "localname": "Cash",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAcquiredFromAcquisition": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the acquisition of business during the period (for example, cash that was held by the acquired business).",
        "label": "Cash Acquired from Acquisition",
        "terseLabel": "Cash received from initial consolidation of VIEs"
       }
      }
     },
     "localname": "CashAcquiredFromAcquisition",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r6",
      "r25",
      "r96"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and Cash Equivalents, at Carrying Value",
        "periodEndLabel": "Cash and cash equivalents",
        "terseLabel": "Cash and cash equivalents",
        "verboseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash and Cash Equivalents, Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents, estimated fair value"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents": {
     "auth_ref": [
      "r89",
      "r96",
      "r103"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage. Excludes amount for disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents",
        "periodEndLabel": "Cash, Cash Equivalents and Restricted Cash - End of Period",
        "periodStartLabel": "Cash, Cash Equivalents and Restricted Cash - Beginning of Period",
        "totalLabel": "Total cash, cash equivalents, and restricted cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents [Abstract]",
        "terseLabel": "Cash, Cash Equivalents and Restricted Cash Reconciliation:"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r89",
      "r480"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect",
        "totalLabel": "Net Increase in Cash, Cash Equivalents and Restricted Cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [
      "r106",
      "r109",
      "r139",
      "r142",
      "r147",
      "r150",
      "r152",
      "r160",
      "r161",
      "r162",
      "r211",
      "r248",
      "r252",
      "r253",
      "r254",
      "r257",
      "r258",
      "r307",
      "r308",
      "r312",
      "r316",
      "r478",
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class of Stock [Domain]",
        "terseLabel": "Class of Stock [Domain]"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Class of Stock [Line Items]",
        "terseLabel": "Class of Stock [Line Items]"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralizedDebtObligationsMember": {
     "auth_ref": [
      "r189",
      "r342"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by a pool of assets.",
        "label": "Collateralized Debt Obligations [Member]",
        "terseLabel": "Collateralized Debt Obligations"
       }
      }
     },
     "localname": "CollateralizedDebtObligationsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialMortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r192",
      "r342"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Securities collateralized by commercial real estate mortgage loans.",
        "label": "Commercial Mortgage Backed Securities [Member]",
        "terseLabel": "CMBS"
       }
      }
     },
     "localname": "CommercialMortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r33",
      "r242",
      "r558",
      "r591"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and Contingencies",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]",
        "terseLabel": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r239",
      "r240",
      "r241",
      "r243",
      "r653"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CommitmentsandContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommonStockDividendsPerShareDeclared": {
     "auth_ref": [
      "r332"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends declared during the period for each share of common stock outstanding.",
        "label": "Common Stock, Dividends, Per Share, Declared",
        "terseLabel": "Cash dividend per share (in dollars per share)"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareDeclared",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredCommonStockDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r123",
      "r124",
      "r453"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "verboseLabel": "Common stock, par value (in usd per share)"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r18"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, shares, issued (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r18",
      "r323"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common Stock, Shares, Outstanding",
        "terseLabel": "Common stock, shares outstanding (in shares)"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesSubscriptions": {
     "auth_ref": [
      "r18",
      "r304"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Monetary value of common stock allocated to investors to buy shares of a new issue of common stock before they are offered to the public. When stock is sold on a subscription basis, the issuer does not initially receive the total proceeds. In general, the issuer does not issue the shares to the investor until it receives the entire proceeds.",
        "label": "Common Stock, Value, Subscriptions",
        "terseLabel": "Common stock that may be sold (up to)"
       }
      }
     },
     "localname": "CommonStockSharesSubscriptions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r18",
      "r501"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock, Value, Issued",
        "terseLabel": "Common stock, par value $0.01 per share, 800,000,000 shares authorized, 381,249,031 and 379,405,240 shares issued and outstanding as of March\u00a031, 2022 and December\u00a031, 2021, respectively"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r54",
      "r56",
      "r57",
      "r66",
      "r562",
      "r600"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "totalLabel": "COMPREHENSIVE (LOSS) INCOME ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "auth_ref": [
      "r165",
      "r166",
      "r182",
      "r475",
      "r476",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage.",
        "label": "Concentration Risk Benchmark [Domain]",
        "terseLabel": "Concentration Risk Benchmark [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskBenchmarkDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "auth_ref": [
      "r165",
      "r166",
      "r182",
      "r475",
      "r476",
      "r618",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by benchmark of concentration risk.",
        "label": "Concentration Risk Benchmark [Axis]",
        "terseLabel": "Concentration Risk Benchmark [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "auth_ref": [
      "r165",
      "r166",
      "r182",
      "r475",
      "r476",
      "r618",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender.",
        "label": "Concentration Risk Type [Axis]",
        "terseLabel": "Concentration Risk Type [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Concentration Risk [Line Items]",
        "terseLabel": "Concentration Risk [Line Items]"
       }
      }
     },
     "localname": "ConcentrationRiskLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "auth_ref": [
      "r165",
      "r166",
      "r182",
      "r475",
      "r476"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the \"benchmark\" (or denominator) in the equation, this concept represents the concentration percentage derived from the division.",
        "label": "Concentration Risk, Percentage",
        "terseLabel": "Geographic concentration, percent"
       }
      }
     },
     "localname": "ConcentrationRiskPercentage1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ConcentrationRiskTable": {
     "auth_ref": [
      "r163",
      "r165",
      "r166",
      "r167",
      "r475",
      "r477",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Concentration Risk [Table]",
        "terseLabel": "Concentration Risk [Table]"
       }
      }
     },
     "localname": "ConcentrationRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "auth_ref": [
      "r165",
      "r166",
      "r182",
      "r475",
      "r476",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk as a percentage of some financial balance or benchmark, identifies the type (for example, asset, liability, net assets, geographic, customer, employees, supplier, lender) of the concentration.",
        "label": "Concentration Risk Type [Domain]",
        "terseLabel": "Concentration Risk Type [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConsolidationVariableInterestEntityPolicy": {
     "auth_ref": [
      "r419",
      "r423",
      "r426"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for consolidation to describe the significant judgments and assumptions made in determining whether a variable interest held by the entity requires the variable interest entity to be consolidated and (or) disclose information about its involvement with the variable interest entity; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; and the significant factors considered and judgments made in determining that the power to direct the activities that significantly impact the economic performance of the variable interest entity are shared (as defined).",
        "label": "Consolidation, Variable Interest Entity, Policy [Policy Text Block]",
        "terseLabel": "Principles of Consolidation and Variable Interest Entities"
       }
      }
     },
     "localname": "ConsolidationVariableInterestEntityPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ContractWithCustomerLiability": {
     "auth_ref": [
      "r335",
      "r336",
      "r338"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable.",
        "label": "Contract with Customer, Liability",
        "terseLabel": "Deferred revenue"
       }
      }
     },
     "localname": "ContractWithCustomerLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebt": {
     "auth_ref": [
      "r12",
      "r551",
      "r585"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying amount of debt identified as being convertible into another form of financial instrument (typically the entity's common stock) as of the balance sheet date, which originally required full repayment more than twelve months after issuance or greater than the normal operating cycle of the company.",
        "label": "Convertible Debt",
        "terseLabel": "Convertible notes",
        "verboseLabel": "Convertible notes, carrying value"
       }
      }
     },
     "localname": "ConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebtFairValueDisclosures": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of borrowing which can be exchanged for a specified number of another security at the option of the issuer or the holder, for example, but not limited to, the entity's common stock.",
        "label": "Convertible Debt, Fair Value Disclosures",
        "terseLabel": "Convertible notes, estimated fair value"
       }
      }
     },
     "localname": "ConvertibleDebtFairValueDisclosures",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ConvertibleDebtMember": {
     "auth_ref": [
      "r259",
      "r260",
      "r261",
      "r263",
      "r273",
      "r274",
      "r275",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r292",
      "r293",
      "r294",
      "r295"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Borrowing which can be exchanged for a specified number of another security at the option of the issuer or the holder, for example, but not limited to, the entity's common stock.",
        "label": "Convertible Debt [Member]",
        "terseLabel": "Convertible notes"
       }
      }
     },
     "localname": "ConvertibleDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CurrentIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r110",
      "r392",
      "r399",
      "r401"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) pertaining to taxable income (loss) from continuing operations.",
        "label": "Current Income Tax Expense (Benefit)",
        "terseLabel": "Current income tax expense"
       }
      }
     },
     "localname": "CurrentIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]",
        "terseLabel": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtDisclosureTextBlock": {
     "auth_ref": [
      "r105",
      "r266",
      "r267",
      "r268",
      "r269",
      "r270",
      "r271",
      "r272",
      "r277",
      "r284",
      "r285",
      "r287",
      "r298"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for information about short-term and long-term debt arrangements, which includes amounts of borrowings under each line of credit, note payable, commercial paper issue, bonds indenture, debenture issue, own-share lending arrangements and any other contractual agreement to repay funds, and about the underlying arrangements, rationale for a classification as long-term, including repayment terms, interest rates, collateral provided, restrictions on use of assets and activities, whether or not in compliance with debt covenants, and other matters important to users of the financial statements, such as the effects of refinancing and noncompliance with debt covenants.",
        "label": "Debt Disclosure [Text Block]",
        "terseLabel": "Collateralized Debt Obligations",
        "verboseLabel": "Debt"
       }
      }
     },
     "localname": "DebtDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligations",
      "http://nymtrust.com/role/Debt"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r10",
      "r11",
      "r12",
      "r108",
      "r121",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r267",
      "r273",
      "r274",
      "r275",
      "r276",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r292",
      "r293",
      "r294",
      "r295",
      "r493",
      "r548",
      "r551",
      "r581"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentBasisSpreadOnVariableRate1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage points added to the reference rate to compute the variable rate on the debt instrument.",
        "label": "Debt Instrument, Basis Spread on Variable Rate",
        "terseLabel": "Interest rate, basis spread"
       }
      }
     },
     "localname": "DebtInstrumentBasisSpreadOnVariableRate1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "auth_ref": [
      "r12",
      "r288",
      "r551",
      "r581"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt.",
        "label": "Long-term Debt, Gross",
        "verboseLabel": "Outstanding Mortgage Balance"
       }
      }
     },
     "localname": "DebtInstrumentCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentConvertibleConversionPrice1": {
     "auth_ref": [
      "r262",
      "r291"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The price per share of the conversion feature embedded in the debt instrument.",
        "label": "Debt Instrument, Convertible, Conversion Price",
        "terseLabel": "Conversion price (in dollars per share)"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleConversionPrice1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_DebtInstrumentConvertibleConversionRatio1": {
     "auth_ref": [
      "r31",
      "r262",
      "r324",
      "r328",
      "r330"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio applied to the conversion of debt instrument into equity with equity shares divided by debt principal amount.",
        "label": "Debt Instrument, Convertible, Conversion Ratio",
        "terseLabel": "Conversion ratio"
       }
      }
     },
     "localname": "DebtInstrumentConvertibleConversionRatio1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r260",
      "r292",
      "r293",
      "r491",
      "r493",
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument, Face Amount",
        "netLabel": "Outstanding Face Amount",
        "terseLabel": "Principal value of trust preferred securities",
        "verboseLabel": "Face amount"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateIncreaseDecrease": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Incremental percentage increase (decrease) in the stated rate on a debt instrument.",
        "label": "Debt Instrument, Interest Rate, Increase (Decrease)",
        "terseLabel": "Interest rate increase"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r30",
      "r261"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Debt Instrument, Interest Rate, Stated Percentage",
        "terseLabel": "Interest rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r32",
      "r108",
      "r121",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r267",
      "r273",
      "r274",
      "r275",
      "r276",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r292",
      "r293",
      "r294",
      "r295",
      "r493"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodAxis": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information about timing of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period [Axis]",
        "terseLabel": "Debt Instrument, Redemption, Period [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodDomain": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period as defined under terms of the debt agreement for debt redemption features.",
        "label": "Debt Instrument, Redemption, Period [Domain]",
        "terseLabel": "Debt Instrument, Redemption, Period [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodFourMember": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period four representing fourth most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Four [Member]",
        "terseLabel": "Debt Instrument, Redemption, Period Four"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodFourMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodOneMember": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period one representing most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period One [Member]",
        "terseLabel": "Debt Instrument, Redemption, Period One"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodOneMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodThreeMember": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period three representing third most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Three [Member]",
        "terseLabel": "Debt Instrument, Redemption, Period Three"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodThreeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPeriodTwoMember": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period two representing second most current period of debt redemption features under terms of the debt agreement.",
        "label": "Debt Instrument, Redemption, Period Two [Member]",
        "terseLabel": "Debt Instrument, Redemption, Period Two"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPeriodTwoMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentRedemptionPricePercentage": {
     "auth_ref": [
      "r578"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage price of original principal amount of debt at which debt can be redeemed by the issuer.",
        "label": "Debt Instrument, Redemption Price, Percentage",
        "terseLabel": "Debt instrument, redemption price, percentage"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionPricePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentRedemptionTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of debt instruments or arrangements with redemption features. Includes, but is not limited to, description of debt redemption features, percentage price at which debt can be redeemed by the issuer, and period start and end for debt maturity or redemption.",
        "label": "Debt Instrument Redemption [Table Text Block]",
        "terseLabel": "Schedule of Debt Instrument Redemption"
       }
      }
     },
     "localname": "DebtInstrumentRedemptionTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r32",
      "r108",
      "r121",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r267",
      "r273",
      "r274",
      "r275",
      "r276",
      "r278",
      "r279",
      "r280",
      "r281",
      "r282",
      "r283",
      "r286",
      "r292",
      "r293",
      "r294",
      "r295",
      "r324",
      "r329",
      "r330",
      "r331",
      "r490",
      "r491",
      "r493",
      "r494",
      "r579"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table]",
        "terseLabel": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "auth_ref": [
      "r273",
      "r289",
      "r292",
      "r293",
      "r492"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs.",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "terseLabel": "Discount and deferred charges, net"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease": {
     "auth_ref": [
      "r228"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Allowance for Credit Loss, Period Increase (Decrease)",
        "terseLabel": "Debt securities, allowance for credit loss, period increase (decrease)"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLossPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest": {
     "auth_ref": [
      "r222"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Allowance for Credit Loss, Excluding Accrued Interest",
        "terseLabel": "Allowance for credit loss"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss": {
     "auth_ref": [
      "r222"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amortized cost excluding accrued interest, before allowance for credit loss, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Amortized Cost, Excluding Accrued Interest, before Allowance for Credit Loss",
        "terseLabel": "Amortized Cost"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger": {
     "auth_ref": [
      "r197",
      "r226",
      "r229"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for more than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer",
        "terseLabel": "Greater Than 12 months, Carrying Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [
      "r197",
      "r226"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for 12 months or longer, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "negatedLabel": "Greater Than 12 months, Gross Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months": {
     "auth_ref": [
      "r197",
      "r226",
      "r229"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months",
        "terseLabel": "Less than 12 months, Carrying Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [
      "r197",
      "r226"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in continuous unrealized loss position for less than 12 months, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "negatedLabel": "Less Than 12 months, Gross Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest": {
     "auth_ref": [
      "r222"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-Sale, Excluding Accrued Interest",
        "netLabel": "Investment securities available for sale:",
        "terseLabel": "Fair Value",
        "verboseLabel": "Debt Securities, Available-for-Sale, Excluding Accrued Interest"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleExcludingAccruedInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGain": {
     "auth_ref": [
      "r200"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Realized Gain",
        "terseLabel": "Realized Gains"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedGain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss": {
     "auth_ref": [
      "r200"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Realized Gain (Loss)",
        "totalLabel": "Net Realized Gains (Losses)"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss": {
     "auth_ref": [
      "r200"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of realized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Realized Loss",
        "negatedTerseLabel": "Realized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleRealizedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleTable": {
     "auth_ref": [
      "r202"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale [Table]",
        "terseLabel": "Debt Securities, Available-for-sale [Table]"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition": {
     "auth_ref": [
      "r195",
      "r223",
      "r229"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position without allowance for credit loss.",
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position",
        "totalLabel": "Total, Carrying Value"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPosition",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r196",
      "r224"
     ],
     "calculation": {
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), in unrealized loss position, without allowance for credit loss. Includes beneficial interest in securitized financial asset.",
        "label": "Debt Securities, Available-for-sale, Unrealized Loss Position, Accumulated Loss",
        "negatedTotalLabel": "Total Gross Unrealized Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtWeightedAverageInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average interest rate of debt outstanding.",
        "label": "Debt, Weighted Average Interest Rate",
        "terseLabel": "Weighted average interest rate"
       }
      }
     },
     "localname": "DebtWeightedAverageInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Costs, Capitalized, Prepaid, and Other Assets Disclosure [Abstract]"
       }
      }
     },
     "localname": "DeferredCostsCapitalizedPrepaidAndOtherAssetsDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredFinanceCostsNet": {
     "auth_ref": [
      "r28",
      "r273",
      "r492"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs.",
        "label": "Debt Issuance Costs, Net",
        "negatedLabel": "Net Deferred Finance Cost",
        "terseLabel": "Deferred loan fees, net"
       }
      }
     },
     "localname": "DeferredFinanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r94",
      "r110",
      "r393",
      "r399",
      "r400",
      "r401"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred Income Tax Expense (Benefit)",
        "terseLabel": "Deferred income tax benefit"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r14",
      "r15",
      "r383",
      "r549",
      "r580"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "terseLabel": "Deferred tax liabilities",
        "totalLabel": "Total deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsCapitalLossCarryforwards": {
     "auth_ref": [
      "r390",
      "r391"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible capital loss carryforwards.",
        "label": "Deferred Tax Assets, Capital Loss Carryforwards",
        "terseLabel": "Capital loss carryover"
       }
      }
     },
     "localname": "DeferredTaxAssetsCapitalLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "auth_ref": [
      "r384"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Deferred Tax Assets, Gross",
        "totalLabel": "Total deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGrossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Assets, Gross [Abstract]",
        "terseLabel": "Deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGrossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxAssetsLiabilitiesNet": {
     "auth_ref": [
      "r386"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 9.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting.",
        "label": "Deferred Tax Assets, Net",
        "terseLabel": "Deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "auth_ref": [
      "r390",
      "r391"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards.",
        "label": "Deferred Tax Assets, Operating Loss Carryforwards",
        "terseLabel": "Net operating loss carryforward"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "auth_ref": [
      "r390",
      "r391"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other.",
        "label": "Deferred Tax Assets, Other",
        "terseLabel": "GAAP/Tax basis differences"
       }
      }
     },
     "localname": "DeferredTaxAssetsOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r385"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Deferred Tax Assets, Valuation Allowance",
        "negatedLabel": "Valuation allowance"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilities": {
     "auth_ref": [
      "r379",
      "r386"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting.",
        "label": "Deferred Tax Liabilities, Net",
        "negatedTotalLabel": "Total net deferred tax liability"
       }
      }
     },
     "localname": "DeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Tax Liabilities, Gross [Abstract]",
        "terseLabel": "Deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "auth_ref": [
      "r390",
      "r391"
     ],
     "calculation": {
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other.",
        "label": "Deferred Tax Liabilities, Other",
        "terseLabel": "GAAP/Tax basis differences"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesDeferredTaxAssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepreciationAmortizationAndAccretionNet": {
     "auth_ref": [
      "r94"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 1.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate net amount of depreciation, amortization, and accretion recognized during an accounting period. As a noncash item, the net amount is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Depreciation, Amortization and Accretion, Net",
        "verboseLabel": "Depreciation expense on operating real estate"
       }
      }
     },
     "localname": "DepreciationAmortizationAndAccretionNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetNumberOfInstrumentsHeld": {
     "auth_ref": [
      "r436",
      "r437"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of derivative instruments of a particular derivative asset or group of derivative assets held by the entity.",
        "label": "Derivative Asset, Number of Instruments Held",
        "terseLabel": "Derivative asset, number of instruments held"
       }
      }
     },
     "localname": "DerivativeAssetNumberOfInstrumentsHeld",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract [Domain]"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r43",
      "r441",
      "r442",
      "r445",
      "r448"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r452",
      "r456"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Derivative Instruments and Hedging Activities"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Line Items]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Line Items]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about derivatives and hedging activities.",
        "label": "Derivative Instruments and Hedging Activities Disclosures [Table]",
        "terseLabel": "Derivative Instruments and Hedging Activities Disclosures [Table]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilityNumberOfInstrumentsHeld": {
     "auth_ref": [
      "r436",
      "r437"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of derivative instruments of a particular derivative liability or group of derivative liabilities held by the entity.",
        "label": "Derivative Liability, Number of Instruments Held",
        "terseLabel": "Derivative liability, number of instruments held"
       }
      }
     },
     "localname": "DerivativeLiabilityNumberOfInstrumentsHeld",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesNarrativeDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r378"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-based Payment Arrangement [Text Block]",
        "terseLabel": "Stock Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share-based Payment Arrangement [Abstract]",
        "terseLabel": "Share-based Payment Arrangement [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discontinued Operations and Disposal Groups [Abstract]"
       }
      }
     },
     "localname": "DiscontinuedOperationsAndDisposalGroupsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsCommonStockCash": {
     "auth_ref": [
      "r332"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash.",
        "label": "Dividends, Common Stock, Cash",
        "negatedLabel": "Dividends declared on common stock"
       }
      }
     },
     "localname": "DividendsCommonStockCash",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsDeclaredTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information related to dividends declared, including paid and unpaid dividends.",
        "label": "Dividends Declared [Table Text Block]",
        "terseLabel": "Schedule of Dividends Declared"
       }
      }
     },
     "localname": "DividendsDeclaredTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendsPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r11",
      "r13",
      "r550",
      "r584"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of dividends declared but unpaid on equity securities issued by the entity and outstanding.",
        "label": "Dividends Payable",
        "terseLabel": "Dividends and dividend equivalents payable",
        "verboseLabel": "Dividends declared on stock to be paid in subsequent period"
       }
      }
     },
     "localname": "DividendsPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPayableLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Dividends Payable [Line Items]",
        "terseLabel": "Dividends Payable [Line Items]"
       }
      }
     },
     "localname": "DividendsPayableLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsPayableTable": {
     "auth_ref": [
      "r100"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table that contains information regarding dividends that have been declared but not paid as of the financial reporting date. This information may contain the amount, amount per share, declared date, and date to be paid.",
        "label": "Dividends Payable [Table]",
        "terseLabel": "Dividends Payable [Table]"
       }
      }
     },
     "localname": "DividendsPayableTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsPreferredStockCash": {
     "auth_ref": [
      "r332",
      "r576"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid preferred stock dividends declared with the form of settlement in cash.",
        "label": "Dividends, Preferred Stock, Cash",
        "negatedLabel": "Dividends declared on preferred stock"
       }
      }
     },
     "localname": "DividendsPreferredStockCash",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsShareBasedCompensation": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid cash, stock, and paid-in-kind dividends declared for award under share-based payment arrangement.",
        "label": "Dividend, Share-based Payment Arrangement",
        "negatedTerseLabel": "Dividends attributable to dividend equivalents"
       }
      }
     },
     "localname": "DividendsShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Earnings Per Share [Abstract]"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r67",
      "r128",
      "r129",
      "r130",
      "r131",
      "r132",
      "r136",
      "r139",
      "r150",
      "r151",
      "r152",
      "r156",
      "r157",
      "r454",
      "r455",
      "r563",
      "r601"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "verboseLabel": "Basic (loss) earnings per common share (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Basic [Abstract]",
        "terseLabel": "Basic (Loss) Earnings per Common Share:"
       }
      }
     },
     "localname": "EarningsPerShareBasicAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r67",
      "r128",
      "r129",
      "r130",
      "r131",
      "r132",
      "r139",
      "r150",
      "r151",
      "r152",
      "r156",
      "r157",
      "r454",
      "r455",
      "r563",
      "r601"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted (loss) earnings per common share (in dollars per share)"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDilutedAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings Per Share, Diluted [Abstract]",
        "terseLabel": "Diluted (Loss) Earnings per Common Share:"
       }
      }
     },
     "localname": "EarningsPerShareDilutedAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareDilutedLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items]",
        "terseLabel": "Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Line Items]"
       }
      }
     },
     "localname": "EarningsPerShareDilutedLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r153",
      "r154",
      "r155",
      "r158"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "terseLabel": "(Loss) Earnings Per Common Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized": {
     "auth_ref": [
      "r368"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost not yet recognized for nonvested award under share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Amount",
        "terseLabel": "Unrecognized compensation cost"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1": {
     "auth_ref": [
      "r368"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition",
        "terseLabel": "Unrecognized compensation cost, period for recognition"
       }
      }
     },
     "localname": "EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]",
        "terseLabel": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r0",
      "r58",
      "r59",
      "r60",
      "r123",
      "r124",
      "r125",
      "r127",
      "r133",
      "r135",
      "r159",
      "r214",
      "r323",
      "r332",
      "r370",
      "r371",
      "r372",
      "r395",
      "r396",
      "r453",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r487",
      "r612",
      "r613",
      "r614",
      "r703"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentDividendsOrDistributions": {
     "auth_ref": [
      "r63",
      "r88",
      "r94",
      "r597"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities.",
        "label": "Proceeds from Equity Method Investment, Distribution",
        "terseLabel": "Distributions of income from preferred equity, mezzanine loan and equity investments"
       }
      }
     },
     "localname": "EquityMethodInvestmentDividendsOrDistributions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis": {
     "auth_ref": [
      "r3",
      "r109",
      "r211",
      "r478"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by nonconsolidated equity method investee. Excludes information consolidated by reporting entity.",
        "label": "Equity Method Investment, Nonconsolidated Investee [Axis]",
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee [Axis]"
       }
      }
     },
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain": {
     "auth_ref": [
      "r3",
      "r109",
      "r211",
      "r478"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nonconsolidated equity method investee. Excludes information consolidated by reporting entity.",
        "label": "Equity Method Investment, Nonconsolidated Investee [Domain]",
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee [Domain]"
       }
      }
     },
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember": {
     "auth_ref": [
      "r3",
      "r109",
      "r211",
      "r478"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nonconsolidated equity method investee or group of nonconsolidated investees. Excludes information consolidated by reporting entity.",
        "label": "Equity Method Investment, Nonconsolidated Investee or Group of Investees [Member]",
        "terseLabel": "Equity Method Investment, Nonconsolidated Investee or Group of Investees"
       }
      }
     },
     "localname": "EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "auth_ref": [
      "r209"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting.",
        "label": "Equity Method Investment, Ownership Percentage",
        "terseLabel": "Ownership Interest"
       }
      }
     },
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EquityMethodInvestments": {
     "auth_ref": [
      "r26",
      "r172",
      "r208"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized.",
        "label": "Equity Method Investments",
        "netLabel": "Equity Investments, carrying value",
        "verboseLabel": "Equity investments, at fair value"
       }
      }
     },
     "localname": "EquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsAndJointVenturesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Joint Ventures [Abstract]",
        "terseLabel": "Equity Method Investments and Joint Ventures [Abstract]"
       }
      }
     },
     "localname": "EquityMethodInvestmentsAndJointVenturesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityMethodInvestmentsDisclosureTextBlock": {
     "auth_ref": [
      "r213"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for equity method investments and joint ventures. Equity method investments are investments that give the investor the ability to exercise significant influence over the operating and financial policies of an investee. Joint ventures are entities owned and operated by a small group of businesses as a separate and specific business or project for the mutual benefit of the members of the group.",
        "label": "Equity Method Investments and Joint Ventures Disclosure [Text Block]",
        "terseLabel": "Equity Investments, at Fair Value"
       }
      }
     },
     "localname": "EquityMethodInvestmentsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EquityMethodInvestmentsFairValueDisclosure": {
     "auth_ref": [
      "r207"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of investments accounted under the equity method.",
        "label": "Equity Method Investments, Fair Value Disclosure",
        "terseLabel": "Equity investments",
        "verboseLabel": "Equity Investment, estimated fair value"
       }
      }
     },
     "localname": "EquityMethodInvestmentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsMember": {
     "auth_ref": [
      "r206"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment in the stock of an investee which is adjusted for the investor's share of the earnings or losses of the investee after the date of acquisition.",
        "label": "Equity Method Investments [Member]",
        "netLabel": "Equity investments",
        "terseLabel": "Equity investments"
       }
      }
     },
     "localname": "EquityMethodInvestmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "auth_ref": [
      "r212"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information.",
        "label": "Equity Method Investments [Table Text Block]",
        "terseLabel": "Schedule of Investments in Unconsolidated Entities"
       }
      }
     },
     "localname": "EquityMethodInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValuesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ExternalCreditRatingByGroupingAxis": {
     "auth_ref": [
      "r185",
      "r220",
      "r245",
      "r451"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by external rating classified as investment grade or non investment grade.",
        "label": "External Credit Rating by Grouping [Axis]",
        "terseLabel": "External Credit Rating by Grouping [Axis]"
       }
      }
     },
     "localname": "ExternalCreditRatingByGroupingAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ExternalCreditRatingByGroupingDomain": {
     "auth_ref": [
      "r244",
      "r450"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "External credit rating classified as investment grade or non-investment grade.",
        "label": "External Credit Rating by Grouping [Domain]",
        "terseLabel": "External Credit Rating by Grouping [Domain]"
       }
      }
     },
     "localname": "ExternalCreditRatingByGroupingDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExtinguishmentOfDebtAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount of debt extinguished.",
        "label": "Extinguishment of Debt, Amount",
        "terseLabel": "Extinguishment of debt, amount"
       }
      }
     },
     "localname": "ExtinguishmentOfDebtAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]",
        "terseLabel": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r457",
      "r458",
      "r459",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value, Recurring and Nonrecurring [Table]",
        "terseLabel": "Fair Value, Recurring and Nonrecurring [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Measurement Inputs and Valuation Techniques [Table Text Block]",
        "terseLabel": "Schedule of Quantitative Information Regarding Significant and Unobservable Inputs used in Valuation of Level 3 Assets and Liabilities"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Assets and Liabilities Measured on Recurring Basis, Gain (Loss) Included in Earnings [Abstract]",
        "terseLabel": "Total (losses)/gains (realized/unrealized)",
        "verboseLabel": "Total gains (realized/unrealized)"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock": {
     "auth_ref": [
      "r464",
      "r467"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amount of gains or losses for the period included in earnings or resulted in a change to net assets, have arisen from the use of significant unobservable inputs (level 3) to measure the fair value of assets, liabilities, and financial instruments classified in shareholders' equity.",
        "label": "Fair Value, Measured on Recurring Basis, Gain (Loss) Included in Earnings [Table Text Block]",
        "terseLabel": "Schedule of Changes in Unrealized Gains (Losses) Included in Earnings for Level 3 Assets and Liabilities"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r467"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3) and still held.",
        "label": "Fair Value, Asset, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Unrealized gains (losses)"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r463"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class [Domain]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r463",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of assets using significant unobservable inputs (level 3). Such reconciliation, separately presenting changes during the period, at a minimum, may include, but is not limited to: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income, and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]",
        "terseLabel": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r463",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Changes in Valuation of Level 3 Assets"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r457",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class [Axis]"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r457",
      "r473",
      "r474"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value, by Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r457",
      "r473"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Schedule of Assets and Liabilities of Consolidated VIE's",
        "verboseLabel": "Schedule of Carrying Value and Estimated Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r275",
      "r292",
      "r293",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r458",
      "r508",
      "r509",
      "r510"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByLiabilityClassAxis": {
     "auth_ref": [
      "r468",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by class of liability.",
        "label": "Liability Class [Axis]",
        "terseLabel": "Liability Class [Axis]"
       }
      }
     },
     "localname": "FairValueByLiabilityClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r457",
      "r458",
      "r461",
      "r462",
      "r470"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]",
        "terseLabel": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r468"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r275",
      "r342",
      "r343",
      "r348",
      "r349",
      "r458",
      "r508"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Level 1"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r275",
      "r292",
      "r293",
      "r342",
      "r343",
      "r348",
      "r349",
      "r458",
      "r509"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Level 2"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r275",
      "r292",
      "r293",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r458",
      "r510"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Level 3"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r467"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3) and still held.",
        "label": "Fair Value, Liability, Recurring Basis, Still Held, Unrealized Gain (Loss)",
        "terseLabel": "Unrealized gains (losses)"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations": {
     "auth_ref": [
      "r457",
      "r458"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of subordinated debt obligations including, but not limited to, subordinated loan, subordinated bond, subordinated debenture or junior debt.",
        "label": "Subordinated Debt Obligations, Fair Value Disclosure",
        "terseLabel": "Subordinated debentures, estimated fair value"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain": {
     "auth_ref": [
      "r463"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents classes of liabilities measured and disclosed at fair value.",
        "label": "Fair Value by Liability Class [Domain]",
        "terseLabel": "Fair Value by Liability Class [Domain]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]",
        "terseLabel": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r463",
      "r469"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of liabilities using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets), and gains or losses recognized in other comprehensive income (loss) and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs) by class of liability.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Changes in Valuation of Level 3 Liabilities"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Measurement Frequency [Domain]",
        "terseLabel": "Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "auth_ref": [
      "r464"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in earnings"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchases of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases",
        "terseLabel": "Purchases"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchases",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "negatedLabel": "Sales"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlement of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Settlements",
        "negatedLabel": "Paydowns/Distributions"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3": {
     "auth_ref": [
      "r466"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as an asset out of level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers out of Level 3",
        "negatedLabel": "Transfers out"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersOutOfLevel3",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r463"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "periodEndLabel": "Balance at the end of period",
        "periodStartLabel": "Balance at beginning of period"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings": {
     "auth_ref": [
      "r464"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from liability measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in earnings"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityGainLossIncludedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlements of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements",
        "negatedLabel": "Paydowns"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySettlements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue": {
     "auth_ref": [
      "r463"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as a liability measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability Value",
        "periodEndLabel": "Balance at the end of period",
        "periodStartLabel": "Balance at beginning of period"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r275",
      "r292",
      "r293",
      "r342",
      "r343",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r508",
      "r509",
      "r510"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r468",
      "r470"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Recurring [Member]",
        "terseLabel": "Fair Value, Measurements, Recurring"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "auth_ref": [
      "r471",
      "r472"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments.",
        "label": "Fair Value of Financial Instruments, Policy [Policy Text Block]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueOptionChangesInFairValueGainLoss1": {
     "auth_ref": [
      "r479"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For each line item in the statement of financial position, the amounts of gains and losses from fair value changes included in earnings.",
        "label": "Fair Value, Option, Changes in Fair Value, Gain (Loss)",
        "terseLabel": "Change in fair value, gain (loss)"
       }
      }
     },
     "localname": "FairValueOptionChangesInFairValueGainLoss1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionPartialElectionDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Option, Partial Election Disclosures [Abstract]",
        "terseLabel": "Fair Value Option"
       }
      }
     },
     "localname": "FairValueOptionPartialElectionDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r193",
      "r194",
      "r203",
      "r204",
      "r205",
      "r216",
      "r217",
      "r218",
      "r219",
      "r220",
      "r225",
      "r227",
      "r228",
      "r229",
      "r286",
      "r321",
      "r452",
      "r505",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r521",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Assets, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial Assets:"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments, Financial Liabilities, Balance Sheet Groupings [Abstract]",
        "terseLabel": "Financial Liabilities:"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue": {
     "auth_ref": [
      "r543"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value as of the balance sheet date of firm holdings in mortgages, mortgage backed securities (investment instruments that represent ownership of an undivided interest in a group of mortgages, where principal and interest from the individual mortgages are used to pay investors' principal and interest on the mortgage backed security) and asset-backed securities that are primarily paid from the cash flows of a discrete pool of receivables or other financial assets (such as credit-card receivables), either fixed or revolving, that by their terms convert into cash within a finite time period. Includes both pledged (to counterparties as collateral for financing transactions) and unpledged holdings.",
        "label": "Financial Instruments, Owned, Mortgages, Mortgage-backed and Asset-backed Securities, at Fair Value",
        "terseLabel": "Residential loans, at fair value",
        "verboseLabel": "Residential loans"
       }
      }
     },
     "localname": "FinancialInstrumentsOwnedMortgagesMortgageBackedAndAssetBackedSecuritiesAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableSignificantPurchases": {
     "auth_ref": [
      "r184",
      "r215"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase from purchase of financing receivable.",
        "label": "Financing Receivable, Purchase",
        "terseLabel": "Purchase of residential loans"
       }
      }
     },
     "localname": "FinancingReceivableSignificantPurchases",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r221"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financial Asset, Equal to or Greater than 90 Days Past Due [Member]",
        "netLabel": "90 days or greater delinquent",
        "terseLabel": "90 Days or greater past due",
        "verboseLabel": "Greater than 90 days past due"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r186",
      "r218",
      "r221"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by period in which financial asset is past due or not past due.",
        "label": "Financial Asset, Aging [Axis]",
        "terseLabel": "Financial Asset, Period Past Due [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [
      "r186",
      "r218",
      "r221"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period in which financial asset is past due or not past due. For past due, element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less than [high end numeric value] [date measure] Past Due [Member] formats.",
        "label": "Financial Asset, Aging [Domain]",
        "terseLabel": "Financial Asset, Period Past Due [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetAcquiredInPlaceLeases": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the amount of value allocated by a lessor (acquirer) to lease agreements which exist at acquisition of a leased property. Such amount may include the value assigned to existing tenant relationships and excludes the market adjustment component of the value assigned for above or below-market leases acquired.",
        "label": "Finite-Lived Intangible Asset, Acquired-in-Place Leases",
        "terseLabel": "Lease intangible"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetAcquiredInPlaceLeases",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "auth_ref": [
      "r234"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "negatedLabel": "Accumulated amortization"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "auth_ref": [
      "r231",
      "r232",
      "r234",
      "r236",
      "r541",
      "r542"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by major type or class of finite-lived intangible assets.",
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "terseLabel": "Finite-Lived Intangible Assets by Major Class [Axis]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "auth_ref": [
      "r234",
      "r542"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Gross",
        "terseLabel": "Lease intangibles"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "auth_ref": [
      "r231",
      "r233"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company.",
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name [Domain]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsNet": {
     "auth_ref": [
      "r234",
      "r541"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Net",
        "terseLabel": "Lease intangibles, net"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FixturesAndEquipmentGross": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depreciation of fixtures and equipment. Includes, but is not limited to, machinery, equipment, and engines.",
        "label": "Fixtures and Equipment, Gross",
        "terseLabel": "Furniture, fixture and equipment"
       }
      }
     },
     "localname": "FixturesAndEquipmentGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfDerivatives": {
     "auth_ref": [
      "r94",
      "r567"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the book value and the sale price of options, swaps, futures, forward contracts, and other derivative instruments. This element refers to the gain (loss) included in earnings.",
        "label": "Gain (Loss) on Sale of Derivatives",
        "terseLabel": "Realized Gains (Losses)"
       }
      }
     },
     "localname": "GainLossOnSaleOfDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfMortgageLoans": {
     "auth_ref": [
      "r94",
      "r606",
      "r607",
      "r608"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gains (losses) included in earnings that represent the difference between the sale price and the carrying value of loans made to finance real estate acquisitions. This element refers to the gain (loss) and not to the cash proceeds of the sale. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method.",
        "label": "Gain (Loss) on Sale of Mortgage Loans",
        "terseLabel": "Realized gain on sale of residential loans"
       }
      }
     },
     "localname": "GainLossOnSaleOfMortgageLoans",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfOtherInvestments": {
     "auth_ref": [
      "r94"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) included in earnings for investments classified as other.",
        "label": "Gain (Loss) on Sale of Other Investments",
        "negatedLabel": "Realized gains, net",
        "terseLabel": "Realized gains, net"
       }
      }
     },
     "localname": "GainLossOnSaleOfOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfProperties": {
     "auth_ref": [
      "r94",
      "r237",
      "r238"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the carrying value and the sale price of real estate or properties that were intended to be sold or held for capital appreciation or rental income. This element refers to the gain (loss) included in earnings and not to the cash proceeds of the sale. This element is a noncash adjustment to net income when calculating net cash generated by operating activities using the indirect method.",
        "label": "Gain (Loss) on Sale of Properties",
        "negatedTerseLabel": "Gain on sale of real estate held for sale"
       }
      }
     },
     "localname": "GainLossOnSaleOfProperties",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSalesOfLoansNet": {
     "auth_ref": [
      "r94",
      "r567",
      "r604"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net gain (loss) resulting from a sale of loans, including adjustments to record loans classified as held-for-sale at the lower-of-cost-or-market and fair value adjustments to loan held for investment purposes.",
        "label": "Gain (Loss) on Sales of Loans, Net",
        "terseLabel": "Sale generated a net gain"
       }
      }
     },
     "localname": "GainLossOnSalesOfLoansNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainsLossesOnExtinguishmentOfDebt": {
     "auth_ref": [
      "r94",
      "r296",
      "r297"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity.",
        "label": "Gain (Loss) on Extinguishment of Debt",
        "negatedTerseLabel": "Loss on extinguishment of mortgages payable on real estate",
        "terseLabel": "Loss on extinguishment of mortgages payable on real estate"
       }
      }
     },
     "localname": "GainsLossesOnExtinguishmentOfDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpense": {
     "auth_ref": [
      "r70"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate total of expenses of managing and administering the affairs of an entity, including affiliates of the reporting entity, which are not directly or indirectly associated with the manufacture, sale or creation of a product or product line.",
        "label": "General and Administrative Expense",
        "terseLabel": "General and administrative expenses"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GeneralAndAdministrativeExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "General and Administrative Expense [Abstract]",
        "terseLabel": "GENERAL, ADMINISTRATIVE AND OPERATING EXPENSES:"
       }
      }
     },
     "localname": "GeneralAndAdministrativeExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_GeographicConcentrationRiskMember": {
     "auth_ref": [
      "r164",
      "r652"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the percentage that a specified dollar value on the balance sheet or income statement in the period from one or more specified geographic areas is to a corresponding consolidated, segment, or product line amount. Risk is the materially adverse effects of economic decline or antagonistic political actions resulting in loss of assets, sales volume, labor supply, or source of materials and supplies in a US state or a specified country, continent, or region such as EMEA (Europe, Middle East, Africa).",
        "label": "Geographic Concentration Risk [Member]",
        "terseLabel": "Geographic Concentration Risk"
       }
      }
     },
     "localname": "GeographicConcentrationRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueGeographicConcentrationRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r439",
      "r449"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation [Axis]"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r439"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation [Domain]"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r109",
      "r126",
      "r171",
      "r173",
      "r176",
      "r177",
      "r179",
      "r211",
      "r248",
      "r249",
      "r250",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r410",
      "r455",
      "r478"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of income (loss) from continuing operations including portion attributable to the noncontrolling interest.",
        "label": "Income (Loss) from Continuing Operations, Net of Tax, Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net (loss) income",
        "totalLabel": "NET (LOSS) INCOME",
        "verboseLabel": "Other loss"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "auth_ref": [
      "r63",
      "r94",
      "r169",
      "r208",
      "r559",
      "r597"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss).",
        "label": "Income (Loss) from Equity Method Investments",
        "terseLabel": "Income from equity investments"
       }
      }
     },
     "localname": "IncomeLossFromEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]",
        "terseLabel": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]",
        "terseLabel": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r111",
      "r381",
      "r382",
      "r387",
      "r397",
      "r402",
      "r404",
      "r405",
      "r406"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r112",
      "r134",
      "r135",
      "r170",
      "r380",
      "r398",
      "r403",
      "r602"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": -1.0
      },
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "totalLabel": "Total income tax (benefit) provision",
        "verboseLabel": "Income tax (benefit) expense"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r91",
      "r99"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income.",
        "label": "Income Taxes Paid",
        "terseLabel": "Cash paid for income taxes"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet": {
     "auth_ref": [
      "r93"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in operating assets after deduction of operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Operating Assets and Liabilities, Net",
        "negatedTerseLabel": "Changes in operating assets and liabilities"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherOperatingCapitalNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Increase (Decrease) in Stockholders' Equity [Roll Forward]",
        "terseLabel": "Increase (Decrease) in Stockholders' Equity [Roll Forward]"
       }
      }
     },
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncrementalCommonSharesAttributableToEquityUnitPurchaseAgreements": {
     "auth_ref": [
      "r140",
      "r141",
      "r152"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Additional shares included in the calculation of diluted EPS as a result of the potentially dilutive effect of equity unit purchase agreements using the treasury stock method.",
        "label": "Incremental Common Shares Attributable to Dilutive Effect of Equity Unit Purchase Agreements",
        "terseLabel": "Net effect of assumed PSUs/RSUs vested (in shares)"
       }
      }
     },
     "localname": "IncrementalCommonSharesAttributableToEquityUnitPurchaseAgreements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_InformationByCategoryOfDebtSecurityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of debt security, either available-for-sale or held-to-maturity.",
        "label": "Debt Security Category [Axis]",
        "terseLabel": "Debt Security Category [Axis]"
       }
      }
     },
     "localname": "InformationByCategoryOfDebtSecurityAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r565"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0
      },
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of interest and dividend income, including any amortization and accretion (as applicable) of discounts and premiums, earned from (1) loans and leases whether held-for-sale or held-in-portfolio; (2) investment securities; (3) federal funds sold; (4) securities purchased under agreements to resell; (5) investments in banker's acceptances, commercial paper, or certificates of deposit; (6) dividend income; or (7) other investments not otherwise specified herein.",
        "label": "Interest and Dividend Income, Operating",
        "terseLabel": "Interest income",
        "totalLabel": "Interest income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating dividend and interest income, including amortization and accretion of premiums and discounts, on securities.",
        "label": "Interest and Dividend Income, Securities, Operating",
        "verboseLabel": "Investment securities available for sale"
       }
      }
     },
     "localname": "InterestAndDividendIncomeSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndOtherIncome": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of interest income and other income recognized during the period. Included in this element is interest derived from investments in debt securities, cash and cash equivalents, and other investments which reflect the time value of money or transactions in which the payments are for the use or forbearance of money and other income from ancillary business-related activities (that is, excluding major activities considered part of the normal operations of the business).",
        "label": "Interest and Other Income",
        "terseLabel": "Interest income"
       }
      }
     },
     "localname": "InterestAndOtherIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r62",
      "r168",
      "r489",
      "r492",
      "r573"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0
      },
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "terseLabel": "Interest expense",
        "totalLabel": "Interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseBorrowings": {
     "auth_ref": [
      "r571"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all borrowings.",
        "label": "Interest Expense, Borrowings",
        "terseLabel": "Interest expense",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "InterestExpenseBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseMediumTermNotes": {
     "auth_ref": [
      "r572"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense on medium-Term notes.",
        "label": "Interest Expense, Medium-term Notes",
        "terseLabel": "Senior unsecured notes"
       }
      }
     },
     "localname": "InterestExpenseMediumTermNotes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseOther": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      },
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 4.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest expense classified as other.",
        "label": "Interest Expense, Other",
        "terseLabel": "Mortgages payable on real estate"
       }
      }
     },
     "localname": "InterestExpenseOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseSubordinatedNotesAndDebentures": {
     "auth_ref": [
      "r572"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest expense incurred during the reporting period on subordinated notes and debentures. Includes amortization of expenses incurred in the issuance of subordinated notes and debentures.",
        "label": "Interest Expense, Subordinated Notes and Debentures",
        "terseLabel": "Subordinated debentures"
       }
      }
     },
     "localname": "InterestExpenseSubordinatedNotesAndDebentures",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of interest income and expense, including, but not limited to, interest income and expense from investments, loans, and securities.",
        "label": "Interest Income and Interest Expense Disclosure [Table Text Block]",
        "terseLabel": "Components of Interest Income and Interest Expense",
        "verboseLabel": "Schedule of Interest Expense from Convertible Debt"
       }
      }
     },
     "localname": "InterestIncomeAndInterestExpenseDisclosureTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtTables",
      "http://nymtrust.com/role/NetInterestIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InterestIncomeAndInterestExpenseDisclosureTextBlock": {
     "auth_ref": [
      "r564"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for interest income and interest expense for enterprises that derive a significant portion of their revenue from interest collected on investments, loans, and securities.",
        "label": "Interest Income and Interest Expense Disclosure [Text Block]",
        "terseLabel": "Net Interest Income"
       }
      }
     },
     "localname": "InterestIncomeAndInterestExpenseDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncome"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r566"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest Income (Expense), Net",
        "totalLabel": "Total net interest income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeOther": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest income earned from interest bearing assets classified as other.",
        "label": "Interest Income, Other",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "InterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesMortgageBacked": {
     "auth_ref": [
      "r570"
     ],
     "calculation": {
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securitized, pass-through debt securities collateralized by real estate mortgage loans.",
        "label": "Interest Income, Securities, Mortgage Backed",
        "terseLabel": "Interest income"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesMortgageBacked",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r86",
      "r90",
      "r99"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest Paid, Excluding Capitalized Interest, Operating Activities",
        "terseLabel": "Cash paid for interest"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPayableCurrentAndNoncurrent": {
     "auth_ref": [
      "r556",
      "r596"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest payable on debt, including, but not limited to, trade payables.",
        "label": "Interest Payable",
        "terseLabel": "Accrued interest payable"
       }
      }
     },
     "localname": "InterestPayableCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r447"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period.",
        "label": "Interest Rate Swap [Member]",
        "verboseLabel": "Interest Rate Swap"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r38"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable.",
        "label": "Interest Receivable",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "localname": "InterestReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentBuildingAndBuildingImprovements": {
     "auth_ref": [
      "r593"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate of the carrying amounts as of the balance sheet date of investments in building and building improvements.",
        "label": "Investment Building and Building Improvements",
        "terseLabel": "Building and improvements"
       }
      }
     },
     "localname": "InvestmentBuildingAndBuildingImprovements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss": {
     "auth_ref": [
      "r619",
      "r620"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated undistributed earnings (deficit) from long-term capital gain (loss) of investment company.",
        "label": "Investment Company, Distributable Earnings (Loss), Accumulated Long-term Capital Gain (Loss)",
        "terseLabel": "Capital losses"
       }
      }
     },
     "localname": "InvestmentCompanyDistributableEarningsLossAccumulatedLongTermCapitalGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentOwnedBalancePrincipalAmount": {
     "auth_ref": [
      "r624",
      "r632"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For investments which are quantified by principal amount, the principle balance held at close of period.",
        "label": "Investment Owned, Balance, Principal Amount",
        "terseLabel": "Principal balance"
       }
      }
     },
     "localname": "InvestmentOwnedBalancePrincipalAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r629",
      "r630",
      "r631",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type [Axis]"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r629",
      "r630",
      "r631",
      "r633",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r643",
      "r644"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investments [Domain]",
        "terseLabel": "Multi-Family Preferred Equity Ownership Interests",
        "verboseLabel": "Investments [Domain]"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments, Debt and Equity Securities [Abstract]",
        "terseLabel": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r202",
      "r544",
      "r575",
      "r645",
      "r683"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for  investments in certain debt and equity securities.",
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "terseLabel": "Investment Securities Available for Sale, at Fair Value"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Land": {
     "auth_ref": [
      "r7",
      "r27"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyAtCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before accumulated depletion of real estate held for productive use, excluding land held for sale.",
        "label": "Land",
        "terseLabel": "Land"
       }
      }
     },
     "localname": "Land",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseAgreementsMember": {
     "auth_ref": [
      "r407"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual agreement that stipulates the lessee pay the lessor for use of an asset.",
        "label": "Lease Agreements [Member]",
        "terseLabel": "Lease Agreements"
       }
      }
     },
     "localname": "LeaseAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r29",
      "r109",
      "r175",
      "r211",
      "r248",
      "r249",
      "r250",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r413",
      "r420",
      "r421",
      "r478",
      "r499",
      "r500"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "terseLabel": "Total liabilities",
        "totalLabel": "Total Liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r24",
      "r109",
      "r211",
      "r478",
      "r501",
      "r553",
      "r590"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "Total Liabilities and Equity"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities and Equity [Abstract]",
        "terseLabel": "LIABILITIES AND EQUITY"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "auth_ref": [
      "r457"
     ],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial and nonfinancial obligations.",
        "label": "Financial and Nonfinancial Liabilities, Fair Value Disclosure",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities, Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities carried at fair value",
        "verboseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoansPayableFairValueDisclosure": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesFairValueDisclosure",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of contractual obligation to pay money on demand or on fixed or determinable dates.",
        "label": "Loans Payable, Fair Value Disclosure",
        "terseLabel": "Collateralized debt obligations, at fair value"
       }
      }
     },
     "localname": "LoansPayableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LondonInterbankOfferedRateLIBORMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate at which a bank borrows funds from other banks in the London interbank market.",
        "label": "London Interbank Offered Rate (LIBOR) [Member]",
        "verboseLabel": "LIBOR"
       }
      }
     },
     "localname": "LondonInterbankOfferedRateLIBORMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r12",
      "r274",
      "r290",
      "r292",
      "r293",
      "r551",
      "r585"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term Debt",
        "netLabel": "Mortgage Payable, Net",
        "terseLabel": "Long-term debt",
        "totalLabel": "Total",
        "verboseLabel": "Mortgages payable on operating real estate, carrying value"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtByMaturityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-term Debt, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Long-term Debt, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "localname": "LongTermDebtByMaturityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongTermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission.",
        "label": "Long-term Debt, Fair Value",
        "terseLabel": "Mortgages payable on operating real estate, estimated fair value"
       }
      }
     },
     "localname": "LongTermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "auth_ref": [
      "r121",
      "r246",
      "r279"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, after Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "auth_ref": [
      "r121",
      "r246",
      "r279"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year One",
        "terseLabel": "2023",
        "verboseLabel": "2023"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "auth_ref": [
      "r121",
      "r246",
      "r279"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Five",
        "terseLabel": "2027",
        "verboseLabel": "2027"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "auth_ref": [
      "r121",
      "r246",
      "r279"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Four",
        "terseLabel": "2026",
        "verboseLabel": "2026"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "auth_ref": [
      "r121",
      "r246",
      "r279"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Three",
        "terseLabel": "2025",
        "verboseLabel": "2025"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "auth_ref": [
      "r121",
      "r246",
      "r279"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-Term Debt, Maturity, Year Two",
        "terseLabel": "2024",
        "verboseLabel": "2024"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in remainder of current fiscal year.",
        "label": "Long-Term Debt, Maturity, Remainder of Fiscal Year",
        "terseLabel": "2022",
        "verboseLabel": "2022"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/DebtScheduleofMaturitiesofLongTermDebtDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMeasurementInput": {
     "auth_ref": [
      "r462"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of input used to measure long-term debt.",
        "label": "Long-term Debt, Measurement Input",
        "terseLabel": "Debt, measurement input"
       }
      }
     },
     "localname": "LongTermDebtMeasurementInput",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "us-gaap_LongTermNotesPayable": {
     "auth_ref": [
      "r32"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of notes payable (with maturities initially due after one year or beyond the operating cycle if longer), excluding current portion.",
        "label": "Notes Payable, Noncurrent",
        "terseLabel": "Mortgages payable on real estate, net"
       }
      }
     },
     "localname": "LongTermNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r32"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Long-term Debt, Type [Axis]",
        "terseLabel": "Long-term Debt, Type [Axis]"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r32",
      "r247"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Long-term Debt, Type [Domain]",
        "terseLabel": "Long-term Debt, Type [Domain]"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/DebtScheduleofInterestExpensefromConvertibleDebtDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Maturity30To90DaysMember": {
     "auth_ref": [
      "r115"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period that is more than 29 days but fewer than 91 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity 30 to 90 Days [Member]",
        "terseLabel": "Over 30 day to 90 days"
       }
      }
     },
     "localname": "Maturity30To90DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MaturityOver90DaysMember": {
     "auth_ref": [
      "r116"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period of over 90 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Greater than 90 Days [Member]",
        "terseLabel": "Over 90 days"
       }
      }
     },
     "localname": "MaturityOver90DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MaturityUpTo30DaysMember": {
     "auth_ref": [
      "r114"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period of up to 30 days from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Less than 30 Days [Member]",
        "terseLabel": "Within 30 days"
       }
      }
     },
     "localname": "MaturityUpTo30DaysMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputAppraisedValueMember": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using assessed value of property.",
        "label": "Measurement Input, Appraised Value [Member]",
        "terseLabel": "Property value"
       }
      }
     },
     "localname": "MeasurementInputAppraisedValueMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputDiscountRateMember": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using interest rate to determine present value of future cash flows.",
        "label": "Measurement Input, Discount Rate [Member]",
        "terseLabel": "Discount rate"
       }
      }
     },
     "localname": "MeasurementInputDiscountRateMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputLossSeverityMember": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input using loss, including, but not limited to, interest and write-down of principal, incurred on defaulted security as proportion of principal balance.",
        "label": "Measurement Input, Loss Severity [Member]",
        "terseLabel": "Loss severity"
       }
      }
     },
     "localname": "MeasurementInputLossSeverityMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MeasurementInputTypeAxis": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Axis]",
        "terseLabel": "Measurement Input Type [Axis]"
       }
      }
     },
     "localname": "MeasurementInputTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MeasurementInputTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement input used to determine value of asset and liability.",
        "label": "Measurement Input Type [Domain]",
        "terseLabel": "Measurement Input Type [Domain]"
       }
      }
     },
     "localname": "MeasurementInputTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MinorityInterest": {
     "auth_ref": [
      "r37",
      "r109",
      "r211",
      "r248",
      "r252",
      "r253",
      "r254",
      "r257",
      "r258",
      "r478",
      "r552",
      "r589"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which is directly or indirectly attributable to that ownership interest in subsidiary equity which is not attributable to the parent (that is, noncontrolling interest, previously referred to as minority interest).",
        "label": "Stockholders' Equity Attributable to Noncontrolling Interest",
        "terseLabel": "Non-controlling interest in consolidated variable interest entities"
       }
      }
     },
     "localname": "MinorityInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders": {
     "auth_ref": [
      "r332"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders.",
        "label": "Noncontrolling Interest, Decrease from Distributions to Noncontrolling Interest Holders",
        "negatedTerseLabel": "Decrease in non-controlling interest related to distributions from Consolidated VIEs"
       }
      }
     },
     "localname": "MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesHeldToMaturityFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of securitized, pay-through debt securities collateralized by real estate mortgage loans classified as held-to-maturity.",
        "label": "Mortgage-backed Securities Held-to-maturity, Fair Value Disclosure",
        "verboseLabel": "Residential mortgage loans, estimated fair value"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesHeldToMaturityFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember": {
     "auth_ref": [
      "r189",
      "r342"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt securities collateralized by real estate mortgage loans (mortgages), issued by non-governmental sponsored enterprises.",
        "label": "Mortgage-backed Securities, Issued by Private Enterprises [Member]",
        "terseLabel": "Non-Agency RMBS"
       }
      }
     },
     "localname": "MortgageBackedSecuritiesIssuedByPrivateEnterprisesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageLoansOnRealEstate": {
     "auth_ref": [
      "r647"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in mortgage loan on real estate by entity with substantial portion of business acquiring and holding investment real estate or interest in real estate.",
        "label": "SEC Schedule, 12-29, Real Estate Companies, Investment in Mortgage Loans on Real Estate",
        "netLabel": "Fair Value of Loans Pledged",
        "terseLabel": "Carrying value",
        "verboseLabel": "Fair Value"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueDifferencesBetweenFairValueandAggregateUnpaidPrincipalDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgagesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A loan to finance the purchase of real estate where the lender has a lien on the property as collateral for the loan.",
        "label": "Mortgages [Member]",
        "terseLabel": "Mortgage Note"
       }
      }
     },
     "localname": "MortgagesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MovementInMinorityInterestRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward]",
        "terseLabel": "Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward]"
       }
      }
     },
     "localname": "MovementInMinorityInterestRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r89"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "Net cash provided by financing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "Cash Flows from Financing Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r89"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "Net cash used in investing activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "Cash Flows from Investing Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r89",
      "r92",
      "r95"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "totalLabel": "Net cash provided by operating activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "Cash Flows from Operating Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r3",
      "r52",
      "r55",
      "r60",
      "r64",
      "r95",
      "r109",
      "r126",
      "r128",
      "r129",
      "r130",
      "r131",
      "r134",
      "r135",
      "r148",
      "r171",
      "r173",
      "r176",
      "r177",
      "r179",
      "r211",
      "r248",
      "r249",
      "r250",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r455",
      "r478",
      "r560",
      "r598"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      },
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Net (loss) income attributable to Company",
        "totalLabel": "NET (LOSS) INCOME ATTRIBUTABLE TO COMPANY",
        "verboseLabel": "Net (loss) income attributable to Company"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r52",
      "r55",
      "r60",
      "r134",
      "r135",
      "r415",
      "r433"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Noncontrolling Interest",
        "negatedLabel": "Net loss attributable to non-controlling interest in Consolidated VIEs",
        "negatedTerseLabel": "Net loss attributable to non-controlling interest in consolidated variable interest entities",
        "verboseLabel": "Net loss attributable to non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToRedeemableNoncontrollingInterest": {
     "auth_ref": [
      "r68"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to redeemable noncontrolling interest.",
        "label": "Net Income (Loss) Attributable to Redeemable Noncontrolling Interest",
        "terseLabel": "Net loss allocated to redeemable non-controlling interest"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToRedeemableNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r128",
      "r129",
      "r130",
      "r131",
      "r136",
      "r137",
      "r149",
      "r152",
      "r171",
      "r173",
      "r176",
      "r177",
      "r179"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "totalLabel": "NET (LOSS) INCOME ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS",
        "verboseLabel": "NET (LOSS) INCOME ATTRIBUTABLE TO COMPANY'S COMMON STOCKHOLDERS"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted": {
     "auth_ref": [
      "r138",
      "r143",
      "r144",
      "r145",
      "r146",
      "r149",
      "r152"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities, and addition from assumption of issuance of common shares for dilutive potential common shares; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Diluted",
        "totalLabel": "Net (loss) income attributable to Company's common stockholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "Summary of Recent Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncashInvestingAndFinancingItemsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncash Investing and Financing Items [Abstract]",
        "terseLabel": "Noncash Investing and Financing Items [Abstract]"
       }
      }
     },
     "localname": "NoncashInvestingAndFinancingItemsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance": {
     "auth_ref": [
      "r333",
      "r411",
      "r417"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in noncontrolling interest from subsidiary issuance of equity interests to noncontrolling interest holders.",
        "label": "Noncontrolling Interest, Increase from Subsidiary Equity Issuance",
        "verboseLabel": "Contributions"
       }
      }
     },
     "localname": "NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncontrollingInterestMember": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r332",
      "r408"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest.",
        "label": "Noncontrolling Interest [Member]",
        "terseLabel": "Non-Controlling Interest in Consolidated VIEs"
       }
      }
     },
     "localname": "NoncontrollingInterestMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestIncomeOther": {
     "auth_ref": [
      "r568"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the total of noninterest income derived from certain activities and assets including (for example): (1) venture capital investments; (2) bank owned life insurance; (3) foreign currency transactions; and (4) mortgage servicing rights.",
        "label": "Noninterest Income, Other",
        "terseLabel": "Other income"
       }
      }
     },
     "localname": "NoninterestIncomeOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NonvestedRestrictedStockSharesActivityTableTextBlock": {
     "auth_ref": [
      "r359"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock shares.",
        "label": "Nonvested Restricted Stock Shares Activity [Table Text Block]",
        "terseLabel": "Schedule of Nonvested Restricted Stock Activity"
       }
      }
     },
     "localname": "NonvestedRestrictedStockSharesActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NotDesignatedAsHedgingInstrumentTradingMember": {
     "auth_ref": [
      "r438"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument, not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP), used for trading purposes for exposure to risk.",
        "label": "Not Designated as Hedging Instrument, Trading [Member]",
        "terseLabel": "Trading"
       }
      }
     },
     "localname": "NotDesignatedAsHedgingInstrumentTradingMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesActivityofDerivativeInstrumentsNotDesignatedasHedgesDetails",
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesPayable": {
     "auth_ref": [
      "r12",
      "r551",
      "r585"
     ],
     "calculation": {
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, aggregate carrying amount of all types of notes payable, as of the balance sheet date, with initial maturities beyond one year or beyond the normal operating cycle, if longer.",
        "label": "Notes Payable",
        "terseLabel": "Mortgages payable on real estate, net",
        "verboseLabel": "Mortgages payable on real estate, net in Consolidated VIEs"
       }
      }
     },
     "localname": "NotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OffsettingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Offsetting [Abstract]"
       }
      }
     },
     "localname": "OffsettingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Offsetting Assets [Line Items]",
        "terseLabel": "Offsetting Assets [Line Items]"
       }
      }
     },
     "localname": "OffsettingAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsTable": {
     "auth_ref": [
      "r40",
      "r41"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about derivative and financial assets that are subject to offsetting, including enforceable master netting arrangements.",
        "label": "Offsetting Assets [Table]",
        "terseLabel": "Offsetting Assets [Table]"
       }
      }
     },
     "localname": "OffsettingAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense.",
        "label": "Operating Expenses",
        "totalLabel": "Total general, administrative and operating expenses"
       }
      }
     },
     "localname": "OperatingExpenses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingIncomeLoss": {
     "auth_ref": [
      "r171",
      "r173",
      "r176",
      "r177",
      "r179"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net result for the period of deducting operating expenses from operating revenues.",
        "label": "Operating Income (Loss)",
        "totalLabel": "(LOSS) INCOME FROM OPERATIONS BEFORE INCOME TAXES"
       }
      }
     },
     "localname": "OperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r496"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_OtherLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "terseLabel": "Operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r495"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLossCarryforwards": {
     "auth_ref": [
      "r388"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws.",
        "label": "Operating Loss Carryforwards",
        "terseLabel": "Net operating loss carryforwards"
       }
      }
     },
     "localname": "OperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLossCarryforwardsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Operating Loss Carryforwards [Line Items]",
        "terseLabel": "Operating Loss Carryforwards [Line Items]"
       }
      }
     },
     "localname": "OperatingLossCarryforwardsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLossCarryforwardsTable": {
     "auth_ref": [
      "r389"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting pertinent information, such as tax authority, amounts, and expiration dates, of net operating loss carryforwards, including an assessment of the likelihood of utilization.",
        "label": "Operating Loss Carryforwards [Table]",
        "terseLabel": "Operating Loss Carryforwards [Table]"
       }
      }
     },
     "localname": "OperatingLossCarryforwardsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
        "terseLabel": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock": {
     "auth_ref": [
      "r5",
      "r435"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for organization, consolidation and basis of presentation of financial statements disclosure.",
        "label": "Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block]",
        "terseLabel": "Organization"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/Organization"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r9",
      "r546",
      "r582"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 7.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets classified as other.",
        "label": "Other Assets",
        "terseLabel": "Other assets",
        "totalLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMiscellaneous": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 11.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other miscellaneous assets.",
        "label": "Other Assets, Miscellaneous",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "OtherAssetsMiscellaneous",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r53",
      "r56",
      "r58",
      "r59",
      "r61",
      "r65",
      "r323",
      "r481",
      "r486",
      "r487",
      "r561",
      "r599"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 2.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other Comprehensive Income (Loss), Net of Tax",
        "totalLabel": "TOTAL OTHER COMPREHENSIVE (LOSS) INCOME"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax": {
     "auth_ref": [
      "r47",
      "r50",
      "r51",
      "r201"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax",
        "negatedLabel": "Reclassification adjustment for net loss included in net income",
        "negatedTerseLabel": "Reclassification adjustment for net loss included in net income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Tax [Abstract]",
        "terseLabel": "OTHER COMPREHENSIVE (LOSS) INCOME"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax": {
     "auth_ref": [
      "r45",
      "r47"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after tax and before adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax",
        "terseLabel": "(Decrease) increase in fair value of available for sale securities",
        "verboseLabel": "Increase in fair value of available for sale securities"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCostAndExpenseOperating": {
     "auth_ref": [
      "r69"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 3.0,
       "parentTag": "us-gaap_OperatingExpenses",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of other operating cost and expense items that are associated with the entity's normal revenue producing operation.",
        "label": "Other Cost and Expense, Operating",
        "terseLabel": "Portfolio operating expenses"
       }
      }
     },
     "localname": "OtherCostAndExpenseOperating",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherIncome": {
     "auth_ref": [
      "r605"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_ProfitLossFromRealEstateOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue and income classified as other.",
        "label": "Other Income",
        "terseLabel": "Other Income"
       }
      }
     },
     "localname": "OtherIncome",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherInvestments": {
     "auth_ref": [
      "r26",
      "r595"
     ],
     "calculation": {
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "nymt_FinancialInstrumentOwnedLoansAndPreferredEquityNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments classified as other.",
        "label": "Other Investments",
        "terseLabel": "Investment amount"
       }
      }
     },
     "localname": "OtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValuePreferredEquityandMezzanineLoanInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilities": {
     "auth_ref": [
      "r557"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other.",
        "label": "Other Liabilities",
        "netLabel": "Other liabilities",
        "terseLabel": "Other liabilities",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "OtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherLiabilitiesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of other liabilities.",
        "label": "Other Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Other Liabilities"
       }
      }
     },
     "localname": "OtherLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherOperatingIncomeExpenseNet": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of other operating income and expenses, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operations.",
        "label": "Other Operating Income (Expense), Net",
        "totalLabel": "Total non-interest (loss) income"
       }
      }
     },
     "localname": "OtherOperatingIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherRealEstate": {
     "auth_ref": [
      "r554"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount of other real estate not separately disclosed, including, but not limited to, real estate investments, real estate loans that qualify as investments in real estate, and premises that are no longer used in operations may also be included in real estate owned. This does not include real estate assets taken in settlement of troubled loans through surrender or foreclosure.",
        "label": "Other Real Estate",
        "terseLabel": "Other assets in consolidated multi-family properties"
       }
      }
     },
     "localname": "OtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherReceivables": {
     "auth_ref": [
      "r38"
     ],
     "calculation": {
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount due from parties in nontrade transactions, classified as other.",
        "label": "Other Receivables",
        "terseLabel": "Other receivables"
       }
      }
     },
     "localname": "OtherReceivables",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherRevenueExpenseFromRealEstateOperations": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 2.0,
       "parentTag": "nymt_ExpensesRelatedToOperatingRealEstate",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of other revenue (expense) derived from real estate investments partnerships.",
        "label": "Other Revenue (Expense) from Real Estate Operations",
        "negatedTerseLabel": "Other expenses"
       }
      }
     },
     "localname": "OtherRevenueExpenseFromRealEstateOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain": {
     "auth_ref": [
      "r198"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Provides the categories of debt securities, available-for-sale or held-to-maturity, on which an entity may recognize other than temporary impairments (OTTI) for which a portion related to credit losses has been recognized in earnings and a portion related to all other factors has been recognized in other comprehensive income.",
        "label": "Other than Temporary Impairment, Credit Losses Recognized in Earnings, Categories of Investments [Domain]",
        "terseLabel": "Other than Temporary Impairment, Credit Losses Recognized in Earnings, Categories of Investments [Domain]"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ParentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Portion of equity, or net assets, in the consolidated entity attributable, directly or indirectly, to the parent. Excludes noncontrolling interests.",
        "label": "Parent [Member]",
        "terseLabel": "Total Company Stockholders' Equity"
       }
      }
     },
     "localname": "ParentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Common Stock",
        "negatedLabel": "Dividends paid on common stock and dividend equivalents"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to preferred shareholders of the parent entity.",
        "label": "Payments of Ordinary Dividends, Preferred Stock and Preference Stock",
        "negatedLabel": "Dividends paid on preferred stock"
       }
      }
     },
     "localname": "PaymentsOfDividendsPreferredStockAndPreferenceStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r74",
      "r79",
      "r188"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Payments to Acquire Debt Securities, Available-for-sale",
        "negatedLabel": "Purchases of investment securities"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireEquityMethodInvestments": {
     "auth_ref": [
      "r80"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the purchase of or advances to an equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence.",
        "label": "Payments to Acquire Equity Method Investments",
        "negatedLabel": "Funding of preferred equity, mezzanine loan and equity investments"
       }
      }
     },
     "localname": "PaymentsToAcquireEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireInterestInJointVenture": {
     "auth_ref": [
      "r80"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the investment in or advances to an entity in which the reporting entity shares control of the entity with another party or group.",
        "label": "Payments to Acquire Interest in Joint Venture",
        "negatedTerseLabel": "Funding of joint venture investments in Consolidated VIEs"
       }
      }
     },
     "localname": "PaymentsToAcquireInterestInJointVenture",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireInvestments": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the purchase of all investments (debt, security, other) during the period.",
        "label": "Payments to Acquire Investments",
        "negatedLabel": "Purchases of residential loans"
       }
      }
     },
     "localname": "PaymentsToAcquireInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireOtherInvestments": {
     "auth_ref": [
      "r82"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow to acquire investments classified as other.",
        "label": "Payments to Acquire Other Investments",
        "negatedLabel": "Purchases of other assets"
       }
      }
     },
     "localname": "PaymentsToAcquireOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r81"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedTerseLabel": "Purchases of and capital expenditures on real estate"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PerformanceSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based payment arrangement awarded for meeting performance target.",
        "label": "Performance Shares [Member]",
        "verboseLabel": "PSUs"
       }
      }
     },
     "localname": "PerformanceSharesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r355",
      "r369"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockDividendRatePercentage": {
     "auth_ref": [
      "r308"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage rate used to calculate dividend payments on preferred stock.",
        "label": "Preferred Stock, Dividend Rate, Percentage",
        "terseLabel": "Preferred stock, contractual rate, percentage",
        "verboseLabel": "Preferred stock, cumulative redeemable dividend rate"
       }
      }
     },
     "localname": "PreferredStockDividendRatePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PreferredStockDividendsIncomeStatementImpact": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": -1.0
      },
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of preferred stock dividends that is an adjustment to net income apportioned to common stockholders.",
        "label": "Preferred Stock Dividends, Income Statement Impact",
        "negatedLabel": "Preferred stock dividends",
        "negatedTerseLabel": "Less: Preferred Stock dividends"
       }
      }
     },
     "localname": "PreferredStockDividendsIncomeStatementImpact",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockDividendsPerShareCashPaid": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends paid during the period for each share of preferred stock outstanding.",
        "label": "Preferred Stock, Dividends, Per Share, Cash Paid",
        "terseLabel": "Cash dividend per share (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockDividendsPerShareCashPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockLiquidationPreference": {
     "auth_ref": [
      "r17",
      "r106",
      "r312",
      "r324",
      "r325"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The per share liquidation preference (or restrictions) of nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) that has a preference in involuntary liquidation considerably in excess of the par or stated value of the shares. The liquidation preference is the difference between the preference in liquidation and the par or stated values of the share.",
        "label": "Preferred Stock, Liquidation Preference Per Share",
        "verboseLabel": "Preferred stock, liquidation preference per share (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockLiquidationPreference",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockLiquidationPreferenceValue": {
     "auth_ref": [
      "r106",
      "r312"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value of the difference between preference in liquidation and the par or stated values of the preferred shares.",
        "label": "Preferred Stock, Liquidation Preference, Value",
        "terseLabel": "Preferred Stock, aggregate liquidation preference",
        "verboseLabel": "Preferred stock, liquidation preference"
       }
      }
     },
     "localname": "PreferredStockLiquidationPreferenceValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Preferred shares may provide a preferential dividend to the dividend on common stock and may take precedence over common stock in the event of a liquidation. Preferred shares typically represent an ownership interest in the company.",
        "label": "Preferred Stock [Member]",
        "terseLabel": "Preferred Stock"
       }
      }
     },
     "localname": "PreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r17",
      "r307"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer.",
        "label": "Preferred Stock, Par or Stated Value Per Share",
        "terseLabel": "Preferred stock, par value (in usd per share)",
        "verboseLabel": "Preferred stock, par value (in usd per share)"
       }
      }
     },
     "localname": "PreferredStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockRedemptionPricePerShare": {
     "auth_ref": [
      "r306",
      "r324",
      "r326"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The price per share at which the preferred stock of an entity that has priority over common stock in the distribution of dividends and in the event of liquidation of the entity is redeemed or may be called at. The redemption features of this preferred stock are solely within the control of the issuer.",
        "label": "Preferred Stock, Redemption Price Per Share",
        "terseLabel": "Redemption price (in dollars per share)"
       }
      }
     },
     "localname": "PreferredStockRedemptionPricePerShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "auth_ref": [
      "r17"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.",
        "label": "Preferred Stock, Shares Authorized",
        "verboseLabel": "Preferred stock, shares authorized (in shares)"
       }
      }
     },
     "localname": "PreferredStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesIssued": {
     "auth_ref": [
      "r17",
      "r307"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt.",
        "label": "Preferred Stock, Shares Issued",
        "verboseLabel": "Preferred stock, shares issued (in shares)"
       }
      }
     },
     "localname": "PreferredStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesOutstanding": {
     "auth_ref": [
      "r17"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate share number for all nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer) held by stockholders. Does not include preferred shares that have been repurchased.",
        "label": "Preferred Stock, Shares Outstanding",
        "verboseLabel": "Preferred stock, shares outstanding (in shares)"
       }
      }
     },
     "localname": "PreferredStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesSubscribedButUnissuedValue": {
     "auth_ref": [
      "r17"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of subscription received from investors who have been allocated nonredeemable preferred stock or preferred stock redeemable solely at the option of the issuer.",
        "label": "Preferred Stock, Value, Subscriptions",
        "terseLabel": "Equity agreement for preferred stock maximum aggregate sales price (up to)"
       }
      }
     },
     "localname": "PreferredStockSharesSubscribedButUnissuedValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PreferredStockValue": {
     "auth_ref": [
      "r17",
      "r501"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable preferred shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Preferred Stock, Value, Issued",
        "netLabel": "Preferred stock, carrying value",
        "terseLabel": "Preferred stock, par value $0.01 per share, 31,500,000 and 29,500,000 shares authorized as of March\u00a031, 2022 and December\u00a031, 2021, respectively, 22,284,994 shares issued and outstanding ($557,125 aggregate liquidation preference)"
       }
      }
     },
     "localname": "PreferredStockValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PriorPeriodReclassificationAdjustmentDescription": {
     "auth_ref": [
      "r2"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for reclassification affecting comparability of financial statement. Excludes amendment to accounting standards, other change in accounting principle, and correction of error.",
        "label": "Reclassification, Comparability Adjustment [Policy Text Block]",
        "terseLabel": "Reclassifications"
       }
      }
     },
     "localname": "PriorPeriodReclassificationAdjustmentDescription",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ProceedsFromDivestitureOfInterestInConsolidatedSubsidiaries": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the deconsolidation of a previously consolidated subsidiary or the sale of investment in consolidated subsidiaries (generally greater than 50 percent).",
        "label": "Proceeds from Divestiture of Interest in Consolidated Subsidiaries",
        "netLabel": "Net proceeds from sale of real estate held for sale"
       }
      }
     },
     "localname": "ProceedsFromDivestitureOfInterestInConsolidatedSubsidiaries",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital": {
     "auth_ref": [
      "r76",
      "r88"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of distribution received from equity method investee for return of investment, classified as investing activities. Excludes distribution for return on investment, classified as operating activities.",
        "label": "Proceeds from Equity Method Investment, Distribution, Return of Capital",
        "terseLabel": "Return of capital from equity investments"
       }
      }
     },
     "localname": "ProceedsFromEquityMethodInvestmentDividendsOrDistributionsReturnOfCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfUnsecuredDebt": {
     "auth_ref": [
      "r83"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the issuance of long-term debt that is not secured by collateral. Excludes proceeds from tax exempt unsecured debt.",
        "label": "Proceeds from Issuance of Unsecured Debt",
        "terseLabel": "Proceeds from issuance of senior unsecured notes, net"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfUnsecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash inflow related to a loan origination (the process when securing a mortgage for a piece of real property), lease origination, and principal collections.",
        "label": "Proceeds from Loan and Lease Originations and Principal Collections",
        "terseLabel": "Principal repayments received on residential loans"
       }
      }
     },
     "localname": "ProceedsFromLoanAndLeaseOriginationsAndPrincipalCollections1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r74",
      "r75",
      "r188"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-sale",
        "terseLabel": "Principal paydowns received on investment securities"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r97",
      "r98"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash flow from investments sold under the agreement to repurchase such investment.",
        "label": "Proceeds from (Payments for) in Securities Sold under Agreements to Repurchase",
        "terseLabel": "Net proceeds received from repurchase agreements"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForInSecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/SubsequentEventsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRepaymentsOfNotesPayable": {
     "auth_ref": [],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from long-term debt supported by a written promise to pay an obligation.",
        "label": "Proceeds from (Repayments of) Notes Payable",
        "negatedTerseLabel": "Net payments made on mortgages payable on real estate",
        "terseLabel": "Net payments made on mortgages payable on real estate"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfNotesPayable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt": {
     "auth_ref": [
      "r74",
      "r75",
      "r188"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from sale of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Sale of Debt Securities, Available-for-sale",
        "verboseLabel": "Proceeds from sales of investment securities"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfEquityMethodInvestments": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of equity method investments, which are investments in joint ventures and entities in which the entity has an equity ownership interest normally of 20 to 50 percent and exercises significant influence.",
        "label": "Proceeds from Sale of Equity Method Investments",
        "terseLabel": "Principal repayments received on preferred equity and mezzanine loan investments"
       }
      }
     },
     "localname": "ProceedsFromSaleOfEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfLoansReceivable": {
     "auth_ref": [
      "r75"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the sale of loans receivables arising from the financing of goods and services.",
        "label": "Proceeds from Sale of Loans Receivable",
        "terseLabel": "Proceeds from sales of residential loans"
       }
      }
     },
     "localname": "ProceedsFromSaleOfLoansReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfRealEstateHeldforinvestment": {
     "auth_ref": [
      "r77"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash received from the sale of real estate that is held for investment, that is, it is part of an investing activity during the period.",
        "label": "Proceeds from Sale of Real Estate Held-for-investment",
        "terseLabel": "Proceeds from sale of real estate owned"
       }
      }
     },
     "localname": "ProceedsFromSaleOfRealEstateHeldforinvestment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r3",
      "r52",
      "r55",
      "r60",
      "r87",
      "r109",
      "r126",
      "r134",
      "r135",
      "r171",
      "r173",
      "r176",
      "r177",
      "r179",
      "r211",
      "r248",
      "r249",
      "r250",
      "r252",
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r410",
      "r414",
      "r416",
      "r433",
      "r434",
      "r455",
      "r478",
      "r574"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Net Income (Loss), Including Portion Attributable to Noncontrolling Interest",
        "terseLabel": "Net income (loss)"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProfitLossFromRealEstateOperations": {
     "auth_ref": [
      "r569"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      },
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cost of operation of other real estate (including provisions for real estate losses, rental income, and gains and losses on sales of real estate).",
        "label": "Profit (Loss) from Real Estate Operations",
        "terseLabel": "Income from real estate",
        "totalLabel": "Total income from real estate"
       }
      }
     },
     "localname": "ProfitLossFromRealEstateOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate [Abstract]"
       }
      }
     },
     "localname": "RealEstateAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealEstateDisclosureTextBlock": {
     "auth_ref": [
      "r664",
      "r665",
      "r666",
      "r668",
      "r670"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for certain real estate investment financial statements, real estate investment trust operating support agreements, real estate owned, retail land sales, time share transactions, as well as other real estate related disclosures.",
        "label": "Real Estate Disclosure [Text Block]",
        "verboseLabel": "Real Estate, Net"
       }
      }
     },
     "localname": "RealEstateDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNet"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RealEstateHeldforsale": {
     "auth_ref": [
      "r594"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_RealEstateInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of investments in land and buildings held for sale, excluding real estate considered to be inventory of the entity.",
        "label": "Real Estate Held-for-sale",
        "terseLabel": "Real estate held for sale, net"
       }
      }
     },
     "localname": "RealEstateHeldforsale",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestmentMember": {
     "auth_ref": [
      "r641",
      "r642",
      "r643",
      "r644"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents direct equity investments in real estate projects (Land, buildings and improvements owned for income production and capital accretion potential) and certain loans accounted for as real estate investments. For loans accounted for as real estate investments, the entity (lender) has virtually the same risks and rewards as those of owners or joint venture participants. Such arrangements are treated as if the entity actually has an ownership interest in the property. In such arrangements, the entity (lender) participates in expected residual profits, which may be in the form of an equity kicker or a higher than usual effective interest rate. At the outset and during the construction and development of the property, the borrower generally has little or no equity in the property and the entity's (lender's) only source of repayment is the property. The entity (lender) generally (a) agrees to provide substantially all funds to acquire, develop, and construct the property, (b) funds the commitment or origination fees or both, and (c) funds interest during the development and construction of the property.",
        "label": "Real Estate Investment [Member]",
        "terseLabel": "Real Estate Investment"
       }
      }
     },
     "localname": "RealEstateInvestmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateInvestmentPropertyAccumulatedDepreciation": {
     "auth_ref": [
      "r592"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of depreciation for real estate property held for investment purposes.",
        "label": "Real Estate Investment Property, Accumulated Depreciation",
        "negatedTerseLabel": "Accumulated depreciation"
       }
      }
     },
     "localname": "RealEstateInvestmentPropertyAccumulatedDepreciation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestmentPropertyAtCost": {
     "auth_ref": [
      "r593"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_RealEstateInvestmentPropertyNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of real estate investment property which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; and (7) other real estate investments.",
        "label": "Real Estate Investment Property, at Cost",
        "totalLabel": "Operating real estate"
       }
      }
     },
     "localname": "RealEstateInvestmentPropertyAtCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestmentPropertyNet": {
     "auth_ref": [
      "r593"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_RealEstateInvestments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of real estate investment property, net of accumulated depreciation, which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; and (7) other real estate investments.",
        "label": "Real Estate Investment Property, Net",
        "totalLabel": "Operating real estate, net"
       }
      }
     },
     "localname": "RealEstateInvestmentPropertyNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateInvestments": {
     "auth_ref": [
      "r593"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of real estate investments, net of accumulated depreciation, which may include the following: (1) land available-for-sale; (2) land available-for-development; (3) investments in building and building improvements; (4) tenant allowances; (5) developments in-process; (6) rental properties; (7) other real estate investments; (8) real estate joint ventures; and (9) unconsolidated real estate and other joint ventures not separately presented.",
        "label": "Real Estate Investments, Net",
        "terseLabel": "Real estate, net",
        "totalLabel": "Real estate, net",
        "verboseLabel": "Real estate, net held in Consolidated VIEs"
       }
      }
     },
     "localname": "RealEstateInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Real Estate [Line Items]",
        "terseLabel": "Real Estate [Line Items]"
       }
      }
     },
     "localname": "RealEstateLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RealEstateMember": {
     "auth_ref": [
      "r339"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property consisting of land, land improvement and buildings.",
        "label": "Real Estate [Member]",
        "terseLabel": "Real Estate"
       }
      }
     },
     "localname": "RealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RealEstateTable": {
     "auth_ref": [
      "r667"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about real estate investment companies including, but not limited to, real estate investment trusts, real estate owned, retail land sales, and time share transactions.",
        "label": "Real Estate [Table]",
        "terseLabel": "Real Estate [Table]"
       }
      }
     },
     "localname": "RealEstateTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails",
      "http://nymtrust.com/role/RealEstateNetLeaseIntangiblesDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReceivableTypeDomain": {
     "auth_ref": [
      "r36"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financing arrangement representing a contractual right to receive money either on demand or on fixed and determinable dates.",
        "label": "Receivable [Domain]",
        "terseLabel": "Receivable [Domain]"
       }
      }
     },
     "localname": "ReceivableTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount": {
     "auth_ref": [
      "r300",
      "r301",
      "r302",
      "r303"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "As of the reporting date, the aggregate carrying amount of all noncontrolling interests which are redeemable by the (parent) entity (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the (parent) entity. This item includes noncontrolling interest holder's ownership (or holders' ownership) regardless of the type of equity interest (common, preferred, other) including all potential organizational (legal) forms of the investee entity.",
        "label": "Redeemable Noncontrolling Interest, Equity, Carrying Amount",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "terseLabel": "Redeemable non-controlling interest in Consolidated VIEs"
       }
      }
     },
     "localname": "RedeemableNoncontrollingInterestEquityCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RedeemableNoncontrollingInterestTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of redeemable noncontrolling interest (as defined) included in the statement of financial position as either a liability or temporary equity. As of the date of the statement of financial position, such redeemable noncontrolling interest is currently redeemable, as defined, for cash or other assets of the entity at (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the entity.",
        "label": "Redeemable Noncontrolling Interest [Table Text Block]",
        "terseLabel": "Schedule of Redeemable Noncontrolling Interest in Consolidated VIEs"
       }
      }
     },
     "localname": "RedeemableNoncontrollingInterestTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RentalIncomeNonoperating": {
     "auth_ref": [
      "r72"
     ],
     "calculation": {
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_ProfitLossFromRealEstateOperations",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Income earned by providing the use of assets to an outside party in exchange for a payment or series of payments that is nonoperating in nature.",
        "label": "Rental Income, Nonoperating",
        "terseLabel": "Rental income"
       }
      }
     },
     "localname": "RentalIncomeNonoperating",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetComponentsofIncomeFromRealEstateandExpensesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfConvertibleDebt": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow from the repayment of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder.",
        "label": "Repayments of Convertible Debt",
        "negatedTerseLabel": "Repayment of convertible notes"
       }
      }
     },
     "localname": "RepaymentsOfConvertibleDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepaymentsOfSecuredDebt": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow to repay long-term debt that is wholly or partially secured by collateral. Excludes repayments of tax exempt secured debt.",
        "label": "Repayments of Secured Debt",
        "negatedLabel": "Payments made on Consolidated SLST CDOs"
       }
      }
     },
     "localname": "RepaymentsOfSecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepurchaseAgreementCounterpartyWeightedAverageMaturityOfAgreements1": {
     "auth_ref": [
      "r120"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average maturity (weighted by amount of the agreement) of repurchase agreements with the counterparty, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Repurchase Agreement Counterparty, Weighted Average Maturity of Agreements",
        "terseLabel": "Average days to maturity",
        "verboseLabel": "Weighted Average Months to Maturity"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyWeightedAverageMaturityOfAgreements1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_RepurchaseAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments represented by an agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Such agreements are generally short-term in nature.",
        "label": "Repurchase Agreements [Member]",
        "terseLabel": "Repurchase agreements",
        "verboseLabel": "Repurchase agreements"
       }
      }
     },
     "localname": "RepurchaseAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock": {
     "auth_ref": [
      "r538"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for repurchase agreements (also known as repos), resale agreements (also known as reverse repurchase agreements or reverse repos), securities borrowed transactions, and securities loaned transactions.",
        "label": "Repurchase Agreements, Resale Agreements, Securities Borrowed, and Securities Loaned Disclosure [Text Block]",
        "terseLabel": "Repurchase Agreements"
       }
      }
     },
     "localname": "RepurchaseAgreementsResaleAgreementsSecuritiesBorrowedAndSecuritiesLoanedDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RestrictedCash": {
     "auth_ref": [
      "r103",
      "r545",
      "r586"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits.",
        "label": "Restricted Cash",
        "terseLabel": "Restricted cash"
       }
      }
     },
     "localname": "RestrictedCash",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalents": {
     "auth_ref": [
      "r8",
      "r96",
      "r103",
      "r545",
      "r586"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents",
       "weight": 1.0
      },
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Restricted Cash and Cash Equivalents",
        "terseLabel": "Restricted cash included in other assets"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesOtherAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r153"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met.",
        "label": "Restricted Stock [Member]",
        "terseLabel": "Restricted Stock"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units (RSUs) [Member]",
        "terseLabel": "RSUs"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r20",
      "r332",
      "r373",
      "r501",
      "r588",
      "r615",
      "r617"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 5.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Accumulated deficit"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r0",
      "r123",
      "r124",
      "r125",
      "r127",
      "r133",
      "r135",
      "r214",
      "r370",
      "r371",
      "r372",
      "r395",
      "r396",
      "r453",
      "r612",
      "r614"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Accumulated Deficit"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SECScheduleIIIRealEstateAccumulatedDepreciationDepreciationExpense": {
     "auth_ref": [
      "r663"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of depreciation expense of real estate investments for entities with a substantial portion of business acquiring and holding investment real estate.",
        "label": "SEC Schedule, 12-28, Real Estate Companies, Investment in Real Estate, Accumulated Depreciation, Depreciation Expense",
        "terseLabel": "Depreciation and amortization expense related to operating real estate"
       }
      }
     },
     "localname": "SECScheduleIIIRealEstateAccumulatedDepreciationDepreciationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SaleOfStockNameOfTransactionDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sale of the entity's stock, including, but not limited to, initial public offering (IPO) and private placement.",
        "label": "Sale of Stock [Domain]",
        "terseLabel": "Sale of Stock [Domain]"
       }
      }
     },
     "localname": "SaleOfStockNameOfTransactionDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable": {
     "auth_ref": [
      "r119"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule, as of the most recent balance sheet date, of securities or other assets sold under repurchase agreements when this amount exceeds 10 percent of total assets. Disclosure may include the following: the type of securities or assets sold under agreements to repurchase, the carrying amount, market value (including accrued interest plus any cash or other assets on deposit. The information is segregated into securities maturing (1) overnight; (2) term up to 30 days; (3) term of 30 to 90 days; (4) term over 90 days; (5) demand.",
        "label": "Schedule of Assets Sold under Agreements to Repurchase [Table]",
        "terseLabel": "Schedule of Assets Sold under Agreements to Repurchase [Table]"
       }
      }
     },
     "localname": "ScheduleOfAssetsSoldUnderAgreementsToRepurchaseTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsMaturitiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Securities, Available-for-sale [Line Items]",
        "terseLabel": "Debt Securities, Available-for-sale [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueNarrativeDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value.",
        "label": "Schedule of Available-for-sale Securities Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Available-for-sale Securities Reconciliation"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r394"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years.",
        "label": "Schedule of Components of Income Tax Expense (Benefit) [Table Text Block]",
        "terseLabel": "Schedule of Components of Income Tax Provision"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "auth_ref": [
      "r32",
      "r121",
      "r292",
      "r294",
      "r324",
      "r329",
      "r330",
      "r331",
      "r490",
      "r491",
      "r494",
      "r579"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table Text Block]",
        "terseLabel": "Schedule of Mortgages Payable in Consolidated VIEs"
       }
      }
     },
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r386"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets.",
        "label": "Schedule of Deferred Tax Assets and Liabilities [Table Text Block]",
        "terseLabel": "Schedule of Deferred Tax Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r152"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "terseLabel": "Schedule of Computation of Basic and Dilutive Earnings (Loss) Per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareDilutedByCommonClassTable": {
     "auth_ref": [
      "r139",
      "r142",
      "r150",
      "r152",
      "r157"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Complete disclosure pertaining to an entity's diluted earnings per share.",
        "label": "Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table]",
        "terseLabel": "Schedule of Earnings Per Share, Diluted, by Common Class, Including Two Class Method [Table]"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareDilutedByCommonClassTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/LossEarningsPerCommonShareNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule of Equity Method Investments [Line Items]",
        "terseLabel": "Schedule of Equity Method Investments [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsTable": {
     "auth_ref": [
      "r3",
      "r109",
      "r210",
      "r211",
      "r478"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summarization of information required and determined to be disclosed concerning equity method investments in common stock. The summarized information includes: (a) the name of each investee or group of investees for which combined disclosure is appropriate, (2) the percentage ownership of common stock, (3) the difference, if any, between the carrying amount of an investment and the value of the underlying equity in the net assets and the accounting treatment of difference, if any, and (4) the aggregate value of each identified investment based on its quoted market price, if available.",
        "label": "Schedule of Equity Method Investments [Table]",
        "terseLabel": "Schedule of Equity Method Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/EquityInvestmentsatFairValueNarrativeDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r457",
      "r458"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Schedule of Financial Instruments Measured at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancialInstrumentsOwnedAndPledgedAsCollateralTextBlock": {
     "auth_ref": [
      "r518",
      "r520"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of financial instruments held by the entity for its own account for trading or investment purposes that are carried at fair value and pledged to counterparties as collateral for financing transactions. Description may include equity, fixed income, debt or other securities.",
        "label": "Schedule of Financial Instruments Owned and Pledged as Collateral [Table Text Block]",
        "terseLabel": "Schedule of Borrowings Under Financing Arrangements and Assets Pledged as Collateral"
       }
      }
     },
     "localname": "ScheduleOfFinancialInstrumentsOwnedAndPledgedAsCollateralTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable": {
     "auth_ref": [
      "r71",
      "r73",
      "r603"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment income, including, but not limited to, interest and dividend income and amortization of discount (premium) derived from debt and equity securities. Excludes realized and unrealized gain (loss) on investments.",
        "label": "Investment Income [Table]",
        "terseLabel": "Investment Income [Table]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentIncomeReportedAmountsByCategoryTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "auth_ref": [
      "r246"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt.",
        "label": "Schedule of Maturities of Long-term Debt [Table Text Block]",
        "terseLabel": "Schedule of Maturities of Collateralized Debt Obligations",
        "verboseLabel": "Schedule of Maturities of Long-term Debt"
       }
      }
     },
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsTables",
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedPerformanceBasedUnitsActivityTableTextBlock": {
     "auth_ref": [
      "r361"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested performance-based units.",
        "label": "Schedule of Nonvested Performance-based Units Activity [Table Text Block]",
        "terseLabel": "Schedule of PSU Award Activity"
       }
      }
     },
     "localname": "ScheduleOfNonvestedPerformanceBasedUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock": {
     "auth_ref": [
      "r361"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested restricted stock units.",
        "label": "Schedule of Nonvested Restricted Stock Units Activity [Table Text Block]",
        "terseLabel": "Schedule of RSU Award Activity"
       }
      }
     },
     "localname": "ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherAssetsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the carrying amounts of other assets. This disclosure includes other current assets and other noncurrent assets.",
        "label": "Schedule of Other Assets [Table Text Block]",
        "terseLabel": "Schedule of Other Assets"
       }
      }
     },
     "localname": "ScheduleOfOtherAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "auth_ref": [
      "r444",
      "r446"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of derivative instrument not designated or qualifying as hedging instrument.",
        "label": "Derivatives Not Designated as Hedging Instruments [Table Text Block]",
        "terseLabel": "Schedule of Activity of Derivative Instruments"
       }
      }
     },
     "localname": "ScheduleOfOtherDerivativesNotDesignatedAsHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRealEstatePropertiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of real estate properties and units in those properties that are included in the discussion of the nature of an entity's operations.",
        "label": "Schedule of Real Estate Properties [Table Text Block]",
        "terseLabel": "Schedule of Real Estate Investment"
       }
      }
     },
     "localname": "ScheduleOfRealEstatePropertiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RealEstateNetTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRepurchaseAgreements": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for repurchase agreements.",
        "label": "Schedule of Repurchase Agreements [Table Text Block]",
        "terseLabel": "Schedule of Company's Repurchase Agreements"
       }
      }
     },
     "localname": "ScheduleOfRepurchaseAgreements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSecuritiesFinancingTransactionsTextBlock": {
     "auth_ref": [
      "r41",
      "r520"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of  securities financing transactions including resale and repurchase agreements, securities borrowed and lending transactions, securities received as collateral and obligations to return securities received as collateral.",
        "label": "Schedule of Securities Financing Transactions [Table Text Block]",
        "terseLabel": "Schedule of Repurchase Agreements Secured by Investment Securities"
       }
      }
     },
     "localname": "ScheduleOfSecuritiesFinancingTransactionsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r355",
      "r369"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]",
        "terseLabel": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r34",
      "r106",
      "r160",
      "r161",
      "r299",
      "r304",
      "r305",
      "r307",
      "r308",
      "r309",
      "r310",
      "r312",
      "r316",
      "r321",
      "r324",
      "r325",
      "r327",
      "r329",
      "r330",
      "r331",
      "r332"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule of Stock by Class [Table]",
        "terseLabel": "Schedule of Stock by Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfStockholdersEquityTableTextBlock": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of changes in the separate accounts comprising stockholders' equity (in addition to retained earnings) and of the changes in the number of shares of equity securities during at least the most recent annual fiscal period and any subsequent interim period presented is required to make the financial statements sufficiently informative if both financial position and results of operations are presented.",
        "label": "Schedule of Stockholders Equity [Table Text Block]",
        "terseLabel": "Schedule of Preferred Stock Issued and Outstanding"
       }
      }
     },
     "localname": "ScheduleOfStockholdersEquityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSubordinatedBorrowingTextBlock": {
     "auth_ref": [
      "r577"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of borrowings under subordinated debt agreements that qualify as available in computing net capital under SEC uniform net capital rules for broker-dealers, including restrictive covenants, collateral, interest rates and due dates, amounts due by date and amount owed in total.",
        "label": "Schedule of Subordinated Borrowing [Table Text Block]",
        "terseLabel": "Schedule of Subordinated Borrowing"
       }
      }
     },
     "localname": "ScheduleOfSubordinatedBorrowingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt and Equity Securities, FV-NI [Line Items]",
        "terseLabel": "Debt and Equity Securities, FV-NI [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfTradingSecuritiesAndOtherTradingAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about investment in debt security measured at fair value with change in fair value recognized in net income (trading) and investment in equity security with change in fair value recognized in net income (FV-NI).",
        "label": "Debt Securities, Trading, and Equity Securities, FV-NI [Table]",
        "terseLabel": "Debt Securities, Trading, and Equity Securities, FV-NI [Table]"
       }
      }
     },
     "localname": "ScheduleOfTradingSecuritiesAndOtherTradingAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "auth_ref": [
      "r412",
      "r413",
      "r420",
      "r421",
      "r422",
      "r425",
      "r428",
      "r430",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of qualitative and quantitative information related to variable interests the entity holds, whether or not such variable interest entity (VIE) is included in the reporting entity's consolidated financial statements. Includes, but is not limited to, description of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a tabular comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table]",
        "terseLabel": "Schedule of Variable Interest Entities [Table]"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTextBlock": {
     "auth_ref": [
      "r422",
      "r425",
      "r428",
      "r430",
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table Text Block]",
        "netLabel": "Schedule of Statement of Operations of Variable Interest Entities"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIETables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock": {
     "auth_ref": [
      "r163",
      "r165",
      "r166",
      "r167",
      "r475",
      "r477"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the nature of a concentration, a benchmark to which it is compared, and the percentage that the risk is to the benchmark.",
        "label": "Schedules of Concentration of Risk, by Risk Factor [Table Text Block]",
        "terseLabel": "Schedule of Geographic Concentration of Credit Risk Exceeding 5% of Balances",
        "verboseLabel": "Schedule of Geographic Concentration of Credit Risk"
       }
      }
     },
     "localname": "SchedulesOfConcentrationOfRiskByRiskFactorTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueTables",
      "http://nymtrust.com/role/ResidentialLoansatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuredDebt": {
     "auth_ref": [
      "r12",
      "r551",
      "r585"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 3.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date, including the current and noncurrent portions, of collateralized debt obligations (with maturities initially due after one year or beyond the operating cycle, if longer). Such obligations include mortgage loans, chattel loans, and any other borrowings secured by assets of the borrower.",
        "label": "Secured Debt",
        "netLabel": "Collateralized debt obligations ($754,264 at fair value and $1,143,855 at amortized cost, net as of March\u00a031, 2022 and $839,419 at fair value and $682,802 at amortized cost, net as of December\u00a031, 2021)",
        "terseLabel": "Collateralized debt, carrying value",
        "verboseLabel": "Multi-family CDOs, at fair value"
       }
      }
     },
     "localname": "SecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuredDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Collateralized debt obligation backed by, for example, but not limited to, pledge, mortgage or other lien on the entity's assets.",
        "label": "Secured Debt [Member]",
        "terseLabel": "Secured Debt"
       }
      }
     },
     "localname": "SecuredDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SecuritiesBorrowed": {
     "auth_ref": [
      "r39",
      "r42",
      "r519"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of securities borrowed from entities in exchange for collateral. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Borrowed",
        "terseLabel": "Securities borrowed",
        "verboseLabel": "Unencumbered investment securities"
       }
      }
     },
     "localname": "SecuritiesBorrowed",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SecuritiesInvestmentMember": {
     "auth_ref": [
      "r628"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This member categorizes all investments in securities to segregate them from other than security investments.",
        "label": "Securities Investment [Member]",
        "terseLabel": "Investment securities"
       }
      }
     },
     "localname": "SecuritiesInvestmentMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r39",
      "r42",
      "r113",
      "r117",
      "r555"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Sold under Agreements to Repurchase",
        "netLabel": "Outstanding repurchase agreements",
        "terseLabel": "Repurchase agreements"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SeriesBPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Outstanding nonredeemable series B preferred stock or outstanding series B preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series B Preferred Stock [Member]",
        "terseLabel": "Series B Preferred Stock"
       }
      }
     },
     "localname": "SeriesBPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesCPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Outstanding nonredeemable series C preferred stock or outstanding series C preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series C Preferred Stock [Member]",
        "terseLabel": "Series C Preferred Stock"
       }
      }
     },
     "localname": "SeriesCPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesDPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Outstanding nonredeemable series D preferred stock or outstanding series D preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series D Preferred Stock [Member]",
        "terseLabel": "Series D Preferred Stock"
       }
      }
     },
     "localname": "SeriesDPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesEPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Outstanding nonredeemable series E preferred stock or outstanding series E preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series E Preferred Stock [Member]",
        "terseLabel": "Series E Preferred Stock"
       }
      }
     },
     "localname": "SeriesEPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesFPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Outstanding nonredeemable series F preferred stock or outstanding series F preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series F Preferred Stock [Member]",
        "terseLabel": "Series F Preferred Stock"
       }
      }
     },
     "localname": "SeriesFPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SeriesGPreferredStockMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Outstanding nonredeemable series G preferred stock or outstanding series G preferred stock. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Series G Preferred Stock [Member]",
        "terseLabel": "Series G Preferred Stock"
       }
      }
     },
     "localname": "SeriesGPreferredStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensation": {
     "auth_ref": [
      "r93"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncash expense for share-based payment arrangement.",
        "label": "Share-based Payment Arrangement, Noncash Expense",
        "terseLabel": "Stock based compensation expense, net"
       }
      }
     },
     "localname": "ShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1": {
     "auth_ref": [
      "r356"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimated period over which an employee is required to provide service in exchange for the equity-based payment award, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Requisite Service Period",
        "terseLabel": "Requisite service period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardRequisiteServicePeriod1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r356"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
        "terseLabel": "Award vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r360"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedTerseLabel": "Forfeited (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r363"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Granted (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r363"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Granted (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r362"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Non-vested shares at end of period (in shares)",
        "periodStartLabel": "Non-vested shares at beginning of period (in shares)",
        "terseLabel": "Non-vested shares (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward]",
        "terseLabel": "Number of Non-vested Restricted Shares"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r362"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Non-vested shares at end of period (in dollars per share)",
        "periodStartLabel": "Non-vested shares at beginning of period (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]",
        "terseLabel": "Weighted Average Per Share Grant Date Fair Value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r364"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Vested (in shares)",
        "terseLabel": "Shares vested (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "auth_ref": [
      "r365"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Fair Value",
        "terseLabel": "Fair value of vested shares"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r364"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Vested (in dollars per share)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r357"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized",
        "terseLabel": "Maximum number of shares that may be issued (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant": {
     "auth_ref": [
      "r369"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant",
        "terseLabel": "Shares available for grant (in shares)"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r353",
      "r358"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]",
        "terseLabel": "Award Type [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails",
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage": {
     "auth_ref": [
      "r356"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of vesting of award under share-based payment arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Rights, Percentage",
        "terseLabel": "Award vesting rights, percentage"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1": {
     "auth_ref": [
      "r366",
      "r374"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expected term of award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term",
        "terseLabel": "Fair value, expected term"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average grant-date fair value of non-vested options forfeited.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested Options Forfeited, Weighted Average Grant Date Fair Value",
        "terseLabel": "Forfeited (in dollars per share)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNonvestedRestrictedStockPSUandRSUAwardActivityDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r104",
      "r122"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SummaryofSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r16",
      "r17",
      "r18",
      "r106",
      "r109",
      "r139",
      "r142",
      "r147",
      "r150",
      "r152",
      "r160",
      "r161",
      "r162",
      "r211",
      "r248",
      "r252",
      "r253",
      "r254",
      "r257",
      "r258",
      "r307",
      "r308",
      "r312",
      "r316",
      "r323",
      "r478",
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Class of Stock [Axis]",
        "terseLabel": "Class of Stock [Axis]"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/Cover",
      "http://nymtrust.com/role/StockholdersEquityCashDividendsDeclaredPreferredStockDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r0",
      "r35",
      "r58",
      "r59",
      "r60",
      "r123",
      "r124",
      "r125",
      "r127",
      "r133",
      "r135",
      "r159",
      "r214",
      "r323",
      "r332",
      "r370",
      "r371",
      "r372",
      "r395",
      "r396",
      "r453",
      "r481",
      "r482",
      "r483",
      "r484",
      "r485",
      "r487",
      "r612",
      "r613",
      "r614",
      "r703"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]",
        "terseLabel": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]",
        "terseLabel": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]",
        "terseLabel": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r123",
      "r124",
      "r125",
      "r159",
      "r540"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r17",
      "r18",
      "r323",
      "r332"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Stock Issued During Period, Shares, New Issues",
        "terseLabel": "Shares issued (in shares)"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockRepurchaseProgramAuthorizedAmount1": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stock repurchase plan authorized.",
        "label": "Stock Repurchase Program, Authorized Amount",
        "terseLabel": "Stock repurchase program, authorized amount"
       }
      }
     },
     "localname": "StockRepurchaseProgramAuthorizedAmount1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r18",
      "r22",
      "r23",
      "r109",
      "r187",
      "r211",
      "r478",
      "r501"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "totalLabel": "Company's stockholders' equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Stockholders' Equity:"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r0",
      "r1",
      "r59",
      "r109",
      "r123",
      "r124",
      "r125",
      "r127",
      "r133",
      "r211",
      "r214",
      "r332",
      "r370",
      "r371",
      "r372",
      "r395",
      "r396",
      "r408",
      "r409",
      "r432",
      "r453",
      "r478",
      "r481",
      "r482",
      "r487",
      "r613",
      "r614",
      "r703"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stockholders' equity (deficit), net of receivables from officers, directors, owners, and affiliates of the entity, attributable to both the parent and noncontrolling interests. Amount excludes temporary equity. Alternate caption for the concept is permanent equity.",
        "label": "Stockholders' Equity, Including Portion Attributable to Noncontrolling Interest",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Total equity"
       }
      }
     },
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityNoteAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stockholders' Equity Note [Abstract]",
        "terseLabel": "Stockholders' Equity Note [Abstract]"
       }
      }
     },
     "localname": "StockholdersEquityNoteAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r107",
      "r308",
      "r311",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r320",
      "r322",
      "r332",
      "r334"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income. Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
        "label": "Stockholders' Equity Note Disclosure [Text Block]",
        "terseLabel": "Stockholders' Equity"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquity"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubordinatedBorrowingAxis": {
     "auth_ref": [
      "r577"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of borrowing under subordinated debt agreement.",
        "label": "Subordinated Borrowing [Axis]",
        "terseLabel": "Subordinated Borrowing [Axis]"
       }
      }
     },
     "localname": "SubordinatedBorrowingAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubordinatedBorrowingNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the borrowing under subordinated debt agreements, including exchange memberships contributed for the use of the Company.",
        "label": "Subordinated Borrowing, Name [Domain]",
        "terseLabel": "Subordinated Borrowing, Name [Domain]"
       }
      }
     },
     "localname": "SubordinatedBorrowingNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubordinatedDebt": {
     "auth_ref": [
      "r10",
      "r12",
      "r551",
      "r585"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 1.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of subordinated debt (with initial maturities beyond one year or beyond the operating cycle if longer). Subordinated debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt",
        "terseLabel": "Subordinated debentures",
        "verboseLabel": "Subordinated debentures, carrying value"
       }
      }
     },
     "localname": "SubordinatedDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SubordinatedDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents domestic or foreign subordinated debt. Subordinated debt has a lower priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt [Member]",
        "terseLabel": "Subordinated debentures"
       }
      }
     },
     "localname": "SubordinatedDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
        "label": "Subsequent Event [Line Items]",
        "terseLabel": "Subsequent Event [Line Items]"
       }
      }
     },
     "localname": "SubsequentEventLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SubsequentEventsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r488",
      "r503"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]",
        "terseLabel": "Subsequent Event"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SubsequentEventsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTable": {
     "auth_ref": [
      "r488",
      "r503"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
        "label": "Subsequent Event [Table]",
        "terseLabel": "Subsequent Event [Table]"
       }
      }
     },
     "localname": "SubsequentEventTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SubsequentEventsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r488",
      "r503"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]",
        "terseLabel": "Subsequent Event Type [Axis]"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SubsequentEventsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r488",
      "r503"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]",
        "terseLabel": "Subsequent Event Type [Domain]"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SubsequentEventsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]",
        "terseLabel": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r502",
      "r504"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events [Text Block]",
        "terseLabel": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/SubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsidiarySaleOfStockAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of sale of the entity's stock.",
        "label": "Sale of Stock [Axis]",
        "terseLabel": "Sale of Stock [Axis]"
       }
      }
     },
     "localname": "SubsidiarySaleOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockholdersEquityNarrativeDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalBalanceSheetDisclosuresTextBlock": {
     "auth_ref": [
      "r44"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for supplemental balance sheet disclosures, including descriptions and amounts for assets, liabilities, and equity.",
        "label": "Supplemental Balance Sheet Disclosures [Text Block]",
        "terseLabel": "Other Assets and Other Liabilities"
       }
      }
     },
     "localname": "SupplementalBalanceSheetDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/OtherAssetsandOtherLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental Disclosure:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Line Items]",
        "terseLabel": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Line Items]"
       }
      }
     },
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTable": {
     "auth_ref": [
      "r521",
      "r522"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the nature and risks of short-term collateralized financing obtained through repurchase agreements, securities lending transactions and repurchase-to-maturity transactions, accounted for as secured borrowings.",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table]",
        "terseLabel": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table]"
       }
      }
     },
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/RepurchaseAgreementsBorrowingsUnderFinancingArrangementsandAssociatedAssetsPledgedasCollateralDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferToOtherRealEstate": {
     "auth_ref": [
      "r100",
      "r101",
      "r102"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions.",
        "label": "Real Estate Owned, Transfer to Real Estate Owned",
        "terseLabel": "Transfer from residential loans to real estate owned"
       }
      }
     },
     "localname": "TransferToOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r193",
      "r194",
      "r203",
      "r204",
      "r205",
      "r286",
      "r321",
      "r452",
      "r505",
      "r506",
      "r507",
      "r508",
      "r509",
      "r510",
      "r511",
      "r512",
      "r513",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r521",
      "r523",
      "r524",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r537",
      "r676",
      "r677",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CollateralizedDebtObligationsMaturitiesDetails",
      "http://nymtrust.com/role/CollateralizedDebtObligationsSummaryofDebtDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofEquityInvestmentsAccountedundertheEquityMethodDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeFromMultiFamilyPreferredEquityOwnershipInterestsDetails",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueProceedsfromSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleDetails",
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueScheduleofInvestmentSecuritiesAvailableforSaleinUnrealizedLossPositionDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsCompanysRepurchaseAgreementsDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsNarrativeDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsRepurchaseAgreementsSecuredbyInvestmentSecuritiesDetails",
      "http://nymtrust.com/role/RepurchaseAgreementsUnencumberedSecuritiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "auth_ref": [
      "r94"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period.",
        "label": "Unrealized Gain (Loss) on Derivatives",
        "terseLabel": "Unrealized Gains (Losses)"
       }
      }
     },
     "localname": "UnrealizedGainLossOnDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DerivativeInstrumentsandHedgingActivitiesComponentsofInvestmentFairValueChangesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnInvestments": {
     "auth_ref": [
      "r94"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherOperatingIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) on investment.",
        "label": "Unrealized Gain (Loss) on Investments",
        "negatedLabel": "Unrealized losses (gains), net",
        "netLabel": "Unrealized gain, net",
        "terseLabel": "Unrealized (losses) gains, net"
       }
      }
     },
     "localname": "UnrealizedGainLossOnInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS",
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/EquityInvestmentsatFairValueScheduleofIncomeLossFromInvestmentsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of unrealized gains and losses on investments.",
        "label": "Unrealized Gain (Loss) on Investments [Table Text Block]",
        "terseLabel": "Investment Securities Available-for-sale in an Unrealized Loss Position"
       }
      }
     },
     "localname": "UnrealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/InvestmentSecuritiesAvailableforSaleatFairValueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_UnsecuredDebt": {
     "auth_ref": [
      "r12",
      "r551",
      "r585"
     ],
     "calculation": {
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Including the current and noncurrent portions, carrying value as of the balance sheet date of uncollateralized debt obligations (with maturities initially due after one year or beyond the operating cycle if longer).",
        "label": "Unsecured Debt",
        "terseLabel": "Senior unsecured notes",
        "verboseLabel": "Senior unsecured notes, carrying value"
       }
      }
     },
     "localname": "UnsecuredDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsCarryingValueandEstimatedFairValueoftheCompanysFinancialAssetsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnsecuredDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt obligation not collateralized by pledge of, mortgage of or other lien on the entity's assets.",
        "label": "Unsecured Debt [Member]",
        "terseLabel": "Senior unsecured notes"
       }
      }
     },
     "localname": "UnsecuredDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofDebtRedemptionDetailsDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount": {
     "auth_ref": [
      "r386"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the valuation allowance for a specified deferred tax asset.",
        "label": "Valuation Allowance, Deferred Tax Asset, Increase (Decrease), Amount",
        "terseLabel": "Change in valuation allowance"
       }
      }
     },
     "localname": "ValuationAllowanceDeferredTaxAssetChangeInAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/IncomeTaxesNarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationTechniqueAxis": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by valuation approach and technique.",
        "label": "Valuation Approach and Technique [Axis]",
        "terseLabel": "Valuation Approach and Technique [Axis]"
       }
      }
     },
     "localname": "ValuationTechniqueAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ValuationTechniqueDiscountedCashFlowMember": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation technique calculating present value of future cash flows.",
        "label": "Valuation Technique, Discounted Cash Flow [Member]",
        "terseLabel": "Discounted cash flow"
       }
      }
     },
     "localname": "ValuationTechniqueDiscountedCashFlowMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ValuationTechniqueDomain": {
     "auth_ref": [
      "r460"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Valuation approach and technique.",
        "label": "Valuation Approach and Technique [Domain]",
        "terseLabel": "Valuation Approach and Technique [Domain]"
       }
      }
     },
     "localname": "ValuationTechniqueDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount": {
     "auth_ref": [
      "r424",
      "r429"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The reporting entity's maximum amount of exposure to loss as a result of its involvement with the Variable Interest Entity (VIE).",
        "label": "Variable Interest Entity, Reporting Entity Involvement, Maximum Loss Exposure, Amount",
        "terseLabel": "Maximum exposure"
       }
      }
     },
     "localname": "VariableInterestEntityEntityMaximumLossExposureAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Variable Interest Entity [Line Items]",
        "terseLabel": "Variable Interest Entity [Line Items]"
       }
      }
     },
     "localname": "VariableInterestEntityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/MultifamilyLoansatFairValueUnpaidPrincipalBalanceDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEClassificationandCarryingValueofUnconsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount": {
     "auth_ref": [
      "r427"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of maximum exposure to loss from involvement with consolidated variable interest entity (VIE).",
        "label": "Variable Interest Entity, Primary Beneficiary, Maximum Loss Exposure, Amount",
        "terseLabel": "Investment in Consolidated SLST limited to securities owned, net carrying value",
        "verboseLabel": "Net investment"
       }
      }
     },
     "localname": "VariableInterestEntityPrimaryBeneficiaryMaximumLossExposureAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityPrimaryBeneficiaryMember": {
     "auth_ref": [
      "r412",
      "r413",
      "r420",
      "r421",
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Variable Interest Entities (VIE) in which the entity has a controlling financial interest (as defined) and of which it is therefore the primary beneficiary. A controlling financial interest is determined based on both: (a) the entity's power to direct activities of the VIE that most significantly impact the VIE's economic performance and (b) the entity's obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. VIEs of which the entity is the primary beneficiary are included in the consolidated financial statements of the entity.",
        "label": "Variable Interest Entity, Primary Beneficiary [Member]",
        "terseLabel": "VIE, Primary Beneficiary"
       }
      }
     },
     "localname": "VariableInterestEntityPrimaryBeneficiaryMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical",
      "http://nymtrust.com/role/DebtNarrativeDetails",
      "http://nymtrust.com/role/DebtScheduleofMortgageNotesPayableOnOperatingRealEstateDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsChangesinUnrealizedGainsLossesIncludedinEarningsforLevel3AssetsandLiabilitiesDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsScheduleofQuantitativeInformationRegardingSignificantandUnobservableInputsUsedintheValuationofLevel3AssetsandLiabilitiesMeasuredatFairValueDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3AssetsDetails",
      "http://nymtrust.com/role/FairValueofFinancialInstrumentsValuationforLevel3LiabilitiesDetails",
      "http://nymtrust.com/role/NetInterestIncomeComponentsofInterestIncomeandInterestExpenseDetails",
      "http://nymtrust.com/role/RealEstateNetNarrativeDetails",
      "http://nymtrust.com/role/RealEstateNetSummaryofInvestmentsDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueComponentsofNetGainLossonResidentialMortgagesDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueConcentrationofRiskDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueNarrativeDetails",
      "http://nymtrust.com/role/ResidentialLoansatFairValueScheduleofResidentialLoansatFairValueDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEAssetsandLiabilitiesofConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEFairValueoftheAssetsLiabilitiesandNoncontrollingInterestsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIENarrativeDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIERedeemableNoncontrollingInterestinConsolidatedVIEsDetails",
      "http://nymtrust.com/role/UseofSpecialPurposeEntitiesSPEandVariableInterestEntitiesVIEScheduleofOperationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableRateAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of variable rate.",
        "label": "Variable Rate [Axis]",
        "terseLabel": "Variable Rate [Axis]"
       }
      }
     },
     "localname": "VariableRateAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableRateDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest rate that fluctuates over time as a result of an underlying benchmark interest rate or index.",
        "label": "Variable Rate [Domain]",
        "terseLabel": "Variable Rate [Domain]"
       }
      }
     },
     "localname": "VariableRateDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/DebtPreferredSecuritiesDetails",
      "http://nymtrust.com/role/StockholdersEquityScheduleofPreferredStockIssuedandOutstandingDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VestingAxis": {
     "auth_ref": [
      "r369"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by vesting schedule of award under share-based payment arrangement.",
        "label": "Vesting [Axis]",
        "terseLabel": "Vesting [Axis]"
       }
      }
     },
     "localname": "VestingAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VestingDomain": {
     "auth_ref": [
      "r369"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Vesting schedule of award under share-based payment arrangement.",
        "label": "Vesting [Domain]",
        "terseLabel": "Vesting [Domain]"
       }
      }
     },
     "localname": "VestingDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/StockBasedCompensationNarrativeDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r138",
      "r152"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Weighted average shares outstanding-diluted (in shares)",
        "totalLabel": "Diluted weighted average common shares outstanding (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r136",
      "r152"
     ],
     "calculation": {
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted average shares outstanding-basic (in shares)",
        "verboseLabel": "Weighted average common shares outstanding-basic (in shares)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://nymtrust.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS",
      "http://nymtrust.com/role/LossEarningsPerCommonShareComputationofBasicandDilutedLossEarningsperCommonShareDetails"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 12
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4304-108586"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4313-108586"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4332-108586"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=SL98516268-108586"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18726-107790"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(c))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(3))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(4))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(24))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1448-109256"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1377-109256"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1505-109256"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1252-109256"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1707-109256"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1757-109256"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1278-109256"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1930-109256"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "55",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e2626-109256"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1337-109256"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125512782&loc=d3e3842-109258"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125512782&loc=d3e4984-109258"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=125520817&loc=d3e70229-108054"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70434-108055"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70478-108055"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6327-108592"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6442-108592"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8813-108599"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8924-108599"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9038-108599"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9038-108599"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9054-108599"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124259787&loc=d3e4647-111522"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953423-111524"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953659-111524"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=SL6953401-111524"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=122038336&loc=d3e74512-122707"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=124260329&loc=d3e26853-111562"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL6283291-111563"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27161-111563"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27198-111563"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27337-111563"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27340-111563"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL6284393-111563"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=124429488&loc=d3e326-107755"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=123583895&loc=d3e30768-111565"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=125513658&loc=d3e32014-111567"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(b)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "323",
   "URI": "http://asc.fasb.org/topic&trid=2196965"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124267575&loc=SL82922355-210448"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922890-210455"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=6388964&loc=d3e16225-109274"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(2)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=123351718&loc=d3e2443-110228"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=123406679&loc=d3e25336-109308"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=124440162&loc=d3e12069-110248"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=124440162&loc=d3e12069-110248"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123465755&loc=d3e1835-112601"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123465755&loc=SL6230698-112601"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.1)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466302&loc=d3e4852-112606"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.12)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.13)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495334-112611"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.17)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031898-161870"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495745-112612"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123467658&loc=d3e12317-112629"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "40",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123467658&loc=d3e12355-112629"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(12)(c)",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(16)(c)",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "14",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "15",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=122040564&loc=SL6540498-122764"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=65888546&loc=d3e21300-112643"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21553-112644"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21564-112644"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(5))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496180-112644"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21475-112644"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21484-112644"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21488-112644"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21488-112644"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21506-112644"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21506-112644"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21521-112644"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21538-112644"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123360276&loc=SL49130531-203044"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123360276&loc=SL49130532-203044"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130545-203045"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130549-203045"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.28,29)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=123468992&loc=d3e4534-113899"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(g)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)-(ii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.D.2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.F)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122142933&loc=d3e11149-113907"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122142933&loc=d3e11178-113907"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e31931-109318"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.8)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32705-109319"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32809-109319"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32857-109319"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32559-109319"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32559-109319"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32621-109319"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32632-109319"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=77885760&loc=SL35686385-199418"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330215-122817"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=123410050&loc=d3e5419-128473"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4568447-111683"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4568740-111683"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225877-175312"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4569616-111683"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4569655-111683"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2AA",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "a",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6759068-111685"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5728-111685"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "b",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5728-111685"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5728-111685"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6759159-111685"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6759159-111685"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6759159-111685"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5747-111685"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5747-111685"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6228884-111685"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4590271-111686"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5580258-113959"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "210",
   "URI": "http://asc.fasb.org/topic&trid=2122208"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL109998890-113959"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624181-113959"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5708775-113959"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5708775-113959"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123477628&loc=d3e90205-114008"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19279-110258"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e637-108580"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=SL6742756-110258"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "60",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=7493716&loc=d3e21868-110260"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13279-108611"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13467-108611"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13476-108611"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123596393&loc=d3e14172-108612"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e681-108580"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669686-108580"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124437977&loc=d3e55792-112764"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "205",
   "URI": "http://asc.fasb.org/topic&trid=2122149"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e689-108580"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL34724391-108580"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL6224234-111729"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "860",
   "URI": "http://asc.fasb.org/topic&trid=2197590"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "http://asc.fasb.org/extlink&oid=123353855&loc=SL119991595-234733"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "928",
   "URI": "http://asc.fasb.org/extlink&oid=6473545&loc=d3e61844-108004"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=35711157&loc=d3e42546-110969"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669625-108580"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10(4))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15(5))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.15)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13)(f))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669625-108580"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-5)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13(h))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(d))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e557-108580"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7,8)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.8)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6479118&loc=d3e64650-112822"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Subparagraph": "e",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15)(b)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(5))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(3))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(d))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(f))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(f,g))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.15(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.3(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04.4)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123605502&loc=d3e21286-158488"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123605502&loc=d3e21310-158488"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123605549&loc=d3e21493-158490"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124507222&loc=d3e1436-108581"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117783719-158441"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117819544-158441"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=66023616&loc=d3e9120-115832"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=66023616&loc=d3e9145-115832"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "205",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=118262037&loc=d3e9915-115836"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=118262064&loc=SL116631418-115840"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=118262064&loc=SL116631419-115840"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "210",
   "Subparagraph": "(c)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=99383244&loc=d3e12121-115841"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-05(4))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401414&loc=d3e604008-122996"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401555&loc=SL114874367-224272"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401555&loc=SL114874367-224272"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(2)(i))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611133-123010"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(12))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=SL120429264-123010"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=SL120429264-123010"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column F))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column G))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Column H))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 3))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29)",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=123364037&loc=d3e3115-115594"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "440",
   "Subparagraph": "(a)",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=6491277&loc=d3e6429-115629"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column B))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column C))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column D))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column E))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column F))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column G))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column H))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Column I))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 2))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "970",
   "URI": "http://asc.fasb.org/topic&trid=2156125"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "972",
   "URI": "http://asc.fasb.org/topic&trid=2134617"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "974",
   "URI": "http://asc.fasb.org/topic&trid=2156429"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "http://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "976",
   "URI": "http://asc.fasb.org/topic&trid=2134846"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "http://asc.fasb.org/extlink&oid=123360121&loc=d3e27327-108691"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "978",
   "URI": "http://asc.fasb.org/topic&trid=2134977"
  },
  "r671": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r672": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r673": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r674": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "308",
   "Subsection": "a"
  },
  "r675": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r676": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402"
  },
  "r677": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)"
  },
  "r678": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)"
  },
  "r679": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.19)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r680": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)"
  },
  "r681": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)"
  },
  "r682": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)"
  },
  "r683": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1403"
  },
  "r684": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r685": {
   "Footnote": "2",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r686": {
   "Footnote": "3",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r687": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r688": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r689": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column B",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.3)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r690": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column C",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r691": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column D",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r692": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column E",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r693": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column F",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r694": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column F",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r695": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column G",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r696": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r697": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column H",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r698": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "Column I",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r699": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "29"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6812-107765"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.4)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r700": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "01"
  },
  "r701": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "01"
  },
  "r702": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "02"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7(a),(b))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.8)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3151-108585"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3367-108585"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3000-108585"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=SL94080555-108585"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3521-108585"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3044-108585"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3095-108585"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3098-108585"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4297-108586"
  }
 },
 "version": "2.1"
}
