Exemple #1
0
    def getSessionName(self):
        self.log.debug('RTController - getSessionName INIT')

        rt_service = RT_Service()
        result = rt_service.getTheSessionName()

        self.log.debug('RTController - getSessionName ENDS')
        return result
    def getDeltas(self, _request):
        self.log.debug('RTController - getDeltas INIT')
        errormessage = '0'

        lastCandle = _request.args.get('lastCandle')
        self.log.debug('lastCandle->' + lastCandle)

        rt_service = RT_Service()
        errormessage, result = rt_service.getDeltaValues(Constantes.MARKET_EUROFX, lastCandle)

        self.log.debug('RTController - getDeltas ENDS')
        return result
    def getGlobalData(self, _request):
        self.log.debug('RTController - getGlobalData INIT')
        errormessage = '0'

        sessionName = _request.args.get('sessionName')
        self.log.debug('sessionName->' + sessionName)

        rt_service = RT_Service()
        errormessage, result = rt_service.getGlobalData(Constantes.MARKET_EUROFX, sessionName)

        self.log.debug('RTController - getGlobalData ENDS')
        return result
Exemple #4
0
    def getDeltas(self, _request):
        self.log.debug('RTController - getDeltas INIT')
        errormessage = '0'

        market = _request.args.get('market')
        self.log.debug('market->' + market)
        lastCandle = _request.args.get('lastCandle')
        self.log.debug('lastCandle->' + lastCandle)

        rt_service = RT_Service()
        errormessage, result = rt_service.getDeltaValues(market, lastCandle)

        self.log.debug('RTController - getDeltas ENDS')
        return result
Exemple #5
0
    def getGlobalData(self, _request):
        self.log.debug('RTController - getGlobalData INIT')
        errormessage = '0'

        sessionName = _request.args.get('sessionName')
        self.log.debug('sessionName->' + sessionName)
        market = _request.args.get('market')
        self.log.debug('market->' + market)

        rt_service = RT_Service()
        errormessage, result = rt_service.getGlobalData(market, sessionName)

        self.log.debug('RTController - getGlobalData ENDS')
        return result