Class InstrumentDetail

java.lang.Object
com.qtsurfer.api.client.model.InstrumentDetail

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class InstrumentDetail extends Object
Exchange instrument with per-data-type coverage and market info
  • Field Details

  • Constructor Details

    • InstrumentDetail

      public InstrumentDetail()
  • Method Details

    • id

      public InstrumentDetail id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Instrument identifier (e.g. currency pair)
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • base

      public InstrumentDetail base(@Nonnull String base)
    • getBase

      @Nonnull public String getBase()
      Base currency
      Returns:
      base
    • setBase

      public void setBase(@Nonnull String base)
    • quote

      public InstrumentDetail quote(@Nonnull String quote)
    • getQuote

      @Nonnull public String getQuote()
      Quote currency
      Returns:
      quote
    • setQuote

      public void setQuote(@Nonnull String quote)
    • coverage

      public InstrumentDetail coverage(@Nullable InstrumentCoverage coverage)
    • getCoverage

      @Nullable public InstrumentCoverage getCoverage()
      Get coverage
      Returns:
      coverage
    • setCoverage

      public void setCoverage(@Nullable InstrumentCoverage coverage)
    • lastPrice

      public InstrumentDetail lastPrice(@Nullable Double lastPrice)
    • getLastPrice

      @Nullable public Double getLastPrice()
      Last traded price
      Returns:
      lastPrice
    • setLastPrice

      public void setLastPrice(@Nullable Double lastPrice)
    • volume24h

      public InstrumentDetail volume24h(@Nullable Double volume24h)
    • getVolume24h

      @Nullable public Double getVolume24h()
      Trading volume in the last 24 hours (in quote currency)
      Returns:
      volume24h
    • setVolume24h

      public void setVolume24h(@Nullable Double volume24h)
    • equals

      public boolean equals(Object o)
      Return true if this InstrumentDetail object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string