public class REST_methods extends Object implements Closeable
This class is multithread safe.
It is always properly constructed.
All of its fields are final.
Its key field is immutable, while its client field is a multithread safe type.
See p. 53 of Java Concurrency In Practice for more discussion.
| Constructor and Description |
|---|
REST_methods(String key) |
public REST_methods(String key)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Exchange[] list_all_exchanges() throws IOException
IOExceptionpublic Asset[] list_all_assets() throws IOException
IOExceptionpublic Symbol[] list_all_symbols() throws IOException
IOExceptionpublic Exchange_rate get_exchange_rate(String asset_id_base, String asset_id_quote) throws IOException
IOExceptionpublic Exchange_rate get_exchange_rate(String asset_id_base, String asset_id_quote, Instant time) throws IOException
IOExceptionpublic Exchange_rate[] get_all_exchange_rates(String asset_id_base) throws IOException
IOExceptionpublic Period[] ohlcv_list_all_periods() throws IOException
IOExceptionpublic Timedata[] ohlcv_get_latest_timeseries(String symbol_id, io.coinapi.rest.Period_identifier period_id) throws IOException
IOExceptionpublic Timedata[] ohlcv_get_latest_timeseries(String symbol_id, io.coinapi.rest.Period_identifier period_id, int limit) throws IOException
IOExceptionpublic Timedata[] ohlcv_get_historical_timeseries(String symbol_id, io.coinapi.rest.Period_identifier period_id, Instant time_start) throws IOException
IOExceptionpublic Timedata[] ohlcv_get_historical_timeseries(String symbol_id, io.coinapi.rest.Period_identifier period_id, Instant time_start, Instant time_end) throws IOException
IOExceptionpublic Timedata[] ohlcv_get_historical_timeseries(String symbol_id, io.coinapi.rest.Period_identifier period_id, Instant time_start, int limit) throws IOException
IOExceptionpublic Timedata[] ohlcv_get_historical_timeseries(String symbol_id, io.coinapi.rest.Period_identifier period_id, Instant time_start, Instant time_end, int limit) throws IOException
IOExceptionpublic Trade[] trades_get_latest_data() throws IOException
IOExceptionpublic Trade[] trades_get_latest_data(int limit) throws IOException
IOExceptionpublic Trade[] trades_get_latest_data(String symbol_id) throws IOException
IOExceptionpublic Trade[] trades_get_latest_data(String symbol_id, int limit) throws IOException
IOExceptionpublic Trade[] trades_get_historical_data(String symbol_id, Instant time_start) throws IOException
IOExceptionpublic Trade[] trades_get_historical_data(String symbol_id, Instant time_start, int limit) throws IOException
IOExceptionpublic Trade[] trades_get_historical_data(String symbol_id, Instant time_start, Instant time_end) throws IOException
IOExceptionpublic Trade[] trades_get_historical_data(String symbol_id, Instant time_start, Instant time_end, int limit) throws IOException
IOExceptionpublic Quote_with_trade[] quotes_get_for_all_symbols() throws IOException
IOExceptionpublic Quote_with_trade quotes_get_for_symbol(String symbol_id) throws IOException
IOExceptionpublic Quote[] quotes_get_latest_data() throws IOException
IOExceptionpublic Quote[] quotes_get_latest_data(int limit) throws IOException
IOExceptionpublic Quote[] quotes_get_latest_data(String symbol_id) throws IOException
IOExceptionpublic Quote[] quotes_get_latest_data(String symbol_id, int limit) throws IOException
IOExceptionpublic Quote[] quotes_get_historical_data(String symbol_id, Instant time_start) throws IOException
IOExceptionpublic Quote[] quotes_get_historical_data(String symbol_id, Instant time_start, int limit) throws IOException
IOExceptionpublic Quote[] quotes_get_historical_data(String symbol_id, Instant time_start, Instant time_end) throws IOException
IOExceptionpublic Quote[] quotes_get_historical_data(String symbol_id, Instant time_start, Instant time_end, int limit) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_for_all_symbols() throws IOException
IOExceptionpublic Orderbook orderbooks_get_for_symbol(String symbol_id) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_latest_data(String symbol_id) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_latest_data(String symbol_id, int limit) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_historical_data(String symbol_id, Instant time_start) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_historical_data(String symbol_id, Instant time_start, int limit) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_historical_data(String symbol_id, Instant time_start, Instant time_end) throws IOException
IOExceptionpublic Orderbook[] orderbooks_get_historical_data(String symbol_id, Instant time_start, Instant time_end, int limit) throws IOException
IOExceptionCopyright © 2019 MARMOT SOLUTIONS LTD. All rights reserved.