querycapital: querycapital

Description Usage Arguments Details Value Examples

View source: R/hftsimulator.r

Description

get current capital status.

Usage

1
querycapital(instrumentids = NULL)

Arguments

instrumentids

specifying instrumentids to be queried, return total capital status if instrumentids=NULL, default NULL.

Details

return a data.frame of current capital status, each row of the data.frame representing an instrument, if instrumentids is not NULL, querycapital will return the capital status specified by instrumentids.

Value

a data.frame of all specified instruments' current status

Examples

1
2
3
4
5
6
7
## Not run: 
## get total capital status
querycapital()
## get capital status of TF1603 and T1603
querycapital(instrumentids=c("TF1603","T1603"))

## End(Not run)

chenhaotian/High-Frequency-Trading-Simulation-System documentation built on April 18, 2018, 9:24 p.m.