복제된 현금 단일화폐 균형 전략, 토큰 플랫폼 BTC3S_USDT, 수정되지 않은 거래 서적 정확도 오류를 겪어 다음과 같이 수정:
193: trade('buy', buy_price.toFixed(6), buy_value.toFixed(4), '구입 균형')
194: trade('sell', sell_price.toFixed(6), sell_value.toFixed(4), '평균 판매')
내부 오류: bad argument #3 to 'Exchange_Trade' (float64 expected, got string) at<anonymous> (native) at Buy (FILE) at trade (FILE:139) at onTick (FILE:193) at main (FILE:205)
API 문서에서 exchange.Buy ((Price, Amount) 에 의해 전달된 두 개의 파라미터, 현금 단일 화폐 균형 전략은 다음과 같습니다:
139 id = exchange.Buy(price, amount, msg)
3개의 arguments를 삭제한 후에도 toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생하고, toFixed () 로 오류가 발생합니다.
- 1
