public class CryptsyTradeServiceRaw extends CryptsyBasePollingService
apiKey, cryptsy, cryptsyAuthenticated, signatureCreator
exchange
Constructor and Description |
---|
CryptsyTradeServiceRaw(Exchange exchange) |
checkResult, getExchangeSymbols
verifyOrder, verifyOrder, verifyOrder
public CryptsyTradeServiceRaw(Exchange exchange)
exchange
- public CryptsyTradeHistoryReturn getCryptsySingleMarketTradeHistory(int marketID, int... args) throws IOException, ExchangeException
marketID
- marketID for which this TradeHistory request will be executed againstargs
- - limit (int) of how many past trades should be shown (defualt: 1000)ExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyTradeHistoryReturn getCryptsyTradeHistory(Date startDate, Date endDate) throws IOException, ExchangeException
startDate
- start date to get trade history fromendDate
- end date to get trade history untilExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyOpenOrdersReturn getCryptsySingleMarketOpenOrders(int marketID) throws IOException, ExchangeException
marketID
- marketID for which this OpenOrders request will be executed againstExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyOpenOrdersReturn getCryptsyOpenOrders() throws IOException, ExchangeException
ExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyPlaceOrderReturn placeCryptsyLimitOrder(int marketID, CryptsyOrder.CryptsyOrderType orderType, BigDecimal quantity, BigDecimal price) throws IOException, ExchangeException
marketID
- marketID for this order to be placed inorderType
- Order type (CryptsyOrderType.Buy or CryptsyOrderType.Sell)quantity
- BigDecimal represenation of the quantity to tradeprice
- BigDecimal represenation of the limit priceExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyCancelOrderReturn cancelSingleCryptsyLimitOrder(int orderID) throws IOException, ExchangeException
orderID
- ID of order to cancelExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyCancelMultipleOrdersReturn cancelMarketCryptsyLimitOrders(int marketID) throws IOException, ExchangeException
marketID
- ID of market in which all orders should be cancelledExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyCancelMultipleOrdersReturn cancelAllCryptsyLimitOrders() throws IOException, ExchangeException
ExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
public CryptsyCalculatedFeesReturn calculateCryptsyFees(CryptsyOrder.CryptsyOrderType orderType, BigDecimal quantity, BigDecimal price) throws IOException, ExchangeException
orderType
- Order type (CryptsyOrderType.Buy or CryptsyOrderType.Sell)quantity
- BigDecimal represenation of the quantity to tradeprice
- BigDecimal represenation of the limit priceExchangeException
- Indication that the exchange reported some kind of error with the request or response. Implementers should log this
error.IOException
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.