tedchou12 / webull

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

Placing Trades not going through live account #226

Open somuchfood opened 3 years ago

somuchfood commented 3 years ago

wb.place_order(stock='ARTL',price=1.15,action='buy',orderType='LMT',quant=1)

{'success': False, 'code': 'trade.system.exception', 'msg': 'The system is busy', 'data': {'lastSerialId': '6095b1c37c60c40001b83980'}}

Can't seem to be able to get the trades to go through. Is there any way to work around this? Thank You

tedchou12 commented 3 years ago

@somuchfood Sorry for the delay. There doesn't seem to be anything wrong with your code. Can you put up more of your code?

somuchfood commented 3 years ago

result = wb.login(webull_email,password,'My Computer',mfa,security question code, ,security answer')

wb.api_login(access_token=result['accessToken'],refresh_token=result['refreshToken'],token_expire=result['tokenExpireTime'],uuid=result['uuid'],mfa='mfa code') wb.get_trade_token(pin)

and then I enter that code.

nothingbutbacon commented 3 years ago

Are you able to order this through their portal/app? There might be a minimum quantity restriction on stocks that are of low cap/price (~usd 1).

somuchfood commented 3 years ago

I am able to order this stock through the app

darkmarauder0 commented 3 years ago

Unfortunately, I'm receiving the same error now. I don't think this is a source code issue though. Seems as if WeBull is trying to throttle or access control the trade API. I'm able to get my account information and do anything else, except for making trades.

smr0056 commented 2 years ago

Hello, I am facing the same error. Did you figure out a resolution?