Class ExchangeMetaData

All Implemented Interfaces:
Direct Known Subclasses:

public class ExchangeMetaData
extends Object
implements Serializable
This class is loaded during creation of the Exchange and is intended to hold both data that is readily available from an HTTP API request at an exchange extended by semi-static data that is not available from an HTTP API, but is still important information to have. Examples include currency pairs, max polling rates, scaling factors, etc. For more info see: ...

This class is used only in the API by the classes that merge metadata stored in custom JSON file and online info from the remote exchange.

See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getPollDelayMillis

      public static Long getPollDelayMillis​(RateLimit[] rateLimits)
      minimum number of milliseconds required between any two remote calls, assuming the client makes consecutive calls without any bursts or breaks for an infinite period of time. Returns null if the rateLimits collection is null or empty
    • toJSONString

      public String toJSONString()