Skip to content

500 :: Internal Server Error #91

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

Open
oleg-d opened this issue Apr 4, 2025 · 4 comments
Open

500 :: Internal Server Error #91

oleg-d opened this issue Apr 4, 2025 · 4 comments

Comments

@oleg-d
Copy link

oleg-d commented Apr 4, 2025

I keep getting "500 :: Internal Server Error"

I am testing with a simple SPX 0DTE option. I have been away from this code for a while so last time it worked was around a month ago. So now I dont know if its my code or something server side.

Found strike 5175C, delta 0.495, maturity 20250404
ERROR:root:Error processing order: IbkrClient: response error Result(data=None, request={'url': 'https://api.ibkr.com/v1/api/iserver/secdef/info', 'params': {'conid': '773846944', 'sectype': 'OPT', 'month': '20250404', 'exchange': 'SMART', 'strike': '5170.0', 'right': 'C'}}) :: 500 :: Internal Server Error :: {"error":"No Contracts retrieved "}
@Voyz
Copy link
Owner

Voyz commented Apr 6, 2025

Hi @oleg-d - the 5xx errors are server errors, which usually means they lay on IBKR side. I'd encourage you to talk to their support about this

@salsasepp
Copy link

ERROR:root:Error processing order: IbkrClient: response error Result(data=None, request={'url': 'https://api.ibkr.com/v1/api/iserver/secdef/info', 'params': {'conid': '773846944', 'sectype': 'OPT', 'month': '20250404', 'exchange': 'SMART', 'strike': '5170.0', 'right': 'C'}}) :: 500 :: Internal Server Error :: {"error":"No Contracts retrieved "}

Hi, not sure about this but worth a try: Shouldn't month have this form, e.g. "APR25"? That's what I use. It does not state this explicitly in this endpoint's docs, but it is mentioned elsewhere: https://www.interactivebrokers.com/campus/ibkr-api-page/webapi-ref/#tag/Trading-Contracts/paths/~1iserver~1secdef~1strikes/get

Also the conid should be that of an underlying, possibly 416904 for SPX in your case?

@weklund
Copy link
Contributor

weklund commented Apr 28, 2025

@oleg-d were you able to resolve this?

@oleg-d
Copy link
Author

oleg-d commented Apr 28, 2025

@oleg-d were you able to resolve this?

No I havent been back to the options code. The futures trading work in my app so its something wrong in my options code.

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

4 participants