reqContractDetails: Request contract details

View source: R/reqContractDetails.R

reqContractDetailsR Documentation

Request contract details

Description

Request contract details

Usage

reqContractDetails(contract, reqId = 1L, ib_con)

Arguments

contract

A valid contract. You can create a valid contract with the contract function or one of the contract helper functions.

reqId

The request's unique identifier. Should be a scalar integer.

ib_con

A valid ib connection.

Value

A list of details for the specified contract. Updates nextValidId in the ib connection.

Examples

## Not run: 
ib_con <- ib_connect()
ibm <- Contract(symbol = "IBM",
                secType = "STK",
                currency = "USD",
                exchange = "SMART")
ibm_details <- reqContractDetails(ibm, reqId = 1L, ib_con = ib_con)

## End(Not run)

pverspeelt/ibapir documentation built on March 29, 2022, 11:57 a.m.