All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kucoin.sdk.rest.adapter.FillAPIAdapter Maven / Gradle / Ivy

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.FillAPI;
import com.kucoin.sdk.rest.interfaces.retrofit.FillAPIRetrofit;
import com.kucoin.sdk.rest.response.Pagination;
import com.kucoin.sdk.rest.response.TradeResponse;

import java.io.IOException;

/**
 * Created by chenshiwei on 2019/1/18.
 */
public class FillAPIAdapter extends AuthRetrofitAPIImpl implements FillAPI {

    public FillAPIAdapter(String baseUrl, String apiKey, String secret, String passPhrase) {
        this.baseUrl = baseUrl;
        this.apiKey = apiKey;
        this.secret = secret;
        this.passPhrase = passPhrase;
    }

    @Override
    public Pagination listFills(String symbol, String orderId, String side,
                                               String type, Long start, Long end,
                                               int pageSize, int currentPage) throws IOException {
        return executeSync(getAPIImpl().queryTrades(symbol, orderId, side, type, start, end, pageSize, currentPage));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy