Package org.knowm.xchange.coinbasepro
Class CoinbaseProAdapters
java.lang.Object
org.knowm.xchange.coinbasepro.CoinbaseProAdapters
-
Method Summary
Modifier and TypeMethodDescriptionstatic Wallet
adaptAccountInfo
(CoinbaseProAccount[] coinbaseProAccounts) static CoinbaseProPlaceLimitOrder
adaptCoinbaseProPlaceLimitOrder
(LimitOrder limitOrder) static CoinbaseProPlaceMarketOrder
adaptCoinbaseProPlaceMarketOrder
(MarketOrder marketOrder) static CoinbaseProPlaceOrder
adaptCoinbaseProStopOrder
(StopOrder stopOrder) Creates a 'stop' order.static CurrencyPair
adaptCurrencyPair
(CoinbaseProProduct product) static FundingRecord
adaptFundingRecord
(Currency currency, CoinbaseProTransfer coinbaseProTransfer) static OpenOrders
adaptOpenOrders
(CoinbaseProOrder[] coinbaseExOpenOrders) static Order
adaptOrder
(CoinbaseProOrder order) static OrderBook
adaptOrderBook
(CoinbaseProProductBook book, CurrencyPair currencyPair) static OrderBook
adaptOrderBook
(CoinbaseProProductBook book, CurrencyPair currencyPair, Date date) static Order.OrderStatus
adaptOrderStatus
(CoinbaseProOrder order) The status from the CoinbaseProOrder object converted to xchange statusstatic Order.OrderStatus[]
adaptOrderStatuses
(CoinbaseProOrder[] orders) static String
adaptProductID
(CurrencyPair currencyPair) static CoinbaseProPlaceOrder.Side
adaptSide
(Order.OrderType orderType) static CoinbaseProPlaceOrder.Stop
adaptStop
(Order.OrderType orderType) static Ticker
adaptTicker
(CoinbaseProProductTicker ticker, CoinbaseProProductStats stats, CurrencyPair currencyPair) adaptTickers
(Map<String, CoinbaseProStats> stats) static ExchangeMetaData
adaptToExchangeMetaData
(ExchangeMetaData exchangeMetaData, CoinbaseProProduct[] products, CoinbaseProCurrency[] cbCurrencies) static UserTrades
adaptTradeHistory
(List<CoinbaseProFill> coinbaseExFills) static Trades
adaptTrades
(List<CoinbaseProTrade> coinbaseProTradesList, CurrencyPair currencyPair) static Trades
adaptTrades
(CoinbaseProTrade[] coinbaseExTrades, CurrencyPair currencyPair) protected static Date
static CurrencyPair
toCurrencyPair
(String productId)
-
Method Details
-
parseDate
-
toCurrencyPair
-
adaptTicker
public static Ticker adaptTicker(CoinbaseProProductTicker ticker, CoinbaseProProductStats stats, CurrencyPair currencyPair) -
adaptTickers
-
adaptOrderBook
public static OrderBook adaptOrderBook(CoinbaseProProductBook book, CurrencyPair currencyPair, Date date) -
adaptOrderBook
-
adaptAccountInfo
-
adaptOpenOrders
-
adaptOrder
-
adaptOrderStatuses
-
adaptOrderStatus
The status from the CoinbaseProOrder object converted to xchange status -
adaptTrades
public static Trades adaptTrades(List<CoinbaseProTrade> coinbaseProTradesList, CurrencyPair currencyPair) -
adaptTradeHistory
-
adaptTrades
-
adaptCurrencyPair
-
adaptToExchangeMetaData
public static ExchangeMetaData adaptToExchangeMetaData(ExchangeMetaData exchangeMetaData, CoinbaseProProduct[] products, CoinbaseProCurrency[] cbCurrencies) -
adaptProductID
-
adaptSide
-
adaptStop
-
adaptCoinbaseProPlaceLimitOrder
-
adaptCoinbaseProPlaceMarketOrder
-
adaptCoinbaseProStopOrder
Creates a 'stop' order. Stop limit order converts to a limit order when the stop amount is triggered. The limit order can have a different price than the stop price.If the stop order has no limit price it will execute as a market order once the stop price is broken
- Parameters:
stopOrder
-- Returns:
-
adaptFundingRecord
public static FundingRecord adaptFundingRecord(Currency currency, CoinbaseProTransfer coinbaseProTransfer)
-