1
Follow
0
Followers
- Jika GetCommand ((() mengembalikan nilai sebagai string. Bagaimana saya boleh mengubahnya kepada format objek?
- Bagaimana untuk menukar 3,216.65 ke format 3216.65 yang boleh digunakan?
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced 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 engine
Comment
All comments (9)
问题1,是要把字符串转换为什么?可以具体说明下,举例子。
问题2,需要剔除字符串中的逗号,就可以了。参看JavaScript语言的教程,找下相关的字符串处理函数。或者Python的字符串处理函数。
5 years ago
cmd返回的是 {"id":"fbaab26e-f993-11eb-81c8-cb01d92427de","name":"币安合约 | 币安合约","uri":"https://www.binancezh.io/zh-CN/futures-activity/leaderboard/user?uid=E7EF651A7B2FACC5B2858F9C7B6609EE&tradeType=PERPETUAL","text":"Hand万手的仓位\n合约数量开仓价格\n ETHUSDT 0.067000000 3,440.25"} 这样一个字符串,我想Log(cmd.text)得到这部分数据 "Hand万手的仓位\n合约数量开仓价格\n ETHUSDT 0.067000000 3,440.25",但是不行
5 years ago
- 1
