internal_api: Etrade API Call

Description Usage Arguments Functions

Description

A function to assist with lower-level etrade API calls.

Usage

1
2
3
4
5
6
7
etrade_api(module = c("accounts", "market", "order", "notification"),
  api = NULL, session = NULL, query = NULL, verb = httr::GET,
  norun = FALSE, url = NULL)

etrade_url(module = NULL, api, query = NULL)

eval_api(api_call)

Arguments

module

The etrade API module to reach (one of: "accounts", "market", "order", "notification")

api

The API endpoint to reach within the module

session

An internal session object

query

list of other arguments for the body of the call

verb

A verb function from package httr (GET (default), POST, etc)

norun

boolean (default = FALSE). If true, returns unevaluated api call with environment captured, that can be executed later with function eval_api

url

send in entire url string instead of using module and api

api_call

unevaluted api call retuned by etrade_api(..., norrun = TRUE)

Functions


bfatemi/ralgotools documentation built on May 8, 2019, 1:01 p.m.