cancel_all_orders: Cancel all orders Calls 'get_orders()' and 'cancel_order()'...

View source: R/wrappers.R

cancel_all_ordersR Documentation

Cancel all orders Calls get_orders() and cancel_order() to cancel all orders for an account

Description

Cancel all orders Calls get_orders() and cancel_order() to cancel all orders for an account

Usage

cancel_all_orders(token, live = FALSE, account_key, ...)

Arguments

token

either a character or a token2.0 reference class (RC) object as returned by httr::oauth2.0_token(). Sim environment uses character, (a '24 hour token'); live environment a token object.

live

boolean, TRUE for live environment, i.e. real money. Defaults to FALSE, i.e. simulation environment.

account_key

character

...

parameters passed on to response_df()

Value

tibble, containing list of cancelled order ids


lassehjorthmadsen/sherwood documentation built on Sept. 6, 2022, 3:47 p.m.