Click here to Login





                                                   Multi threading URL requests in downloader

  0

0
chaz
2011-11-16 06:06:28


HI QS,
I've go well working downloader but it is single threading ie next url request is started once previous is completed.

My script is using QS functions:
Functions.AddURL("http://www.nasdaq.com/aspx/nlstrades.aspx?symbol=&selected=DB"," Loading DB");
Functions.AddURL("http://www.nasdaq.com/aspx/nlstrades.aspx?symbol=&selected=DE"," Loading DE");
.
.
.
Functions.AddURL("http://www.nasdaq.com/aspx/nlstrades.aspx?symbol=&selected=DO"," Loading DO");
Functions.AddURL("http://www.nasdaq.com/aspx/nlstrades.aspx?symbol=&selected=DD"," Loading DD");

resident in Downloader->Settings->Create URL-Script

I increased value of "Maximum number of threads to allow" from 1 to 8 in "Download Setings" but it has no effect.

Should I use different function or different dwnloader section?
Example of piece of script would be best.

Thx in advance,
Chaz



QuantShare
2011-11-16 06:33:32

  0

Best Answer
You should add the URL in the "Update Download Item" form.

Example, add the following URL:
http://www.nasdaq.com/aspx/nlstrades.aspx?symbol=

Create a new field:
Field: selected
Value: AA (This value is updated later with the selected symbols in the downloader control)
Type: Symbol




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
Metatrader Historical Data Downloader
Quandl.com Universal Downloader
Economic Series Downloader
Tiingo IEX Intraday Downloader
CryptoCompare Daily Downloader

How-to Lessons
How to automatically start a downloader every few minutes?
How to debug a downloader
How to download EOD quotes for active and valid stocks only
How to download historical quotes of indices
How to automate the data downloading process

Related Forum Threads
Unable to use Symbols.GetSymbols() in a custom downloader URL scr...
Downloader for delisted symbols
Finviz Downloader
Problem with the "Individual stocks put and call volume" download...
Downloader ISSUES- NO ERRRORS REPORTED

Blog Posts
How to download the history of dividend payments for stocks in th...
How to Download Trading Data for Certain Securities Only
German Stock Exchanges: 5 free ways to download historical EOD/In...
Download Trading Data using the Post-Script
Download Trading Data using the URL-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.