Click here to Login





                                                   Deleting Quote data for a symbol from the Database

  0

0
Dev
2018-11-27 16:58:32


How can I delete quote data for a symbol (either all data or some data for a particular date) in a C# script rather than manually. Thanks


QuantShare
2018-11-29 02:51:41

  0

Here is how: (Same logic applies to intraday data - Quotes.GetIntradayQuotes)

HistoricalQuotes hq = Quotes.GetHistoricalQuotes("AAPL");
MessageBox.Show(hq.Date.Length.ToString());
hq.Date = new DateTime[0];
hq.Close = new double[0];
hq.Open = new double[0];
hq.High = new double[0];
hq.Low = new double[0];
hq.Volume = new double[0];
hq.OpenInterest = new double[0];
Quotes.SaveHistoricalQuotes(hq);



QuantShare
2018-11-29 11:25:06

  0

Please remove this line:
MessageBox.Show(hq.Date.Length.ToString());



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
News data for US companies from Google RSS feed
Market cap, ROE, ROA and Forward PE for U.S. Stocks - Fundamental...
Lagged Data From a Custom Database
Market Cap Historical Data for the US Stock Market
Historical EOD data Downloader for Delisted/Bankrupt Stocks

How-to Lessons
How to quickly download the most recent EOD data for your stocks
How to import trading data from CSV files
How to download earnings calendar data for various stocks
How to quickly select stocks based on the last value of a databas...
How to get fundamental data for U.S. Stocks

Related Forum Threads
Deleting Data From The Database
Removing freak data from the database
Plotting the data from custom -Intraday data base
What is the stock symbol for India VIX?
Continuous futures symbol for Live data feed Interactive Broker

Blog Posts
Create custom metrics for the statistical data analysis tool
6 New Ways to Download Free Intraday Data for the U.S. Stock Mark...
Download historical EOD data for the stock, futures, ETF and Fore...
6 ways to download free intraday and tick data for the U.S. stock...
How to filter quotes data from high and low price spikes









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.