예제 #1
0
 def test_last(self):
     from pyEX import last
     with patch('requests.get') as mock:
         mock.return_value = MagicMock()
         mock.return_value.status_code = 200
         last()
         last('test')
예제 #2
0
파일: test_api.py 프로젝트: Sdoof/pyEX
 def test_last(self):
     from pyEX import last
     last(C)
def get_last_rt_price(symbol):
    return pd.DataFrame(pyex.last(symbol + ','))