Type/to search
0
Follow
1
Followers
Problem beim Drucken des Formulars
Help
Created 2023-08-16 10:26:11  
 3
 957

Ich dachte, es wäre eine Tabelle, die die Preise von Anandwss in Echtzeit anzeigt, und jetzt verstehe ich, dass die Preise aktualisiert werden, indem ich den folgenden Code ausführe, um die Tabelle zu aktualisieren.
tab1 = {
"type": "table",
"title": "Account:", # Add a comma here (Ein Komma hier hinzufügen)
"cols": ["Währungspaar", "aktueller Preis", "Positionsrichtung", "Indikatorwert", "vorgegebene Preis für die Eröffnung einer Position", "wirkliche Preis für die Eröffnung einer Position", "Anzahl der Positionen", "Verlust", "Leverage", "Garantie"
"rows": []
}
for index, row in df_table.iterrows():
tab1["rows"].append([
row["Währungspaare"
row["Derzeitige Preise"
row["Haltungsrichtung"
row["Indexwert"
row["Die Preise für die Eröffnung der Lagerstätte sind vorbestimmt".
row["Der tatsächliche Eröffnungspreis"
row["Die Anzahl der Lagerstätten"
row["Wir sind nicht mehr in der Lage, das zu tun".
row["Leverage" ist ein Begriff.
row[Das ist die Garantie.
])
LogStatus('' + json.dumps(tab1) + '')

Related Recommendations
Comment
All comments (3)

    以此类推:

    python
    tab1 = { "type": "table", "title": "账户:", "cols": ['当前价格'], "rows": [[exchange.GetTicker()["last"]]] } LogStatus('`' + json.dumps(tab1) + '`')
    3 years ago

    我也想实现策略打印表格,请教一下你这边有模版吗

    3 years ago

    LogStatus函数在平台页面状态栏显示的内容是有刷新频率的,不会实时刷新。

    3 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)