Interest income was $4.1 million and $3.2 million for the nine months ended September 30, 2018 and 2017, respectively. The $0.9 million, or 28% increase was primarily due to a greater return on investments during the nine months ended September 30, 2018. Interest expense was $25,000 and $37,000 for the nine months ended September 30, 2018 and 2017, respectively.
Liquidity and Capital Resources
Since our inception, we have financed our operations primarily through proceeds from the sale of equity securities. Through September 30, 2018, we have received approximately $932.4 million in aggregate gross proceeds from stock issuances, including convertible preferred stock, our initial public offering, private placements of our common stock, registered offerings of our common stock and an equity investment by a former collaboration partner.
We had $282.1 million and $330.6 million in cash, cash equivalents and marketable securities as of September 30, 2018 and December 31, 2017, respectively, and $152,000 of restricted cash as of September 30, 2018 and December 31, 2017, respectively. We regularly review our investments and monitor the financial markets. As of September 30, 2018, our cash, cash equivalents and marketable securities included high-quality financial instruments, primarily money market funds, government sponsored bond obligations and other corporate debt securities which we believe are subject to limited credit risk.
In October 2014, we entered into a Master Security Agreement for a $1.0 million Capital Expenditure Line of Credit, or the 2014 Credit Facility, with Webster Bank, National Association, or Webster. In May 2016, we entered into an amendment to the Master Security Agreement. The amendment provided for a line of credit for equipment loan advances of $1.4 million, of which approximately $400,000 reflected the outstanding balance as of the date of the amendment, under the Master Security Agreement, dated October 2014 and extended the period during which we were entitled to draw down equipment loan advances through May 26, 2017. In July 2017, Webster agreed to further extend the period during which we were entitled to draw down under the facility through May 28, 2018. We are no longer entitled to draw down under the facility. Under the facility, purchased equipment serves as collateral for any advances. Each drawdown under the facility is payable over a three-year term and bears interest at a fixed rate, determined at the time of each borrowing, equal to the Three Year Federal Home Loan Bank of Boston Classic Advance rate plus 4.75%. In October 2016, Webster advanced $443,000 to us under the facility.
As of September 30, 2018, our debt balance due to borrowings was $169,000 with a weighted average interest rate of 6.01%.
In February 2017, we filed a universal shelf registration on FormS-3 with the U.S. Securities and Exchange Commission, or SEC, which was declared effective by the SEC on April 28, 2017, to register for sale from time to time up to $250.0 million of common stock, preferred stock, warrants and/or units in one or more registered offerings. Further, in February 2017, we entered into a sales agreement with Cantor Fitzgerald & Co., or Cantor, as sales agent in anat-the-market sales arrangement pursuant to which, from time to time, we may offer and sell shares of our common stock having an aggregate offering price of up to $75.0 million through Cantor pursuant to such universal shelf registration statement.
Cash used in operating activities was $50.3 million for the nine months ended September 30, 2018 and was primarily attributable to our $53.7 million net loss, combined with a $3.6 million decrease in accounts payable. This amount was partially offset by $7.5 million innon-cash stock-based compensation. Cash used in operating activities was $39.2 million for the nine months ended September 30, 2017 and was primarily attributable to our $62.0 million net loss, which was partially offset by a $15.0 million decrease in accounts receivable, primarily related to the receipt of a $15.0 million milestone payment from Janssen Pharmaceuticals, Inc. in January 2017, combined with $8.4 million innon-cash stock-based compensation.
Cash provided by investing activities was $41.3 million for the nine months ended September 30, 2018 and was primarily attributable to $214.7 million in maturities of marketable securities partially offset by $173.0 million in purchases of marketable securities. Cash provided by investing activities was $14.4 million for the nine months ended September 30, 2017 and was primarily attributable to $280.6 million in maturities of marketable securities partially offset by $265.7 million in purchases of marketable securities.
Cash provided by financing activities was $1.9 million for the nine months ended September 30, 2018 and was primarily attributable to proceeds from the exercise of stock options. Cash used in financing activities was $291,000 for the nine months ended September 30, 2017 and was primarily attributable to the payment of $175,000 of deferred financing costs related to the universal shelf registration on FormS-3 filed in February 2017 and our entry into the sales agreement with Cantor, combined with $282,000 attributable to repayments of debt. This amount was offset by $127,000 in proceeds received from the sale of our common stock under our Employee Stock Purchase Plan and the exercise of stock options.
Our product development programs and the potential commercialization of our product candidates, if any, will require substantial additional cash to fund expenses. For some of our product candidates, we may collaborate with third-party pharmaceutical and biotechnology companies for the development and potential commercialization of our product candidates, or we will seek to raise
18