![JAR search and dependency download from the Maven repository](/logo.png)
com.kucoin.sdk.rest.adapter.WebsocketPrivateAPIAdaptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kucoin-java-sdk Show documentation
Show all versions of kucoin-java-sdk Show documentation
Fixed fork of the official Kucoin SDK
The newest version!
/**
* Copyright 2019 Mek Global Limited.
*/
package com.kucoin.sdk.rest.adapter;
import com.kucoin.sdk.rest.impl.retrofit.AuthRetrofitAPIImpl;
import com.kucoin.sdk.rest.interfaces.WebsocketPrivateAPI;
import com.kucoin.sdk.rest.interfaces.retrofit.WebsocketAuthAPIRetrofit;
import com.kucoin.sdk.rest.response.WebsocketTokenResponse;
import java.io.IOException;
/**
* Created by chenshiwei on 2019/1/18.
*/
public class WebsocketPrivateAPIAdaptor extends AuthRetrofitAPIImpl
implements WebsocketPrivateAPI {
public WebsocketPrivateAPIAdaptor(String baseUrl, String apiKey, String secret, String passPhrase) {
this.baseUrl = baseUrl;
this.apiKey = apiKey;
this.secret = secret;
this.passPhrase = passPhrase;
}
@Override
public WebsocketTokenResponse getPrivateToken() throws IOException {
return super.executeSync(getAPIImpl().getPrivateToken());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy