Learn R Programming

rusquant (version 1.1.4)

getAccounts: Get account information from a brokerage or exchange

Description

This function retrieves account information from a brokerage or exchange.

Usage

getAccounts(src = "tinkoff", api.key = "", verbose = FALSE)

Value

A list object with account information, or an error message if the request fails.

Arguments

src

a character string specifying the brokerage or exchange. Can be one of "tinkoff" or "alor". Default is "tinkoff".

api.key

a character string representing the authorization key for the API.

verbose

a logical value indicating whether to print detailed information about the request/response. Default is FALSE.

Author

Vyacheslav Arbuzov

Examples

Run this code
# get account information from tinkoff
account_info <- getAccounts(src = "Tinkoff", api.key = "your_api_key")

# get account information from alor
account_info <- getAccounts(src = "Alor", api.key = "your_api_key")

Run the code above in your browser using DataLab