Package org.knowm.xchange.binance
Class BinanceAdapters
java.lang.Object
org.knowm.xchange.binance.BinanceAdapters
-
Method Summary
Modifier and TypeMethodDescriptionstatic CandleStickData
adaptBinanceCandleStickData
(List<BinanceKline> klines, CurrencyPair currencyPair) static Wallet
adaptBinanceFutureWallet
(BinanceFutureAccountInformation futureAccountInformation) static Wallet
adaptBinanceSpotWallet
(BinanceAccountInformation binanceAccountInformation) static ExchangeMetaData
adaptExchangeMetaData
(BinanceExchangeInfo binanceExchangeInfo, Map<String, AssetDetail> assetDetailMap) static FundingRate
adaptFundingRate
(BinanceFundingRate binanceFundingRate) static FundingRates
adaptFundingRates
(List<BinanceFundingRate> binanceFundingRates) static void
adaptFutureExchangeMetaData
(ExchangeMetaData exchangeMetaData, BinanceExchangeInfo binanceExchangeInfo) static OpenOrders
adaptOpenOrders
(List<BinanceOrder> binanceOrders, boolean isFuture) static List<OpenPosition>
adaptOpenPositions
(List<BinancePosition> binancePositions) static Order
adaptOrder
(BinanceOrder order, boolean isFuture) static Order.OrderStatus
adaptOrderStatus
(OrderStatus orderStatus) static OrderType
adaptOrderType
(StopOrder order) static Instrument
adaptSymbol
(String symbol, boolean isFuture) static Trades
adaptTrades
(List<BinanceAggTrades> aggTrades, Instrument instrument) static UserTrades
adaptUserTrades
(List<BinanceTrade> binanceTrades, boolean isFuture) static Order.OrderType
static OrderSide
convert
(Order.OrderType type) static Order.OrderType
convertType
(boolean isBuyer) static long
static Boolean
isInverse
(Instrument pair) static void
putSymbolMapping
(String symbol, CurrencyPair currencyPair) static CurrencyPair
toCurrencyPair
(String symbol) static Date
Converts a datetime as string in time zone UTC to a Date objectstatic String
toInverseSymbol
(Instrument pair) static LocalDateTime
toLocalDateTime
(String dateTime) static String
static String
toSymbol
(Instrument pair) static String
toSymbol
(Instrument pair, Boolean isInverse) static Ticker
toTicker
(BinanceTicker24h binanceTicker24h, boolean isFuture)
-
Method Details
-
toDate
Converts a datetime as string in time zone UTC to a Date object- Parameters:
dateTime
- String that represents datetime in zone UTC- Returns:
- Date Object in time zone UTC
-
toLocalDateTime
-
toSymbol
-
toInverseSymbol
-
isInverse
-
toSymbol
-
toSymbol
-
convert
-
convert
-
id
-
adaptOrderStatus
-
convertType
-
putSymbolMapping
-
toCurrencyPair
-
adaptSymbol
-
adaptOpenOrders
-
adaptOrder
-
toTicker
-
adaptOrderType
-
adaptBinanceFutureWallet
public static Wallet adaptBinanceFutureWallet(BinanceFutureAccountInformation futureAccountInformation) -
adaptBinanceSpotWallet
-
adaptOpenPositions
-
adaptUserTrades
-
adaptTrades
-
adaptBinanceCandleStickData
public static CandleStickData adaptBinanceCandleStickData(List<BinanceKline> klines, CurrencyPair currencyPair) - Parameters:
klines
-currencyPair
-- Returns:
-
adaptFutureExchangeMetaData
public static void adaptFutureExchangeMetaData(ExchangeMetaData exchangeMetaData, BinanceExchangeInfo binanceExchangeInfo) -
adaptExchangeMetaData
public static ExchangeMetaData adaptExchangeMetaData(BinanceExchangeInfo binanceExchangeInfo, Map<String, AssetDetail> assetDetailMap) -
adaptFundingRates
-
adaptFundingRate
-