库币Java SDK错误KC-API-KEY不存在
Kucoin Java SDK error KC-API-KEY not exists
按照他们的使用指南here我无法开始。
代码:
KucoinClientBuilder builder = new KucoinClientBuilder()
.withApiKeyVersion(2)
.withBaseUrl("https://openapi-sandbox.kucoin.com")
.withApiKey("MyKey", "MySecret", "MyPass");
KucoinRestClient kucoinRestClient = builder.buildRestClient();
KucoinPrivateWSClient kucoinPrivateWSClient;
try {
kucoinPrivateWSClient = builder.buildPrivateWSClient();
KucoinPublicWSClient kucoinPublicWSClient = builder.buildPublicWSClient();
} catch (IOException e) {
e.printStackTrace();
}
builder.buildPrivateWSClient()
抛出异常并显示此消息:
KucoinApiException{code='400003', message='KC-API-KEY not exists'}
我复制了 Api Key 和 Secret 并从 api page
我在这里错过了什么?为什么 KC-API-KEY 不存在?
“沙盒”帐户与原始帐户不同。
它的域是不同的,你需要在网站的沙盒版本中注册here
按照他们的使用指南here我无法开始。
代码:
KucoinClientBuilder builder = new KucoinClientBuilder()
.withApiKeyVersion(2)
.withBaseUrl("https://openapi-sandbox.kucoin.com")
.withApiKey("MyKey", "MySecret", "MyPass");
KucoinRestClient kucoinRestClient = builder.buildRestClient();
KucoinPrivateWSClient kucoinPrivateWSClient;
try {
kucoinPrivateWSClient = builder.buildPrivateWSClient();
KucoinPublicWSClient kucoinPublicWSClient = builder.buildPublicWSClient();
} catch (IOException e) {
e.printStackTrace();
}
builder.buildPrivateWSClient()
抛出异常并显示此消息:
KucoinApiException{code='400003', message='KC-API-KEY not exists'}
我复制了 Api Key 和 Secret 并从 api page
我在这里错过了什么?为什么 KC-API-KEY 不存在?
“沙盒”帐户与原始帐户不同。 它的域是不同的,你需要在网站的沙盒版本中注册here