that FS Investments agreed to pay. These reimbursements were funded, in part, through the offset of management fees payable by us to FSIC IV Advisor. During the nine months ended September 30, 2017, we accrued $666 for expense recoupments payable to FS Investments. See “—Overview—Expense Reimbursement” for a discussion of the expense reimbursement agreement.
Net Investment Income (Loss)
Our net investment income (loss) totaled $2,550 ($0.12 per share) and $(1,440) ($(0.29) per share), for the nine months ended September 30, 2017 and the period from January 6, 2016 (Commencement of Operations) through September 30, 2016, respectively.
Net Realized Gains or Losses
We sold investments and received principal repayments of $38,684 and $19,899, respectively, during the nine months ended September 30, 2017, from which we realized a net gain of $1,279. We sold investments and received principal repayments of $69,960 and $3,112, respectively, during the period from January 6, 2016 (Commencement of Operations) through September 30, 2016, from which we realized a net gain of $466. During such periods, we earned $7,857 and $2,395, respectively, from periodic net settlement payments on our TRS, which are reflected as realized gains.
Net Change in Unrealized Appreciation (Depreciation) on Investments and Total Return Swap
For the nine months ended September 30, 2017 and the period from January 6, 2016 (Commencement of Operations) through September 30, 2016, the net change in unrealized appreciation (depreciation) on investments totaled $3,532 and $1,095, respectively. The net change in unrealized appreciation (depreciation) on our TRS was $189 and $1,902, respectively, for such periods. The net change in unrealized appreciation (depreciation) on our investments and TRS during the nine months ended September 30, 2017 was primarily driven by the performance of the underlying debt positions.
Net Increase (Decrease) in Net Assets Resulting from Operations
For the nine months ended September 30, 2017 and the period from January 6, 2016 (Commencement of Operations) through September 30, 2016, the net increase (decrease) in net assets resulting from operations was $15,407 ($0.70 per share) and $4,418 ($0.88 per share), respectively.
Financial Condition, Liquidity and Capital Resources
Overview
As of September 30, 2017, we had $41,063 in cash, which we and our wholly-owned financing subsidiaries held in custodial accounts, and $69,500 in cash held as collateral by Citibank under the terms of the TRS. In addition, as of September 30, 2017, we had $30,100 in borrowings available under our financing arrangement. As of September 30, 2017, we also had broadly syndicated investments and opportunistic investments that could be sold to create additional liquidity. As of September 30, 2017, we had ten unfunded debt investments with aggregate unfunded commitments of $13,107 and an unfunded equity/other commitment to purchase up to $16 in shares of series A units of Chisholm Oil and Gas, LLC. We maintain sufficient cash on hand, available borrowings and liquid securities to fund such unfunded commitments should the need arise.
We generate cash primarily from the issuance of shares under our distribution reinvestment plan and from cash flows from fees and interest earned from our investments, as well as principal repayments and proceeds from sales of our investments. To seek to enhance our returns, we also employ leverage as market conditions permit and at the discretion of FSIC IV Advisor, but in no event will leverage employed exceed 50% of the value of our assets, as required by the 1940 Act. See “—Financing Arrangements.”
Prior to investing in securities of portfolio companies, we invest the cash received from the net proceeds from our continuous public offering, from the issuance of shares of common stock under our distribution reinvestment plan, from fees, and interest earned from our investments and principal