|
|
|
@ -83,12 +83,18 @@ class Agora(object):
|
|
|
|
|
currency = contact["data"]["currency"]
|
|
|
|
|
if not contact["data"]["is_selling"]:
|
|
|
|
|
continue
|
|
|
|
|
reference = self.tx.tx_to_ref(contact_id)
|
|
|
|
|
if not reference:
|
|
|
|
|
reference = "not_set"
|
|
|
|
|
if contact_id not in self.last_dash:
|
|
|
|
|
self.tx.new_trade(contact_id, buyer, currency, amount, amount_xmr)
|
|
|
|
|
if send_irc:
|
|
|
|
|
self.irc.client.msg(self.irc.client.channel, f"AUTO {contact_id}: {buyer} {amount}{currency} {amount_xmr}XMR")
|
|
|
|
|
|
|
|
|
|
dash_tmp.append(f"{contact_id}: {buyer} {amount}{currency} {amount_xmr}XMR")
|
|
|
|
|
self.irc.client.msg(
|
|
|
|
|
self.irc.client.channel, f"AUTO {contact_id}: {buyer} {amount}{currency} {amount_xmr}XMR {reference}"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
dash_tmp.append(f"{contact_id}: {buyer} {amount}{currency} {amount_xmr}XMR {reference}")
|
|
|
|
|
self.last_dash.add(contact_id)
|
|
|
|
|
|
|
|
|
|
# Purge old trades from cache
|
|
|
|
|