forked from knowm/XChange
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request knowm#1390 from ww3456/develop
[Bitfinex] order replace added to raw trade service
- Loading branch information
Showing
4 changed files
with
78 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ex/src/main/java/org/knowm/xchange/bitfinex/v1/dto/trade/BitfinexReplaceOrderRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.knowm.xchange.bitfinex.v1.dto.trade; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class BitfinexReplaceOrderRequest extends BitfinexNewOrderRequest { | ||
|
||
@JsonProperty("order_id") | ||
protected long replaceOrderId; | ||
|
||
@JsonProperty("use_remaining") | ||
protected boolean useRemaining = false; | ||
|
||
public BitfinexReplaceOrderRequest(String nonce, long replaceOrderId, String symbol, BigDecimal amount, BigDecimal price, String exchange, String side, | ||
String type, boolean isHidden, boolean isPostOnly, boolean useRemaining) { | ||
|
||
super(nonce, symbol, amount, price, exchange, side, type, isHidden, isPostOnly); | ||
|
||
request = "/v1/order/cancel/replace"; | ||
this.replaceOrderId = replaceOrderId; | ||
this.useRemaining = useRemaining; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters