tedchou12 / webull

Unofficial APIs for Webull.
MIT License
597 stars 181 forks source link

Placing an order not working using place_order() #384

Open spencerrojahn opened 1 year ago

spencerrojahn commented 1 year ago

I'm trying to place an order, but get the below error in the screenshot. It's returning true when sending in my trade token using get_trade_token(), so I assume that doesn't have anything to do with it. I'm also able to view my account using get_account(), so logging in and authenticating doesn't have to do with it. What could be the issue here? You can see the code I use to send the order in the stack trace. I was able to place this trade manually on the Webull desktop app, so not sure why it won't go through here. Thanks Screen Shot 2023-02-22 at 2 15 40 PM

spencerrojahn commented 1 year ago

Turns out I was getting this:

{'msg': 'Fail to verify image verification code.', 'traceId': '2400b497e80d4e698902f586ba5f5cae', 'code': 'user.check.slider.pic.fail'} when logging in, so the account Id wasn't being set

spencerrojahn commented 1 year ago

I was able to get around this by setting the access token before logging in by using the inspect tool and getting the most recent access token and then setting the login timeout for to 8 hours (how long I want to stay logged in). Not sure if there is another way to get around this. I followed the previous thread to get around this by setting the did token, but was still getting this problem.

MikeDausch commented 1 year ago

I have the same issue. How did you: "Set the Access Token" and "Set the login timeout" I always get the {'msg': 'Fail to verify image verification code.', 'traceId': '24..... after following all other threads

I set the did but still not a successful login. However, I can view my account() data wb.get_account() wb._did = "[did_code]" I appear to login but I can not place_order()

rakesh433jntu commented 1 year ago

Same case here , I logged in through work around method. (from net work tab account response into notepad style) I am not able to place order. I am getting order history , order positions Any advice from any one

webullstocktrader commented 1 year ago

Did you happen to get it fixed? I'm experiencing same issue. Getting a 405 error.