new BTCMarketsAPI()
BTC Markets API Client
Classes
Methods
-
<async> cancelOrders(orderIds)
-
Parameters:
Name Type Description orderIdsany Returns:
- Type
- Promise
-
<async> createOrder(instrument, currency, price, volume, orderSide, ordertype, clientRequestId)
-
Parameters:
Name Type Description instrumentstring currencystring priceany volumeany orderSideany ordertypeany clientRequestIdany Returns:
- Type
- Promise
-
<async> getAccountBalances()
-
Returns:
- Type
- Promise
-
<async> getOpenOrders(instrument, currency, limit, since)
-
Parameters:
Name Type Description instrumentstring currencystring limitnumber sinceany Returns:
- Type
- Promise
-
<async> getOrderBook(instrument, currency)
-
Parameters:
Name Type Description instrumentString currencyString Returns:
- Type
- Promise
-
<async> getOrderDetail(orderIds)
-
Parameters:
Name Type Description orderIdsany Returns:
- Type
- Promise
-
<async> getOrderHistory(instrument, currency, limit, since)
-
Parameters:
Name Type Description instrumentstring currencystring limitnumber sinceany Returns:
- Type
- Promise
-
<async> getTick(instrument, currency)
-
Parameters:
Name Type Description instrumentString currencyString Returns:
- Type
- Promise
-
<async> getTradeHistory(instrument, currency, limit, since)
-
Parameters:
Name Type Description instrumentstring currencystring limitnumber sinceany Returns:
- Type
- Promise
-
<async> getTrades(instrument, currency, since)
-
Parameters:
Name Type Description instrumentstring currencystring sinceany Returns:
- Type
- Promise
-
<async> getTradingFee(instrument, currency)
-
Parameters:
Name Type Description instrumentstring currencystring Returns:
- Type
- Promise
-
<async> publicRequest(instrument, currency, action, params)
-
Parameters:
Name Type Description instrumentstring currencystring actionany paramsany Returns:
- Type
- Promise.<object>
-
signData(path, timestamp [, body])
-
Parameters:
Name Type Argument Default Description pathany timestampany bodystring <optional>
"" Returns:
- Type
- Promise
-
<async> signedRequest(path, params)
-
Parameters:
Name Type Description pathany paramsany Returns:
- Type
- Promise
-
<async> withdrawCrypto(amount, address, currency)
-
Parameters:
Name Type Description amountany addressany currencystring Returns:
- Type
- Promise
-
<async> withdrawEFT(accountName, accountNumber, bankName, bsbNumber, amount [, currency])
-
Parameters:
Name Type Argument Default Description accountNameany accountNumberany bankNameany bsbNumberany amountany currencystring <optional>
"AUD" Returns:
- Type
- Promise
-
<async> withdrawHistory(limit, since, indexForward)
-
Parameters:
Name Type Description limitnumber | void sincenumber | void indexForwardboolean | void Returns:
- Type
- Promise.<FundWithdrawals>