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
Exemple #2
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