Class LiveSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class LiveSource extends Object
One market feed a live run consumes. Exactly one entry per run today.
  • Field Details

  • Constructor Details

    • LiveSource

      public LiveSource()
  • Method Details

    • venueType

      public LiveSource venueType(@Nonnull String venueType)
    • getVenueType

      @Nonnull public String getVenueType()
      Venue category. `cx` (centralized exchange) is the only one live runs support today.
      Returns:
      venueType
    • setVenueType

      public void setVenueType(@Nonnull String venueType)
    • exchange

      public LiveSource exchange(@Nonnull String exchange)
    • getExchange

      @Nonnull public String getExchange()
      Get exchange
      Returns:
      exchange
    • setExchange

      public void setExchange(@Nonnull String exchange)
    • segment

      public LiveSource segment(@Nonnull String segment)
    • getSegment

      @Nonnull public String getSegment()
      Get segment
      Returns:
      segment
    • setSegment

      public void setSegment(@Nonnull String segment)
    • type

      public LiveSource type(@Nonnull LiveSource.TypeEnum type)
    • getType

      @Nonnull public LiveSource.TypeEnum getType()
      Both `ticker` and `kline` connect to the lightest (fastest) cadence available for the exchange — today, 1 tick/second on every supported exchange. Choosing a specific cadence is not offered yet.
      Returns:
      type
    • setType

      public void setType(@Nonnull LiveSource.TypeEnum type)
    • instruments

      public LiveSource instruments(@Nonnull List<String> instruments)
    • addInstrumentsItem

      public LiveSource addInstrumentsItem(String instrumentsItem)
    • getInstruments

      @Nonnull public List<String> getInstruments()
      Instrument symbols, or `[\"*\"]` for every instrument the exchange/segment offers (tier-gated).
      Returns:
      instruments
    • setInstruments

      public void setInstruments(@Nonnull List<String> instruments)
    • equals

      public boolean equals(Object o)
      Return true if this LiveSource 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