public class BTERPollingTradeServiceRaw extends BTERBasePollingService
apiKey, bter, signatureCreator
exchange
Constructor and Description |
---|
BTERPollingTradeServiceRaw(Exchange exchange)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancelOrder(String orderId) |
BTEROpenOrders |
getBTEROpenOrders() |
BTEROrderStatus |
getBTEROrderStatus(String orderId) |
BTERTradeHistoryReturn |
getBTERTradeHistory(CurrencyPair currencyPair) |
String |
placeBTERLimitOrder(CurrencyPair currencyPair,
BTEROrderType orderType,
BigDecimal rate,
BigDecimal amount)
Submits a Limit Order to be executed on the BTER Exchange for the desired market defined by
currencyPair . |
String |
placeBTERLimitOrder(LimitOrder limitOrder)
Submits a Limit Order to be executed on the BTER Exchange for the desired market defined by
CurrencyPair . |
getExchangeSymbols, handleResponse
verifyOrder, verifyOrder, verifyOrder
public BTERPollingTradeServiceRaw(Exchange exchange)
exchange
- public String placeBTERLimitOrder(LimitOrder limitOrder) throws IOException
CurrencyPair
. WARNING - BTER will return true
regardless of whether or not an order actually gets created. The reason for this is that orders are simply submitted to a queue in their
back-end. One example for why an order might not get created is because there are insufficient funds. The best attempt you can make to confirm
that the order was created is to poll getBTEROpenOrders()
. However if the order is created and executed before it is caught in its open
state from calling getBTEROpenOrders()
then the only way to confirm would be confirm the expected difference in funds available for your
account.limitOrder
- IOException
public String placeBTERLimitOrder(CurrencyPair currencyPair, BTEROrderType orderType, BigDecimal rate, BigDecimal amount) throws IOException
currencyPair
. WARNING - BTER will return true
regardless of whether or not an order actually gets created. The reason for this is that orders are simply submitted to a queue in their
back-end. One example for why an order might not get created is because there are insufficient funds. The best attempt you can make to confirm
that the order was created is to poll getBTEROpenOrders()
. However if the order is created and executed before it is caught in its open
state from calling getBTEROpenOrders()
then the only way to confirm would be confirm the expected difference in funds available for your
account.currencyPair
- orderType
- rate
- amount
- IOException
public boolean cancelOrder(String orderId) throws IOException
IOException
public BTEROpenOrders getBTEROpenOrders() throws IOException
IOException
public BTEROrderStatus getBTEROrderStatus(String orderId) throws IOException
IOException
public BTERTradeHistoryReturn getBTERTradeHistory(CurrencyPair currencyPair) throws IOException
IOException
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.