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);
}
}
제가 bitfinex BTC_USDT 거래 플랫폼을 사용하여 시뮬레이션 회귀를 할 때, 이 에러를 보았습니다. 위의 코드는 Exchange의 API 설명서에서 나온 것입니다.
어떻게 깨졌을까요?
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
