[23.09.2020] sending testing
This commit is contained in:
parent
2feccc3a29
commit
cef7b771ca
@ -113,7 +113,7 @@ def sendToGateway(c_type, timestamp, av_price, high, low, vol, o_price, c_price)
|
|||||||
def sentToArtemis(c_type, timestamp, av_price, high, low, vol, o_price, c_price):
|
def sentToArtemis(c_type, timestamp, av_price, high, low, vol, o_price, c_price):
|
||||||
|
|
||||||
strippedTimestamp = timestamp.replace(minute=0, second=0, microsecond=0)
|
strippedTimestamp = timestamp.replace(minute=0, second=0, microsecond=0)
|
||||||
timestamp = '"'+strippedTimestamp.strftime('%Y-%m-%dT%H:%M:%S')+'"'
|
timestamp = strippedTimestamp.strftime('%Y-%m-%dT%H:%M:%S')
|
||||||
|
|
||||||
message = {
|
message = {
|
||||||
"timestamp" : timestamp,
|
"timestamp" : timestamp,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user