You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read every post available on this topic on stackoverflow and also tried different ways to create the quotes -- df.to_records(), df.to_dict(), iter(), ... but everything failed.
So, I am a little stuck... I guess the solution is rather simple, could someone show please help me with the right way? What am I missing?
The text was updated successfully, but these errors were encountered:
@August1328 Hi, thank you for using our library.
I guess you are passing just a list form of dataframe, but the library has its own Quote class. You have to pass the Iterable(ex. list) of Quote instances.
I use another python TA module and wanted to compare it with this module, but I am already having problems at the beginning.
I can download historical quotes from IBKR into a dataframe "hist_quotes". The df looks like this:
The quotes parameter has be of type "Iterable[Quote]", so I converted the df to a list:
quotes = hist_quotes.values.tolist()
and then call the indicator
results = indicators.get_kvo(quotes, 34,55,13)
which breaks off with an error:
The content of "quotes" looks like this and it is iterable:
I read every post available on this topic on stackoverflow and also tried different ways to create the quotes -- df.to_records(), df.to_dict(), iter(), ... but everything failed.
So, I am a little stuck... I guess the solution is rather simple, could someone show please help me with the right way? What am I missing?
The text was updated successfully, but these errors were encountered: