getAccounts: Get account information from a brokerage or exchange

View source: R/getAccounts.R

getAccountsR Documentation

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)

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.

Value

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

Note

Not for the faint of heart. All profits and losses related are yours and yours alone. If you don't like it, write it yourself.

Author(s)

Vyacheslav Arbuzov

Examples

# 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")


rusquant documentation built on Sept. 30, 2024, 9:42 a.m.