Skip to content

Commit aac872e

Browse files
committed
#121 - use double type quantity in PositionsEndpoint.close()
1 parent ce1bc29 commit aac872e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/jacobpeterson/alpaca/rest/endpoint/positions/PositionsEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public List<ClosePositionOrder> closeAll(Boolean cancelOrders) throws AlpacaClie
113113
*
114114
* @throws AlpacaClientException thrown for {@link AlpacaClientException}s
115115
*/
116-
public Order close(String symbolOrAssetID, Integer quantity, Double percentage) throws AlpacaClientException {
116+
public Order close(String symbolOrAssetID, Double quantity, Double percentage) throws AlpacaClientException {
117117
checkNotNull(symbolOrAssetID);
118118

119119
HttpUrl.Builder urlBuilder = alpacaClient.urlBuilder()

0 commit comments

Comments
 (0)