Class that encapsulates the common API methods for both USDT-M and Coin-M futures.
Super class
binance::Binance
-> BinanceFutures
Methods
Inherited methods
binance::Binance$check_server_time()
binance::Binance$get_exchange_info()
binance::Binance$kline()
binance::Binance$old_trade_lookup()
binance::Binance$order_book()
binance::Binance$price_ticker()
binance::Binance$print()
binance::Binance$recent_trades_list()
binance::Binance$sign_in()
binance::Binance$test_connectivity()
binance::Binance$ticker_stats_24hr()
Method new()
Usage
BinanceFutures$new(profile)
Method aggregate_trades()
Usage
BinanceFutures$aggregate_trades(
symbol,
from_id = NULL,
start_time = NULL,
end_time = NULL,
limit = 500
)
Arguments
symbol
(
character
) the trading symbol.from_id
(
numeric
) trade id to fetch from.start_time
(
numeric
) the start time for the klines in epoch milliseconds.end_time
(
numeric
) the end time for the klines in epoch milliseconds.limit
(
integer
) the number of results to return. Default is500
; max is1000
.
Method continuous_kline()
Usage
BinanceFutures$continuous_kline(
pair,
contract_type,
interval,
start_time = NULL,
end_time = NULL,
limit = 500
)
Arguments
pair
(
character
) the trading pair.contract_type
(
character
) the contract type.interval
(
character
) the interval for the klines.start_time
(
numeric
) the start time for the klines in epoch milliseconds.end_time
(
numeric
) the end time for the klines in epoch milliseconds.limit
(
integer
) the number of results to return. Default is500
; max is1500
.
Method index_price_klines()
Usage
BinanceFutures$index_price_klines(
pair,
interval,
start_time = NULL,
end_time = NULL,
limit = 500
)
Arguments
pair
(
character
) the trading pair.interval
(
character
) the interval for the klines.start_time
(
numeric
) the start time for the klines in epoch milliseconds.end_time
(
numeric
) the end time for the klines in epoch milliseconds.limit
(
integer
) the number of results to return. Default is500
; max is1500
.
Method mark_price_klines()
Usage
BinanceFutures$mark_price_klines(
symbol,
interval,
start_time = NULL,
end_time = NULL,
limit = 500
)
Arguments
symbol
(
character
) the trading symbol.interval
(
character
) the interval for the klines.start_time
(
numeric
) the start time for the klines in epoch milliseconds.end_time
(
numeric
) the end time for the klines in epoch milliseconds.limit
(
integer
) the number of results to return. Default is500
; max is1500
.
Method premium_index_klines()
Usage
BinanceFutures$premium_index_klines(
symbol,
interval,
start_time = NULL,
end_time = NULL,
limit = 500
)
Arguments
symbol
(
character
) the trading symbol.interval
(
character
) the interval for the klines.start_time
(
numeric
) the start time for the klines in epoch milliseconds.end_time
(
numeric
) the end time for the klines in epoch milliseconds.limit
(
integer
) the number of results to return. Default is500
; max is1500
.
Method basis()
Usage
BinanceFutures$basis(
pair,
contract_type,
period,
limit = 30,
start_time = NULL,
end_time = NULL
)
Arguments
pair
(
character
) the trading pair.contract_type
(
character
) the contract type. Ppossible values: "CURRENT_QUARTER", "NEXT_QUARTER", "PERPETUAL"period
(
character
) the period for the basis. Possible values: "5m", "15m", "30m", "1h", "2h", "4h", "6h", "12h", "1d"limit
(
integer
) the number of results to return. Default is30
; max is500
.start_time
(
numeric
) the start time for the basis in epoch milliseconds.end_time
(
numeric
) the end time for the basis in epoch milliseconds.