java.lang.Object
net.jacobpeterson.alpaca.openapi.marketdata.api.CryptoApi

public class CryptoApi extends Object
  • Constructor Details

    • CryptoApi

      public CryptoApi()
    • CryptoApi

      public CryptoApi(ApiClient apiClient)
  • Method Details

    • cryptoBarsCall

      protected okhttp3.Call cryptoBarsCall(CryptoLoc loc, String symbols, String timeframe, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort, ApiCallback _callback) throws ApiException
      Build call for cryptoBars
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      timeframe - The timeframe of the bar aggregation. 5Min for example creates 5 minute aggregates. You can use the following values: - [1-59]Min / T - [1-23]Hour / H - 1Day / D - 1Week / W - [1,2,3,4,6,12]Month / M (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoBars

      public CryptoBarsResp cryptoBars(CryptoLoc loc, String symbols, String timeframe, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort) throws ApiException
      Historical bars The crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      timeframe - The timeframe of the bar aggregation. 5Min for example creates 5 minute aggregates. You can use the following values: - [1-59]Min / T - [1-23]Hour / H - 1Day / D - 1Week / W - [1,2,3,4,6,12]Month / M (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      Returns:
      CryptoBarsResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoBarsWithHttpInfo

      protected ApiResponse<CryptoBarsResp> cryptoBarsWithHttpInfo(CryptoLoc loc, String symbols, String timeframe, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort) throws ApiException
      Historical bars The crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      timeframe - The timeframe of the bar aggregation. 5Min for example creates 5 minute aggregates. You can use the following values: - [1-59]Min / T - [1-23]Hour / H - 1Day / D - 1Week / W - [1,2,3,4,6,12]Month / M (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      Returns:
      ApiResponse<CryptoBarsResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoBarsAsync

      protected okhttp3.Call cryptoBarsAsync(CryptoLoc loc, String symbols, String timeframe, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort, ApiCallback<CryptoBarsResp> _callback) throws ApiException
      Historical bars (asynchronously) The crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      timeframe - The timeframe of the bar aggregation. 5Min for example creates 5 minute aggregates. You can use the following values: - [1-59]Min / T - [1-23]Hour / H - 1Day / D - 1Week / W - [1,2,3,4,6,12]Month / M (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoLatestBarsCall

      protected okhttp3.Call cryptoLatestBarsCall(CryptoLoc loc, String symbols, ApiCallback _callback) throws ApiException
      Build call for cryptoLatestBars
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoLatestBars

      public CryptoLatestBarsResp cryptoLatestBars(CryptoLoc loc, String symbols) throws ApiException
      Latest bars The latest multi bars endpoint returns the latest minute-aggregated historical bar data for each of the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      CryptoLatestBarsResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestBarsWithHttpInfo

      protected ApiResponse<CryptoLatestBarsResp> cryptoLatestBarsWithHttpInfo(CryptoLoc loc, String symbols) throws ApiException
      Latest bars The latest multi bars endpoint returns the latest minute-aggregated historical bar data for each of the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      ApiResponse<CryptoLatestBarsResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestBarsAsync

      protected okhttp3.Call cryptoLatestBarsAsync(CryptoLoc loc, String symbols, ApiCallback<CryptoLatestBarsResp> _callback) throws ApiException
      Latest bars (asynchronously) The latest multi bars endpoint returns the latest minute-aggregated historical bar data for each of the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoLatestOrderbooksCall

      protected okhttp3.Call cryptoLatestOrderbooksCall(CryptoLoc loc, String symbols, ApiCallback _callback) throws ApiException
      Build call for cryptoLatestOrderbooks
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoLatestOrderbooks

      public CryptoLatestOrderbooksResp cryptoLatestOrderbooks(CryptoLoc loc, String symbols) throws ApiException
      Latest orderbook The latest orderbook endpoint returns the latest bid and ask orderbook for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      CryptoLatestOrderbooksResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestOrderbooksWithHttpInfo

      protected ApiResponse<CryptoLatestOrderbooksResp> cryptoLatestOrderbooksWithHttpInfo(CryptoLoc loc, String symbols) throws ApiException
      Latest orderbook The latest orderbook endpoint returns the latest bid and ask orderbook for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      ApiResponse<CryptoLatestOrderbooksResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestOrderbooksAsync

      protected okhttp3.Call cryptoLatestOrderbooksAsync(CryptoLoc loc, String symbols, ApiCallback<CryptoLatestOrderbooksResp> _callback) throws ApiException
      Latest orderbook (asynchronously) The latest orderbook endpoint returns the latest bid and ask orderbook for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoLatestQuotesCall

      protected okhttp3.Call cryptoLatestQuotesCall(CryptoLoc loc, String symbols, ApiCallback _callback) throws ApiException
      Build call for cryptoLatestQuotes
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoLatestQuotes

      public CryptoLatestQuotesResp cryptoLatestQuotes(CryptoLoc loc, String symbols) throws ApiException
      Latest quotes The latest quotes endpoint returns the latest bid and ask prices for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      CryptoLatestQuotesResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestQuotesWithHttpInfo

      protected ApiResponse<CryptoLatestQuotesResp> cryptoLatestQuotesWithHttpInfo(CryptoLoc loc, String symbols) throws ApiException
      Latest quotes The latest quotes endpoint returns the latest bid and ask prices for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      ApiResponse<CryptoLatestQuotesResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestQuotesAsync

      protected okhttp3.Call cryptoLatestQuotesAsync(CryptoLoc loc, String symbols, ApiCallback<CryptoLatestQuotesResp> _callback) throws ApiException
      Latest quotes (asynchronously) The latest quotes endpoint returns the latest bid and ask prices for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoLatestTradesCall

      protected okhttp3.Call cryptoLatestTradesCall(CryptoLoc loc, String symbols, ApiCallback _callback) throws ApiException
      Build call for cryptoLatestTrades
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoLatestTrades

      public CryptoLatestTradesResp cryptoLatestTrades(CryptoLoc loc, String symbols) throws ApiException
      Latest trades The latest trades endpoint returns the latest trade data for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      CryptoLatestTradesResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestTradesWithHttpInfo

      protected ApiResponse<CryptoLatestTradesResp> cryptoLatestTradesWithHttpInfo(CryptoLoc loc, String symbols) throws ApiException
      Latest trades The latest trades endpoint returns the latest trade data for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      Returns:
      ApiResponse<CryptoLatestTradesResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoLatestTradesAsync

      protected okhttp3.Call cryptoLatestTradesAsync(CryptoLoc loc, String symbols, ApiCallback<CryptoLatestTradesResp> _callback) throws ApiException
      Latest trades (asynchronously) The latest trades endpoint returns the latest trade data for the crypto symbols provided.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoQuotesCall

      protected okhttp3.Call cryptoQuotesCall(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort, ApiCallback _callback) throws ApiException
      Build call for cryptoQuotes
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoQuotes

      public CryptoQuotesResp cryptoQuotes(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort) throws ApiException
      Historical quotes The crypto quotes API provides historical quote data for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      Returns:
      CryptoQuotesResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoQuotesWithHttpInfo

      protected ApiResponse<CryptoQuotesResp> cryptoQuotesWithHttpInfo(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort) throws ApiException
      Historical quotes The crypto quotes API provides historical quote data for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      Returns:
      ApiResponse<CryptoQuotesResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoQuotesAsync

      protected okhttp3.Call cryptoQuotesAsync(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort, ApiCallback<CryptoQuotesResp> _callback) throws ApiException
      Historical quotes (asynchronously) The crypto quotes API provides historical quote data for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoSnapshotsCall

      protected okhttp3.Call cryptoSnapshotsCall(String symbols, CryptoLoc loc, ApiCallback _callback) throws ApiException
      Build call for cryptoSnapshots
      Parameters:
      symbols - Comma separated list of symbols. (required)
      loc - Crypto location (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoSnapshots

      public CryptoSnapshotsResp cryptoSnapshots(String symbols, CryptoLoc loc) throws ApiException
      Snapshots The latest orderbook endpoint returns the latest trade, latest quote, latest minute bar, latest daily bar, and previous daily bar data for crypto symbols.
      Parameters:
      symbols - Comma separated list of symbols. (required)
      loc - Crypto location (required)
      Returns:
      CryptoSnapshotsResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoSnapshotsWithHttpInfo

      protected ApiResponse<CryptoSnapshotsResp> cryptoSnapshotsWithHttpInfo(String symbols, CryptoLoc loc) throws ApiException
      Snapshots The latest orderbook endpoint returns the latest trade, latest quote, latest minute bar, latest daily bar, and previous daily bar data for crypto symbols.
      Parameters:
      symbols - Comma separated list of symbols. (required)
      loc - Crypto location (required)
      Returns:
      ApiResponse<CryptoSnapshotsResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoSnapshotsAsync

      protected okhttp3.Call cryptoSnapshotsAsync(String symbols, CryptoLoc loc, ApiCallback<CryptoSnapshotsResp> _callback) throws ApiException
      Snapshots (asynchronously) The latest orderbook endpoint returns the latest trade, latest quote, latest minute bar, latest daily bar, and previous daily bar data for crypto symbols.
      Parameters:
      symbols - Comma separated list of symbols. (required)
      loc - Crypto location (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
    • cryptoTradesCall

      protected okhttp3.Call cryptoTradesCall(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort, ApiCallback _callback) throws ApiException
      Build call for cryptoTrades
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • cryptoTrades

      public CryptoTradesResp cryptoTrades(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort) throws ApiException
      Historical trades The crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      Returns:
      CryptoTradesResp
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoTradesWithHttpInfo

      protected ApiResponse<CryptoTradesResp> cryptoTradesWithHttpInfo(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort) throws ApiException
      Historical trades The crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      Returns:
      ApiResponse<CryptoTradesResp>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • cryptoTradesAsync

      protected okhttp3.Call cryptoTradesAsync(CryptoLoc loc, String symbols, OffsetDateTime start, OffsetDateTime end, Long limit, String pageToken, Sort sort, ApiCallback<CryptoTradesResp> _callback) throws ApiException
      Historical trades (asynchronously) The crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.
      Parameters:
      loc - Crypto location (required)
      symbols - Comma separated list of symbols. (required)
      start - The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the beginning of the current day. (optional)
      end - The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. If missing, the default value is the current time. (optional)
      limit - The maximum number of data points to return in the response. The API may return less, even if there are more available data points in the requested interval. Always check the next_page_token for more pages. The limit applies to the total number of data points, not per symbol! (optional, default to 1000)
      pageToken - Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. (optional)
      sort - Sort data in ascending or descending order. (optional, default to asc)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object