Learn R Programming

TFX (version 0.1.0)

isActive: Is a session active?

Description

Test to see if a session is active

Usage

isActive(x, ...)
"isActive" (x, ...)

Arguments

x
an object to test
...
other arguments for methods

Value

logical

Details

In order for a TFXsession to be active, it must have been authenticated less than 1 minute ago. If it was created with snapshot=TRUE it will become inactive after it is used once.

Examples

Run this code
## Not run: 
# sess <- ConnectTrueFX("GBP/JPY", username='JSTrader', password='Ou812')
# isActive(sess) #TRUE
# ## End(Not run)

Run the code above in your browser using DataLab