|
|
|
@ -12,6 +12,8 @@ def get_balance_hook(user_id, user_name, account_id, account_name, balance):
|
|
|
|
|
Called every time the balance is fetched on an account.
|
|
|
|
|
Store this into Elasticsearch.
|
|
|
|
|
"""
|
|
|
|
|
print("get_balance_hook start")
|
|
|
|
|
print("PARAMS", user_id, user_name, account_id, account_name, balance)
|
|
|
|
|
store_msg(
|
|
|
|
|
"balances",
|
|
|
|
|
{
|
|
|
|
@ -22,6 +24,7 @@ def get_balance_hook(user_id, user_name, account_id, account_name, balance):
|
|
|
|
|
"balance": balance,
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
print("get_balance_hook end")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_pair(account, base, quote, invert=False):
|
|
|
|
|