buy
Generates a new buy order
(buy {asset} shares options?)Description
Returns
Parameters
Examples
(buy {AAPL} 1) ;; buys one share of AAPL
;;=> order {symbol: "AAPL", action: "buy", units: 1, ....}
;; openPositions = [{symbol: "AAPL", side: "long", units: 1}]
(buy {AAPL} 1 {target: true})
;; will not generate a order because openPositions allready has
;; 1 share of AAPL longLast updated