Starting with TWS 10.14 and TWS API 10.14 this function will return White Branding ID associated with the user.
The function IBApi::EClient::reqUserInfo is used to request user info.
-
-
-
-
m_pClient->reqUserInfo(0);
-
White Branding ID is then returned via IBApi::EWrapper::userInfo callback.
-
public void userInfo(int reqId, string whiteBrandingId)
{
Console.WriteLine($"User Info. ReqId: {reqId}, WhiteBrandingId: {whiteBrandingId}");
}
-
@Override
public void userInfo(int reqId, String whiteBrandingId) {
System.out.println(EWrapperMsgGenerator.userInfo(reqId, whiteBrandingId));
}
-
Public Sub userInfo(reqId As Integer, whiteBrandingId As String) Implements EWrapper.userInfo
Console.WriteLine($"User Info. ReqId: {reqId}, WhiteBrandingId: {whiteBrandingId}")
End Sub
-
void TestCppClient::userInfo(int reqId, const std::string& whiteBrandingId) {
printf("User Info. ReqId: %d, WhiteBrandingId: %s\n", reqId, whiteBrandingId.c_str());
}
-
1 def userInfo(self, reqId: int, whiteBrandingId: str):
2 super().userInfo(reqId, whiteBrandingId)
3 print(
"UserInfo.",
"ReqId:", reqId,
"WhiteBrandingId:", whiteBrandingId)
Please note, that nothing will be returned if requesting username is not associated with any White Branding entity.