def gotoSTOXX50(): app.logger.info("---gotoSTOXX50 INIT") errormessage = '0' tem_values = {} resultData = {} try: app.logger.debug(request.url_root) # Call to Controller try: controller = RTController() thetime = controller.getTheTime() resultData['fecha'] = thetime['strFecha'] resultData['sessionName'] = controller.getSessionName() resultData['CHART_X_AXIS_LENGTH'] = 40 resultData['CHART_DELTAS_SETUP_AXIS_Y2_MIN'] = 35 resultData['CHART_DELTAS_SETUP_AXIS_Y2_MAX'] = 200 resultData['CHART_SPEED_SETUP_AXIS_Y1_MIN'] = 30 resultData['CHART_SPEED_SETUP_AXIS_Y1_MAX'] = 150 resultData['CHART_SPEED_SETUP_AXIS_Y2_MIN'] = 0 resultData['CHART_SPEED_SETUP_AXIS_Y2_MAX'] = 6 resultData['CHART_STRONG_SETUP_AXIS_Y1_MIN'] = -200 resultData['CHART_STRONG_SETUP_AXIS_Y1_MAX'] = 200 except Exception as err: app.logger.error(str(err)) app.logger.exception("@Error") # tem_values = { 'errormessage': errormessage, 'domain': request.url_root[:-1] # quita la barra final } tem_values.update(resultData) except Exception as err: app.logger.error(str(err)) app.logger.exception("@Error") errormessage = '*Error Redirecting index: ' + str(err) # # logging.info('tem_values=' + repr(tem_values)) app.logger.info("---gotoSTOXX50 ENDS") return render_template('market-stoxx50.html', datas=tem_values)
def getDeltas(): app.logger.debug("---ajx GET getDeltas INIT") tem_values = {'errormessage': '0'} try: controller = RTController() result = controller.getDeltas(request) tem_values['result'] = result except Exception as Argument: app.logger.error(repr(Argument)) app.logger.exception("@Error") tem_values['errormessage'] = '*Error Ajx GET getDeltas: ' + repr( Argument) app.logger.debug("---ajx GET getDeltas ENDS") return jsonify({'serverdata': tem_values})
def getGlobaldata(): app.logger.debug("---ajx GET getGlobaldata INIT") tem_values = {'errormessage': '0'} try: controller = RTController() result = controller.getGlobalData(request) tem_values.update(result) except Exception as Argument: app.logger.error(repr(Argument)) app.logger.exception("@Error") tem_values['errormessage'] = '*Error Ajx GET getSessionName: ' + repr( Argument) app.logger.debug("---ajx GET getGlobaldata ENDS") return jsonify({'serverdata': tem_values})
def getSessionName(): app.logger.debug("---ajx GET getSessionName INIT") tem_values = {'errormessage': '0'} try: controller = RTController() thetime = controller.getTheTime() tem_values['fecha'] = thetime['strFecha'] tem_values['sessionName'] = controller.getSessionName() except Exception as Argument: app.logger.error(repr(Argument)) app.logger.exception("@Error") tem_values['errormessage'] = '*Error Ajx GET getSessionName: ' + repr( Argument) app.logger.debug("---ajx GET getSessionName ENDS") return jsonify({'serverdata': tem_values})
def gotoBUND(): app.logger.info("---gotoBUND INIT") errormessage = '0' tem_values = {} resultData = {} try: app.logger.debug(request.url_root) # Call to Controller try: controller = RTController() thetime = controller.getTheTime() resultData['fecha'] = thetime['strFecha'] resultData['sessionName'] = controller.getSessionName() except Exception as err: app.logger.error(str(err)) app.logger.exception("@Error") # tem_values = { 'errormessage': errormessage, 'domain': request.url_root[:-1] # quita la barra final } tem_values.update(resultData) except Exception as err: app.logger.error(str(err)) app.logger.exception("@Error") errormessage = '*Error Redirecting index: ' + str(err) # # logging.info('tem_values=' + repr(tem_values)) app.logger.info("---gotoBUND ENDS") return render_template('market-bund.html', datas=tem_values)