The following two methods can be used to obtain stock data:
1. Data retrieval through HTTP/JavaScript Interfaces
2. Web-Service Interface
1. Data retrieval through HTTP/JavaScript Interfaces
1.1sina stock data interface
Take the Daqin Railway
There are two ways to get the stock data now:1. Http/javascript Interface Fetch data2. Web-service interface1.http/javascript Interface Fetch Data 1.1Sina Stock Data InterfaceTake the Great Qin Railway (stock code: 601006) For example, if you want
This article describes the PHP based on curl implementation of the stock information query class. Share to everyone for your reference, specific as follows:
Stock information query function we need to crawl third party data, and then we analyze the
This article mainly introduces the curl-based php stock information query class, and analyzes the related operation skills of php using curl to call the API interface to realize the stock information query function in the form of a complete instance,
This paper describes the stock information query class based on curl implemented by PHP. Share to everyone for your reference, as follows:
Stock information query function we need to crawl the data of the third party, and then we analyze the data
Php curl-based Stock Information Query Class instance, curl Information Query
This example describes the Stock Information Query Class implemented by php Based on curl. We will share this with you for your reference. The details are as follows:
We
This article describes a simple stock acquisition tool, which collects the stock trend information of the same flush, and uses the php command line mode to write. Only some of the collection functions are completed, and the output data is copied to
Use the PHP Command Line Mode to collect stock trend information, and the php Command Line
Let's just talk about the implementation code.
The main function has only one class implementation (stock. class. php ):
stockId = $ stockId;} private
Recently helped a friend write a simple stock collection tool, collected with the flowers shun stock trend information, using PHP command line mode to write. Only the collection part function is completed, the output data is copied to execl (or ET)
Today, a two-cornered friend let me help write a stock query class, to integrate into the micro-letter, so spent a little time to write an incomplete, haha, if there are people who want to play, you can continue to submit code, let it become perfect
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.