我在致电https://api.kraken.com/0/private/addorder end Point时获得{"error":["EAPI:Invalid nonce"]}
。
以JSON的形式传递以下参数:
JSONObject jsonObject = new JSONObject();
jsonObject.accumulate("pair", "XXBT");
jsonObject.accumulate("type ", "sell");
jsonObject.accumulate("ordertype ", "market");
jsonObject.accumulate("price", "2");
jsonObject.accumulate("volume", "1");
也设置API-KEY和API-SIGN。
nonce = string.valueof(system.nanotime());
使用上述逻辑生成nonce。知道我要在哪里?
尝试增加选项Nonce Window
至5000-10000。您可以在此处找到此选项。