| | |
| | | * @param onFailure 失败回调 |
| | | */ |
| | | public void openLong(String quantity, Consumer<String> onSuccess, Runnable onFailure) { |
| | | submitOrder("buy", "long", quantity, "market", null, false, "t-okx-grid-long", onSuccess, onFailure); |
| | | submitOrder("buy", "long", quantity, "market", null, false, "tGridLong", onSuccess, onFailure); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param onFailure 失败回调 |
| | | */ |
| | | public void openShort(String quantity, Consumer<String> onSuccess, Runnable onFailure) { |
| | | submitOrder("sell", "short", quantity, "market", null, false, "t-okx-grid-short", onSuccess, onFailure); |
| | | submitOrder("sell", "short", quantity, "market", null, false, "tGridShort", onSuccess, onFailure); |
| | | } |
| | | |
| | | /** |