Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/kucoin/sdk/KucoinClientBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public KucoinRestClient buildRestClient() {
if (timeAPI == null) timeAPI = new TimeAPIAdapter(baseUrl);
if (commonAPI == null) commonAPI = new CommonAPIAdapter(baseUrl);
if (symbolAPI == null) symbolAPI = new SymbolAPIAdaptor(baseUrl);
if (orderBookAPI == null) orderBookAPI = new OrderBookAPIAdapter(baseUrl);
if (orderBookAPI == null) orderBookAPI = new OrderBookAPIAdapter(baseUrl, apiKey, secret, passPhrase, apiKeyVersion);
if (historyAPI == null) historyAPI = new HistoryAPIAdapter(baseUrl);
return new KucoinRestClientImpl(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
package com.kucoin.sdk.rest.adapter;

import com.kucoin.sdk.rest.impl.retrofit.PublicRetrofitAPIImpl;
import com.kucoin.sdk.rest.impl.retrofit.AuthRetrofitAPIImpl;
import com.kucoin.sdk.rest.interfaces.OrderBookAPI;
import com.kucoin.sdk.rest.interfaces.retrofit.OrderBookAPIRetrofit;
import com.kucoin.sdk.rest.response.Level3Response;
Expand All @@ -14,10 +14,14 @@
/**
* Created by chenshiwei on 2019/1/22.
*/
public class OrderBookAPIAdapter extends PublicRetrofitAPIImpl<OrderBookAPIRetrofit> implements OrderBookAPI {
public class OrderBookAPIAdapter extends AuthRetrofitAPIImpl<OrderBookAPIRetrofit> implements OrderBookAPI {

public OrderBookAPIAdapter(String baseUrl) {
public OrderBookAPIAdapter(String baseUrl, String apiKey, String secret, String passPhrase, Integer apiKeyVersion) {
this.baseUrl = baseUrl;
this.apiKey = apiKey;
this.secret = secret;
this.passPhrase = passPhrase;
this.apiKeyVersion = apiKeyVersion;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface OrderBookAPIRetrofit {
@GET("api/v1/market/orderbook/level2_20")
Call<KucoinResponse<OrderBookResponse>> getTop20Level2OrderBook(@Query("symbol") String symbol);

@GET("api/v2/market/orderbook/level2")
@GET("api/v3/market/orderbook/level2")
Call<KucoinResponse<OrderBookResponse>> getFullLevel2OrderBook(@Query("symbol") String symbol);

@GET("api/v2/market/orderbook/level3")
Expand Down