orders: Create Order

Description Usage Arguments Value Examples

Description

Create Order

Get Orders of Space

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
create_order(
  space_id,
  isin,
  quantity,
  valid_until = Sys.time() + 86400,
  activate = TRUE
)

get_orders(space_id)

delete_order(space_id, order_id)

activate_order(space_id, order_id, verbose = getOption("verbose"))

Arguments

space_id

character; Space ID for which balance shall be retrieved. See also list_spaces()

isin

character; ISIN of instrument to be retrieved.

quantity

integer; Number of stocks to be bought/sold.

valid_until

POSIXct; Time until order shall be valid.

activate

logical; Automatically activate order.

order_id

character; UUID of order to be deleted.

verbose

logical; Specify if output shall be printed to the console.

Value

data.frame including orders

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
  create_order(space_id = "e44907b7-d131-4ec9-9647-a2649480003d",
               isin = "DE0008404005",
               quantity = 1)

## End(Not run)
## Not run: 
get_orders(space_id = "e44907b7-d131-4ec9-9647-a2649480003d")

## End(Not run)

quantargo/lemonmarkets documentation built on Dec. 22, 2021, 10:57 a.m.