-
Notifications
You must be signed in to change notification settings - Fork 59
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
"Inactive order is on the way to market" #67
Comments
I have no idea how to recreate the issue, so i dont know either if there is a specific reply from the orderfunction when it is placed that lets us know it is inactive. |
Hm, interesting. I'd suggest adding some simple logging of the raw JSON messages you send and receive (good to have either way), and perhaps we can figure it out that way. |
Alright, i will start logging and see if i can recreate it, it only has happened once or twice in 2 weeks, so I wondered if someone here knew why it happened in order for me to recreate it and test it. Thanks anyways, i will get back if i figure out the problem! |
Not a solution to your specific question, but there are situations where errors happens and cannot be predicted, like change in API or exchange disturbance. |
This is basically what i have done. However, if my order instantly gets matched on market (i sell to the highest in orderbook for example), it will not ping from the subscribe function, because it doesnt create a new order, it just instantly sells the stock. Since i was unaware of this issue before, i havent logged the JSON-response, and thus i dont know if it would give me a "INACTIVE" message when this problem happens. this is what i logged from my subscribe to orders when an order was matched. Can anyone confirm or deny if: |
Sometimes, albeit very rarely, when my program sends a buy or sell order to Avanza, it will have the message "inaktiverad order är påväg till marknaden ("inactive order is on the way to market"). My bot works by switching states between buying or selling and therefore this is an issue, since an inactive order doesnt give an error message. Do you have any idea what causes this?
I have used the subscribe function for orders at accounts, but the only messages i have seen are "ACTIVE" and "DELETED". Since i do not know how to recreate the inactive order issue, i wonder if the subscribe to order also have an "INACTIVE" state aswell which i in that case can use accordingly to check if my buy or sell state should be updated?
The text was updated successfully, but these errors were encountered: