sellAmount
Generates a new sell order
(sellAmount {asset} amount options?)Returns
Parameters
Examples
(sellAmount {AAPL} 200) ;; sells 1.29 shares of AAPL if price is 155
;;=> order {symbol: "AAPL", action: "sell", units: 1.29, ....}
(sellAmount {AAPL} 200 {round: true}) ;; sells 1 shares of AAPL if price is 155
;;=> order {symbol: "AAPL", action: "sell", units: 1, ....}Last updated