Skip to content
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

feat: Web API #227

Open
0guanhua0 opened this issue Dec 13, 2024 · 8 comments
Open

feat: Web API #227

0guanhua0 opened this issue Dec 13, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@0guanhua0
Copy link
Contributor

Describe the feature
Web API
Client Portal Web API

Interactive Brokers is merging our web-based API products into a single, comprehensive IBKR Web API, bringing the features of the Client Portal Web API, Digital Account Management, and the Flex Web Service together in a unified interface, accessible by a shared means of authorization and authentication: OAuth 2.0.

Possible implications
update

@0guanhua0 0guanhua0 added the enhancement New feature or request label Dec 13, 2024
@Voyz
Copy link
Owner

Voyz commented Dec 14, 2024

Hi @0guanhua0 please note that OAuth support is currently being implemented in IBind: Voyz/ibind#34

This 'new' IBKR Web API still seems to be not production ready, seeing that its documentation is not completed.

Could you elaborate on what is the enhancement you're suggesting here?

@0guanhua0
Copy link
Contributor Author

thx for the info. let me try

sometimes ibeam lost connection. maybe due to ibkr maintenance.
need to manually run 2fa

so maybe can get auto auth with new web api

@Voyz
Copy link
Owner

Voyz commented Dec 15, 2024

Yes, sadly the connection is sometimes lost and has to be remade, hopefully the new API will be more reliable. The moment it is available I'll look into it.

Is there anything we could discuss here that you'd like see implemented?

@0guanhua0
Copy link
Contributor Author

0guanhua0 commented Dec 15, 2024 via email

@hughandersen
Copy link

@0guanhua0 If you have access to IBKR OAuth then try out the new pull request oauth, I'm interested to hear your comments and I can help if needed.

@0guanhua0
Copy link
Contributor Author

@0guanhua0 If you have access to IBKR OAuth then try out the new pull request oauth, I'm interested to hear your comments and I can help if needed.

let me try oauth

https://github.com/nsirons/ibkr_web_client?tab=readme-ov-file#setup

clean doc. ibkr doc is a mess

https://www.interactivebrokers.com/webtradingapi/oauth.pdf

1.1 Generation with openssl
A common method to generate the first three parameters is to use openssl:
openssl dhparam -outform PEM 2048 -out dhparam.pem
guanhua@arch ~ % openssl dhparam -outform PEM 2048 -out dhparam.pem
dhparam: Extra option: "2048"
dhparam: Use -help for summary.

ibkr doc cmd fail

guanhua@arch ~ % openssl dhparam -outform PEM -out dhparam.pem 2048

@Bomper
Copy link

Bomper commented Dec 23, 2024

ibkr doc is a mess

Haha have you looked in the REST docs at how many endpoints return contract details?

And how many names there are for the underlying conid field? undConid, underlyingConid, underlying_con_id, underlying_conid

@0guanhua0
Copy link
Contributor Author

ibkr doc is a mess

Haha have you looked in the REST docs at how many endpoints return contract details?

* [Contract information by Contract ID](https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#info-conid-contract)

* [Search SecDef information by conid](https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#secdef-info-contract)

* [Search the security definition by Contract ID](https://www.interactivebrokers.com/campus/ibkr-api-page/cpapi-v1/#trsrv-conid-contract)

And how many names there are for the underlying conid field? undConid, underlyingConid, underlying_con_id, underlying_conid

wow

big name like ibkr should provide clean product, no?

maybe no cash from api so no care

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants