-
Notifications
You must be signed in to change notification settings - Fork 15
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 orTradeTypeobject. If string, valid values are 'buy', 'sell', 'sell short', or 'buy to cover' -
order type- Either a string orOrderTypeobject. Defaults toOrderType.MARKET() -
duration- Either a string orDurationobject. Defaults toDuration.GOOD_TILL_CANCELLED() -
send_email- boolean. Defaults to True.
-
validate()- Returns a PreparedTrade object -
execute()- Attempts to execute the trade.