Class PoloniexTradeServiceRaw
- java.lang.Object
-
- org.knowm.xchange.service.BaseExchangeService
-
- org.knowm.xchange.poloniex.service.PoloniexBaseService
-
- org.knowm.xchange.poloniex.service.PoloniexTradeServiceRaw
-
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
PoloniexTradeService
public class PoloniexTradeServiceRaw extends PoloniexBaseService
- Author:
- Zach Holmes
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.poloniex.service.PoloniexBaseService
apiKey, poloniex, poloniexAuthenticated, signatureCreator
-
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
-
Constructor Summary
Constructors Constructor Description PoloniexTradeServiceRaw(Exchange exchange)
-
Method Summary
-
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
getClientConfig, verifyOrder, verifyOrder, verifyOrder
-
-
-
-
Constructor Detail
-
PoloniexTradeServiceRaw
public PoloniexTradeServiceRaw(Exchange exchange)
-
-
Method Detail
-
returnOpenOrders
public Map<String,PoloniexOpenOrder[]> returnOpenOrders() throws IOException
- Throws:
IOException
-
returnOpenOrders
public PoloniexOpenOrder[] returnOpenOrders(CurrencyPair currencyPair) throws IOException
- Throws:
IOException
-
returnTradeHistory
public PoloniexUserTrade[] returnTradeHistory(CurrencyPair currencyPair, Long startTime, Long endTime, Integer limit) throws IOException
- Throws:
IOException
-
returnTradeHistory
public HashMap<String,PoloniexUserTrade[]> returnTradeHistory(Long startTime, Long endTime, Integer limit) throws IOException
- Throws:
IOException
-
returnMarginAccountSummary
public PoloniexMarginAccountResponse returnMarginAccountSummary() throws IOException
- Throws:
IOException
-
returnMarginPosition
public PoloniexMarginPostionResponse returnMarginPosition(CurrencyPair currencyPair) throws IOException
- Throws:
IOException
-
returnAllMarginPositions
public Map<String,PoloniexMarginPostionResponse> returnAllMarginPositions() throws IOException
- Throws:
IOException
-
returnAvailableAccountBalances
public PoloniexAccountBalance returnAvailableAccountBalances(String account) throws IOException
- Throws:
IOException
-
returnTradableBalances
public Map<String,Map<String,BigDecimal>> returnTradableBalances() throws IOException
- Throws:
IOException
-
returnAllAvailableAccountBalances
public PoloniexAccountBalance[] returnAllAvailableAccountBalances() throws IOException
- Throws:
IOException
-
buy
public PoloniexTradeResponse buy(LimitOrder limitOrder) throws IOException
- Throws:
IOException
-
sell
public PoloniexTradeResponse sell(LimitOrder limitOrder) throws IOException
- Throws:
IOException
-
move
public PoloniexMoveResponse move(String orderId, BigDecimal originalAmount, BigDecimal limitPrice, PoloniexOrderFlags flag) throws IOException
- Throws:
IOException
-
move
public PoloniexMoveResponse move(String orderId, BigDecimal originalAmount, BigDecimal limitPrice) throws IOException
- Throws:
IOException
-
cancel
public boolean cancel(String orderId) throws IOException
- Throws:
IOException
-
getFeeInfo
public HashMap<String,String> getFeeInfo() throws IOException
- Throws:
IOException
-
-