Package com.qtsurfer.api.client.model
Class LiveSource
java.lang.Object
com.qtsurfer.api.client.model.LiveSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.24.0")
public class LiveSource
extends Object
One market feed a live run consumes. Exactly one entry per run today.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBoth `ticker` and `kline` connect to the lightest (fastest) cadence available for the exchange — today, 1 tick/second on every supported exchange.static enumVenue category. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddInstrumentsItem(String instrumentsItem) booleanReturn true if this LiveSource object is equal to o.The exchange id, as `GET /exchanges` lists it.The instruments the run reads.The segment, as `GET /exchanges` lists it for that exchange, among its `liveSegments` (a segment with no live data is refused with `400`).getType()Both `ticker` and `kline` connect to the lightest (fastest) cadence available for the exchange — today, 1 tick/second on every supported exchange.Venue category.inthashCode()instruments(List<String> instruments) voidsetExchange(String exchange) voidsetInstruments(List<String> instruments) voidsetSegment(String segment) voidsetType(LiveSource.TypeEnum type) voidsetVenueType(LiveSource.VenueTypeEnum venueType) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.type(LiveSource.TypeEnum type) venueType(LiveSource.VenueTypeEnum venueType)
-
Field Details
-
JSON_PROPERTY_VENUE_TYPE
- See Also:
-
JSON_PROPERTY_EXCHANGE
- See Also:
-
JSON_PROPERTY_SEGMENT
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_INSTRUMENTS
- See Also:
-
-
Constructor Details
-
LiveSource
public LiveSource()
-
-
Method Details
-
venueType
-
getVenueType
Venue category. `cex` is a centralized exchange and `dex` is one pool on a decentralized exchange, which takes its own `exchange`, `segment`, `type` and `instruments` (see \"Sources\" in the Live execution guide). `cx` and `dx`, the spellings used before, are still read as `cex` and `dex`; the run always reports the new ones.- Returns:
- venueType
-
setVenueType
-
exchange
-
getExchange
The exchange id, as `GET /exchanges` lists it. For a `dex` source, the chain the pool is on; `robinhood` is the only one today.- Returns:
- exchange
-
setExchange
-
segment
-
getSegment
The segment, as `GET /exchanges` lists it for that exchange, among its `liveSegments` (a segment with no live data is refused with `400`). For a `cex` source, the market segment (`spot` today); for a `dex` source, the protocol of the pool, `uniswap-v3` the only one today.- Returns:
- segment
-
setSegment
-
type
-
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. A `dex` source supports only `kline`: one candle per second of the pool's trades.- Returns:
- type
-
setType
-
instruments
-
addInstrumentsItem
-
getInstruments
The instruments the run reads. For a run started with a list, that list as sent; for one started without `instruments`, or with `[\"*\"]`, what the start resolved: the list of pairs the compilation of the strategy records as the instruments it accepts, when it records one, or `[\"*\"]` for every instrument the exchange/segment offers (tier-gated). An entry is written `BASE/QUOTE` and either side can be `*` to mean any, such as any base paired with USDT. Symbols are not case-sensitive and spaces around them are ignored, so `btc/usdt` and `BTC/USDT` are the same instrument. A `dex` source holds exactly one entry, the address of its pool.- Returns:
- instruments
-
setInstruments
-
equals
Return true if this LiveSource object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-