0
Follow
1
Followers
def create_new_robot():
Settings = {
"name": "kztest", # 策略の名前
"args": [# 戦略パラメータ
["symbol_1", "x1"], # 参数名はIntervalで,値は500でした
["symbol_2", "x2"] # パラメータ名はMAType,値は0で,属しているテンプレートIDは75882
],
"strategy": 420235, #戦略ID
"period": 60, # K ライン周期,デフォルトは60秒
"node": 52924, # どのホストのノードで実行され,指定しない場合は自動的に割り当てられる
"appid": "AIPをテストする"
"exchanges": [# 取引所の配置情報リスト
{"pid": 175586, "pair": "ETH_BTC"}, # FMZ コントロールセンターで配置された取引所,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
