Click here to Login








US Crude Oil Supply, Consumption, and Inventories

by Tom Huggens, 5501 days ago
Share |






This item downloads U.S. Crude Oil and Liquid Fuels Supply, Consumption, and Inventories historical statistics data. The data is retrieved as an Excel file from the Energy Information Administration website (Official Energy Statistics from the U.S. Government), it is then parsed and updated so it can be inserted into the quotes database.

In order for this data to be added into the database, a transformation using the Pre-Script is necessary. In a nutshell, the script reads that data and creates its own properly formatted lines. Only 33 lines of code were necessary.

The data is monthly updated and can be downloaded by typing a year in the 'Year' textbox. You can also download future years (2010 for example) to get estimations of the future values of these items. The Energy Information Administration says that the estimations or projections are generated by simulation of the EIA Regional Short-Term Energy Model and that the macroeconomic projections are based on Global Insight Model of the U.S. Economy.

This is a list of the downloaded time-series items:
Crude Oil Supply
Domestic Production
Alaska
Federal Gulf of Mexico
Other Lower 48 States (excl. GOM)
Crude Oil Net Imports
SPR Net Withdrawals
Commercial Inventory Net Withdrawals
Crude Oil Adjustment
Total Crude Oil Input to Refineries
Refinery Processing Gain
Natural Gas Liquids Production
Renewables and Oxygenates Production
Fuel Ethanol Production
Petroleum Products Adjustment
Product Net Imports
Pentanes Plus
Liquefied Petroleum Gas
Unfinished Oils
Other HC/Oxygenates
Motor Gasoline Blend Comp.
Finished Motor Gasoline
Jet Fuel
Distillate Fuel Oil
Residual Fuel Oil
Other Oils
Product Inventory Net Withdrawals
Total Supply

To create the symbols, I have just added the following character '^' to the item name and replaced the space by an underscore ' _'.
Example: The symbol name for the Crude Oil Supply item is: ^Crude_Oil_Supply


Share This ->
Share |


You have to log in to bookmark this object
What is this?




Type: Download Script

Object ID: 230


Country:
United States

Market: Futures Market

Style:
Fundamental Analysis

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Trading orders - Part 2

Trading Orders - Part 1

The average maximum drawdown metric

Introduction to the trading rules analyzer

Sharpe Ratio - Part 2

Sharpe Ratio - Part 1

How to speed up quotes and news downloads

The 'inside period' function

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.