NEW YORK (TheStreet) -- Stocks held onto big gains through Wednesday afternoon after crude oil settled at a 2015 high. 

The Dow Jones Industrial Average added 1.5%, or 262 points, the S&P 500 rose 1.3% and the Nasdaq gained 1.4%.

Crude oil rallied on Wednesday as weekly domestic oil inventories declined 6.8 million barrels over the week ended June 6, according to the Energy Information Administration. Analysts had expected domestic inventories to fall 1.7 million barrels after a 1.9 million-barrel decline a week earlier. West Texas Intermediate crude settled 2.1% higher to $61.43 a barrel.

The energy sector rallied on higher crude prices. NRG Energy (NRG), Freeport-McMoRan (FCX) and Transocean (RIG) topped the S&P 500 while Chevron (CVX) and Exxon Mobil (XOM) were among the best performers on the Dow. The Energy Select Sector SPDR ETF (XLE) jumped 1.4%.

The ECB said Wednesday it had raised the amount the Greek central bank can loan to national banks to 83 billion euros ($94.1 billion), up from a previous limit of 80.7 billion euros. That marks the largest weekly increase since mid-February. 

Separately, Germany is reportedly considering offering some debt relief to Greece if it commits to at least one economic reform, sources told Bloomberg. The conciliatory step would allow the debt-ravaged country to repay at least some of its debt due to European creditors on June 30 while further negotiations take place. The National Bank of Greece (NBG) moved higher on the reports.

Financial stocks were higher as bonds extended a selloff. Berkshire Hathaway (BRK.A), JPMorgan (JPM), Wells Fargo (WFC), Bank of America (BAC) and Goldman Sachs (GS) climbed, while the Financial Select Sector SPDR ETF (XLF) added 1.5%.

Global bonds continued to sell off on Wednesday with yields on the benchmark 10-year Treasury hitting an eight-month high of 2.47%. The German Bund yield moved above 1% for the first time since September. European bonds have been under pressure on signs of economic improvement in the region.

GoPro (GPRO) slid more than 1% after Citigroup lowered its outlook on shipments for the action camera maker to 9.3 million units by 2018, down from a previous forecast of 10.6 million. Analysts said fewer respondents to a survey described GoPro's product line as "appealing." Click here for more.

Netflix (NFLX) shares moved 4.4% higher after stockholders approved a proposal for the board to issue more shares. The move will see Netflix increase its shares outstanding to 5 billion from the current 170 million, a step that increases the likelihood of a stock split. Click here for more.

Tesla (TSLA) will begin deliveries of its Model X vehicle in three to four months, according to CEO Elon Musk. Tesla has accepted 20,000 reservations for the model, which has seen production delays due to technical issues.

More from Markets

Ackman Investment Buoys Lowe's; DraftKings Responds to FanDuel Merger -- ICYMI

Ackman Investment Buoys Lowe's; DraftKings Responds to FanDuel Merger -- ICYMI

Replay: Jim Cramer on the Markets, Tiffany, Micron Technology and Union Pacific

Replay: Jim Cramer on the Markets, Tiffany, Micron Technology and Union Pacific

Carnival CEO Arnold Donald: China Will Become the Largest Cruise Market

Carnival CEO Arnold Donald: China Will Become the Largest Cruise Market

Red Robin Slumps After Earnings Miss

Red Robin Slumps After Earnings Miss

Owner of Moviepass Sees Stock Plummet

Owner of Moviepass Sees Stock Plummet