R/reqNewsBulletins.R

Defines functions cancelNewsBulletins reqNewsBulletins

Documented in cancelNewsBulletins reqNewsBulletins

reqNewsBulletins <- function(twsconn, allMsgs=TRUE) {
  if( !is.twsConnection(twsconn))
    stop('requires twsConnection object')

  allMsgs <- as.character(as.integer(allMsgs))
  VERSION <- "1"

  writeBin( c(.twsOutgoingMSG$REQ_NEWS_BULLETINS, VERSION, allMsgs), twsconn[[1]])
}

cancelNewsBulletins <- function(twsconn) {
  if( !is.twsConnection(twsconn))
    stop('requires twsConnection object')

  VERSION <- "1"

  writeBin( c(.twsOutgoingMSG$CANCEL_NEWS_BULLETINS, VERSION), twsconn[[1]])
}

Try the IBrokers package in your browser

Any scripts or data that you put into this service are public.

IBrokers documentation built on Nov. 16, 2022, 5:05 p.m.