Click here to Login





                                                   wget/curl symbol lists in script editr

  0

0
Joshua Laferriere
2019-08-31 07:28:57


Quantshare support said


"In the script editor (Tools -> Script Editor), you can create a script that gets the symbols then add and remove them from the QuantShare database (using Symbols class). Scripts needs to be implemented in C#
You can automate script execution using (Tools -> Task Manager)"

but I'm not sure how to wget/curl my lists first in C#

I found this url
https://www.quantshare.com/sa-250-download-trading-data-using-the-url-script

but... no advice on how to download a file (curl or wget would be nice). The stackexchanges that detail how to do it in C# are not working (different libraries I assume)

https://stackoverflow.com/questions/7929013/making-a-curl-call-in-c-sharp
https://stackoverflow.com/questions/9430960/c-sharp-make-wget-request?lq=1

These are my lists of symbols that are updated daily from nasdaq that I'd like to have redownloaded daily into quantshare

curl --silent "ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt" --stderr -> nasdaqlisted.txt
curl --silent "ftp://ftp.nasdaqtrader.com/SymbolDirectory/otherlisted.txt" --stderr -> otherlisted.txt

REM ETF Bonds
curl --silent "https://www.nasdaq.com/investing/etfs/etf-finder-results.aspx?download=Yes" --stderr -> ETFList.csv

What I'm hoping to do is download the 3 lists, then add the symbols into quantshare via a loop



QuantShare
2019-09-02 21:44:39

  0

Data is downloaded automatically given the URLs you provide. The URL-script tool allows you to add URLs dyncamically, from a list of symbols for example.
The scripts must be written in CSharp. In URL-script, there is already a ready to use function to get data from a URL:
string res = Functions.Net.DownloadString(url);

We really strongly suggest you check our documentation to understand how downloaders work.



Joshua Laferriere
2019-09-03 08:15:03

  0

"We really strongly suggest you check our documentation to understand how downloaders work. "

can you guide me in the right direction with a relevant url?

I have this which is pretty sparse

https://www.quantshare.com/how-256-how-to-automatically-start-a-downloader-every-few-minutes

"
In URL-script, there is already a ready to use function to get data from a URL:
string res = Functions.Net.DownloadString(url);
"

Where did you find this? I looked for a way to download a url in C# online (and provided the links), but I see you had this resource readily available. What I'm asking, is where is your resource?



QuantShare
2019-09-03 14:17:33

  0

The document pdf or chm files can be found here:
https://www.quantshare.com/index.php?option=download

Check the "Download Manager" section.



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
Equity Data to Ticker Symbol
Identify Spilts Screener Script
Chande TrendScore By Symbol
Ticker Symbol Index
Historical economic calendar data by currency symbol

How-to Lessons
How to run a screen or a watchlist from a script
How to get stocks for a particular index using the global script
How to rename a ticker symbol
How to execute a script at regular intervals
How to quickly add a ticker symbol

Related Forum Threads
Accessing Symbol Info in Screener, Strategy script and in MM tool...
Equity to Symbol - AMM / Script
Clear Symbol data stored in memory in global script
Different symbol list for Long/Short / custom portfolio categorie...
Money Management Script variables and more

Blog Posts
Update Chart Layout based on Active Ticker Symbol - Part 2
Update Chart Layout based on Active Ticker Symbol
QS Trading Software: Global Script
Backtesting Your Trading Systems: Symbol Segmentation
Charting & Scripts - Manage stock charts using the global script









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.