io.github.mainstringargs.alpaca.rest.orders.DeleteOrderRequestBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alpaca-java Show documentation
Show all versions of alpaca-java Show documentation
Java API for Alpaca trading
package io.github.mainstringargs.alpaca.rest.orders;
/**
* The Class DeleteOrderRequestBuilder.
*/
public class DeleteOrderRequestBuilder extends OrdersRequestBuilder {
/**
* Instantiates a new delete order request builder.
*
* @param baseUrl the base url
*/
public DeleteOrderRequestBuilder(String baseUrl) {
super(baseUrl);
}
/**
* Order id.
*
* @param orderId the order id
* @return the delete order request builder
*/
public DeleteOrderRequestBuilder orderId(String orderId) {
if (orderId != null) {
super.appendEndpoint(orderId);
}
return this;
}
}