0
Follow
1
Followers
Pedindo ajuda sobre os parâmetros do NewRobot
Created 2023-07-09 10:31:02 Updated 2023-07-09 10:31:42
1
920
def create_new_robot():
Settings = {
"name": "kztest", # nome da política
"args": [# Parâmetros da estratégia
["symbol_1", "x1"], # nome do parâmetro Interval, valor de 500
["symbol_2", "x2"] # O nome do parâmetro é MAType, valor 0 e tem o ID do modelo 75882
],
"strategy": 420235, # estratégia ID
"period": 60, # K-line period, 60 segundos por defeito
"node": 52924, # executado em um node de host, distribuído automaticamente se não especificado
"appid": "Teste o AIP",
"exchanges": [# Lista de informações de configuração da bolsa
{"pid": 175586, "pair": "ETH_BTC"}, # FMZ Centro de Controle de troca configurado, usando a identificação de pid
]
}
return api('NewRobot', Settings)
1、使用GetPlatformList 返回的交易所信息是 map[date:2023-02-14 09:15:03 eid:Futures_Binance id:175586 label:币安期货 logo:images/logo/middle/binance.png name:币安期货|Futures_Binance stocks:[BTC_USD LTC_USD BTC_USDT LTC_USDT ETH_USDT ETH_USD] website:https://accounts.binance.com/zh-TC/register?ref=45110270]
所以pid=175586
2、策略连接是 https://www.fmz.com/m/edit-strategy/420235,所以 策略ID 写的是420235
3、策略参数就两个
4 托管者节点也没有错。
5 册数设置里的标签名称是 测试AIP 所以appid 是 测试aip ,我感觉是这里错了 可是又不知道在哪里找到 appid 求救信息
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 DocFMZ PINE Script DocNotes & Explanation of Futures Reverse Doubling Algorithm StrategySolutions to Obtaining Docker Http Request Message
Comment
All comments (1)
- 1
