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

com.kucoin.sdk.rest.request.OcoOrderCancelRequest Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2019 Mek Global Limited.
 */
package com.kucoin.sdk.rest.request;

import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@ToString
public class OcoOrderCancelRequest {

    private String symbol;

    private List orderIds;

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public OcoOrderCancelRequest addOrderId(String orderId) {
        if (orderIds == null) {
            orderIds = new ArrayList<>();
        }
        orderIds.add(orderId);
        return this;
    }

    public void setOrderIds(List orderIds) {
        this.orderIds = orderIds;
    }

    public String getOrderIds() {
        if (orderIds == null) {
            return null;
        }
        return String.join(",", orderIds);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy