[23.09.2020] Convert Dict to Json
This commit is contained in:
parent
89c110ac38
commit
bf78fb7c40
@ -15,6 +15,8 @@ from pricing.exchanges.kraken import krakenVolAskBid, krakenHighLow, krakenOpenC
|
||||
from src.utils.databaseConnect import send
|
||||
from src.utils.activemqConnect import activeMQSender
|
||||
|
||||
import json
|
||||
|
||||
import logging as logger
|
||||
|
||||
logger.basicConfig(
|
||||
@ -124,9 +126,11 @@ def sentToArtemis(c_type, timestamp, av_price, high, low, vol, o_price, c_price)
|
||||
"volume" : vol
|
||||
}
|
||||
|
||||
messageJson = json.dumps(message, indent = 4)
|
||||
|
||||
logger.info("Sending message to PricingSave queue")
|
||||
|
||||
activeMQSender(message, logger)
|
||||
activeMQSender(messageJson, logger)
|
||||
|
||||
|
||||
def timeFunction():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user