-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Q] Use B-Pipe or terminal only? #14
Comments
This should be possible by passing an app name to the constructor and then calling |
I have created simple Python code which can authenticate for the session but there I have a problem to append any new subscriptions to that session (async events) . I was able to get events for predefined list of ticker so I have ended up closing and then re-opening session with new subscirptions but it creates lag with getting live events between those sessions. That is how I have end up looking for something that maybe already exists and your solution sounds close to what I'm looking for. B-Pipe uses mutual TLS authentication with a password to the app. For that, what I can see, you (or I) may need to extend your code to cover part from my code:
If I will get anything interesting (and working) back I will do PR but first I will need to figure out how to make it more generic with same approach you have passing them via args (I did that via conf file) |
To elaborate on what I wrote above, currently a One quick and dirty way to handle custom authentication would be to write your own session creation and authentication and then use this. I.e. something like the following def custom_authenticated_session(session):
# some logic to authenticate a session
return session, identity
from blp import blp
bquery = blp.BlpQuery().start()
session, identity = custom_authenticated_session(bquery.session)
bquery.session = session
bquery.identify = identity |
Is this a wrapper on BLPAPI terminal only of can I use with B-Pipe as well? If so how can I authenticate using that library?
The text was updated successfully, but these errors were encountered: