Skip to content
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

[Bug] None of ['symbol'] are in the columns #1

Open
sshcli opened this issue Apr 14, 2022 · 2 comments
Open

[Bug] None of ['symbol'] are in the columns #1

sshcli opened this issue Apr 14, 2022 · 2 comments

Comments

@sshcli
Copy link

sshcli commented Apr 14, 2022

has= list(positions.columns)

Message="None of ['symbol'] are in the columns"
Source=\alpaca_snippets\HFT-ish_2.py
StackTrace:
File "\alpaca_snippets\HFT-ish_2.py", line 110, in submitorder
positions= positions.set_index('symbol').transpose()
File "\alpaca_snippets\HFT-ish_2.py", line 221, in (Current frame)
submitorder(randtick,'buy',positions,num_positions, BASE_VALUE)

@sshcli
Copy link
Author

sshcli commented Apr 14, 2022

So far, the error only appears if you haven't buy anything yet.
Only if you don't have any position in your account

@sshcli sshcli changed the title None of ['symbol'] are in the columns [Bug] None of ['symbol'] are in the columns Apr 14, 2022
@sshcli
Copy link
Author

sshcli commented Apr 14, 2022

The problem also occurs when you buy and sell the same day, when you don't have more opened positions in your account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant