-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:root:error while consuming ws messages: cannot set a row with mismatched columns #26
Comments
The new api version returns an additional column 'vwap' in the
|
@jusmark123 I just added this and it eliminated that issue but now it gets stuck on "watching symbols" forever. Have you faced a similar issue? Change made: |
Not sure, the script waits for until 15 minutes after market to open then gathers symbols to watch. Buying mode takes place for the first hour of execution, then it switches to sell mode for the rest of the day. The issue could be that the buying window was missed so there nothing to sell. So it just watches the symbols taking no action. I set a cron to start the script at 6:30 AM EST
Justin Walker
…Sent from my iPhone
On Sep 9, 2020, at 9:55 AM, Gabowatt ***@***.***> wrote:
@jusmark123 I just added this and it eliminated that issue but now it gets stuck on "watching symbols" forever. Have you faced a similar issue?
Change made:
for symbol in symbols:
minute_history[symbol] = api.polygon.historic_agg_v2(
timespan="minute", symbol=symbol, limit=1000, multiplier=1, _from=yesterday.strftime("%Y-%m-%d"), to=today.strftime("%Y-%m-%d")
).df
if 'vwap' in minute_history[symbol]:
minute_history[symbol].drop('vwap', axis=1, inplace=True)
c += 1
print('{}/{}'.format(c, len(symbols)))
print('Success.')
return minute_history
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@Gabowatt @jusmark123 I am having the same problem in which, after fixing the mismatched columns, it just gets stuck on "watching symbols" forever. I have run it for multiple days now, and it never buys. Did either of your figure out why this is or fix it in some way? |
Any resolve to this? I have a running code that also stops at watching symbols |
Have the same issue. Made the edit @jusmark123 offered but it still stalls. is it an issue with multiple feeds? Can a dummy column be inserted to match them up? What would that look like? Getting current ticker data... |
The error is telling you that the data being added to a dataFrame does have the same columns. You can place a print statement during iterations to find the issue. It shouldn't have anything to do with multiple streams. The trace states that it is happening in the run() function. You can print the DataFrame columns with |
@jusmark123 Thank you. It looks a lot better today. I appreciate your help. |
I'm having the same issue |
I am trying to run the code. I goes as far as "Watching symbols"
But then it keeps hitting this error -
ERROR:root:error while consuming ws messages: cannot set a row with mismatched columns
What could be the issue and how do I fix it?
The text was updated successfully, but these errors were encountered: