tedchou12 / webull

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

When I place an order I am getting this error 'status': 404, 'error': 'Not Found', 'message': 'No message available', 'path' '/api/trade/order/placeStockOrder' #423

Open ComplimentDeKoder opened 7 months ago

ComplimentDeKoder commented 7 months ago

{'success': True, 'data': {'timestamp': '2023-11-13T18:29:11.170+0000', 'status': 404, 'error': 'Not Found', 'message': 'No message available', 'path': '/api/trade/order/placeStockOrder'}}

wgellar commented 7 months ago

any resolution on this? Running into the same problem for the below: `from webull import webull

webull = webull()

webull._access_token = 'dc_us_tech1.code'

webull.login('email', 'password')

webull.get_trade_token('token')

print(webull.place_order(stock='ABAT', tId=None, price=3, action='BUY', orderType='LMT', enforce='GTC', quant=1, outsideRegularTradingHour=True, stpPrice=None, trial_value=0, trial_type='DOLLAR'))`

output: {'success': True, 'data': {'timestamp': '2023-12-05T22:10:55.388+0000', 'status': 404, 'error': 'Not Found', 'message': 'No message available', 'path': '/api/trade/order/placeStockOrder'}}

wgellar commented 7 months ago

not clever enough to know why, but got around this error by including the below in my login info: log = webull.is_logged_in() works now