sngyai / sequoia Goto Github PK
View Code? Open in Web Editor NEWA股自动选股程序,实现了海龟交易法则、缠中说禅牛市买点,以及其他若干种技术形态
License: MIT License
A股自动选股程序,实现了海龟交易法则、缠中说禅牛市买点,以及其他若干种技术形态
License: MIT License
Hi ,
I got an issue .
Could you help me to fix it ?
env :
mac .
python 3.7.2
Issue :
深振业A('000006') generated an exception: 'date' is both an index level and a column label, which is ambiguous.
Thanks,
E
window环境 data目录下生成,603725-澶╁畨鏂版潗.h5 ,后面就报错了
需要str()第一个参数,在strategy里面有两个,句法错误
参考
Line 18 in fdcb789
因为 tables
依赖 hdf5
lzo
等模块,如果系统没有安装,会使用编译安装,编译安装时系统报错(可能和编译器版本有关)如下:
解决方案:
berw update
brew install hdf5 c-blosc lzo bzip2
pip install -r requirements.txt
记录一下,如果有人遇到类似的问题可以参考
windows 10
执行main.py文件的时候
End of HDF5 error back trace
Unable to open/create file 'data/002188-*ST巴士.h5'
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 78: invalid start byte
Exception ignored in: 'tables.utilsextension.e_walk_cb'
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 78: invalid start byte
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 44: invalid start byte
Exception ignored in: 'tables.utilsextension.e_walk_cb'
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 44: invalid start byte
*ST集成('002190') generated an exception: HDF5 error back trace
File "C:\ci\hdf5_1545244154871\work\src\H5F.c", line 444, in H5Fcreate
unable to create file
File "C:\ci\hdf5_1545244154871\work\src\H5Fint.c", line 1364, in H5F__create
unable to open file
File "C:\ci\hdf5_1545244154871\work\src\H5FD.c", line 734, in H5FD_open
open failed
End of HDF5 error back trace
我觉得应该要降VS版本试试
有问题可以参考:https://github.com/myhhub/InStock
抓取股票每日关键数据,计算股票各种指标,识别K线各种形态,内置多种选股策略,支持选股验证回测,支持自动交易,支持批量时间,运行高效
问题1:
“近三月”是死时间,为当前的“近三月”,不支持历史选股回测
#
df = ak.stock_lhb_stock_statistic_em(symbol="近三月")
mask = (df['买方机构次数'] > 1) # 机构买入次数大于1
df = df.loc[mask]
top_list = df['代码'].tolist()
上面代码建议修改为:
--------
# 股票近三月上龙虎榜且必须有2次以上机构参与的
def fetch_stock_top_entity_data(date):
if date is None:
date_date = datetime.datetime.now().date()
else:
tmp_year, tmp_month, tmp_day = date.split("-")
date_date = datetime.datetime(int(tmp_year), int(tmp_month), int(tmp_day)).date()
run_date = date_date + datetime.timedelta(days=-90)
start_date = run_date.strftime("%Y%m%d")
end_date = date_date.strftime("%Y%m%d")
code_name = '代码'
entity_amount_name = '买方机构数'
try:
data = ak.stock_lhb_jgmmtj_em(start_date, end_date)
if data is None or len(data.index) == 0:
return None
# 机构买入次数大于1计算方法,首先:每次要有买方机构数(>0),然后:这段时间买方机构数求和大于1
mask = (data[entity_amount_name] > 0) # 首先:每次要有买方机构数(>0)
data = data.loc[mask]
if len(data.index) == 0:
return None
grouped = data.groupby(by=data[code_name])
data_series = grouped[entity_amount_name].sum()
data_code = set(data_series[data_series > 1].index.values) # 然后:这段时间买方机构数求和大于1
if not data_code:
return None
return data_code
except Exception as e:
logging.debug("{}处理异常:{}".format('stockfetch.fetch_stock_top_entity_data', e))
问题2:
top_list = df['代码'].tolist(),top_list不宜为全局变量,否则不支持按时间段选股,例如:(2023-01-01至2023-03-01)
上面代码建议修改为:
# 高而窄的旗形
def check_high_tight(code_name, data, end_date=None, threshold=60, istop=False):
# 龙虎榜上必须有机构
if not istop:
return False
.............
def check_enter(end_date=None, strategy_fun=enter.check_volume):
is_check_high_tight = False
if strategy_fun.__name__ == 'check_high_tight':
stock_tops = fetch_stock_top_entity_data(end_date)
if stock_tops is not None:
is_check_high_tight = True
def end_date_filter(stock_data):
if end_date is not None:
if end_date < stock_data[1].iloc[0].日期: # 该股票在end_date时还未上市
logging.debug("{}在{}时还未上市".format(stock_data[0], end_date))
return False
if is_check_high_tight:
return strategy_fun(stock_data[0], stock_data[1], end_date=end_date, istop=(data[0][0] in stock_tops))
else:
return strategy_fun(stock_data[0], stock_data[1], end_date=end_date)
.............
硕世生物('688399') generated an exception: HDFStore requires PyTables, "DLL load failed: 找不到指定的模块。" problem importing
如题。
如题
您好 我不太了解python 能帮忙弄一下吗 我的又想 [email protected]
感谢分享代码,大佬。我不是太熟悉这个环境,请问这个报错具体指向和我该怎么解决呢?谢谢。
安装报错:
Building wheels for collected packages: pandas
Building wheel for pandas (PEP 517) ... done
Created wheel for pandas: filename=pandas-1.1.0-cp39-cp39-win_amd64.whl size=8350439 sha256=78984d7de1bf452a7cdb5d85e30600176d1fed0e906c5b555e432afbd1aea4cf
Stored in directory: c:\users\jiash\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\9f\4b\40\9900a41b285e2e2b08f1e89284b308a6c880347296d9bb0308
Successfully built pandas
Installing collected packages: soupsieve, beautifulsoup4, bs4, certifi, chardet, idna, lxml, numpy, numexpr, pytz, six, python-dateutil, pandas, urllib3, requests, schedule, simplejson, TA-Lib, tables, threadpool, websocket-client, tushare, xlrd
Running setup.py install for bs4 ... done
WARNING: The script chardetect.exe is installed in 'C:\Users\jiash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script f2py.exe is installed in 'C:\Users\jiash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for numexpr ... done
Running setup.py install for simplejson ... done
Running setup.py install for TA-Lib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\jiash\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jiash\AppData\Local\Temp\pip-install-au05ctr3\ta-lib\setup.py'"'"'; file='"'"'C:\Users\jiash\AppData\Local\Temp\pip-install-au05ctr3\ta-lib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\jiash\AppData\Local\Temp\pip-record-4f982w7j\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\jiash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\TA-Lib'
cwd: C:\Users\jiash\AppData\Local\Temp\pip-install-au05ctr3\ta-lib
Complete output (520 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\talib
copying talib\abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.9\talib
copying talib\stream.py -> build\lib.win-amd64-3.9\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\test_data.py -> build\lib.win-amd64-3.9\talib
copying talib\test_func.py -> build\lib.win-amd64-3.9\talib
copying talib\test_pandas.py -> build\lib.win-amd64-3.9\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.9\talib
copying talib_init_.py -> build\lib.win-amd64-3.9\talib
running build_ext
skipping 'talib_ta_lib.c' Cython extension (up-to-date)
building 'talib._ta_lib' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\talib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\jiash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\include -IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE -IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt -IC:\Program Files (x86)\Windows Kits\8.1\include\shared -IC:\Program Files (x86)\Windows Kits\8.1\include\um -IC:\Program Files (x86)\Windows Kits\8.1\include\winrt /Tctalib_ta_lib.c /Fobuild\temp.win-amd64-3.9\Release\talib_ta_lib.obj
_ta_lib.c
c:\users\jiash\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
talib_ta_lib.c(6775): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(6780): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(6964): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(7140): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(7316): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(7321): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(7473): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(7645): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(7975): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(8339): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(8526): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(8871): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(20029): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(20176): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(20484): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(20781): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(20935): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(21749): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(21885): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22021): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22157): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22293): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22602): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22765): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22770): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22775): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(22991): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23001): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23011): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23177): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23538): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23543): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23694): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(23830): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(24138): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(24300): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(24447): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(24593): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(24729): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(24865): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(25016): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(25189): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(25354): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(25500): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(25797): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26112): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26277): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26445): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26450): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26591): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26727): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26863): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(26999): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(27135): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(27875): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28103): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28310): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28315): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28325): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28543): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28548): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28755): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28760): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(28765): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(29060): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(29207): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(29510): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(29804): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(29940): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(30076): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(30414): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(30419): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(30424): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(30589): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(30910): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(31064): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39049): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39054): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39237): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39409): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39581): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39586): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39728): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(39895): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(40198): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(40557): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(40736): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(41073): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(52156): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(52293): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(52574): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(52854): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(53004): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(53732): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(53858): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(53984): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54110): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54236): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54515): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54668): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54673): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54678): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54886): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54896): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(54906): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(55064): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(55409): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(55414): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(55558): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(55684): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(55975): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56136): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56273): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56412): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56538): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56664): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56807): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(56972): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(57133): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(57272): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(57552): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(57856): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58017): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58178): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58183): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58314): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58440): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58566): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58692): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(58818): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(59514): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(59722): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(59919): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(59924): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(59934): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60150): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60155): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60360): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60365): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60370): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60650): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(60787): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61060): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61340): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61466): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61592): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61916): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61921): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(61926): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(62087): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(62394): warning C4146: unary minus operator applied to unsigned type, result still unsigned
talib_ta_lib.c(62544): warning C4146: unary minus operator applied to unsigned type, result still unsigned
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\libs /LIBPATH:C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.496.0_x64__qbz5n2kfra8p0\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64 ta_libc_cdr.lib /EXPORT:PyInit__ta_lib build\temp.win-amd64-3.9\Release\talib_ta_lib.obj /OUT:build\lib.win-amd64-3.9\talib_ta_lib.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.9\Release\talib_ta_lib.cp39-win_amd64.lib
_ta_lib.obj : warning LNK4197: export 'PyInit__ta_lib' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.9\Release\talib_ta_lib.cp39-win_amd64.lib and object build\temp.win-amd64-3.9\Release\talib_ta_lib.cp39-win_amd64.exp
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLBREAKAWAY_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLEVENINGSTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSEPARATINGLINES_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDRAGONFLYDOJI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SetOptInputParamReal
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMORNINGDOJISTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_T3_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSHOOTINGSTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLKICKING
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINUS_DM
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3WHITESOLDIERS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTRISTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_SINE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_VAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSPINNINGTOP_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLUPSIDEGAP2CROWS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_COSH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MININDEX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLRISEFALL3METHODS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLPIERCING_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_BOP_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AROON_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TRANGE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHARAMI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_EXP
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SUB_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
_ta_lib.obj : error LNK2001: unresolved external symbol TA_FuncTableAlloc
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLONNECK
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLKICKING_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3OUTSIDE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDRAGONFLYDOJI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_WCLPRICE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MEDPRICE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLONNECK_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLLADDERBOTTOM_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_ANGLE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ACOS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINMAXINDEX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MFI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINMAX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_RSI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GroupTableFree
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLUPSIDEGAP2CROWS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTASUKIGAP
_ta_lib.obj : error LNK2001: unresolved external symbol TA_NATR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDOJISTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_PHASOR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_WMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_Shutdown
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSHORTLINE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetFuncHandle
_ta_lib.obj : error LNK2001: unresolved external symbol TA_FuncTableFree
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ParamHolderFree
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAVP
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3LINESTRIKE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCONCEALBABYSWALL_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHIGHWAVE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMARUBOZU_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADOSC
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMARUBOZU
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CCI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMATHOLD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLEVENINGDOJISTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLBREAKAWAY
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSPINNINGTOP
_ta_lib.obj : error LNK2001: unresolved external symbol TA_PPO_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_BBANDS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_INTERCEPT
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MIDPRICE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROCR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MACDEXT
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLLADDERBOTTOM
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STOCH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CCI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MULT
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCOUNTERATTACK
_ta_lib.obj : error LNK2001: unresolved external symbol TA_FLOOR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLIDENTICAL3CROWS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_DCPERIOD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3STARSINSOUTH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ATAN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADXR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_DEMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHANGINGMAN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SIN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_TRENDMODE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSTALLEDPATTERN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLADVANCEBLOCK_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_OBV
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLIDENTICAL3CROWS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHARAMICROSS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_FLOOR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_PPO
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLINVERTEDHAMMER_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_WCLPRICE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TRIMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MACDEXT_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLINNECK
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SUB
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TANH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLLONGLEGGEDDOJI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDARKCLOUDCOVER_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AROON
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STDDEV
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLUNIQUE3RIVER
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ATR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCONCEALBABYSWALL
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINUS_DI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_WMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_EMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ULTOSC_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL2CROWS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LOG10
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTAKURI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCLOSINGMARUBOZU
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SetOptInputParamInteger
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLLONGLINE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_ANGLE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROC
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CEIL_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLLONGLINE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMATCHINGLOW_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_COSH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLKICKINGBYLENGTH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_PLUS_DI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMATHOLD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3OUTSIDE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHIGHWAVE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GroupTableAlloc
_ta_lib.obj : error LNK2001: unresolved external symbol TA_EMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADXR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MEDPRICE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLENGULFING_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MOM_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MFI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TANH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetOptInputParameterInfo
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STOCHF
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_INTERCEPT_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLGRAVESTONEDOJI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTHRUSTING_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROCR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_APO_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MACD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SINH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINMAX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_BOP
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_SINE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_TRENDLINE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3BLACKCROWS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ParamHolderAlloc
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLABANDONEDBABY
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetFuncInfo
_ta_lib.obj : error LNK2001: unresolved external symbol TA_DEMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ASIN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAVP_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STOCH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TRANGE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_DIV
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MIN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_PHASOR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_COS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_Initialize
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SetCompatibility
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_TRENDMODE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMORNINGDOJISTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_DX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_EXP_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLLONGLEGGEDDOJI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MIDPOINT_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_BETA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLGAPSIDESIDEWHITE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLINVERTEDHAMMER
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AVGPRICE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMORNINGSTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLBELTHOLD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STDDEV_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAXINDEX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MOM
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TSF_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MACD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHAMMER_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TAN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHIKKAKEMOD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MULT_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROC_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHARAMI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSHORTLINE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ATR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_DCPHASE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AVGPRICE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLGRAVESTONEDOJI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SINH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TYPPRICE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLEVENINGDOJISTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLENGULFING
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MACDFIX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHIKKAKE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetOutputParameterInfo
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLRICKSHAWMAN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TYPPRICE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LOG10_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ACOS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TRIMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHARAMICROSS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CMO_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDARKCLOUDCOVER
_ta_lib.obj : error LNK2001: unresolved external symbol TA_PLUS_DM_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHANGINGMAN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SQRT_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AROONOSC
_ta_lib.obj : error LNK2001: unresolved external symbol TA_RestoreCandleDefaultSettings
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MACDFIX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTRISTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CEIL
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetInputParameterInfo
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3BLACKCROWS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSHOOTINGSTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SQRT
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SUM
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHOMINGPIGEON
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SIN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STOCHRSI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLRICKSHAWMAN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMATCHINGLOW
_ta_lib.obj : error LNK2001: unresolved external symbol TA_COS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SAREXT_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLABANDONEDBABY_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_SLOPE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTASUKIGAP_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSTALLEDPATTERN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDOJI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLGAPSIDESIDEWHITE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MIN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLXSIDEGAP3METHODS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINUS_DI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL2CROWS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LN_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ULTOSC
_ta_lib.obj : error LNK2001: unresolved external symbol TA_DIV_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLBELTHOLD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROCP_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STOCHRSI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_STOCHF_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3INSIDE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetLookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3STARSINSOUTH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSTICKSANDWICH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINUS_DM_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLKICKINGBYLENGTH_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLUNIQUE3RIVER_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TAN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROCP
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADD_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLADVANCEBLOCK
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHOMINGPIGEON_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTHRUSTING
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLTAKURI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CORREL
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SUM_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHIKKAKE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_BETA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ATAN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_DCPHASE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TEMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_VAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROCR100
_ta_lib.obj : error LNK2001: unresolved external symbol TA_PLUS_DI_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLEVENINGSTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MINMAXINDEX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSTICKSANDWICH
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TRIX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLINNECK_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3LINESTRIKE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_WILLR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_TRENDLINE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHAMMER
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MIDPRICE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_KAMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLHIKKAKEMOD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_LINEARREG_SLOPE_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_PLUS_DM
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MININDEX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_KAMA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3WHITESOLDIERS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAXINDEX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLPIERCING
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetCompatibility
_ta_lib.obj : error LNK2001: unresolved external symbol TA_OBV_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ASIN
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TEMA_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_DX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SAREXT
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLXSIDEGAP3METHODS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MA
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TRIX_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CMO
_ta_lib.obj : error LNK2001: unresolved external symbol TA_APO
_ta_lib.obj : error LNK2001: unresolved external symbol TA_WILLR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_TSF
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLMORNINGSTAR
_ta_lib.obj : error LNK2001: unresolved external symbol TA_SetCandleSettings
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCLOSINGMARUBOZU_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MAX
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDOJISTAR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_T3
_ta_lib.obj : error LNK2001: unresolved external symbol TA_AROONOSC_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLSEPARATINGLINES
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDL3INSIDE
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ROCR100_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_RSI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLDOJI
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CORREL_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_MIDPOINT
_ta_lib.obj : error LNK2001: unresolved external symbol TA_ADOSC_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_NATR_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLCOUNTERATTACK_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_HT_DCPERIOD
_ta_lib.obj : error LNK2001: unresolved external symbol TA_BBANDS
_ta_lib.obj : error LNK2001: unresolved external symbol TA_CDLRISEFALL3METHODS_Lookback
_ta_lib.obj : error LNK2001: unresolved external symbol TA_GetVersionString
build\lib.win-amd64-3.9\talib_ta_lib.cp39-win_amd64.pyd : fatal error LNK1120: 339 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit code 1120
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\jiash\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jiash\AppData\Local\Temp\pip-install-au05ctr3\ta-lib\setup.py'"'"'; file='"'"'C:\Users\jiash\AppData\Local\Temp\pip-install-au05ctr3\ta-lib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\jiash\AppData\Local\Temp\pip-record-4f982w7j\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\jiash\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\TA-Lib' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'C:\Users\jiash\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
缠中说禅 买点是那个策略,我没找到相关的代码
请问停机坪策略是个什么原理呢?
Traceback (most recent call last):
File "main.py", line 3, in
import utils
File "/home/hc/Sequoia-master/utils.py", line 3, in
from pandas.tseries.offsets import *
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/init.py", line 52, in
from pandas.core.api import (
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/core/api.py", line 29, in
from pandas.core.groupby import Grouper, NamedAgg
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/core/groupby/init.py", line 1, in
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/core/groupby/generic.py", line 57, in
from pandas.core.aggregation import (
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/core/aggregation.py", line 27, in
from pandas.core.series import FrameOrSeriesUnion, Series
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/core/series.py", line 68, in
from pandas.core import algorithms, base, generic, nanops, ops
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/core/generic.py", line 102, in
from pandas.io.formats import format as fmt
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/io/formats/format.py", line 71, in
from pandas.io.common import stringify_path
File "/usr/local/python3.6/lib/python3.6/site-packages/pandas/io/common.py", line 3, in
import bz2
File "/usr/local/python3.6/lib/python3.6/bz2.py", line 23, in
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
调用daily接口,显示无权限
运行了6afcdc5c98版本的代码。(新版本创建h5文件总是有UTF-8问题,老版本没问题)
什么都没改变,只把end = '2019-02-01'。
但是没有出现注释中出现的几只股票。是不是本来应该在
“**************"回踩年线"**************下面出现。”
还有什么需要设置的吗?
PS C:\Sequoia36> & C:/Users/guochan/anaconda3/envs/py36/python.exe c:/Sequoia36/main.py
[Getting data:]##################################################涨停数:70 跌停数:33
涨幅大于5%数:341 跌幅大于5%数:130
年线以上个股数量: 0
。。。。。。。。。。。。。。省略。。。。。。。。。。。
"回踩年线"
[]
"回踩年线"
C:\Users\richa\Documents\GitHub\Sequoia-master>python main.py
[Getting data:]#################################################本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
锦好医疗('872925') generated an exception: 'NoneType' object is not subscriptable
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
常辅股份('871396') generated an exception: 'NoneType' object is not subscriptable
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
凯腾精工('871553') generated an exception: 'NoneType' object is not subscriptable
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
晶赛科技('871981') generated an exception: 'NoneType' object is not subscriptable
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
通易航天('871642') generated an exception: 'NoneType' object is not subscriptable
本接口即将停止更新,请尽快使用Pro版接口:https://tushare.pro/document/2
下载对应的 whl
pip install TA_Lib-0.4.17-cp36-cp36m-win_amd64.whl
地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
可以解决
ERROR: Failed building wheel for TA-Lib
Running setup.py clean for TA-Lib
Failed to build TA-Lib
Installing collected packages: TA-Lib, threadpool, xlrd, mock, numexpr, tables, schedule
Running setup.py install for TA-Lib ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Think\Anaconda2\envs\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Think\
AppData\Local\Temp\pip-install-8lsf5ozq\TA-Lib\setup.py'"'"'; file='"'"'C:\Users\Think\AppData\Local\Temp\pip-install-8lsf5ozq\T
A-Lib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(comp
ile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Think\AppData\Local\Temp\pip-record-df7u_lle\install-record.txt' --single-versi
on-externally-managed --compile
cwd: C:\Users\Think\AppData\Local\Temp\pip-install-8lsf5ozq\TA-Lib
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\talib
copying talib\abstract.py -> build\lib.win32-3.7\talib
copying talib\deprecated.py -> build\lib.win32-3.7\talib
copying talib\stream.py -> build\lib.win32-3.7\talib
copying talib\test_abstract.py -> build\lib.win32-3.7\talib
copying talib\test_data.py -> build\lib.win32-3.7\talib
copying talib\test_func.py -> build\lib.win32-3.7\talib
copying talib\test_pandas.py -> build\lib.win32-3.7\talib
copying talib\test_stream.py -> build\lib.win32-3.7\talib
copying talib_init_.py -> build\lib.win32-3.7\talib
running build_ext
building 'talib._ta_lib' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Think\Anaconda2\envs\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.
argv[0] = '"'"'C:\Users\Think\AppData\Local\Temp\pip-install-8lsf5ozq\TA-Lib\setup.py'"'"'; file='"'"'C:\Users\Think\AppData\Loc
al\Temp\pip-install-8lsf5ozq\TA-Lib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Think\AppData\Local\Temp\pip-record-df7u_lle\i
nstall-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
更多参照:https://github.com/myhhub/InStock
下面给一些示例:
原始的:
data.loc[:, 'ma250'] = pd.Series(tl.MA(data['close'].values, 250), index=data.index.values)
优化后的:
data.loc[:, 'ma250'] = tl.MA(data['close'].values, timeperiod=250)
原始的:
for i in range(1, len(data)):
if data.iloc[i - 1]['p_change'] >= 9.5 and data.iloc[i]['p_change'] >= 9.5:
return True
优化后的:
for _p_change in data['p_change'].values:
if _p_change >= 9.5:
if previous_p_change >= 9.5:
return True
else:
previous_p_change = _p_change
else:
previous_p_change = 0.0
原始的:
for index, row in data.iterrows():
if row['close'] > highest_row['close']:
highest_row = row
elif row['close'] < lowest_row['close']:
lowest_row = row
优化后的:
for _close, _volume, _date in zip(data['close'].values, data['volume'].values, data['date'].values):
if _close > highest_row[0]:
highest_row[0] = _close
highest_row[1] = _volume
highest_row[2] = _date
elif _close < lowest_row[0]:
lowest_row[0] = _close
lowest_row[1] = _volume
lowest_row[2] = _date
原始的:
for i in range(1, len(data)):
if data.iloc[i - 1]['p_change'] < -7 \
or (data.iloc[i]['close'] - data.iloc[i]['open']) / data.iloc[i]['open'] * 100 < -7 \
or data.iloc[i - 1]['p_change'] + data.iloc[i]['p_change'] < -10 \
or (data.iloc[i]['close'] - data.iloc[i - 1]['open']) / data.iloc[i - 1]['open'] * 100 < -10:
优化后的:
for _p_change, _close, _open in zip(data['p_change'].values, data['close'].values, data['open'].values):
if _p_change < -7 or (_close - _open) / _open * 100 < -7 \
or previous_p_change + _p_change < -10 \
or (_close - previous_open)/previous_open * 100 < -10:
return False
有没有程序运行之后的结果展示图,windows怎么取用
turtle_trade.calculate 发现没有引用的地方
异常:青岛港(u'601298)generated an exception: Cannot serialize the column [date] because its data contents are [unicode] object dtype
环境:亚马逊EC2
CentOS7
python2.7
2020-09-01 12:20:31,974 NumExpr defaulting to 4 threads.
2020-09-01 12:20:42,904 涨停数:43 跌停数:6
涨幅大于5%数:136 跌幅大于5%数:33
年线以上个股数量: 0
2020-09-01 12:20:43,295 "海龟交易法则"
[]
"海龟交易法则"
2020-09-01 12:20:45,727 "放量上涨"
[]
"放量上涨"
2020-09-01 12:20:48,159 "突破平台"
[]
"突破平台"
2020-09-01 12:20:50,579 "均线多头"
[]
"均线多头"
2020-09-01 12:20:52,983 "无大幅回撤"
[]
"无大幅回撤"
2020-09-01 12:20:55,389 "停机坪"
[]
"停机坪"
2020-09-01 12:20:57,911 "回踩年线"
[]
"回踩年线"
(base) c:\Users\Think\Sequoia-master>python main.py
[Getting data:]############################################################Traceback (most recent call last):
File "main.py", line 28, in
work_flow.process()
File "c:\Users\Think\Sequoia-master\work_flow.py", line 28, in process
subset.to_csv(settings.STOCKS_FILE, index=None, header=True)
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3020, in to_csv
formatter.save()
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\io\formats\csvs.py", line 157, in save
compression=self.compression)
File "C:\Users\Think\Anaconda3\lib\site-packages\pandas\io\common.py", line 424, in _get_handle
f = open(path_or_buf, mode, encoding=encoding, newline="")
FileNotFoundError: [Errno 2] No such file or directory: './storage/stocks.csv'
generated an exception: HDF5 error back trace
File "H5F.c", line 444, in H5Fcreate
unable to create file
File "H5Fint.c", line 1364, in H5F__create
unable to open file
File "H5Fint.c", line 1557, in H5F_open
错误信息如下:
[Getting data:]#Traceback (most recent call last):
File "main.py", line 27, in <module>
work_flow.process()
File "/Users/alan/Documents/Stocks/Sequoia/work_flow.py", line 26, in process
all_data = ts.get_today_all()
File "/usr/local/anaconda3/lib/python3.7/site-packages/tushare/stock/trading.py", line 314, in get_today_all
df = _parsing_dayprice_json('hs_a', 1)
File "/usr/local/anaconda3/lib/python3.7/site-packages/tushare/stock/trading.py", line 128, in _parsing_dayprice_json
df = pd.DataFrame(pd.read_json(js, dtype={'code':object}),
File "/usr/local/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py", line 427, in read_json
result = json_reader.read()
File "/usr/local/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py", line 537, in read
obj = self._get_object_parser(self.data)
File "/usr/local/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py", line 556, in _get_object_parser
obj = FrameParser(json, **kwargs).parse()
File "/usr/local/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py", line 652, in parse
self._parse_no_numpy()
File "/usr/local/anaconda3/lib/python3.7/site-packages/pandas/io/json/json.py", line 871, in _parse_no_numpy
loads(json, precise_float=self.precise_float), dtype=None)
ValueError: No ':' found when decoding object value
Traceback (most recent call last):
File "D:\pythonBaiP\Sequoia-master\main.py", line 3, in
import utils
File "D:\pythonBaiP\Sequoia-master\utils.py", line 8, in
import settings
File "D:\pythonBaiP\Sequoia-master\settings.py", line 2, in
import yaml
ModuleNotFoundError: No module named 'yaml'
弘元绿能('603185') generated an exception: HTTPConnectionPool(host='push2his.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61%2Cf116&ut=7eea3edcaed734bea9cbfc24409ed989&klt=101&fqt=1&secid=1.603185&beg=20220101&end=20500101&=1623766962675 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002C64E0BC490>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
华夏航空('002928') generated an exception: HTTPConnectionPool(host='push2his.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61%2Cf116&ut=7eea3edcaed734bea9cbfc24409ed989&klt=101&fqt=1&secid=0.002928&beg=20220101&end=20500101&=1623766962675 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002C64FA594C0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
华孚时尚('002042') generated an exception: HTTPConnectionPool(host='push2his.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61%2Cf116&ut=7eea3edcaed734bea9cbfc24409ed989&klt=101&fqt=1&secid=0.002042&beg=20220101&end=20500101&=1623766962675 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002C65105F730>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
逸飞激光('688646') generated an exception: HTTPConnectionPool(host='push2his.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61%2Cf116&ut=7eea3edcaed734bea9cbfc24409ed989&klt=101&fqt=1&secid=1.688646&beg=20220101&end=20500101&=1623766962675 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002C6653FE400>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
运行main.py后出现以下错误:
声光电科('600877') generated an exception: HTTPConnectionPool(host='80.push2.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/clist/get?pn=1&pz=50000&po=1&np=1&ut=bd1d9ddb04089700cf9c27f6f7426281&fltt=2&invt=2&fid=f3&fs=m%3A0+t%3A6%2Cm%3A0+t%3A80&fields=f12&=1623833739532 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017F751D2A60>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))
西子洁能('002534') generated an exception: HTTPConnectionPool(host='80.push2.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/clist/get?pn=1&pz=50000&po=1&np=1&ut=bd1d9ddb04089700cf9c27f6f7426281&fltt=2&invt=2&fid=f3&fs=m%3A0+t%3A6%2Cm%3A0+t%3A80&fields=f12&=1623833739532 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017F750B8430>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))
仁东控股('002647') generated an exception: HTTPConnectionPool(host='80.push2.eastmoney.com', port=80): Max retries exceeded with url: /api/qt/clist/get?pn=1&pz=50000&po=1&np=1&ut=bd1d9ddb04089700cf9c27f6f7426281&fltt=2&invt=2&fid=f3&fs=m%3A0+t%3A81+s%3A2048&fields=f12&_=1623833739532 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000017F7514BF10>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.