conId: methods to get conId

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/conId.R

Description

currently defined methods for default, character, twsInstrument, and twsContract

Usage

1
conId(x, ...)

Arguments

x

The name of a twsInstrument, or an object of type twsInstrument, or twsContract.

...

other arguments

Details

conId.twsContract

Value

character conId

Note

unless you call conId with a twsContract or twsInstrument, it will call getContract which will, as a last resort, download the contract details from IBrokers.

Author(s)

gsee

See Also

twsInstrument, twsContract

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
stk <- twsInstrument("GOOG")
conId(stk)
conId(getInstrument(stk))
conId(getContract(stk))

conId(stock("AAPL","USD")) #uses reqContractDetails

## End(Not run)

twsInstrument documentation built on May 2, 2019, 5:24 p.m.