1
Follow
8
Followers
Hướng dẫn: Áp dụng cho - Đơn hàng chỉ có tùy chọn [Số lượng] nhưng không có tùy chọn [Giá trị USDT]
Created 2022-03-01 12:28:52 Updated 2022-03-01 12:35:17
3
1258
Hướng dẫn: Áp dụng cho - Đơn hàng chỉ có tùy chọn [Số lượng] nhưng không có tùy chọn [Giá trị USDT]
Số đơn tiếp theo = giá trị USDT của giao dịch trừ giá hiện tại, đơn vị biến động nhỏ nhất của giao dịch
Đơn vị biến đổi nhỏ nhất chính xác: Ví dụ, số khe là 1.315, thì đơn vị biến đổi nhỏ nhất là số nhỏ = 3
def transform_num(trade_usdt, price, num_precision):
return round(trade_usdt / price, num_precision)
num = transform_num (giá trị USDT, giá hiện tại, giữ số nhỏ)
Đây là ví dụ mã Python để tham khảo.
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

