Get through the Flush and ask for money interface! All kinds of data are available! Stock Quantitative Analysis Tool QTYX-V2.6.4

0109141681536a348b587e2f707a74de.png

foreword

d7df49955e6102050d4978037cac99ba.png

 
  

Flush's iWencai is a robot intelligent stock selection question and answer platform, input some conditional information to get the corresponding stock selection results.

e16d59dc3b5f3a7cc29ad4e659b33e4d.png

从问财这个平台可以获得各式各样的选股数据,把这些数据融入到自己的股票量化交易平台中岂不是获得到了源源不断的数据源。

Therefore, we integrated the QTYX interface into the stock quantitative analysis tool QTYX as one of the data sources, and combined with strategies and trading links, the system became more powerful and flexible. The stock quantitative analysis tool QTYX has been upgraded to version 2.6.4.

dd31f8ad6057cb8f85f8650605fc6d42.png

Preparation

7f672fe1ed5a5de5e0d673a7c891cba8.png

First install iwencai's Python library wencai: pip install wencai

Since the js code is executed in the package, node.js needs to be installed to ensure that there is a js running environment locally.

After installing the library, do some configuration on the interface (this part has been completed in the SpecialData.py file of QTYX):

import wencai as wc
from wencai.core.session import Session
#i问财配置
Session.headers.update({'Host':'www.iwencai.com'})
wc.set_variable(cn_col=True)

The data returned by the default wencai library is only the first page, so the source code of wencai needs to be modified.

In event.py and crawler.py, add a page number parameter page_size to the interface of the search function, and specify to obtain the data of a certain page. The specific changes are as follows:

6c3bf000e618a02674323c597011a106.png

d67b54d31434fe4e91141d99a9349791.png

The rest of the data cleaning and processing has been done in the SpecialData.py file of QTYX.

Disclaimer: Wencai introduced here is only for learning and research, and it is not recommended to obtain large-scale data.

6471888cc517166223bf434ab2d699ce.png

how to use

d4b96f0d9d9fbf264941f9446d8da376.png

Let's talk about how to use it!

First click "Stock Selection Process" —> "Start Data-Driven Stock Selection" —> "Refresh Stock Selection Data".

Select the most recent transaction date in the "Current Date" box, such as April 30, 2023.

Under the "Stock Picking Data Source" list, select "Call Flush Asking Money". Then the Enter Conditions dialog appears:

3a984b215d9d4019d6750268268105fd.png

我们可以输入我们选股的条件以及获取的页数(页数越多获取数据的时间越长)

For example, enter "popularity ranking":

02678aaade0d6bf892c7d91de35fcc8f.png

比如输入“当前热股”:

1ea5718a2f049dea55e346d9b5f23b3f.png

比如输入“今日涨停”:
比如输入“均线多头排列”:

388b84564b2002fb2cd91048ae45a364.png

获取到数据之后,就可以继续使用QTYX中的股票分析功能进一步过滤出优质股票,比如使用条件表达式过滤、组合分析、择时策略指标等等,也可以导入到交易股票池中进行实盘监测等等,总之可以随心所欲,按自己的交易想法来即可。

illustrate

Friends who want to join the Knowledge Planet "Fun with Stock Quantitative Trading" remember to call me on WeChat to get benefits! Seats are limited and first come first served.

Knowledge Planet Introduction Click: Overview of the essence of Knowledge Planet "Playing Stock Quantitative Trading"

1a32619b56a55a87575bbf46e59faf39.jpeg

Guess you like

Origin blog.csdn.net/hangzhouyx/article/details/130453240