-
Notifications
You must be signed in to change notification settings - Fork 14
StockTrade
Dan Chrostowski edited this page Apr 30, 2019
·
1 revision
-
symbol
- A string representing a ticker symbol -
quantity
- An integer representing number of shares to buy/sell/short/cover -
trade_type
- Either a string orTradeType
object. If string, valid values are 'buy', 'sell', 'sell short', or 'buy to cover' -
order type
- Either a string orOrderType
object. Defaults toOrderType.MARKET()
-
duration
- Either a string orDuration
object. Defaults toDuration.GOOD_TILL_CANCELLED()
-
send_email
- boolean. Defaults to True.
-
validate()
- Returns a PreparedTrade object -
execute()
- Attempts to execute the trade.