Package org.knowm.xchange.bitflyer
Class BitflyerAdapters
java.lang.Object
org.knowm.xchange.bitflyer.BitflyerAdapters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Wallet
adaptAccountInfo
(List<BitflyerBalance> balances) Adapts a list of BitflyerBalance objects to Wallet.static CurrencyPair
adaptCurrencyPair
(String productCode) static FundingRecord
adaptFundingRecord
(BitflyerCoinHistory history, FundingRecord.Type type) static FundingRecord
adaptFundingRecord
(BitflyerDepositOrWithdrawal history, FundingRecord.Type type) static List<FundingRecord>
adaptFundingRecordsFromCoinHistory
(List<BitflyerCoinHistory> coinHistory, FundingRecord.Type type) static List<FundingRecord>
adaptFundingRecordsFromDepositHistory
(List<BitflyerDepositOrWithdrawal> depositWithdrawls, FundingRecord.Type type) static ExchangeMetaData
adaptMetaData
(List<BitflyerMarket> markets) static OpenOrders
static String
adaptOrderId
(BitflyerChildOrderAcceptance orderAcceptance) static String
adaptOrderId
(BitflyerParentOrderAcceptance orderAcceptance) static Ticker
adaptTicker
(BitflyerTicker ticker, CurrencyPair currencyPair) Adapts a BitflyerTicker to a Ticker Objectstatic Fee
adaptTradingCommission
(BitflyerTradingCommission commission) static void
-
Constructor Details
-
BitflyerAdapters
public BitflyerAdapters()
-
-
Method Details
-
adaptMetaData
-
adaptCurrencyPair
-
adaptAccountInfo
Adapts a list of BitflyerBalance objects to Wallet.- Parameters:
balances
- Some BitflyerBalances from the API- Returns:
- A Wallet with balances in it
-
adaptTicker
Adapts a BitflyerTicker to a Ticker Object- Parameters:
ticker
- The exchange specific tickercurrencyPair
- (e.g. BTC/USD)- Returns:
- The ticker
-
adaptFundingRecordsFromCoinHistory
public static List<FundingRecord> adaptFundingRecordsFromCoinHistory(List<BitflyerCoinHistory> coinHistory, FundingRecord.Type type) -
adaptFundingRecordsFromDepositHistory
public static List<FundingRecord> adaptFundingRecordsFromDepositHistory(List<BitflyerDepositOrWithdrawal> depositWithdrawls, FundingRecord.Type type) -
adaptFundingRecord
public static FundingRecord adaptFundingRecord(BitflyerCoinHistory history, FundingRecord.Type type) -
adaptFundingRecord
public static FundingRecord adaptFundingRecord(BitflyerDepositOrWithdrawal history, FundingRecord.Type type) -
adaptOpenOrdersFromChildOrderResults
public static OpenOrders adaptOpenOrdersFromChildOrderResults(List<BitflyerQueryChildOrderResult> queryResults) -
adaptTradingCommission
-
adaptOrderId
-
adaptOrderId
-
main
-