diff --git a/InvestopediaApi/ita.py b/InvestopediaApi/ita.py index b39a417..fa34b95 100644 --- a/InvestopediaApi/ita.py +++ b/InvestopediaApi/ita.py @@ -219,6 +219,7 @@ def trade(self, symbol, orderType, quantity, priceType="Market", price=False, du client.trade("GOOG", Action.buy, 10) client.trade("GOOG", Action.buy, 10, "Limit", 500) """ + quantity = int(quantity) br = self.br trade_page = self.fetch('/simulator/trade/tradestock.aspx')