|
|
|
@ -85,8 +85,8 @@ class Money(object):
|
|
|
|
|
cast["type"] = "money"
|
|
|
|
|
cast["ts"] = str(datetime.now().isoformat())
|
|
|
|
|
cast["xtype"] = msgtype
|
|
|
|
|
cast["user_id"] = self.instance.user.id
|
|
|
|
|
cast["platform_id"] = self.instance.id
|
|
|
|
|
# cast["user_id"] = self.instance.user.id
|
|
|
|
|
# cast["platform_id"] = self.instance.id
|
|
|
|
|
await self.es.index(index=settings.ELASTICSEARCH_INDEX, body=cast)
|
|
|
|
|
|
|
|
|
|
async def lookup_rates(self, platform, ads, rates=None):
|
|
|
|
@ -403,7 +403,7 @@ class Money(object):
|
|
|
|
|
cast_es["total_remaining"] = total_remaining
|
|
|
|
|
cast_es["total_profit"] = total_profit
|
|
|
|
|
cast_es["total_profit_in_xmr"] = total_profit_in_xmr
|
|
|
|
|
# await self.write_to_es("get_total", cast_es)
|
|
|
|
|
await self.write_to_es("get_total", cast_es)
|
|
|
|
|
return cast_es
|
|
|
|
|
|
|
|
|
|
async def open_trades_usd_parse_dash(self, dash, rates):
|
|
|
|
|