ta-lib-python
ta-lib-python copied to clipboard
Missing Method List
Good day. this problem occurs in both PyCharm and VS Code. When importing talib, there are no available methods (because of which you have to use the Function method and pass the name there), which is not very convenient because you have to look at the arguments every time.
Python 3.8 / Poetry / MacOS
I assume that doing something like
ta.RSI(c, 10)
works but this is an issue with their code completion?
On Jul 5, 2020, at 5:34 AM, Артур Лазаренко [email protected] wrote:
Good day. this problem occurs in both PyCharm and VS Code. When importing talib, there are no available methods (because of which you have to use the Function method and pass the name there), which is not very convenient because you have to look at the arguments every time.
Python 3.8 / Poetry / MacOS
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I assume that doing something like ta.RSI(c, 10) works but this is an issue with their code completion? … On Jul 5, 2020, at 5:34 AM, Артур Лазаренко @.***> wrote: Good day. this problem occurs in both PyCharm and VS Code. When importing talib, there are no available methods (because of which you have to use the Function method and pass the name there), which is not very convenient because you have to look at the arguments every time. Python 3.8 / Poetry / MacOS — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I have tried all the various IDEs, as well as versions of Python 3 and above. Not in one other library, such a problem does not arise.
I also tried to find similar answers, but it did not bring success.
Do you have that same completion issue with the ta.func module?
On Jul 5, 2020, at 12:03 PM, Артур Лазаренко [email protected] wrote:
I assume that doing something like ta.RSI(c, 10) works but this is an issue with their code completion? … On Jul 5, 2020, at 5:34 AM, Артур Лазаренко @.***> wrote: Good day. this problem occurs in both PyCharm and VS Code. When importing talib, there are no available methods (because of which you have to use the Function method and pass the name there), which is not very convenient because you have to look at the arguments every time. Python 3.8 / Poetry / MacOS — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I have tried all the various IDEs, as well as versions of Python 3 and above. Not in one other library, such a problem does not arise.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi John,
I'm using PyCharm Professional 2020.1 and I don't get any method suggestions either. I tried your example above for RSI, after typing in ta. or ta.R, I don't get a list of methods or suggestions.
I tried to use the Abstract API and using the example from your page:
sma = abstract.SMA # SMA is not suggested sma = abstract.Function # Function is suggested, see screenshot

Any guidance/help would be greatly appreciated. Also, since I can't get the auto suggest/complete to work, what is the best way to see what parameters the methods require. I went back to SourceForge and original author's website and can't find a document.
-Ven
Do the method recommendations work inside a Python console in PyCharm?
On Jul 18, 2020, at 9:03 AM, xtracool [email protected] wrote:
Hi John,
I'm using PyCharm Professional 2020.1 and I don't get any method suggestions either. I tried your example above for RSI, after typing in ta. or ta.R, I don't get a list of methods or suggestions.
I tried to use the Abstract API and using the example from your page:
sma = abstract.SMA # SMA is not suggested sma = abstract.Function # Function is suggested, see screenshot
Any guidance/help would be greatly appreciated. Also, since I can't get the auto suggest/complete to work, what is the best way to see what parameters the methods require. I went back to SourceForge and original author's website and can't find a document.
-Ven
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Amazing John, they do! Both the function and abstract APIs do, any further thoughts on why the IDE isn't working?

