0
Follow
0
Followers
मैं एक क्वांटिटेटिव हूं, और मुझे प्रोग्रामिंग के बारे में ज्यादा जानकारी नहीं है, और मुझे दो समस्याएं हैं, जिन्हें मैं हल करना चाहता हूं।
-
exchange.IO, Bitmex पर,
मैं एक और स्टॉपलॉस की तलाश में था, और मैंने कोशिश की।
exchange.IO("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&stopPx=4000&ordType=Stop");
तो यह ठीक है, लेकिन अगर मैं कीमत और मात्रा को एक चर के साथ बदलना चाहता हूं, तो मैं क्या करूँ? -
FMZ के वातावरण में, कौन सा फ़ंक्शन सीधे HTTP के इंटरफेस का उपयोग कर सकता है और इसका रिटर्न मान प्राप्त कर सकता है? इसका उपयोग कैसे किया जाता है?
Related Recommendations
Best Programming Language for Algorithmic Trading Systems?Taproot Is Coming: What It Is, and How It Will Benefit BitcoinSelf-Study Plan for Becoming a Quantitative DeveloperHow to set execInst on exchange.Sell?Binance Multi-Currencies Automation Trading Strategy API Operation GuideDetailed explanation of BitMEX pending order strategyJavaScript Bitmex【Recruitment】Quantitative Strategy DevelopmentHow can i get the depth of the market when backtesting?ERR_INSUFFICIENT_ASSET from huobi
Comment
All comments (2)
用变量替换可以这样
var price = 4000;
var amount = 1;
exchange.IO("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty="+amount+"&stopPx="+price+"&ordType=Stop");
HTTP接口使用HttpQuery
https://www.fmz.com/api#HttpQuery
HttpQuery("http://www.baidu.com"); // Get
HttpQuery("http://www.163.com", "a=1&b=2&c=abc"); // Post
请先入门学习一些js的基础知识再学习写策略会快很多
8 years ago
- 1
