0
Follow
0
Followers
var symbols = ["BTC_USDT", "LTC_USDT", "EOS_USDT", "ETH_USDT", "BCC_USDT"];
var buyValue = 1000;
function main(){
for(var i=0;i<symbols.length;i++){
exchange.IO("currency", symbols[i]);
var ticker = exchange.GetTicker();
var amount = _N(buyValue/ticker.Sell, 3);
exchange.Buy(ticker.Sell, amount);
Sleep(1000);
}
}
Eu fiz um teste de simulação com a plataforma de negociação bitfinex BTC_USDT e vi este erro. O código acima é do manual de instruções da API do Exchange: https://fmz-docs.readthedocs.io/en/latest/code_Instruction/Extent API.html#io
Como é que isso acontece?
main:5:18 - TypeError: Cannot convert "BTC_USDT" to int
Related Recommendations
Advanced 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?5.5 Trading strategy optimization
