8
Follow
1375
Followers
FMEX 测试环境使用指南
FMEX 测试环境网站提供
测试主域名:https://www.fmextest.net/
真实交易API域名:api.fmex.com
模拟交易API域名:api.fmextest.net
API访问地址:https://api.fmex.com/ ,请注意我们仅支持https访问,不支持http访问。
笔者测试了一下登录之前的FMEX测试环境账号,发现已经无法登录,点击找回,显示无此账号。说明之前的测试账号可能已经清空了,所以又注册了一个,注册完添加谷歌验证才能申请API KEY 。一切准备就绪后,申请API KEY 。
准备工作
-
需要下载最新的托管者使用
-
使用时,策略中需要切换基地址,切换到
https://api.fmextest.net地址,例如:
交易对设置BTC_USD或者BTC。javascriptfunction main() { // 或者使用 exchange.SetBase("https://api.fmextest.net") exchange.IO("base", "https://api.fmextest.net") Log(exchange.GetAccount()) exchange.SetContractType("swap") Log(exchange.GetDepth()) Log(exchange.GetTicker()) Log(exchange.GetOrders()) Log(exchange.GetPosition()) }
实盘运行
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization






