更新账户信息

版权声明:猪小哥 https://blog.csdn.net/food_for_thought/article/details/82381158

1.定义如何更新账户信息

2.定义更新账户信息的引用函数

3.定义所需要的信息,通过 “ . ” 这个符号(例子是用其自带的五个返回数据中的 account_rights ,并只取 eos 的数据)

4.打印出所需要的信息

5.将需要的信息发给需要的位置(例子中的 content 是用钉钉发送信息时的引用代码,注意加 str )

def okex_future_balance
balance = okex_future_balance
eos_balance = balance.account_rights.eos
print('当前eos资产:', eos_balance)
content = '当前eos资产:' + str(eos_balance)

猜你喜欢

转载自blog.csdn.net/food_for_thought/article/details/82381158