Class BitflyerTradeService
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
org.knowm.xchange.bitflyer.service.BitflyerBaseService
org.knowm.xchange.bitflyer.service.BitflyerTradeServiceRaw
org.knowm.xchange.bitflyer.service.BitflyerTradeService
- All Implemented Interfaces:
BaseService
,TradeService
public class BitflyerTradeService extends BitflyerTradeServiceRaw implements TradeService
-
Field Summary
Fields inherited from class org.knowm.xchange.bitflyer.service.BitflyerBaseService
apiKey, bitflyer, signatureCreator
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description BitflyerTradeService(Exchange exchange)
Constructor -
Method Summary
Modifier and Type Method Description OpenOrders
getOpenOrders()
Gets the open ordersString
placeLimitOrder(LimitOrder limitOrder)
Place a limit orderString
placeMarketOrder(MarketOrder marketOrder)
Place a market orderMethods inherited from class org.knowm.xchange.bitflyer.service.BitflyerTradeServiceRaw
getChildOrders, getExecutions, getExecutions, getPositions, getPositions, sendChildOrder, sendChildOrder, sendParentOrder, sendParentOrder
Methods inherited from class org.knowm.xchange.bitflyer.service.BitflyerBaseService
handleError
Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.knowm.xchange.service.trade.TradeService
cancelAllOrders, cancelOrder, cancelOrder, changeOrder, createOpenOrdersParams, createTradeHistoryParams, getOpenOrders, getOpenPositions, getOrder, getOrder, getRequiredCancelOrderParamClasses, getRequiredOrderQueryParamClass, getTradeHistory, placeStopOrder, verifyOrder, verifyOrder
-
Constructor Details
-
BitflyerTradeService
Constructor- Parameters:
exchange
-
-
-
Method Details
-
placeMarketOrder
Description copied from interface:TradeService
Place a market orderIf your orders amount does to meet the restrictions dictated by
InstrumentMetaData
then the exchange will reject your order. UseOrderValuesHelper
to validate and / or adjust it while you'r building an order.- Specified by:
placeMarketOrder
in interfaceTradeService
- Returns:
- the order ID
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data- See Also:
OrderValuesHelper
-
placeLimitOrder
Description copied from interface:TradeService
Place a limit orderIf your orders amount or limit price does to meet the restrictions dictated by
InstrumentMetaData
then the exchange will reject your order. UseOrderValuesHelper
to validate and / or adjust those values while you'r building an order.- Specified by:
placeLimitOrder
in interfaceTradeService
- Returns:
- the order ID
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data- See Also:
OrderValuesHelper
-
getOpenOrders
Description copied from interface:TradeService
Gets the open orders- Specified by:
getOpenOrders
in interfaceTradeService
- Returns:
- the open orders, null if some sort of error occurred. Implementers should log the error.
- Throws:
IOException
- - Indication that a networking error occurred while fetching JSON data
-