1
Follow
8
Followers
Tutorial: Aplicable a: pedidos con solo la opción [Cantidad], pero sin la opción [Valor USDT]
Created 2022-03-01 12:28:52 Updated 2022-03-01 12:35:17
3
1257
Tutorial: Aplicable a: pedidos con solo la opción [Cantidad], pero sin la opción [Valor USDT]
Número único siguiente = Valor de USDT de la posición, menos el precio actual y la mínima unidad de variación de la precisión de la bolsa
Unidad de precisión mínima: por ejemplo, si el número de hoyos es 1.315, entonces la unidad mínima de precisión mínima es el decimal = 3
def transform_num(trade_usdt, price, num_precision):
return round(trade_usdt / price, num_precision)
num = transform_num (valor en USDT, precio actual, reserva el número pequeño)
Este es un ejemplo de código de Python para su consulta.
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

