def update_futures(): if request.args["date"] == "": futures.fetch_realtime("VX") return jsonify()
def test_fetch_realtime_vx(self): test_date = dates.get_database_timestamp().date() quotes = futures.fetch_realtime('VX', TEST_DB_NAME) self._check_quotes(quotes, 'VX', test_date) self._check_database_quotes('VX', len(quotes), test_date, len(quotes))