0
Follow
1
Followers
제가 생각했던 것은 이 표는 실제 통화와 WS의 가격 데이터를 보여준다는 것입니다. 이제 제가 이해한 것은 가격이 한 번 업데이트되면, 아래의 코드를 실행해서 이 표를 갱신해야 한다는 것입니다.
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


