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
