33
Follow
63
Followers
exchanges[0].SetContractType(leixing_bitmex);
其中,leixing_bitmex 为外部参数,定义为str XBTUSD
可是,定义合约类型后,返回了true ,但是获取深度时总是反馈 Your browser sent an invalid request.
如果直接用exchanges[0].SetContractType('XBTUSD'); 就一切正常,难道合约类型不能用外部参数传递吗?
求教
Related Recommendations
Looking For PartnershipGreat news! Check out our platforms’ NEW features, the “Demands & Offers” page on our website.Our platform’s New design PC/MacOS local software client is released now!Flash collapse robot (teaching)Index equilibrium strategy (teaching)can anyone please explain how to start with this platformC++ API call exampleHow to break through the Tick receiving limit of commodity futuresMulti-platform Hedging Stabilization Arbitrage V2.1 (Annotation Edition)Pure english vesion of e-books about some basic systematic trading skills
Comment
All comments (1)
Python 语言 还是 JS , 如果是python 注意 全局变量 作用域 , 局部 有没有 重名的变量 等问题。
在这句 exchanges[0].SetContractType(leixing_bitmex); 设置合约之前, Log 一下leixing_bitmex 变量,确定一下是不是 XBTUSD 。
8 years ago
- 1

