0
Follow
1
Followers
我想法是表格 实时显示 币安wss的价格数据,现在我理解的是 价格更新一次,就要执行一次下面的代码刷新表格,请问我的理解对玛 ??能直接指定更改某个货币对的当前价格吗?
tab1 = {
"type": "table",
"title": "账户:", # Add a comma here
"cols": ['货币对', '当前价格', '持仓方向', '指标值', '预设开仓价格', '实际开仓价格', '持仓数量', '盈亏情况', '杠杆', '保证金'],
"rows": []
}
for index, row in df_table.iterrows():
tab1["rows"].append([
row['货币对'],
row['当前价格'],
row['持仓方向'],
row['指标值'],
row['预设开仓价格'],
row['实际开仓价格'],
row['持仓数量'],
row['盈亏情况'],
row['杠杆'],
row['保证金']
])
LogStatus('' + json.dumps(tab1) + '')
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)MyLanguage Doc
Comment
All comments (3)
以此类推:
python
tab1 = {
"type": "table",
"title": "账户:",
"cols": ['当前价格'],
"rows": [[exchange.GetTicker()["last"]]]
}
LogStatus('`' + json.dumps(tab1) + '`')
3 years ago
- 1


