0
Follow
1
Followers
Yêu cầu trợ giúp về các thông số NewRobot
Created 2023-07-09 10:31:02 Updated 2023-07-09 10:31:42
1
920
def create_new_robot():
Settings = {
"name": "kztest", # tên chính sách
"args": [# Các tham số chiến lược
["symbol_1", "x1"], # tham số có tên là Interval, giá trị là 500
["symbol_2", "x2"] # Tên tham số là MAType, giá trị là 0, thuộc về mã mẫu 75882
],
"strategy": 420235, # ID chiến lược
"period": 60, # K dòng chu kỳ, mặc định là 60 giây
"node": 52924, # Chạy trên node nào của host, tự động phân bổ nếu không được chỉ định
"appid": "thử nghiệm AIP",
"exchanges": [# Danh sách thông tin cấu hình của sàn giao dịch
{"pid": 175586, "pair": "ETH_BTC"}, # FMZ Trung tâm điều khiển giao dịch được cấu hình, sử dụng nhận dạngpid
]
}
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
