Added support for exchanges with long lived trades

This commit is contained in:
b00lean 2014-12-13 01:06:38 +01:00
parent e41dd36c3c
commit 48e67f5709
2 changed files with 24 additions and 0 deletions

View File

@ -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);
}

View File

@ -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();
}