Package org.knowm.xchange.okcoin
Class OkexAdaptersV3
java.lang.Object
org.knowm.xchange.okcoin.OkexAdaptersV3
public class OkexAdaptersV3 extends Object
-
Constructor Summary
Constructors Constructor Description OkexAdaptersV3()
-
Method Summary
Modifier and Type Method Description static FundingRecord
adaptFundingRecord(OkexDepositRecord r)
static FundingRecord
adaptFundingRecord(OkexWithdrawalRecord r)
static Balance
convert(String currency, FuturesAccountsResponse.FuturesAccount acc)
static Balance
convert(OkexFundingAccountRecord rec)
static Balance
convert(OkexSpotAccountRecord rec)
static Ticker
convert(OkexSpotTicker i)
static LimitOrder
convert(OkexOpenOrder o)
static Balance
convert(SwapAccountsResponse.SwapAccountInfo rec)
static OrderBook
convertOrderBook(OkexOrderBook book, CurrencyPair currencyPair)
static CurrencyPair
toPair(String instrument)
there are different types of instruments: spot (ie 'ETH-BTC'), future (ie 'BCH-USD-190927'), swap (ie 'ETH-USD-SWAP')static String
toSpotInstrument(CurrencyPair pair)
-
Constructor Details
-
OkexAdaptersV3
public OkexAdaptersV3()
-
-
Method Details
-
convert
-
convert
-
convert
-
convert
-
toSpotInstrument
-
toPair
there are different types of instruments: spot (ie 'ETH-BTC'), future (ie 'BCH-USD-190927'), swap (ie 'ETH-USD-SWAP')- Parameters:
instrument
-- Returns:
-
convert
-
convert
-
adaptFundingRecord
-
adaptFundingRecord
-
convertOrderBook
-