Any chance this comment on this StackOverflow helps?
https://stackoverflow.com/questions/15022804/pycharm-code-completion-not-giving-recommendations
“ As it happens, I've just had exactly the same problem as OP and the solution was:
A NON-ASCII CHAR SOMEWHERE IN THE PROJECT'S FOLDER PATH
Seriously, PyCharm devs...[doubleFacepalm]”
On Jul 18, 2020, at 9:31 AM, xtracool [email protected] wrote:
Amazing John, they do! Both the function and abstract APIs do, any further thoughts on why the IDE isn't working?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thx, I'll go look thru the talib code and see if I can figure it out if there is some non-ascii character.
I’m not sure if they mean the path to the project you are building, or the path to the Python site-packages.
On Jul 18, 2020, at 10:09 AM, xtracool [email protected] wrote:
Thx, I'll go look thru the talib code and see if I can figure it out if there is some non-ascii character.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
I have a similar problem with one other package I use called pyEX (an interface for IEX Cloud for stock data). Never seen this issue otherwise.
I'm wondering if the issue is caused by the file that seems to be auto-generated called _ta_lib.py
I wonder if it’s related to the dynamic way we bind all the functions at import time.
I will try and get PyCharm when I have a moment to see if I can reproduce. I’m sorry that you’re having trouble with it!
On Jul 18, 2020, at 3:37 PM, xtracool [email protected] wrote:
I have a similar problem with one other package I use called pyEX (an interface for IEX Cloud for stock data). Never seen this issue otherwise.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you, appreciate your support for the product! If there is a way to donate $ please LMK
No need for donations, thanks!
I was able to reproduce, and I believe that it's not working because of how we use __import__ to load and then wrap the functions to allow pandas compatibility.
Let me work on a fix.
Can you test the master branch?
I changed how I do the imports slightly to make it more friendly to PyCharm's code completion. It seems to work for me?
I apologize that it took me 2 weeks to get around to looking at this.
If it works for you, I might do a little bit more cleanup and then maybe I should push a new release just so others don't have this problem. Nothing functional changed, just how the imports looked.
I apologize that it took me 2 weeks to get around to looking at this.
If it works for you, I might do a little bit more cleanup and then maybe I should push a new release just so others don't have this problem. Nothing functional changed, just how the imports looked.
I am waiting for a solution to this problem, just the same. All my friends do not have a list of functions.
Did you try the current master branch?
Install from git checkout.
python3 setup.py install
Unless maybe you are on Windows and use the unofficial binaries and then I should release so those get updated. Just wanted to confirm with someone having the problem first.
I had to uninstall first before installing the 0.4.19-dev version from master.
On Jul 20, 2020, at 9:38 AM, Артур Лазаренко [email protected] wrote:
I apologize that it took me 2 weeks to get around to looking at this.
If it works for you, I might do a little bit more cleanup and then maybe I should push a new release just so others don't have this problem. Nothing functional changed, just how the imports looked.
I am waiting for a solution to this problem, just the same. All my friends do not have a list of functions.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Will do a check out and try it.
Hey John, I reinstalled and here is what I got, looks like it is working! Is there a way of getting the argument list for the methods or is that not possible because of this being a wrapper for the C code? I don't get the arguments list in the console either. If that is a limitation, can you point me to a place (code or website) where I can look those up. I did do a search for the RSI method and found python code; one example just used talib.RSI and called the method with stock closing prices. I can across another website from someone who rewrote many of the C functions into python. That person's RSI function requires the df to have open and close prices and not the closing prices. So knowing the parameters would be greatly helpful.
Again thanks for the help!

I think I found the link to the methods :)
https://mrjbq7.github.io/ta-lib/doc_index.html
Hate to be the guy that asks this but any idea when the fix will be published under release? I try to avoid installing modules from branches, but if there is no plan to release soon then I will :relaxed:
Good reminder!
I didn’t have a fix (yet!) for the arguments, but we can make a release this week with at least what we have!
Thanks for the reminder.
On Sep 27, 2020, at 8:32 AM, cf [email protected] wrote:
Hate to be the guy that asks this but any idea when the fix will be published under release? I try to avoid installing modules from branches, but if there is no plan to release soon then I will ☺️
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Released 0.4.19.
I would still like to fix the issue where it shows (args, kwds) instead of the actual arguments.
Can you see if this is fixed in the master branch?
I found a setting that I had not noticed in cython to embed function signatures.