Haehnchen / crypto-trading-bot

Cryptocurrency trading bot in javascript for Bitfinex, Bitmex, Binance, Bybit ... (public edition)
MIT License
3.09k stars 978 forks source link

I am getting this error ERR_INVALID_ARG_TYPE #226

Open Shimoli opened 3 years ago

Shimoli commented 3 years ago

I am getting this errors crypto-trading-bot | {"message":"Order create canceled:{\"id\":637947586810,\"symbol\":\"ETHUSD\",\"side\":\"long\",\"price\":3534.95,\"amount\":10,\"type\":\"limit\",\"options\":{\"adjust_price\":true,\"post_only\":true}} - \"TypeError [ERR_INVALID_ARG_TYPE]: The \\"key\\" argument must be one of type string, TypedArray, or DataView. Received type undefined\"","level":"error","timestamp":"2021-05-08T10:45:20.986Z"}

egisz commented 3 years ago

Error comes from exchange. Please provide which exchange you are using? BTW, did you set exchange API key in conf.json file? Looks like exchange is asking for it :)