public class LakeBTCAdapters extends Object
Modifier and Type | Method and Description |
---|---|
static AccountInfo |
adaptAccountInfo(LakeBTCAccount lakeBTCAccount)
Adapts a LakeBTCAccount to a AccountInfo
|
static OrderBook |
adaptOrderBook(LakeBTCOrderBook lakeBTCOrderBook,
CurrencyPair currencyPair) |
static Ticker |
adaptTicker(LakeBTCTicker lakeBTCTicker,
CurrencyPair currencyPair) |
static Trade |
adaptTrade(LakeBTCTradeResponse tx,
CurrencyPair currencyPair,
int timeScale)
Adapts a Transaction to a Trade Object
|
static UserTrades |
adaptTradeHistory(LakeBTCTradeResponse[] transactions)
Adapt the user's trades
|
static Trades |
adaptTrades(LakeBTCTradeResponse[] transactions,
CurrencyPair currencyPair)
Adapts a Transaction[] to a Trades Object
|
public static Ticker adaptTicker(LakeBTCTicker lakeBTCTicker, CurrencyPair currencyPair)
public static OrderBook adaptOrderBook(LakeBTCOrderBook lakeBTCOrderBook, CurrencyPair currencyPair)
public static Trades adaptTrades(LakeBTCTradeResponse[] transactions, CurrencyPair currencyPair)
transactions
- The LakeBtc transactionscurrencyPair
- (e.g. BTC/USD)public static Trade adaptTrade(LakeBTCTradeResponse tx, CurrencyPair currencyPair, int timeScale)
tx
- The LakeBtc transactioncurrencyPair
- (e.g. BTC/USD)timeScale
- polled order books provide a timestamp in seconds, stream in mspublic static UserTrades adaptTradeHistory(LakeBTCTradeResponse[] transactions)
transactions
- public static AccountInfo adaptAccountInfo(LakeBTCAccount lakeBTCAccount)
lakeBTCAccount
- Copyright © 2012–2018 Xeiam, LLC. All rights reserved.