Использование IEX в Python 3.7 - PullRequest
0 голосов
/ 30 января 2019

Мой код:

import numpy as np
from datetime import datetime
import smtplib
import time
from selenium import webdriver
#For Prediction
from sklearn.linear_model import LinearRegression
from sklearn import preprocessing, svm
#For Stock Data
from iex import Stock
import iex

tsla = Stock('TSLA')
tsla.get_price()

Моя ошибка:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-47-6b00c609b0e7> in <module>
     11 import iex
     12 
---> 13 tsla = Stock('TSLA')
     14 tsla.get_price()

TypeError: __init__() takes 1 positional argument but 2 were given
...