Added support for exchanges with long lived trades
This commit is contained in:
parent
e41dd36c3c
commit
48e67f5709
|
@ -0,0 +1,10 @@
|
|||
package com.generalbytes.batm.server.extensions;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* Created by b00lean on 12/12/14.
|
||||
*/
|
||||
public interface IExchangeAdvanced extends IExchange{
|
||||
public ITask createPurchaseCoinsTask(BigDecimal amount, String cryptoCurrency, String fiatCurrencyToUse, String description);
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.generalbytes.batm.server.extensions;
|
||||
|
||||
/**
|
||||
* Created by b00lean on 12/12/14.
|
||||
*/
|
||||
public interface ITask {
|
||||
public boolean onCreate();
|
||||
public boolean onDoStep();
|
||||
public void onFinish();
|
||||
public boolean isFinished();
|
||||
public String getResult();
|
||||
public boolean isFailed();
|
||||
public long getShortestTimeForNexStepInvocation();
|
||||
}
|
Loading…
Reference in New Issue