get_fondos: Fetch holdings data

Description Usage Arguments Details Value Examples

Description

Construct a mysql query for the selected dates and contrato and sends it to the sql database posiciones

Usage

1
get_fondos(fecha, contrato = NULL)

Arguments

fecha

A vector of dates that can be of class character or Date but is expected to be in the format aaaa-mm-dd

contrato

A character or integer vector with the number of contratos

Details

This function will return a data.frame with holdings information from one or several dates When no contrato is given, it will fetch the information of every contrato

Value

A data.frame with the holding of the given contratos in the selected dates. If no contrato is given, it will return the information of every contrato.

Examples

1
2
get_fondos("2015-12-31")
get_fondos("2015-12-31", contrato = "25774")

CIAssetManagement/QuantTools documentation built on May 8, 2019, 3:41 p.m.