3
Follow
0
Followers
Một câu hỏi dành cho người mới tham gia vào thế giới tiền điện tử
Created 2021-08-10 16:05:40
7
1111
Một trong số các bạn có thể cho tôi xem code nào đã bị lỗi.
Tôi đã viết trong Python, tôi muốn giữ một số lượng lớn hơn 0 để thực hiện các hoạt động bình thường, và sau đó báo cáo lỗi khi kiểm tra lại, hiển thị raceback (most recent call last): File "<string>", line 1606, in Run File "<string>", line 57, in <module> File "<string>", line 20, in main TypeError: 'NoneType' object is not subscriptable
amount = 2
if exchange.GetPosition()['Amount'] > 0 :
exchange.Buy(-1,amount) # mua không có giá
Related Recommendations
How 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 engineHow to install ta-lib on linux docker?
Comment
All comments (7)
还有吐槽一句,怎么社区里连个人影子都没啊,不活跃啊,各位大佬,就看到管理员一个人在回复.............这在线人数是假的把,一堆招聘广告............
5 years ago
- 1
